/* Fonts are served from our own server (no third-party requests). Geist and Source Serif 4: SIL OFL. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/geist-latin-wght-normal-90ac0fe7.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/geist-latin-ext-wght-normal-4f909eff.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/source-serif-4-latin-opsz-normal-1152c123.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/source-serif-4-latin-ext-opsz-normal-b066b42f.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/assets/source-serif-4-latin-opsz-italic-cb358ef5.woff2") format("woff2"); }

:root {
  /* Shared foundation (brand, 2026-11-27): warm paper, never pure black or white surfaces. */
  --paper: #F6F5EF;
  --card: #FFFFFF;
  --ink: #242622;
  --muted: #6B6E66;
  --line: #DCDDD5;
  --line-soft: #EAEAE3;
  /* The edition's accent (terracotta for Scrivio, cobalt for Numerio) is set in the layout. */
  --accent: #A84D3B;
  --accent-soft: #F1DDD3;
  --accent-deep: #71372D;
  --accent-ink: #FFFFFF;
  --ok: #2F7D4F;
  --ok-soft: #E3F0E7;
  --ko: #B2442F;
  --ko-soft: #F7E4DE;
  --warn: #946200;
  --warn-soft: #F8EED5;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(36 38 34 / 0.04), 0 6px 24px rgb(36 38 34 / 0.05);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1C19; --card: #242622; --ink: #ECEBE4; --muted: #A2A49B; --line: #393B35; --line-soft: #2E302B;
    --accent-ink: #16130F;
    --ok: #6BC28C; --ok-soft: #1D3325; --ko: #F08A72; --ko-soft: #3A221B; --warn: #E7B75A; --warn-soft: #362C14;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; margin-top: 1.2em; }
