*{box-sizing:border-box} :root{--ink:#183c38;--muted:#61726d;--paper:#faf8f1;--teal:#23675c;--gold:#d79f42;--line:#e0e5d9;--soft:#eef2e9}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 "Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--teal)}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2{line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(32px,4.4vw,57px);font-weight:650;margin-bottom:18px}h2{font-size:27px;font-weight:650;margin-bottom:18px}h3{font-size:19px}.site-header{max-width:1320px;margin:auto;padding:24px 48px;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:21px;font-weight:700;line-height:1.03;letter-spacing:-.6px}.brand-second{display:block;font-weight:400;font-size:18px}.brand-mark{display:grid;place-items:center;font:italic 44px Georgia,serif;background:var(--teal);color:white;width:48px;height:52px;border-radius:15px 15px 15px 4px}.site-header nav{display:flex;align-items:center;gap:12px;margin:auto}.nav-button{background:none;border:0;padding:8px 10px;color:var(--muted);font-size:14px;font-weight:600}.nav-button.active{color:var(--ink);border-bottom:2px solid var(--teal)}#history-count{background:#e9ece2;border-radius:10px;font-size:11px;padding:2px 6px;margin-left:4px}.offline-pill{font-size:12px;white-space:nowrap;color:var(--teal)}.offline-pill span{font-size:9px;margin-right:7px}main{max-width:1224px;margin:auto;padding:44px 0 24px}.welcome{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:38px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--teal);margin-bottom:16px}.lead{color:var(--muted);max-width:550px;font-size:17px;margin-bottom:0}.gold-dot{color:var(--gold)}.paper-note{display:flex;flex-direction:column;transform:rotate(3deg);background:#f3e7bd;padding:25px 30px 24px;min-width:245px;border-radius:2px 2px 28px 2px;margin:0 30px 0 0;box-shadow:3px 7px 0 #eae4d3}.paper-note strong{font:italic 24px/1.3 Georgia,serif}.paper-note>span:last-child{font-size:11px;margin-top:16px}.note-star{font-size:25px;color:#b28230;line-height:1;margin-bottom:10px}.workspace{display:grid;grid-template-columns:280px 1fr;gap:24px}.panel{background:#fffefa;border:1px solid var(--line);border-radius:22px;padding:28px}.picker{display:flex;flex-direction:column}.picker h2{font-size:24px}.filter{display:flex;background:var(--soft);padding:4px;border-radius:12px;gap:4px;margin-bottom:20px}.filter button{flex:1;border:0;border-radius:9px;background:none;padding:8px 6px;font-size:13px;font-weight:600}.filter button.selected{background:white;box-shadow:0 2px 4px #153d3010}.card-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.letter-button{height:65px;border:1px solid var(--line);border-radius:14px;background:white;padding:6px}.letter-button .handwriting{height:49px;width:100%}.letter-button.selected{border:2px solid var(--teal);background:#eaf3ec}.letter-button:hover{background:#f0f4ec}.card-picker.joined{grid-template-columns:1fr 1fr}.card-picker.joined .letter-button{height:79px}.picker-note{display:flex;align-items:center;gap:14px;margin-top:28px;color:var(--muted);font-size:12px}.small-pencil{font-size:40px;font-family:Georgia,serif;color:var(--gold)}.picker-note p{margin:0}.picker .wide{margin-top:auto}.button{border:0;border-radius:12px;padding:13px 20px;font-size:14px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:15px;line-height:1.4;text-decoration:none}.primary{background:var(--teal);color:white}.primary:hover{background:#164f46}.subtle{background:var(--soft);color:var(--ink)}.subtle:hover{background:#e0e9dc}.wide{width:100%;justify-content:space-between}.lesson{padding:26px 32px}.lesson-heading{display:flex;justify-content:space-between;align-items:center}.lesson-heading h2{margin-bottom:8px}.lesson-heading .eyebrow{margin-bottom:8px}.chip{font-size:11px;border:1px solid var(--line);padding:5px 12px;border-radius:20px;color:var(--muted)}.letter-stage{background:#f7f9f4;border:1px solid #e5eade;border-radius:16px;height:235px;margin-top:16px;display:flex;justify-content:center;padding:16px;overflow:hidden;background-image:radial-gradient(#d9e1d4 .7px,transparent .7px);background-size:13px 13px}.handwriting{height:100%;max-width:100%;overflow:visible}.pen-path{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.rule{stroke:#bcc9bc;stroke-width:.65}.baseline{stroke:#94ac9c;stroke-width:1}.direction-arrow{fill:none;stroke:#bb7625;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.start-dot{fill:var(--gold);stroke:white;stroke-width:1.5}.ghost-path{stroke:#d4ded3}.active-path{stroke:var(--teal)}.moving-dot{fill:var(--gold);stroke:white;stroke-width:1.3}.stage-caption{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:8px 4px 16px}.legend-dot{display:inline-block;width:7px;height:7px;background:var(--gold);border-radius:50%;margin-right:5px}.play-row{display:flex;align-items:center;gap:20px}.slow-option{font-size:13px;color:var(--muted);display:flex;gap:8px;align-items:center}input[type=checkbox],input[type=radio]{accent-color:var(--teal)}.steps{counter-reset:step;list-style:none;padding:0;margin:22px 0 8px;display:flex;flex-direction:column;gap:10px}.steps li{counter-increment:step;display:flex;gap:12px;align-items:flex-start;font-size:14px;border-radius:8px;padding:3px}.steps li:before{content:counter(step);flex-shrink:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f1ecd9;color:#745a20;font-size:11px;font-weight:700}.steps li.current{background:#eaf3ec}.quiet{font-size:11px;color:var(--muted);line-height:1.6}.lesson>.quiet{margin:14px 0 0}.bottom-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:24px;margin-top:24px}.print-panel{background:#edf2e7}.print-panel p:not(.eyebrow){font-size:14px;color:var(--muted)}.print-panel select{background:#fbfcf8}.field-label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}select{padding:11px 13px;border-radius:10px;border:1px solid #cdd7c9;background:white;width:100%;color:var(--ink);font-size:14px}.print-panel .button{margin:16px 0 7px}.coach-heading{display:flex;justify-content:space-between}.coach-heading .eyebrow{margin-bottom:10px}.coach-icon{display:grid;place-items:center;background:#f2e8c7;width:43px;height:43px;border-radius:50% 50% 50% 8px;font:italic 27px Georgia,serif}.conversation{max-height:290px;overflow:auto;margin:0 0 14px;font-size:14px}.assistant-message{padding:14px 16px;background:#f2f5ef;border-radius:0 14px 14px;margin:8px 0}.user-message{margin:12px 0 8px;text-align:right;padding:8px 12px;color:var(--teal)}.answer-steps{font-size:13px;padding-left:23px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.suggestions button{border:1px solid var(--line);background:none;font-size:11px;padding:6px 10px;border-radius:20px}#question-form{display:flex;border:1px solid #cdd7c9;border-radius:12px;background:white;padding:5px}#question{border:0;background:none;min-width:0;flex:1;padding:8px;font-size:14px;color:var(--ink)}.send{width:40px;background:var(--teal);color:white;border:0;border-radius:9px;font-size:22px}#coach-status{display:block;margin-top:9px}footer{max-width:1224px;margin:20px auto 0;padding:22px 0 32px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}footer>span:first-child{font-weight:700}dialog{border:1px solid var(--line);border-radius:22px;padding:30px;max-width:700px;width:calc(100% - 32px);max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #173c3826}dialog::backdrop{background:#123a3266;backdrop-filter:blur(3px)}dialog p{font-size:14px}.dialog-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.icon-button{width:36px;height:36px;border:0;background:var(--soft);border-radius:50%;font-size:25px;line-height:1}.history-item{padding:18px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.history-item strong{display:block}.history-item .button{padding:9px 12px;font-size:12px}.danger{background:#f6e7df;color:#943d27}.status-box{padding:15px;border-radius:12px;background:var(--soft);margin-bottom:20px;font-size:14px}details{font-size:13px;margin-bottom:20px}summary{cursor:pointer;font-weight:600}.photo-dialog{max-width:1050px}.photo-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}.upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px dashed #b5c8b7;border-radius:14px;padding:20px;cursor:pointer;background:#f5f8f0}.upload-box>span{font-size:30px}.upload-box small{font-size:11px;color:var(--muted)}.canvas-wrap{margin-top:12px;border:1px solid var(--line);background:#f0f0e9;border-radius:10px;overflow:hidden}#photo-canvas{display:block;width:100%;touch-action:none;cursor:crosshair}.photo-tools{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}.photo-tools .button{font-size:11px;padding:8px 10px}.photo-reference{height:115px;text-align:center;margin:12px 0;padding:6px;background:#f5f8f0;border-radius:10px}fieldset{border:0;padding:0;margin:15px 0}legend{font-weight:600;font-size:13px;margin-bottom:10px}fieldset label{display:flex;align-items:flex-start;gap:8px;font-size:13px;padding:6px 0}.photo-note{padding:15px;border-radius:10px;background:#f5ecd2;margin:20px 0 0;font-size:12px!important}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 24px;background:var(--ink);color:white;border-radius:12px;box-shadow:0 8px 30px #0002;max-width:90%;z-index:10;font-size:14px}.skip{position:absolute;left:-10000px}.skip:focus{left:20px;top:10px;background:white;padding:10px;z-index:20}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}input[type=file]:focus-visible+.canvas-wrap{outline:3px solid var(--gold)}[hidden]{display:none!important}
@media(min-width:1450px){main{padding-top:55px}.welcome{margin-bottom:45px}}
@media(max-width:1300px){main,footer{margin-left:40px;margin-right:40px}.site-header{padding-left:40px;padding-right:40px}}
@media(max-width:950px){.offline-pill{display:none}.site-header{gap:20px}.site-header nav{margin-left:auto;margin-right:0}.paper-note{min-width:205px;padding:20px;margin-right:10px}.paper-note strong{font-size:21px}.workspace{grid-template-columns:230px 1fr;gap:18px}.panel{padding:22px}.lesson{padding:22px}.bottom-grid{gap:18px}.photo-grid{grid-template-columns:1fr}}
@media(max-width:680px){.site-header{padding:18px 20px;flex-wrap:wrap;gap:16px}.site-header nav{width:100%;margin:0;justify-content:space-between}.brand{font-size:18px}.brand-mark{width:40px;height:42px;font-size:35px}.welcome{margin-bottom:25px}.paper-note{display:none}main{padding-top:28px;margin:0 20px}.lead{font-size:15px}.workspace,.bottom-grid{grid-template-columns:1fr}.picker{padding:20px}.card-picker{grid-template-columns:repeat(7,1fr);gap:5px}.letter-button{height:54px;padding:3px;border-radius:9px}.letter-button .handwriting{height:40px}.picker-note{display:none}.picker>.wide{margin-top:16px}.filter{max-width:300px}.card-picker.joined{grid-template-columns:repeat(3,1fr)}.lesson-heading h2{font-size:24px}.letter-stage{height:210px}.bottom-grid{margin-top:18px}footer{margin:30px 20px 0;gap:20px}.nav-button{font-size:12px;padding:6px}.photo-dialog{padding:20px}.history-item{flex-wrap:wrap}.eyebrow{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.demo-banner{max-width:1320px;margin:16px auto 0;padding:18px 30px;background:#f3ebd5;border:1px solid #dbcba2;border-radius:16px;display:flex;gap:25px;align-items:center}.demo-banner strong{font-size:15px}.demo-banner p{font-size:13px;margin:5px 0 0;max-width:740px;line-height:1.5}.demo-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.demo-actions .button{font-size:12px;padding:10px 13px}.demo-actions>a:last-child{font-size:12px}.demo-banner~main{padding-top:28px}@media(max-width:800px){.demo-banner{margin:12px 16px 0;padding:16px;display:block}.demo-actions{margin-top:12px}}
