/* ============================================================
   Sarah's French Mastery — "Warm editorial atelier"
   Mobile-first · fluid · accessible · zero-dependency
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette */
  --bg:            #F7F4EF;
  --surface:       #FCFAF6;
  --primary:       #1E3A5F;
  --primary-soft:  #2E5A8C;
  --accent:        #9E2B3A;
  --accent-strong: #84222F;
  --text:          #1F1D1A;
  --muted:         #6B6458;
  --success:       #3E7C5A;

  /* derived */
  --line:          rgba(31,29,26,.12);
  --line-strong:   rgba(31,29,26,.22);
  --accent-tint:   rgba(158,43,58,.08);
  --primary-tint:  rgba(30,58,95,.06);
  --success-tint:  rgba(62,124,90,.13);
  --ring-track:    #E8E2D7;

  /* shadows */
  --sh-1: 0 1px 2px rgba(31,29,26,.04), 0 8px 24px rgba(31,29,26,.06);
  --sh-2: 0 2px 6px rgba(31,29,26,.06), 0 18px 48px rgba(31,29,26,.10);

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* fluid type */
  --fs-hero:  clamp(2.3rem, 1.35rem + 4.1vw, 4rem);
  --fs-h2:    clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem);
  --fs-h3:    clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-h4:    clamp(1.02rem, 0.97rem + 0.3vw, 1.18rem);
  --fs-body:  clamp(1rem, 0.965rem + 0.18vw, 1.0625rem);
  --fs-sm:    0.9rem;
  --fs-xs:    0.78rem;
  --fs-eye:   0.72rem;

  --maxw: 1140px;
  --nav-h: 60px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--primary-soft); text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--primary-soft); outline-offset: 2px; border-radius: 3px; }

/* ---------- Headings ---------- */
h1, h2, h3, .nav__brand, .phase__title, .footer__brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--primary);
  font-weight: 560;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(clamp(1.1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.1rem, 4vw, 2.5rem), env(safe-area-inset-right));
}
.section { padding-block: clamp(3rem, 2rem + 6vw, 6rem); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.muted { color: var(--muted); }
.hl { color: var(--accent); font-style: italic; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-eye); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 56ch; margin-bottom: clamp(1.8rem, 1rem + 3vw, 2.8rem); }
.section-title { font-size: var(--fs-h2); margin: .5rem 0 .7rem; }
.section-lead { font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem); color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--primary); color: #fff;
  padding: .6rem 1rem; border-radius: var(--r-sm); z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(158,43,58,.22); }
