html { scroll-behavior: smooth; }

main { max-width: 1240px; margin: 0 auto; }

.quiet { color: var(--primary); font-size: 14px; text-decoration: none; }
.quiet:hover { text-decoration: underline; }
.quiet:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sub { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }
.ctarow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.overline { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--primary); margin: 0 0 10px; }
h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.lede { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 620px; }

/* app-surface grammar shared by staged cards */
.appcard, .appmini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.ico { stroke: var(--muted); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.ico.g { stroke: var(--primary); stroke-linejoin: round; }

.sfield {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--elevated);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
}
.caret { width: 1.5px; height: 16px; background: var(--primary); }

.mini-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); margin: 16px 0 4px; }
.frow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
}
.rowcard { background: var(--bg); border-radius: 12px; padding: 0 12px; margin-top: 6px; }
.rowcard .frow { border-top: none; }
.rowcard .frow + .frow { border-top: 1px solid var(--border); }
.fname { font-weight: 600; }
.fmeta { font-size: 11.5px; color: var(--muted); }
p.fmeta { margin: 11.5px 0; }
.plus {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--info); font-weight: 700;
}
.chev { color: var(--muted); font-size: 13px; line-height: 1; flex: 0 0 auto; }
.chev.down { display: inline-block; transform: rotate(90deg); }