p { margin: 0 0 0.8em; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.9rem; }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
.ko { color: var(--ko); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; }
.big-num { font-family: var(--sans); font-size: 2rem; font-variant-numeric: tabular-nums; }
.inline { display: inline; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; max-width: 1080px; margin: 0 auto; }
.brand { font-family: var(--sans); font-size: 1.35rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 1rem; font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.who { display: inline-flex; align-items: center; gap: 0.4rem; }
.xp-pill { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 0.2rem 0.7rem; font-variant-numeric: tabular-nums; }

.page { max-width: 1080px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.task-page { max-width: 760px; }
.narrow { max-width: 440px; margin: 2rem auto; }
.center { text-align: center; margin-top: 3rem; }

.flash { max-width: 1048px; margin: 0 auto 0.5rem; padding: 0.7rem 1rem; border-radius: var(--radius); background: var(--accent-soft); }
.flash-alert { background: var(--ko-soft); }
.errors { background: var(--ko-soft); border-radius: var(--radius); padding: 0.5rem 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.4rem; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform 120ms ease-out, filter 120ms; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .option:focus-within, .unit:focus-visible, .part:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-big { min-height: 56px; font-size: 1.1rem; padding: 0.8rem 2rem; }
.btn-small { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.95rem; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.form { display: grid; gap: 0.5rem; }
.form label, legend { font-weight: 700; margin-top: 0.6rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form select, .pin-form input {
  font: inherit; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%;
}
.form .btn { margin-top: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 0.5rem; align-items: center; font-weight: 400 !important; }
.swatches { display: flex; gap: 0.6rem; }
.swatch input { position: absolute; opacity: 0; }
.swatch input:checked + .dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

.dot { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.dot-sm { width: 28px; height: 28px; font-size: 0.85rem; }
.dot-md { width: 40px; height: 40px; }
.dot-lg { width: 96px; height: 96px; font-size: 2.4rem; font-family: var(--sans); }
.dot-teal { background: #0f7b6c; } .dot-coral { background: #e0644a; } .dot-violet { background: #7d5bc4; }
.dot-amber { background: #d49114; } .dot-sky { background: #2f86c9; } .dot-leaf { background: #4c9a2a; }

.profiles { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.profile { display: grid; justify-items: center; gap: 0.6rem; background: none; border: 0; font: 700 1.1rem var(--sans); color: var(--ink); cursor: pointer; }
.profile summary { list-style: none; display: grid; justify-items: center; gap: 0.6rem; cursor: pointer; }
.profile summary::-webkit-details-marker { display: none; }
.pin-form { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.pin-form input { width: 6rem; text-align: center; letter-spacing: 0.3em; }

.hero { padding: 3rem 0 2rem; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pillar, .card, .panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.course-card { color: var(--ink); text-decoration: none; display: block; }
.lang { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.section { margin-top: 2rem; }

.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 400ms ease-out; }

.today { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.goal { min-width: 240px; flex: 0 1 320px; }
.goal-num { font-variant-numeric: tabular-nums; margin-bottom: 0.3rem; }
.goal-num strong { font-family: var(--sans); font-size: 1.6rem; }
.next { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; margin-bottom: 1.5rem; border-left: 6px solid var(--accent); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.strands, .recent, .plain, .shorts { list-style: none; padding: 0; margin: 0 0 1rem; }
.strands li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; margin-bottom: 0.7rem; }
.strands .bar { grid-column: 1 / -1; height: 6px; }
.recent li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.recent li > span:nth-child(2) { flex: 1; }
.plain li { padding: 0.3rem 0; }
.shorts li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--accent-soft); white-space: nowrap; }
.kind-review { background: #e8eefb; } .kind-quiz { background: var(--warn-soft); } .kind-project, .kind-revise { background: #f3e8fb; }
@media (prefers-color-scheme: dark) { .kind-review, .kind-project, .kind-revise { background: var(--line); } }
.xp { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
.xp.zero { color: var(--muted); }
.tag { font-size: 0.75rem; padding: 0.05rem 0.45rem; border-radius: 6px; background: var(--line); }
.tag.warn { background: var(--warn-soft); }

.task-head { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 0.5rem; }
.back { font-size: 1.4rem; text-decoration: none; color: var(--muted); padding: 0.2rem 0.4rem; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0.5rem 0 1.5rem; }
.steps li { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.steps li.ok { background: var(--ok); } .steps li.ko { background: var(--ko); }
.steps li.now { box-shadow: 0 0 0 2px var(--accent); }

.item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 1rem; }
.prompt { font-weight: 700; font-size: 1.15rem; margin: 0; }
.prompt.small { font-size: 1rem; }
.passage { background: var(--paper); border-radius: 10px; padding: 1rem 1.2rem; max-height: 50vh; overflow: auto; font-size: 1.02rem; }
.given, .theirs { margin: 0; padding: 0.8rem 1rem; border-left: 4px solid var(--line); background: var(--paper); border-radius: 0 10px 10px 0; }
.options { display: grid; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.option { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 52px; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); width: 20px; height: 20px; }
.options.review li { padding: 0.6rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); }
.options.review li.chosen { border-color: var(--ko); background: var(--ko-soft); }
.options.review li.right { border-color: var(--ok); background: var(--ok-soft); }
.select-text { line-height: 2.4; font-size: 1.15rem; }
.unit { font: inherit; background: none; border: 0; border-radius: 6px; padding: 0.1rem 0.25rem; margin: 0 -0.05rem; color: var(--ink); cursor: pointer; border-bottom: 2px dotted var(--line); }
.unit[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); border-bottom-color: transparent; }
.unit-static { padding: 0.1rem 0.15rem; border-radius: 6px; }
.unit-static.hit, span.hit { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.unit-static.missed, span.missed { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.unit-static.extra, span.extra { background: var(--ko-soft); color: var(--ko); text-decoration: line-through; }
.order-chosen { min-height: 3rem; padding-left: 1.5rem; margin: 0 0 0.5rem; display: grid; gap: 0.5rem; border: 2px dashed var(--line); border-radius: 12px; padding: 0.6rem 0.6rem 0.6rem 2rem; }
.order-pool { display: grid; gap: 0.5rem; }
.part { font: inherit; text-align: left; padding: 0.7rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; width: 100%; }
.part.chosen { border-color: var(--accent); background: var(--accent-soft); }
.order-review { display: grid; gap: 0.4rem; }
.fill { font-size: 1.15rem; line-height: 2.2; }
.blank { font: inherit; width: 12ch; border: 0; border-bottom: 2.5px solid var(--accent); background: transparent; color: var(--ink); padding: 0 0.3rem; text-align: center; }
.blank:focus { outline: none; background: var(--accent-soft); }
.writebox { width: 100%; font: 1.1rem/1.6 var(--sans); padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); resize: vertical; }
.writebox:focus { outline: none; border-color: var(--accent); }
.writebox.big { min-height: 50vh; }
.over, .under { color: var(--ko); font-weight: 700; }

.feedback { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.2rem; display: grid; gap: 0.6rem; }
.feedback.is-ok { border-top: 6px solid var(--ok); }
.feedback.is-ko { border-top: 6px solid var(--ko); }
.feedback h2 { margin: 0; }
.explanation { background: var(--accent-soft); border-radius: 10px; padding: 0.8rem 1rem; margin: 0; }
.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.criteria li { padding: 0.6rem 0.9rem 0.6rem 2.2rem; border-radius: 10px; position: relative; background: var(--paper); }
.criteria li::before { position: absolute; left: 0.8rem; top: 0.6rem; font-weight: 700; }
.criteria li.met::before { content: "✓"; color: var(--ok); }
.criteria li.unmet::before { content: "→"; color: var(--warn); }
.criteria li span { display: block; color: var(--muted); }
.criteria.plain li { padding-left: 1.6rem; }
.criteria.plain li::before { content: "•"; color: var(--accent); }
.comment { font-size: 1.05rem; }
.comment.big { font-size: 1.2rem; }
.sample summary, .passage-again summary, details.panel summary { cursor: pointer; font-weight: 700; }
.sample p { margin-top: 0.5rem; padding: 0.7rem 1rem; background: var(--paper); border-radius: 10px; }
.reason { color: var(--ko); margin: 0; }
details.panel { margin-top: 1rem; }

.result { text-align: center; padding: 2rem 1rem; }
.result .actions { justify-content: center; }
.result.is-ok .big-num { color: var(--ok); }

.writing-layout { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .writing-layout { grid-template-columns: 1fr; } }
.brief { background: var(--card); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); font-size: 0.98rem; }

.lesson { display: grid; gap: 1rem; }
.lesson-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; font-size: 1.08rem; }
.lesson h1 .symbol { vertical-align: -4px; }
.examples { display: grid; gap: 0.8rem; }
.example { background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; border-left: 4px solid var(--accent); }
.example h3 { margin-top: 0; }
.example .before { color: var(--muted); }
.example .tag { margin-right: 0.3rem; }
.example .note { font-size: 0.95rem; color: var(--muted); margin: 0; }

.legend { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.legend .state { font-size: 0.85rem; padding: 0.2rem 0.7rem; border-radius: 999px; }
.strand { margin-bottom: 1.5rem; }
.nodes { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.node { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 0.95rem; border: 1.5px solid var(--line); background: var(--card); }
.state-mastered { background: var(--ok-soft); border-color: var(--ok); }
.state-due { background: var(--warn-soft); border-color: var(--warn); }
.state-learning { background: var(--accent-soft); border-color: var(--accent); }
.state-available { background: var(--card); border-color: var(--accent); border-style: dashed; }
.state-locked { opacity: 0.55; }

.week { display: flex; gap: 6px; align-items: end; height: 90px; margin: 0.8rem 0 0.3rem; }
.day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 4px; }
.day .col { width: 100%; background: var(--line); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.day .col.met { background: var(--accent); }
.day small { color: var(--muted); font-size: 0.75rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) { body { font-size: 17px; } .top nav .who span { display: none; } }

.onboard { display: grid; gap: 1.2rem; margin-top: 1rem; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.how li { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.how h2 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.how p { margin: 0; color: var(--muted); }
.how-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 1.05rem var(--sans); }
.start-panel { border-left: 6px solid var(--accent); }
.placement-progress { margin: 0.8rem 0 1.2rem; }
.h-small { font-size: 1.3rem; }
.course-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.85rem; }
.course-switch > * { padding: 0.25rem 0.8rem; border-radius: 999px; text-decoration: none; }
.course-switch .current { background: var(--ink); color: var(--paper); }
.course-switch a { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.card-next { margin: 0.6rem 0 0; font-weight: 700; color: var(--accent); }
.today-lang { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.4rem; font-size: 0.9rem; }
.today-lang .current { background: var(--accent-soft); color: var(--accent-deep); padding: 0.2rem 0.75rem; border-radius: 8px; font-weight: 600; }
.check input[type=radio] { margin-top: 0.3rem; align-self: flex-start; accent-color: var(--accent); }
.plans { margin: 1.5rem 0; }
.plan { display: grid; gap: 0.4rem; align-content: start; }
.plan .btn { margin-top: 0.6rem; }
.plan-best { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.copy-source { font-size: 1.1rem; user-select: none; -webkit-user-select: none; }
.xp-chip { font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 0.15rem 0.7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.xp-chip.neg { color: var(--ko); background: var(--ko-soft); }
.danger-zone { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
/* Exercise texts, samples and copy texts keep their line breaks (dialogue, one speaker per line). */
.given, .copy-source, .sample p, .theirs { white-space: pre-line; }

/* Public site */
.site { max-width: none; padding: 0 0 3rem; }
.site-section { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1rem; }
.site-band { background: var(--card); border-block: 1px solid var(--line); }
.site-h { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-align: center; margin-bottom: 0.8em; }
.site-h.left { text-align: left; }
.center-text { text-align: center; max-width: 720px; margin-inline: auto; }
.center-actions { justify-content: center; }
.site-hero { max-width: 860px; margin: 0 auto; padding: 4rem 1rem 3rem; text-align: center; }
.site-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.site-hero .lead { color: var(--muted); max-width: 720px; margin: 0 auto 1.6rem; }
.price-line { color: var(--muted); margin-top: 0.8rem; }
.statement p { max-width: 900px; margin: 0 auto; padding: 3rem 1rem; text-align: center; font: 500 clamp(1.25rem, 2.6vw, 1.7rem)/1.4 var(--sans); letter-spacing: -0.015em; text-wrap: balance; }
.site-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2rem; }
.site-cols h3 { margin-top: 0; }
.site-cols p { color: var(--muted); }
.ai-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ai-point { background: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.2rem; border-left: 4px solid var(--accent); }
.ai-point h3 { margin-top: 0; }
.ai-point p { color: var(--muted); margin: 0; }
.day-steps { max-width: 760px; margin: 1.5rem auto 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.progress-demo { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; }
.pd-row { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }
.pd-label { font-size: 0.92rem; color: var(--muted); }
.pd-bar { display: flex; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pd-mastered { background: var(--accent); }
.pd-learning { background: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pd-legend { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.pd-key { display: inline-block; width: 14px; height: 8px; border-radius: 4px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.narrow-list { max-width: 560px; margin: 1.5rem auto; }
.plans { max-width: 720px; margin-inline: auto; }
.per { font-size: 1rem; font-family: var(--sans); }
.guarantee { max-width: 720px; margin: 2rem auto; text-align: center; }
.guarantee p { color: var(--muted); }
.question-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.question-card { display: grid; place-items: center; min-height: 120px; padding: 1.2rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font: 600 1.05rem/1.35 var(--sans); text-decoration: none; transition: border-color 150ms ease-out; }
.question-card:hover { border-color: var(--accent); }
.faq { max-width: 760px; }
.faq-group { margin-top: 2rem; font-size: 1.2rem; color: var(--muted); }
.faq-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; margin-bottom: 0.8rem; scroll-margin-top: 1rem; }
.faq-item:target { outline: 2px solid var(--accent); }
.faq-item h3 { margin-top: 0; }
.faq-a p { color: var(--muted); }
.site-links { display: inline-flex; gap: 1rem; }
@media (max-width: 860px) { .site-links { display: none; } }
.lang-switch { font-size: 0.85rem; color: var(--muted) !important; }
.site-footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

/* Join */
.join { margin: 1.5rem 0 4rem; }
/* The sign-up steps line up with the header; their forms keep a readable width. */
.join > *:not(.join-steps) { max-width: 640px; }
.join-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); }
.join-steps li { display: flex; align-items: center; gap: 0.45rem; }
.join-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-weight: 700; }
.join-steps .current { color: var(--ink); font-weight: 700; }
.join-steps .current .join-n { background: var(--accent); color: var(--accent-ink); }
.join-steps .done .join-n { background: var(--accent-soft); color: var(--accent); }
.plan-picker { display: grid; gap: 0.5rem; margin-top: 1rem; }
.children-field { max-width: 7rem; }
.intervals { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.interval { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 400 !important; cursor: pointer; margin: 0 !important; }
.interval:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.interval input { margin-top: 0.35rem; }
.plan-total { font-size: 1.15rem; margin: 0.8rem 0 0; }
.plan-total strong { font-family: var(--sans); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.added { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.added li { display: flex; align-items: center; gap: 0.5rem; }
.courses-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.top nav a.btn { color: var(--accent-ink); }

/* Reading: passages and texts to copy are set in Source Serif 4 (Scrivio). */
.passage, .copy-source, .given, .sample, .writebox textarea { font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }

/* Wordmark: the edition's symbol, its lowercase name and an accent full stop. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 650 1.5rem/1 var(--sans); letter-spacing: -0.045em; color: var(--ink); text-decoration: none; }
.brand-dot { color: var(--accent); }
.brand-symbol { flex: none; }

/* Dashboard ("Oggi") */
.nav-tab { padding: 0.35rem 0.8rem; border-radius: 9px; color: var(--muted) !important; }
.nav-tab.is-active { background: var(--accent-soft); color: var(--accent-deep) !important; font-weight: 600; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.dash-date { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.2rem; }
.dash-title { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: -0.035em; margin-bottom: 0.15em; }
.goal-card { display: flex; align-items: center; gap: 1.4rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; min-width: min(100%, 340px); }
.goal-card > div { flex: 1; }
.goal-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.1rem; }
.goal-value { margin-bottom: 0.5rem; color: var(--muted); }
.goal-value strong { font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.goal-card .hint { margin: 0.4rem 0 0; }
.ring { flex: none; }
.ring-text { font: 600 15px var(--sans); fill: var(--accent); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-h { font-size: 1.1rem; margin-bottom: 0.8rem; }
.path { display: grid; gap: 0.6rem; margin-bottom: 0.6rem; }
.path-form { margin: 0; }
.path-row { display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.85rem 1rem; color: var(--ink); text-decoration: none; font: inherit; }
.path-main { background: var(--accent-soft); border-color: transparent; cursor: pointer; transition: transform 120ms ease-out, box-shadow 160ms ease-out; }
.path-main:hover { box-shadow: var(--shadow); }
.path-main:active { transform: scale(0.99); }
.path-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.path-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--accent); }
.path-main .path-icon { background: var(--card); }
.path-text { flex: 1; display: grid; gap: 0.1rem; min-width: 0; }
.path-text strong { font-weight: 600; }
.path-text span { color: var(--muted); font-size: 0.88rem; }
.path-play { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.skills { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.8rem; }
.skills li { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.5rem; font-size: 0.95rem; }
.skills .bar { grid-column: 1 / -1; height: 7px; }
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 1rem; }
.tile { aspect-ratio: 1; border-radius: 4px; background: var(--line-soft); }
.tile-learning { background: color-mix(in srgb, var(--accent) 25%, var(--card)); }
.tile-done { background: color-mix(in srgb, var(--accent) 60%, var(--card)); }
.tile-solid { background: var(--accent); }
.bar { background: var(--line-soft); }

/* Maths (Numerio) */
.math-text { font-size: 1.15rem; margin: 0.3rem 0 0.8rem; }
.number-answer { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0; }
.number-field { font: 500 1.4rem var(--sans); font-variant-numeric: tabular-nums; width: 11rem; padding: 0.6rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.number-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.number-unit { font-size: 1.15rem; color: var(--muted); }
.solution { margin-top: 0.8rem; border-top: 1px solid var(--line-soft); padding-top: 0.6rem; }
.solution summary { cursor: pointer; font-weight: 600; }
.solution-body { margin-top: 0.4rem; }
.katex { font-size: 1.08em; }
.katex-display { margin: 0.8em 0; overflow-x: auto; overflow-y: hidden; }

/* Public site, own structure: intro with a product still, "Knowledge is built", bands */
.intro { max-width: 1080px; margin: 0 auto; padding: 3.5rem 1rem 3rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; } }
.intro h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.intro .lead { color: var(--muted); margin-bottom: 1.6rem; }
.device { background: var(--ink); border-radius: 28px; padding: 12px; box-shadow: 0 30px 60px -30px rgb(36 38 34 / 0.45); }
.device-screen { background: var(--paper); border-radius: 18px; padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.55rem; }
.shot-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.shot-brand .brand-symbol { vertical-align: middle; }
.shot-brand { font: 650 1rem var(--sans); letter-spacing: -0.03em; display: inline-flex; gap: 0.35rem; align-items: center; }
.shot-tab { background: var(--accent-soft); color: var(--accent-deep); font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 7px; }
.shot-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.shot-date { font-size: 0.75rem; color: var(--muted); margin: 0; }
.shot-title { font: 600 1.6rem/1.1 var(--sans); letter-spacing: -0.035em; margin: 0; }
.shot-goal { display: flex; align-items: center; gap: 0.6rem; background: var(--card); border-radius: 12px; padding: 0.4rem 0.6rem 0.4rem 0.8rem; font-size: 0.8rem; color: var(--muted); }
.shot-goal strong { color: var(--ink); font-size: 1.1rem; }
.shot-h { font-weight: 600; font-size: 0.85rem; margin: 0.4rem 0 0; }
.device .path-row { padding: 0.6rem 0.75rem; }
.device .path-icon { width: 32px; height: 32px; }
.device .path-text strong { font-size: 0.9rem; }
.device .path-text span { font-size: 0.75rem; }
.method { max-width: 1080px; margin: 0 auto; padding: 4rem 1rem; }
.method h2, .band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: -0.035em; }
.method-head { max-width: 680px; }
.method-head .lead, .band .lead, .two-col .lead { color: var(--muted); }
.knowledge-graph { width: 100%; max-width: 760px; height: auto; margin: 2.5rem auto; display: block; }
.kg-edge { stroke: var(--accent); stroke-width: 2; opacity: 0.45; }
.kg-edge-dim { stroke: var(--line); stroke-width: 2; }
.kg-solid { fill: var(--accent); }
.kg-soft { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.kg-empty { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.method-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; }
.method-steps h3 { margin: 0.6rem 0 0.3rem; font-size: 1.1rem; }
.method-steps p { color: var(--muted); }
.method-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 650; }
.band { background: var(--card); border-block: 1px solid var(--line-soft); }
.band-inner { max-width: 1080px; margin: 0 auto; padding: 4rem 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.parents { align-items: center; }
.facts { margin: 0; display: grid; gap: 1.2rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0.15rem 0 0; color: var(--muted); }
.course-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0; margin-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.course-item { padding: 1.3rem 0; border-bottom: 1px solid var(--line-soft); padding-right: 2rem; }
.course-item h3 { margin: 0.25rem 0 0.4rem; font-size: 1.2rem; }
.course-item p { color: var(--muted); margin: 0; }
.course-item .course-meta { font-size: 0.82rem; color: var(--accent-deep); font-weight: 600; }
.pricing { align-items: center; }
.guarantee-note { color: var(--muted); margin-top: 1.4rem; }
.calc { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.calc-title { font-weight: 600; margin-bottom: 0.8rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 0.6rem 0.4rem; border-radius: 9px; font-weight: 600; font-size: 0.95rem; color: var(--muted); transition: background 150ms ease-out, color 150ms ease-out; }
.segmented em { display: block; font-style: normal; font-weight: 500; font-size: 0.75rem; }
.segmented input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(36 38 34 / 0.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.calc-label { display: block; font-weight: 600; margin: 1.1rem 0 0.4rem; }
.stepper input { font: 500 1.2rem var(--sans); width: 6rem; padding: 0.5rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.calc-total { margin: 1.2rem 0 0.2rem; color: var(--muted); }
.calc-total strong { font-size: 2.2rem; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-cta { width: 100%; margin-top: 0.8rem; }
.faq-inline { max-width: 760px; }
.qa { border-bottom: 1px solid var(--line-soft); padding: 0.2rem 0; }
.qa summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.qa summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.qa[open] summary::after { content: "−"; }
.qa summary::-webkit-details-marker { display: none; }
.qa-a p { color: var(--muted); }

/* Legal pages */
.legal { max-width: 720px; margin: 2rem auto 4rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin-bottom: 0.4rem; }
.legal-updated { color: var(--muted); font-size: 0.9rem; }

/* Data tables in lessons and exercises */
.lesson-body table, .math-text table, .passage table, .solution-body table { border-collapse: collapse; margin: 0.6rem 0; font-variant-numeric: tabular-nums; }
.lesson-body th, .lesson-body td, .math-text th, .math-text td, .passage th, .passage td, .solution-body th, .solution-body td { border-bottom: 1px solid var(--line); padding: 0.35rem 0.8rem; text-align: left; }
.lesson-body th, .math-text th, .passage th, .solution-body th { font-weight: 600; }
.lang-choice { display: flex; justify-content: center; gap: 0.9rem; margin-top: 0.6rem !important; font-size: 0.85rem; }
.lang-choice span { color: var(--ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { .device { background: #0E0F0D; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgb(0 0 0 / 0.7); } }
.faq-inline { max-width: 1080px; }
.qa-list { border-top: 1px solid var(--line-soft); }
.qa:last-child { border-bottom: 0; }
.site { padding-bottom: 0; }

/* Forms: calm, compact fields */
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label, .form label { font-weight: 600; font-size: 0.92rem; }
.field input[type=text], .field input[type=email], .field input[type=password], .field select,
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form select {
  font: 400 1rem var(--sans); height: 44px; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); width: 100%; transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.field select, .form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .form input:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { margin: 0; }
.small { font-size: 0.9rem; }
.join-wide { margin: 1.5rem 0 4rem; }
.join-wide h1 { letter-spacing: -0.035em; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 820px) { .join-grid { grid-template-columns: 1fr; } }
.join-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.join-card h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.join-card.calc { position: sticky; top: 1rem; }
.plan-box .hint { margin: 0.25rem 0 0; }
.stepper input { height: 44px; }
.free-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--accent-soft); margin-bottom: 1rem; }
.free-banner p { margin: 0.2rem 0 0; }
.free-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; color: var(--muted); }
.plain-ol { margin: 0.3rem 0 1rem; padding-left: 1.2rem; }
.product-choice { display: grid; gap: 0.5rem; margin-bottom: 0.8rem; }
.product-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; transition: border-color 120ms ease-out, box-shadow 120ms ease-out; }
.product-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.product-option strong { display: block; font-weight: 600; }
.product-option small { color: var(--muted); font-size: 0.82rem; }
.product-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.product-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-price small { font-weight: 400; }

/* Account pages: one centred card, links set apart below */
.auth { min-height: calc(100vh - 220px); display: grid; place-content: center; padding: 2rem 0 4rem; }
.auth-card { width: min(420px, 100vw - 2rem); background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow); padding: 2rem 1.75rem 1.75rem; }
.auth-mark { margin-bottom: 1.4rem; }
.auth-mark .brand-symbol { display: block; }
.auth-mark span { display: none; }
.auth-card h1 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.auth-card > .muted { margin-bottom: 1.2rem; }
.auth-form { margin-top: 1.2rem; }
.btn-block { width: 100%; margin-top: 0.4rem; }
.auth-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.4rem; font-size: 0.92rem; }
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--ink); text-decoration: underline; }

/* Parent area */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.page-head h1 { margin-bottom: 0.2rem; letter-spacing: -0.03em; }
.page-head p { margin: 0; }
.child-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; margin-bottom: 2.5rem; }
.child-card { padding: 1.4rem 1.5rem; border: 1px solid var(--line-soft); }
.child-head { display: flex; justify-content: space-between; align-items: center; }
.child-head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.25rem; }
.subtle-link { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.subtle-link:hover { color: var(--ink); }
.subtle-link.strong { color: var(--accent); font-weight: 600; }
.week { height: 72px; margin: 1.2rem 0 0.6rem; }
.day .col { background: var(--accent-soft); border-radius: 5px; }
.day .col.met { background: var(--accent); }
.child-week { margin: 0 0 1rem; }
.child-week strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.child-courses { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.child-courses li { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.5rem; font-size: 0.95rem; }
.child-courses .bar { grid-column: 1 / -1; height: 6px; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); margin-bottom: 3rem; }
@media (max-width: 760px) { .settings-row { grid-template-columns: 1fr; } }
.settings-row h2 { font-size: 1.1rem; }
.settings-card { padding: 0.4rem 1.3rem 1.2rem; border: 1px solid var(--line-soft); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.toggle-row strong { display: block; font-weight: 600; }
.toggle-row small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.toggle { appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 160ms ease-out; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 160ms ease-out; }
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(18px); }
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-actions { padding-top: 1rem; }
.top nav .linklike { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

/* Profile picker */
.picker { text-align: center; padding: 3rem 0 4rem; }
.picker h1 { letter-spacing: -0.035em; margin-bottom: 2rem; }
.picker .profiles { gap: 1rem; margin: 0 0 1rem; }
.picker .profile { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.4rem 1.6rem 1.2rem; min-width: 150px; box-shadow: var(--shadow); transition: transform 140ms ease-out, border-color 140ms ease-out; }
.picker .profile:hover { border-color: var(--accent); }
.picker .profile:active { transform: scale(0.98); }
.picker .profile .dot-lg { width: 72px; height: 72px; font-size: 1.8rem; }

/* ---- Typographic pass: one left edge, one rhythm, hairlines between sections ---- */
.top { border-bottom: 1px solid var(--line-soft); max-width: none; padding: 0.9rem max(16px, calc((100vw - 1080px) / 2 + 1rem)); }
.site > section + section { border-top: 1px solid var(--line-soft); }
.method, .intro { padding-block: 5rem; }
.intro { padding-block: 4.5rem 4.5rem; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem; }
.method h2, .two-col h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.12; margin-bottom: 0.7rem; }
.method .lead, .two-col .lead, .intro .lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.intro .eyebrow { color: var(--muted); letter-spacing: 0.08em; font-weight: 500; margin-bottom: 1rem; }
.intro h1 { margin-bottom: 1.1rem; }
.free-note { margin: 1.2rem 0 0; font-weight: 600; font-size: 0.95rem; display: flex; gap: 0.5rem; align-items: center; }
.free-note::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.price-facts { margin: 1.2rem 0 0; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.price-facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.price-facts dt { font-weight: 600; }
.price-facts dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.method-steps { gap: 2.5rem; border-top: 1px solid var(--line-soft); padding-top: 2rem; }
.method-n { background: none; color: var(--accent); width: auto; height: auto; font: 600 0.85rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.method-n::before { content: "0"; }
.course-list { border-top: 0; gap: 0 2.5rem; }
.course-item { border-top: 1px solid var(--line-soft); border-bottom: 0; padding: 1.4rem 0; }
.course-item .course-meta { color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pricing { align-items: start; }
.progress-demo { box-shadow: none; border: 1px solid var(--line-soft); }
.calc { box-shadow: none; }
.faq-inline { align-items: start; }
.site-footer { text-align: left; padding: 0; border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 2rem 1rem 2.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); }
.footer-brand .brand-word { font-weight: 650; letter-spacing: -0.04em; color: var(--ink); font-size: 1.05rem; }
.footer-brand .brand-symbol { vertical-align: middle; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.site-footer .lang-choice { margin: 0 !important; justify-content: flex-end; }
.site-footer .lang-choice a { color: var(--muted); text-decoration: none; }
.method-n { display: inline-block; }

/* Exercise pages: the question alone on the page */
.task-page { max-width: 720px; padding-top: 2rem; }
.task-head { align-items: center; margin: 0 0 0.6rem; }
.task-head h1 { font-size: 1.5rem; letter-spacing: -0.025em; margin: 0; }
.task-head .eyebrow { margin-bottom: 0.15rem; letter-spacing: 0.06em; }
.back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-soft); font-size: 1.1rem; padding: 0; }
.back:hover { color: var(--ink); border-color: var(--line); }
.steps { gap: 4px; margin: 1rem 0 2.2rem; }
.steps li { height: 4px; background: var(--line-soft); }
.steps li.ok { background: var(--accent); }
.steps li.ko { background: color-mix(in srgb, var(--ko) 70%, var(--line-soft)); }
.steps li.now { box-shadow: none; background: color-mix(in srgb, var(--accent) 35%, var(--line-soft)); }
.item { background: none; box-shadow: none; padding: 0; gap: 1.2rem; }
.prompt { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.given, .theirs { border-left: 3px solid var(--accent-soft); background: none; padding: 0.2rem 0 0.2rem 1rem; border-radius: 0; font-size: 1.15rem; }
.option { gap: 0.9rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); background: var(--card); transition: border-color 120ms ease-out, background 120ms ease-out; }
.option:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-key { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:checked) .option-key { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.item .btn, .task-page > .btn { justify-self: start; min-width: 10rem; }
.lesson-body { box-shadow: none; border: 1px solid var(--line-soft); }
.feedback { border-radius: 14px; }

/* Brand switcher on the logo */
.brand-switch { position: relative; display: flex; align-items: center; gap: 0.2rem; }
.switcher summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--muted); }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary:hover, .switcher[open] summary { background: var(--line-soft); color: var(--ink); }
.switcher[open] summary svg { transform: rotate(180deg); }
.switcher summary svg { transition: transform 140ms ease-out; }
.switcher-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: min(420px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: 0 12px 32px -12px rgb(36 38 34 / 0.25); padding: 0.4rem; display: grid; gap: 0.15rem; }
.switcher-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.65rem 0.7rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.switcher-item:hover { background: var(--paper); }
.switcher-item.is-current { background: var(--paper); }
.switcher-item strong { display: block; font-weight: 650; letter-spacing: -0.02em; }
.switcher-item small { display: block; color: var(--muted); font-size: 0.82rem; }
.switcher-bundle { display: block; margin-top: 0.2rem; padding: 0.6rem 0.7rem 0.5rem; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.switcher-bundle:hover { color: var(--ink); }
.footer-sister { color: var(--muted); text-decoration: none; margin-left: 0.4rem; padding-left: 0.8rem; border-left: 1px solid var(--line); }
.footer-sister:hover { color: var(--ink); }
.bundle-offer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; border: 1px solid var(--accent-soft); box-shadow: none; margin-bottom: 1.5rem; }
.bundle-offer h2 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.bundle-offer p { margin: 0; }

/* A school that is still being built: one page (Inventio, 2026-11-28). */
.soon { max-width: 1080px; margin: 0 auto; padding: 4.5rem 1rem 3rem; }
.soon h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.035em; max-width: 16ch; margin: 0.2em 0 0.4em; }
.soon .lead { color: var(--muted); max-width: 640px; font-size: 1.15rem; line-height: 1.55; margin-bottom: 3rem; }
.soon-notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; border-top: 1px solid var(--line-soft); padding-top: 3rem; }
.soon-notify h2 { margin: 0 0 0.4rem; letter-spacing: -0.02em; }
.soon-family { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.5rem; font-size: 0.92rem; }
.soon-family span { flex-basis: 100%; }
.soon-school { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.soon-form label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.soon-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.soon-row input { flex: 1 1 220px; margin: 0; }
@media (max-width: 760px) { .soon-notify { grid-template-columns: 1fr; gap: 1.5rem; } }

/* latela.academy: the La Tela schools, one Italian page (owner, 2026-11-28). */
.latela-school { --school-color: var(--school); }
.latela main, .latela-top, .latela-foot { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.latela-top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.latela-logo img { display: block; width: 92px; height: auto; }
.latela-marks { display: inline-flex; gap: 0.5rem; }
.latela-intro { padding: 4rem 0 3rem; max-width: 760px; }
.latela-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 650; color: var(--muted); margin: 0 0 0.6rem; }
.latela-intro h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -0.035em; margin: 0 0 0.5em; }
.latela-lead { color: var(--muted); font-size: 1.15rem; line-height: 1.55; margin: 0; }
.latela-schools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.latela-school { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.latela-school p { margin: 0; color: var(--muted); line-height: 1.5; }
.latela-school-name { display: flex; align-items: center; gap: 0.6rem; }
.latela-school-name h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.04em; }
.latela-school .latela-subject { color: var(--ink); font-weight: 600; }
.latela-school .latela-meta { font-size: 0.88rem; }
.latela-link { margin-top: auto; padding-top: 0.6rem; color: var(--school-color); font-weight: 650; text-decoration: none; }
.latela-link:hover { text-decoration: underline; }
.latela-how, .latela-price { padding: 3.5rem 0 0; max-width: 760px; }
.latela-how h2, .latela-price h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 1rem; }
.latela-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.9rem; color: var(--muted); line-height: 1.55; }
.latela-steps strong, .latela-price strong { color: var(--ink); }
.latela-price p { color: var(--muted); line-height: 1.6; margin: 0; }
.latela-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; padding-block: 4rem 3rem; margin-top: 3rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.9rem; }
.latela-foot a { color: var(--muted); text-decoration: none; }
.latela-foot a:hover { color: var(--ink); }
@media (prefers-color-scheme: dark) { .latela-school { --school-color: var(--school-dark); } }
@media (max-width: 860px) { .latela-schools { grid-template-columns: 1fr; } }

/* Courses: one language at a time (owner, 2026-11-28). */
.course-langs { margin: 1.5rem 0 0.5rem; max-width: 420px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#courses:has(input[name=course-lang][value=en]:checked) .course-item:not([data-course-lang=en]) { display: none; }
#courses:has(input[name=course-lang][value=it]:checked) .course-item:not([data-course-lang=it]) { display: none; }
#courses:has(input[name=course-lang][value=es]:checked) .course-item:not([data-course-lang=es]) { display: none; }
/* Each school: name, tagline, field (owner, 2026-11-28). */
.switcher-item .switcher-tagline { display: block; font-style: normal; color: var(--ink); font-size: 0.86rem; margin-top: 0.1rem; }
.latela-school .latela-tagline { color: var(--ink); font-size: 1.1rem; margin-top: -0.1rem; }
.latela-school .latela-subject { color: var(--muted); font-weight: 400; }

/* The header stays at the top while the page scrolls (owner, 2026-11-28); in-page links land below it. */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Marks line up with the school's name and keep their size next to longer text. */
.switcher-item > svg { flex: none; margin-top: 0.1rem; }

/* Code in lessons and exercises (Numerio's computational thinking, 2026-11-28). */
:root { --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
pre, code { font-family: var(--mono); font-size: 0.92em; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; overflow-x: auto; line-height: 1.5; tab-size: 4; margin: 0.8rem 0; }
pre code { font-size: inherit; background: none; padding: 0; }
:not(pre) > code { background: var(--line-soft); border-radius: 5px; padding: 0.08em 0.35em; }
.part-code { font-family: var(--mono); white-space: pre; text-align: left; }