.btn--primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(158,43,58,.28); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--primary-tint); color: var(--primary); border-color: var(--primary-soft); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: var(--fs-xs); }
.btn:active { transform: translateY(0); }
.btn.is-armed { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.is-armed:hover { background: var(--accent-strong); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
  padding-left: max(clamp(1.1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.1rem, 4vw, 2.5rem), env(safe-area-inset-right));
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.06rem; font-weight: 560; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.nav__mark {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--primary); color: var(--bg);
  font-family: Georgia, serif; font-size: .95rem; line-height: 1;
  flex: 0 0 auto;
}
.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__links > a {
  padding: .5rem .8rem; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text); text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav__links > a:hover { background: var(--primary-tint); color: var(--primary); }
.nav__links > a.is-active { background: var(--primary); color: #fff; }
.nav__right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav__pill {
  display: inline-grid; place-items: center;
  min-width: 50px; height: 30px; padding: 0 .7rem;
  border-radius: var(--r-pill);
  background: var(--success-tint); color: var(--success);
  font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums;
  border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
}
.nav__pill--menu { display: none; }
.nav__burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: var(--r-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__burger span { width: 18px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(2.4rem, 1.5rem + 5vw, 4.5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center;
}
.hero__title { font-size: var(--fs-hero); margin: .7rem 0 1rem; font-weight: 580; }
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 38ch; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero__features {
  display: flex; flex-wrap: wrap; gap: .5rem 1.3rem;
  font-size: var(--fs-sm); color: var(--muted); font-weight: 500;
  border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .4rem;
}
.hero__features li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__features svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* browser mockup */
.hero__visual { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.browser {
  display: block; width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  overflow: hidden; text-decoration: none;
  transform: rotate(.4deg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.browser:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 24px 60px rgba(31,29,26,.16); }
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: .7rem .9rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 5%, var(--surface));
}
.browser__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: 0 0 auto; }
.browser__dot:nth-child(1) { background: #E0857E; }
.browser__dot:nth-child(2) { background: #E5C079; }
.browser__dot:nth-child(3) { background: #92C09C; }
.browser__url {
  margin-left: .5rem; font-size: var(--fs-xs); color: var(--muted);
  background: var(--bg); border-radius: var(--r-pill);
  padding: .25rem .75rem; flex: 1; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen { padding: 1.1rem; display: flex; flex-direction: column; gap: .85rem; }
.screen__levels { display: flex; flex-wrap: wrap; gap: .4rem; }
.screen__levels span {
  font-size: var(--fs-xs); font-weight: 600; color: var(--primary);
  background: var(--primary-tint); border: 1px solid var(--line);
  padding: .22rem .6rem; border-radius: var(--r-pill);
}
.screen__levels span:first-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.screen__video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-md);
  background:
    radial-gradient(120% 120% at 70% 20%, color-mix(in srgb, var(--primary-soft) 24%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: .7rem;
  overflow: hidden;
}
.screen__play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 8px 22px rgba(158,43,58,.34);
  display: grid; place-items: center;
}
.screen__play::after {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.screen__cap {
  position: relative; font-size: var(--fs-xs); font-weight: 600; color: #fff;
  background: rgba(31,29,26,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: .25rem .6rem; border-radius: var(--r-sm);
}
.screen__rows { display: flex; flex-direction: column; gap: .5rem; }
.screen__rows i { height: 9px; border-radius: var(--r-pill); background: var(--line); display: block; }
.hero__note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* ============================================================
   PLAN / ROADMAP
   ============================================================ */
.plan__controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip-btn {
  min-height: 40px; padding: .5rem 1rem; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-strong);
  font-size: var(--fs-xs); font-weight: 600; color: var(--primary);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.chip-btn:hover { background: var(--primary-tint); border-color: var(--primary-soft); }
.chip-btn:active { transform: translateY(1px); }
.chip-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.roadmap { display: flex; flex-direction: column; gap: clamp(2rem, 1rem + 3vw, 3.2rem); }

/* phase */
.phase { position: relative; }
.phase::before {
  content: ""; position: absolute; left: 21px; top: 30px; bottom: -6px;
  width: 2px; background: var(--line); z-index: 0;
}
.phase__head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.phase__node {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--bg);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 560;
  box-shadow: 0 0 0 5px var(--bg);
}
.phase__kicker { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.phase__title { font-size: var(--fs-h3); margin: .15rem 0 .25rem; }
.phase__tag { font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cefr {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  color: var(--primary); background: var(--primary-tint);
  border: 1px solid var(--line); padding: .15rem .55rem; border-radius: var(--r-pill);
}

/* weeks */
.phase__weeks { display: flex; flex-direction: column; gap: .55rem; position: relative; z-index: 1; }
.wk { scroll-margin-top: calc(var(--nav-h) + 18px); }
.wk__head {
  width: 100%; display: flex; align-items: center; gap: .85rem;
  padding: .55rem .65rem .55rem 0; background: transparent; border: 0; text-align: left;
  border-radius: var(--r-md);
}
.wk__head:hover { background: color-mix(in srgb, var(--primary) 3.5%, transparent); }
.wk__node {
  flex: 0 0 44px; display: grid; place-items: center; position: relative;
}
.wk__node::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
  box-shadow: 0 0 0 5px var(--bg);
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wk__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 700; color: var(--muted);
  transition: color .2s var(--ease);
}
.wk__headtext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wk__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wk__focus { font-size: var(--fs-h4); font-weight: 600; color: var(--text); font-family: "Fraunces", serif; letter-spacing: -.01em; line-height: 1.25; }
.wk__count {
  flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--muted); background: var(--bg); border: 1px solid var(--line);
  padding: .2rem .5rem; border-radius: var(--r-pill);
}
.wk__chev { flex: 0 0 auto; width: 16px; height: 16px; position: relative; transition: transform .3s var(--ease); }
.wk__chev::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}
.wk__head[aria-expanded="true"] .wk__chev { transform: rotate(180deg); }

/* week node states */
.wk.is-current .wk__node::before { border-color: var(--primary-soft); box-shadow: 0 0 0 5px var(--bg), 0 0 0 8px rgba(46,90,140,.18); }
.wk.is-current .wk__num { color: var(--primary-soft); }
.wk.is-done .wk__node::before { background: var(--success); border-color: var(--success); }
.wk.is-done .wk__num { color: transparent; }
.wk.is-done .wk__node::after {
  content: ""; position: absolute; width: 13px; height: 8px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

/* panel (animated accordion) */
.wk__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.wk.is-open .wk__panel { grid-template-rows: 1fr; }
.wk__panelinner { overflow: hidden; min-height: 0; }
.wk__body {
  margin: .2rem 0 .4rem 44px;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}

/* tasks */
.tasks { display: flex; flex-direction: column; gap: .15rem; }
.task {
  display: flex; align-items: flex-start; gap: .4rem 1rem; flex-wrap: wrap;
  padding: .5rem .4rem; border-radius: var(--r-sm);
  transition: background .12s var(--ease);
}
.task:hover { background: var(--primary-tint); }
.task__main { display: flex; align-items: flex-start; gap: .7rem; flex: 1 1 62%; min-width: 0; cursor: pointer; }
.task input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.task__box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--line-strong); border-radius: 7px; background: var(--surface);
  display: grid; place-items: center;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.task__box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .22s var(--ease) .03s; }
.task input:checked + .task__box { background: var(--success); border-color: var(--success); }
.task input:checked + .task__box svg { stroke-dashoffset: 0; }
.task input:focus-visible + .task__box { outline: 2px solid var(--primary-soft); outline-offset: 2px; }
.task__text { font-size: var(--fs-sm); line-height: 1.5; transition: color .15s var(--ease); }
.task input:checked ~ .task__text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.res-tag {
  flex: 0 0 auto; align-self: flex-start; margin: 2px 0 0 calc(22px + .7rem);
  font-size: .74rem; font-weight: 600; color: var(--primary-soft); white-space: nowrap;
  padding: .12rem .5rem; border-radius: var(--r-pill);
  background: var(--primary-tint); border: 1px solid var(--line);
  transition: background .12s var(--ease), color .12s var(--ease);
}
.res-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* milestone callout */
.milestone {
  margin-top: .7rem; padding: .8rem .9rem;
  background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-left: 3px solid var(--accent); border-radius: var(--r-md);
}
.milestone__badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .35rem;
}
.milestone__badge::before { content: "◆"; font-size: .7rem; }
.milestone.is-exam { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.milestone .task { padding-left: 0; }
.milestone .task__text { font-weight: 500; }

/* ============================================================
   TRACKER
   ============================================================ */
.tracker__grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(1.2rem, .8rem + 2vw, 2rem); align-items: start; }
.tracker__ringcard { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: clamp(1.4rem, 1rem + 2vw, 2rem); text-align: center; position: sticky; top: calc(var(--nav-h) + 16px); }

@property --pct { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring {
  --pct: 0;
  width: clamp(160px, 44vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--pct) * 1%), var(--ring-track) 0);
  display: grid; place-items: center;
  transition: --pct .7s var(--ease);
}
.ring__hole {
  width: 73%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center; gap: 0;
  box-shadow: inset 0 1px 3px rgba(31,29,26,.05);
}
.ring__pct { font-family: "Fraunces", serif; font-size: clamp(2rem, 1.4rem + 2.6vw, 2.7rem); font-weight: 560; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.ring__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: .25rem; }
.tracker__stat { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }

.tracker__detail { display: flex; flex-direction: column; gap: 1.2rem; }
.tracker__detail .card { padding: clamp(1.2rem, 1rem + 1.5vw, 1.7rem); }
.tracker__subh { font-size: var(--fs-h4); font-family: "Fraunces", serif; color: var(--primary); margin-bottom: 1rem; }

/* phase bars */
.phasebars { display: flex; flex-direction: column; gap: 1.1rem; }
.pbar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .45rem; }
.pbar__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.pbar__name small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.pbar__pct { font-size: var(--fs-sm); font-weight: 700; color: var(--success); font-variant-numeric: tabular-nums; }
.pbar__track { height: 10px; border-radius: var(--r-pill); background: var(--ring-track); overflow: hidden; }
.pbar__fill { height: 100%; width: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--success), color-mix(in srgb, var(--success) 70%, var(--primary-soft))); transition: width .6s var(--ease); }