.sheettitle { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.sheetsrc { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.calread { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 14px 0 16px; }
.calbig { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calbig em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); }
.macroline { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; font-size: 11.5px; color: var(--muted); padding-bottom: 4px; }
.macroline b { font-weight: 700; }
.mb-p { color: var(--protein); }
.mb-c { color: var(--carbs); }
.mb-f { color: var(--fat); }
.amtlabel { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

.afield {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 26px; font-weight: 800;
  background: var(--bg);
  border: 1px solid var(--elevated);
  border-radius: 12px;
  padding: 10px 14px;
  font-variant-numeric: tabular-nums;
}
.aunit { font-size: 14px; font-weight: 600; color: var(--muted); }
.chips { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.chip.on { border-color: var(--primary); background: rgba(75, 156, 120, 0.15); color: var(--fg); }
.addbtn {
  background: var(--primary); color: #FFFFFF;
  text-align: center;
  font-weight: 700; font-size: 14px;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}

/* meal-row grammar shared by the hero diary and the speed sequence */
.mc-title { font-size: 12.5px; font-weight: 700; margin: 0 0 6px; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 9px 0; }
.mtime { flex: 0 0 34px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mbody { flex: 1; min-width: 0; }
.mname2 { font-size: 11px; font-weight: 600; }
.mcal { font-size: 11px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mcal i { font-style: normal; color: var(--muted); }
.bundlerow { display: block; }
.brhead { display: flex; align-items: center; gap: 8px; }
.bhead { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.aibadge {
  background: var(--soft); color: var(--accent-fg);
  font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 1px 4px; border-radius: 4px;
}
.names {
  display: block; margin-top: 2px;
  font-size: 9.5px; color: rgba(255, 255, 255, 0.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the landed row: the confirmation is the receipt on the row it confirms */
.landed {
  margin: 0 -8px; padding: 0 8px 8px;
  border-radius: 10px;
  background: rgba(255, 154, 61, 0.10);
  position: relative;
}
.landed::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px;
  background: var(--warm);
}
.landed .mrow { padding-bottom: 8px; }
.receipt { display: flex; align-items: center; gap: 8px; }
.rtext { flex: 1; min-width: 0; font-size: 9.5px; line-height: 1.35; color: var(--segment-muted); }
.rtext b { color: var(--warm); font-weight: 700; }
.nowrap { white-space: nowrap; }
.undobtn {
  flex: 0 0 auto;
  height: 19px; padding: 0 7px;
  border: 1px solid var(--placeholder); border-radius: 6px;
  display: flex; align-items: center;
  font-size: 9.5px; font-weight: 600; color: var(--fg);
}

/* ---------- hero ---------- */

.uhero { display: flex; align-items: center; gap: 40px; padding: 30px var(--inset) 70px; }

.ucopy { flex: 0 0 470px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ucopy h1 { font-size: 54px; line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.ucopy .sub { font-size: 16.5px; }

.stagewrap { flex: 1; }
.ustage { position: relative; height: 941px; perspective: 1400px; }

.uphone {
  position: absolute; left: 246px; top: 8px;
  width: 300px; height: 933px;
  border-radius: 42px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.045), 34px 48px 90px rgba(0, 0, 0, 0.6);
  transform: rotateY(-16deg) rotateX(4deg);
  padding: 22px 18px 60px;
  z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
}

.ph-head { display: flex; align-items: flex-start; justify-content: space-between; height: 36px; }
.ph-datewrap { display: flex; flex-direction: column; }
.ph-day { font-size: 19px; font-weight: 800; line-height: 1.1; }
.ph-date { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ph-right { display: flex; align-items: center; gap: 6px; }
.flame { display: inline-flex; align-items: center; gap: 3px; }
.flame b { font-size: 11px; font-weight: 700; }
.flameico { fill: var(--warm); }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--elevated);
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar .ico { stroke: var(--fg); }

/* The card is the element that escapes: 118px past the bezel, carrying its own ring at the app's proportion. */
.hcard {
  position: relative;
  margin-left: -140px; width: 396px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}
.hkeys { display: flex; justify-content: space-between; align-items: baseline; }
.hkey { display: inline-flex; align-items: baseline; gap: 4px; }
.hkey i { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
.hkey b { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ringband { height: 218px; }

.macros { display: flex; gap: 10px; }
.mcol { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mname { font-style: normal; font-size: 9.5px; color: var(--muted); }
.mval { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mval b { font-size: 13px; font-weight: 700; color: var(--fg); }
.mtrack { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 3px; }
.mfill { display: block; height: 100%; border-radius: 2px; }
.m-pro { width: 62%; background: var(--protein); }
.m-carb { width: 50%; background: var(--carbs); }
.m-fat { width: 57%; background: var(--fat); }

.uring {
  position: absolute; left: 50%; top: 40px;
  margin-left: -109px;
  width: 218px; height: 218px;
  z-index: 2;
}
.uring svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--elevated); stroke-width: 20; }
.ring-fill {
  fill: none; stroke: url(#aurora-hero); stroke-width: 20; stroke-linecap: round;
  stroke-dasharray: 426 767;
}
.ringcenter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rc-num { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.dayline {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
.dl-body { flex: 1; min-width: 0; }
.dl-over { display: block; font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.dl-text { display: block; margin-top: 3px; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, 0.9); }
.dl-text b { font-weight: 600; color: var(--fg); }

.logbtn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  background: var(--primary); color: #FFFFFF;
  border-radius: 12px;
  font-size: 13px; font-weight: 700;
}
.plusglyph { font-size: 15px; font-weight: 500; }

.tiles { display: flex; gap: 10px; }
.tile {
  flex: 1; min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column;
}
.t-title { font-size: 10.5px; font-weight: 600; }
.t-frame { font-size: 9px; color: var(--muted); margin-top: 1px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin: 10px 0 9px; }
.spark i { flex: 1; border-radius: 2px; background: rgba(255, 154, 61, 0.55); }
.spark .s1 { height: 58%; }
.spark .s2 { height: 44%; }
.spark .s3 { height: 80%; }
.spark .s4 { height: 34%; }
.spark .s5 { height: 66%; }
.spark .s6 { height: 92%; }
.spark .s7 { height: 74%; background: var(--warm); }
.minitrend { width: 100%; height: 28px; margin: 9px 0 8px; }
.mt-line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt-fill { fill: rgba(255, 255, 255, 0.12); }
.mt-raw { fill: var(--muted); opacity: 0.65; }
.mt-dot { fill: var(--fg); stroke: var(--card); stroke-width: 2; }
.t-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.t-val { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t-val em { font-style: normal; font-size: 9px; font-weight: 500; color: var(--muted); }

.mealcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 46px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; padding-top: 4px;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7.5px; color: var(--muted); }
.tab.on { color: var(--primary); }
.tabico { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- speed ---------- */

.speed { padding: 100px var(--inset) 80px; }
.speedhead { max-width: 640px; }

.speedstage { position: relative; height: 400px; margin-top: 52px; }
.sstep { position: absolute; width: 350px; transition: transform 0.18s; }
.sstep:hover { transform: translateY(-10px); z-index: 6; }
.ss1 { left: 20px; top: 36px; z-index: 3; }
.ss2 { left: 356px; top: 0; z-index: 2; }
.ss3 { left: 692px; top: 18px; z-index: 1; }
.stepnote { font-size: 13px; color: var(--muted); margin: 12px 0 0 4px; max-width: 320px; }
.tmark { display: none; }

.timerail {
  position: absolute;
  left: 20px; right: 130px; bottom: 0;
  border-top: 1px solid var(--border);
}
.tstop {
  position: absolute; top: -9px;
  display: flex; align-items: center; gap: 7px;
  background: var(--canvas);
  padding: 0 8px;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}
.tstop i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.ts1 { left: calc(350px / 2 + 0px); }
.ts2 { left: calc(350px / 2 + 336px); }
.ts3 { left: calc(350px / 2 + 672px); }

/* ---------- terrain (adaptive targets) ---------- */

.terrain { position: relative; height: 560px; }
.tchartwrap, .tchart { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid { stroke: var(--border); stroke-dasharray: 3 6; }
.ax { fill: var(--muted); font-size: 11px; }
.mo { fill: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.dot-raw { fill: var(--muted); opacity: 0.5; transition: opacity 0.15s; cursor: crosshair; }
.dot-raw:hover { opacity: 1; }
.dot-dim { fill: var(--muted); opacity: 0.22; }
.tr { stroke: var(--fg); stroke-width: 3; fill: none; stroke-linecap: round; }
.tr-dim { stroke: var(--fg); stroke-width: 3; fill: none; stroke-linecap: round; stroke-opacity: 0.25; }
.xhair { stroke: var(--muted); stroke-width: 1; stroke-opacity: 0.6; stroke-dasharray: 2 4; }
.tr-halo { fill: none; stroke: var(--fg); stroke-width: 2; stroke-opacity: 0.35; }
.tr-dot { fill: var(--fg); stroke: var(--canvas); stroke-width: 2; }

.tcopy { position: absolute; z-index: 2; left: var(--inset); top: 48px; max-width: 480px; }
.tmchart { display: none; }
.tanno {
  position: absolute; z-index: 2;
  left: 860px; top: 250px;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.tanno-week { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 6px; }
.tanno b { font-size: 13.5px; }
.tanno p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- five ways ---------- */

.ways { position: relative; padding: 100px var(--inset); }
.wr { position: absolute; opacity: 0; pointer-events: none; }
.wgrid { display: flex; gap: 48px; }
.wleft { flex: 0 0 460px; }

.wnav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.wl {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.wl:hover { background: var(--card); }
.wl svg { flex: 0 0 auto; margin-top: 2px; }
.wl b { display: block; font-size: 14px; }
.wl small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

#w1:checked ~ .wgrid .wl-1, #w2:checked ~ .wgrid .wl-2, #w3:checked ~ .wgrid .wl-3,
#w4:checked ~ .wgrid .wl-4, #w5:checked ~ .wgrid .wl-5 {
  background: var(--card);
  border-color: var(--border);
}
#w1:focus-visible ~ .wgrid .wl-1, #w2:focus-visible ~ .wgrid .wl-2, #w3:focus-visible ~ .wgrid .wl-3,
#w4:focus-visible ~ .wgrid .wl-4, #w5:focus-visible ~ .wgrid .wl-5 {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wstage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 24px; }
.wp { display: none; flex-direction: column; gap: 16px; align-items: flex-start; }
#w1:checked ~ .wgrid .wp-1, #w2:checked ~ .wgrid .wp-2, #w3:checked ~ .wgrid .wp-3,
#w4:checked ~ .wgrid .wp-4, #w5:checked ~ .wgrid .wp-5 {
  display: flex;
}
.wstage .appmini { width: 400px; }
.wnote { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 400px; }

.switch { flex: 0 0 auto; position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--primary); }
.switch i { position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; }

.mfrow { display: flex; gap: 8px; margin-top: 10px; }
.mfield {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg);
  border: 1px solid var(--elevated);
  border-radius: 10px;
  padding: 8px 10px;
}
.mfield i { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.mfield b { font-size: 14px; font-variant-numeric: tabular-nums; }

.calc {
  font-size: 15px;
  background: var(--bg);
  border: 1px solid var(--elevated);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.calc b { color: var(--primary); }

/* ---------- capability band ---------- */

.cap { padding: 100px var(--inset); }
.caphead { max-width: 640px; }

.caprail { position: relative; margin-top: 48px; }
.spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); }
.caprow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; align-items: center; padding: 26px 0; }
.capclaim { grid-column: 1; grid-row: 1; justify-self: end; max-width: 440px; }
.capclaim h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.capclaim p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.capchip {
  grid-column: 2; grid-row: 1; justify-self: start;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateX(-20px);
  transition: transform 0.18s;
}
.capchip:hover { transform: translate(-20px, -6px); }
.capchip b { font-size: 14px; }
.capchip span { font-size: 12.5px; color: var(--muted); }
.caprow.flip .capclaim { grid-column: 2; justify-self: start; }
.caprow.flip .capchip { grid-column: 1; justify-self: end; transform: translateX(20px); }
.caprow.flip .capchip:hover { transform: translate(20px, -6px); }
.caprow.lead .capclaim h3 { font-size: 24px; letter-spacing: -0.02em; }
.caprow.lead .capchip { min-width: 280px; padding: 20px 22px; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55); }
.caprow.lead .capchip b { font-size: 16.5px; color: var(--warm); }
.caprow.lead .capchip span { font-size: 13px; }

/* ---------- faq ---------- */

.faq { display: flex; gap: 64px; padding: 100px var(--inset); }
.faqleft { flex: 0 0 300px; }
.faqlist { flex: 1; }
.faqlist details { border-top: 1px solid var(--border); padding: 4px 0; }
.faqlist summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 16px; font-weight: 600;
  padding: 14px 0;
}
.faqlist summary::-webkit-details-marker { display: none; }
.faqlist summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 400; transition: transform 0.15s; }
.faqlist details[open] summary::after { transform: rotate(45deg); }
.faqlist summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faqlist p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.faqlist a { color: var(--primary); }

/* ---------- close + footer ---------- */

.close { position: relative; overflow: hidden; padding: 130px var(--inset); }
.closemark { position: absolute; right: -120px; bottom: -150px; width: 720px; height: 720px; }
.cm-stroke { fill: none; stroke: var(--card); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.closecopy { position: relative; z-index: 1; max-width: 560px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.contact a { color: var(--primary); }

/* ---------- mobile ---------- */

/* The desktop hero composition needs 1194px; below that the single column is the honest fit. */
@media (max-width: 1193px) {
  .uhero { display: block; padding: 24px var(--inset) 0; }
  .ucopy { gap: 16px; }
  .ucopy h1 { font-size: 32px; }
  .ucopy .sub { font-size: 14.5px; }

  /* The device is cropped by the section, not scaled down: app type stays at its desktop sizes. */
  .stagewrap { margin: 24px calc(var(--inset) * -1) 0; height: 396px; overflow: hidden; }
  .ustage { height: 396px; perspective: 1100px; }
  /* Anchored right of centre, so the leftward escape survives 320px and the device bleeds off the right instead. */
  .uphone { left: 50%; margin-left: -85px; top: 10px; width: 250px; min-height: 470px; padding: 18px 14px 40px; border-radius: 34px; gap: 14px; }
  .hcard { margin-left: -90px; width: 304px; padding: 14px; gap: 8px; }
  .ringband { height: 150px; }
  .uring { top: 34px; margin-left: -75px; width: 150px; height: 150px; }
  .rc-num { font-size: 22px; }
  .rc-sub { font-size: 8.5px; }
  .ph-day { font-size: 17px; }
  .macros { gap: 8px; }
  /* The 396px band closes on Log a meal, as the mobile board draws it; the day line sits past the cut. */
  .dayline { display: none; }

  .speed { padding: 48px var(--inset); }
  .speedhead { max-width: none; }
  .speedstage { position: static; height: auto; margin-top: 28px; display: flex; flex-direction: column; gap: 24px; }
  .sstep { position: static; width: 100%; }
  .sstep:hover { transform: none; }
  .stepnote { max-width: none; }
  .timerail { display: none; }
  .tmark { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
  .tmark i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }

  .terrain { height: auto; padding: 48px 0 0; }
  .tchartwrap { display: none; }
  .tcopy { position: static; max-width: none; padding: 0 var(--inset); }
  .tmchart { display: block; position: relative; margin-top: 24px; }
  .tmchart svg { display: block; width: 100%; height: 300px; }
  .tanno { position: relative; left: auto; top: auto; margin: -84px 0 0 56px; width: 260px; }

  .ways { padding: 48px var(--inset); }
  .wgrid { display: block; }
  .wleft { flex: none; }
  .wnav { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .wl { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; }
  .wl svg, .wl small { display: none; }
  .wl b { font-size: 13px; font-weight: 600; }
  #w1:checked ~ .wgrid .wl-1, #w2:checked ~ .wgrid .wl-2, #w3:checked ~ .wgrid .wl-3,
  #w4:checked ~ .wgrid .wl-4, #w5:checked ~ .wgrid .wl-5 {
    border-color: var(--primary);
    background: rgba(75, 156, 120, 0.12);
    color: var(--soft);
  }
  .wstage { padding: 24px 0 0; min-height: 0; }
  .wstage .appmini { width: 100%; }
  .wnote { max-width: none; }

  .cap { padding: 48px var(--inset); }
  .spine { display: none; }
  .caprow { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 0; border-top: 1px solid var(--border); }
  .caprow:first-of-type { border-top: none; }
  .capclaim { max-width: none; }
  .capchip, .caprow.flip .capchip { transform: none; }
  .capchip:hover, .caprow.flip .capchip:hover { transform: translateY(-6px); }

  .faq { display: block; padding: 48px var(--inset); }
  .faqleft { margin-bottom: 20px; }

  .close { padding: 56px var(--inset); }
  .closecopy { max-width: none; }
  .closemark { right: -150px; bottom: -120px; width: 440px; height: 440px; }
}

/* ---------- motion restraint ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