/* milestones list */
.mstones { display: flex; flex-direction: column; gap: .15rem; }
.mstone {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .55rem .4rem; border-radius: var(--r-sm);
  width: 100%; text-align: left; background: transparent; border: 0;
  transition: background .12s var(--ease);
}
.mstone:hover { background: var(--primary-tint); }
.mstone__dot {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  position: relative;
}
.mstone.is-done .mstone__dot { background: var(--success); border-color: var(--success); }
.mstone.is-done .mstone__dot::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.mstone.is-exam:not(.is-done) .mstone__dot { border-color: var(--accent); }
.mstone__text { font-size: var(--fs-sm); line-height: 1.45; }
.mstone__week { font-weight: 700; color: var(--primary); }
.mstone.is-exam .mstone__week { color: var(--accent); }
.mstone.is-done .mstone__text { color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--primary) 4%, var(--bg)); padding-bottom: env(safe-area-inset-bottom); }
.footer__inner { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); display: flex; flex-direction: column; gap: .5rem; }
.footer__brand { font-size: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer__meta { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.footer__fine { font-size: var(--fs-xs); color: var(--muted); max-width: 70ch; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { order: 1; }
  .hero__visual { order: 2; }
  .hero__lead { max-width: 52ch; }
  .browser { max-width: 520px; }
  .tracker__grid { grid-template-columns: 1fr; }
  .tracker__ringcard { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .tracker__ringcard .ring { flex: 0 0 auto; }
  .tracker__stat { width: 100%; }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    padding: .6rem max(1.1rem, env(safe-area-inset-left)) 1rem;
    margin-left: 0;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .28s var(--ease), opacity .2s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__links > a { padding: .85rem .6rem; font-size: 1rem; }
  .nav__pill--menu { display: none; }
  .nav__burger { display: flex; }
  .nav__right { margin-left: auto; }
}

@media (max-width: 480px) {
  .nav__brandfull { display: none; }
  .hero__features { gap: .5rem 1rem; }
  .wk__body { margin-left: 0; }
  .wk__head { gap: .6rem; }
  .btn { width: 100%; }
  .hero__cta .btn { width: 100%; }
  .phase__node { box-shadow: 0 0 0 4px var(--bg); }
}

@media (min-width: 1500px) {
  :root { --maxw: 1240px; }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .ring { transition: none; }
}

@media print {
  .nav, .plan__controls, .tracker__ringcard .btn, .hero__cta { display: none; }
  .wk__panel { grid-template-rows: 1fr; }
  body { background: #fff; }
}
