/* OttoPlate website. Colours follow MyApp/Theme.swift: coral and amber on cream, charcoal in dark mode. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #FFF7EE;
  --canvas-2: #FFEFE0;
  --surface: #FFFFFF;
  --ink: #2B2A33;
  --ink-2: #6F655E;
  --ink-3: #9C928A;
  --coral: #FF7A59;
  --coral-deep: #E2502C;
  --coral-text: #C4461F;
  --amber: #E9A03B;
  --sage: #3FA57A;
  --sky: #5683C4;
  --protein: #3D7FE0;
  --carbs: #E39B1F;
  --fat: #8A6BDB;
  --track: #EFE6DA;
  --tile: #F4ECE2;
  --line: rgba(43, 42, 51, 0.08);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 12px 32px -12px rgba(120, 70, 30, 0.18);
  --shadow-lg: 0 2px 6px rgba(60, 40, 20, 0.05), 0 40px 80px -30px rgba(160, 80, 30, 0.35);
  --glow-coral: rgba(255, 122, 89, 0.30);
  --glow-amber: rgba(233, 160, 59, 0.24);
  --phone-frame: #1D1C22;
  --todo-bg: #FFE98A;
  --todo-ink: #5A4500;
  --store-bg: #0B0B0D;
  --store-ink: #FFFFFF;
  --band-dark-bg: #1A1A1E;
  --band-dark-border: transparent;
  --radius: 24px;
  --wrap: 1160px;
  color-scheme: light;
}

/* Dark colours, used when the device is dark (unless the visitor picked Light) or when they picked Dark.
   The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #111113;
    --canvas-2: #17161A;
    --surface: #1E1E21;
    --ink: #F5F3F0;
    --ink-2: #C4C0BB;
    --ink-3: #8E8A86;
    --coral: #FF8562;
    --coral-deep: #E85A35;
    --coral-text: #FF9A7D;
    --amber: #FFC766;
    --sage: #5ED69B;
    --sky: #7FB2FF;
    --protein: #6FAEFF;
  --carbs: #FFC54F;
  --fat: #B59DFF;
    --carbs: #FFC54F;
    --fat: #B59DFF;
    --track: #2E2E33;
    --tile: #2A2A2F;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    --glow-coral: rgba(255, 133, 98, 0.20);
    --glow-amber: rgba(255, 199, 102, 0.10);
    --phone-frame: #3A3940;
    --todo-bg: #6B5500;
    --todo-ink: #FFF3C4;
    --store-bg: #FFFFFF;
    --store-ink: #0B0B0D;
    --band-dark-bg: #18171B;
    --band-dark-border: rgba(255, 255, 255, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #111113;
  --canvas-2: #17161A;
  --surface: #1E1E21;
  --ink: #F5F3F0;
  --ink-2: #C4C0BB;
  --ink-3: #8E8A86;
  --coral: #FF8562;
  --coral-deep: #E85A35;
  --coral-text: #FF9A7D;
  --amber: #FFC766;
  --sage: #5ED69B;
  --sky: #7FB2FF;
  --protein: #6FAEFF;
  --carbs: #FFC54F;
  --fat: #B59DFF;
  --track: #2E2E33;
  --tile: #2A2A2F;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --glow-coral: rgba(255, 133, 98, 0.20);
  --glow-amber: rgba(255, 199, 102, 0.10);
  --phone-frame: #3A3940;
  --todo-bg: #6B5500;
  --todo-ink: #FFF3C4;
  --store-bg: #FFFFFF;
  --store-ink: #0B0B0D;
  --band-dark-bg: #18171B;
  --band-dark-border: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

mark.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.nav-desktop { display: flex; gap: 4px; margin-left: auto; }
.nav-desktop a, .lang { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.nav-desktop a:hover, .lang:hover { color: var(--ink); background: var(--tile); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { border: 1px solid var(--line); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px));
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px;
  display: grid;
}
.nav-mobile nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.nav-mobile nav a:hover { background: var(--tile); }

@media (max-width: 880px) {
  .nav-desktop, .header-actions > .lang { display: none; }
  .header-actions { margin-left: auto; }
  .nav-mobile { display: block; }
}

/* Appearance switch: System / Light / Dark */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--tile); }
.theme-switch button {
  width: 32px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-3); cursor: pointer; transition: background .2s, color .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--coral-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.theme-switch-menu { margin: 8px 6px 4px; align-self: start; }
@media (max-width: 880px) { .header-actions > .theme-switch { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { color: #fff; background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%); box-shadow: 0 8px 20px -8px var(--coral); }
.btn-soft { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.btn.is-disabled { opacity: .55; pointer-events: none; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 14px;
  background: var(--store-bg); color: var(--store-ink); text-decoration: none; line-height: 1.05;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-1px); }
.store small { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; opacity: .85; }
.store.is-soon { cursor: default; }
.store.is-soon:hover { transform: none; }
.store-small { min-height: 46px; font-size: 1.05rem; }
.stores { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.store.is-soon { opacity: .9; }

/* Generic sections */
section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral-text); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(48% 55% at 78% 30%, var(--glow-coral), transparent 70%),
    radial-gradient(40% 45% at 15% 10%, var(--glow-amber), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .accent { background: linear-gradient(100deg, var(--coral) 10%, var(--amber) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.93rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-art .phone { width: min(290px, 68vw); transform: rotate(3deg); }
.hero-art .otter { position: absolute; width: 190px; left: -6%; bottom: -10px; filter: drop-shadow(0 18px 24px rgba(120, 60, 20, .25)); animation: bob 5s ease-in-out infinite; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  font-size: 0.86rem; font-weight: 700; line-height: 1.25; max-width: 220px;
}
.chip small { display: block; font-weight: 500; color: var(--ink-2); }
.chip .dot { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 1rem; }
.chip-1 { top: 8%; right: -2%; animation: bob 6s ease-in-out infinite .4s; }
.chip-2 { top: 46%; right: -3%;animation: bob 7s ease-in-out infinite 1s; }
.chip-3 { top: 18%; left: -6%; animation: bob 6.5s ease-in-out infinite .2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.phone {
  position: relative; aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 9px;
  background: var(--phone-frame); box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 0; padding: 20px 0 10px; }
  .hero-art .phone { width: min(250px, 62vw); }
  .hero-art .otter { width: 130px; left: 2%; }
  .chip-1 { right: 0; top: 4%; }
  .chip-2 { right: 0; top: 52%; }
  .chip-3 { display: none; }
}

/* Pillars strip */
.pillars { padding: 0 0 clamp(40px, 6vw, 72px); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); padding: 18px 20px; }
.pillar img { width: 72px; flex: none; }
.pillar strong { display: block; font-size: 1.05rem; }
.pillar span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; display: block; }
.pillar:hover { transform: translateY(-2px); transition: transform .2s; }
@media (max-width: 880px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Feature split: copy on one side, phone on the other */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-art { position: relative; display: grid; place-items: center; }
.split-art .phone { width: min(300px, 72vw); }
.split-art .phone + .phone { position: absolute; width: min(240px, 56vw); right: 2%; bottom: -6%; transform: rotate(5deg); }
.split-art::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--glow-coral), transparent 68%);
}
.split-art .otter { position: absolute; width: 150px; left: 0; bottom: 4%; filter: drop-shadow(0 14px 20px rgba(120,60,20,.22)); }
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split-art .phone + .phone { display: none; }
  .split-art .otter { width: 110px; }
}

.feature-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature-list .ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint, var(--coral)) 15%, transparent); color: var(--tint, var(--coral));
}
.feature-list .ic svg { width: 22px; height: 22px; }
.feature-list strong { display: block; font-size: 1.03rem; margin-bottom: 2px; }
.feature-list p { color: var(--ink-2); margin: 0; font-size: 0.97rem; line-height: 1.5; }

.aside-note {
  display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 18px 20px;
  border-radius: 20px; background: var(--tile);
}
.aside-note img { width: 64px; flex: none; }
.aside-note p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.aside-note strong { color: var(--ink); }

/* Bento of small cards */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card { padding: 24px; }
.bento .card h3 { margin-bottom: 6px; }
.bento .card p { color: var(--ink-2); margin: 0; font-size: 0.97rem; line-height: 1.5; }
.bento .big { grid-column: span 2; display: flex; gap: 20px; align-items: center; }
.bento .big img { width: 120px; flex: none; }
.bento .wide { grid-column: 1 / -1; }
.bento .wide img { width: 96px; }
.stat { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; color: var(--coral); }
@media (max-width: 880px) { .bento { grid-template-columns: 1fr; } .bento .big { grid-column: auto; } }
@media (max-width: 520px) { .bento .big { flex-direction: column; align-items: flex-start; gap: 8px; } .bento .big img { width: 90px; } }

/* Showcase: three animated cards. The end state is the default; .js before .in-view is the start state. */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .showcase-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.demo { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.demo h3 { margin-bottom: 16px; }
.demo-step { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-text); }
.demo-step span { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: .8rem; }
.demo-visual { background: linear-gradient(155deg, color-mix(in srgb, var(--coral) 13%, var(--surface)), color-mix(in srgb, var(--amber) 11%, var(--surface))); border-radius: 20px; padding: 16px; min-height: 236px; position: relative; overflow: hidden; }
.demo-caption { margin: 16px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }

.log-input { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: .95rem; }
.typed { white-space: nowrap; overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path 1.5s steps(30, end) .3s; }
.caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--coral); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.log-rows { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .9rem; }
.log-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); transition: opacity .4s ease var(--d), transform .4s ease var(--d); }
.log-rows li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-rows .log-total { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: #fff; font-weight: 700; }
.log-rows .log-total span:last-child { color: #fff; }

.day-visual { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 128px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--to); transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1) .3s; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-label strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.ring-label span { font-size: .75rem; color: var(--ink-2); }
.macros { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.macros li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: .85rem; }
.macro-name { font-weight: 700; }
.macro-num { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .day-visual { grid-template-columns: 108px 1fr; gap: 12px; } .ring { width: 108px; } .ring-label strong { font-size: 1.35rem; } .macros li { font-size: .8rem; } }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); transition: width 1.2s cubic-bezier(.3,.7,.2,1) var(--d); }
@media (max-width: 380px) { .day-visual { grid-template-columns: 1fr; justify-items: center; } .macros { width: 100%; } }

.trend-chart { width: 100%; height: auto; display: block; }
.trend-chart .axis { stroke: var(--line); stroke-width: 1.5; }
.trend-chart .dots circle { fill: color-mix(in srgb, var(--ink-3) 55%, transparent); transition: opacity .3s ease var(--d); }
.trend-line { fill: none; stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease 1.1s; }
.legend { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .78rem; color: var(--ink-2); }
.key-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.key-line { width: 16px; height: 3px; border-radius: 2px; background: var(--coral); margin-left: 10px; }
.checkin-pop { position: relative; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); transition: opacity .5s ease 2.8s, transform .5s cubic-bezier(.2,.8,.3,1.3) 2.8s; }
.checkin-pop img { width: 44px; flex: none; }
.checkin-pop small { display: block; color: var(--ink-2); font-size: .78rem; }
.checkin-pop strong { font-size: .92rem; }
.week-visual { padding-bottom: 12px; display: flex; flex-direction: column; }
.week-visual .legend { margin-top: 8px; }

.js .animate:not(.in-view) .typed { clip-path: inset(0 100% 0 0); transition: none; }
.js .animate:not(.in-view) .log-rows li { opacity: 0; transform: translateY(8px); transition: none; }
.js .animate:not(.in-view) .ring-fill { stroke-dashoffset: 100; transition: none; }
.js .animate:not(.in-view) .bar span { width: 0; transition: none; }
.js .animate:not(.in-view) .dots circle { opacity: 0; transition: none; }
.js .animate:not(.in-view) .trend-line { stroke-dashoffset: 1; transition: none; }
.js .animate:not(.in-view) .checkin-pop { opacity: 0; transform: translateY(16px) scale(.96); transition: none; }

/* Weekly check-in: replays every few seconds while on screen (theme.js toggles .play).
   1 weigh-ins appear · 2 the trend draws · 3 the flat fortnight lights up · 4 a scan sweeps · 5 the plan changes. */
.trend-chart .flat-zone { fill: color-mix(in srgb, var(--amber) 22%, transparent); }
.trend-chart .flat-label { fill: var(--ink-2); font-size: 10px; font-weight: 700; }
.trend-chart .scan { stroke: var(--coral); stroke-width: 2; opacity: 0; }
.plan-bar { display: block; height: 5px; margin-top: 6px; border-radius: 9px; background: var(--track); overflow: hidden; }
.plan-bar i { display: block; height: 100%; width: 92%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--coral)); }
.checkin-pop s { color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.week-visual.play .dots circle { animation: wDot .35s ease both; animation-delay: var(--d); }
@keyframes wDot { from { opacity: 0; transform: translateY(-6px); } }
.week-visual.play .trend-line { animation: wLine 1.4s ease both 1s; }
@keyframes wLine { from { stroke-dashoffset: 1; } }
.week-visual.play .flat-zone, .week-visual.play .flat-label { animation: wFade .6s ease both 2.4s; }
@keyframes wFade { from { opacity: 0; } }
.week-visual.play .scan { animation: wScan 1.2s ease-in-out both 2.9s; }
@keyframes wScan { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(292px); } }
.week-visual.play .checkin-pop { animation: wPop .6s cubic-bezier(.2,.8,.3,1.3) both 3.9s; }
@keyframes wPop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
.week-visual.play .checkin-pop img { animation: wOtter 1s ease both 4.2s; }
@keyframes wOtter { 40% { transform: rotate(-10deg) scale(1.1); } }
.week-visual.play .plan-bar i { animation: wBar 1s cubic-bezier(.3,.7,.2,1) both 4.4s; }
@keyframes wBar { from { width: 100%; } }
.week-visual .trend-chart .dots circle, .week-visual .trend-line, .week-visual .checkin-pop { transition: none; }

/* Otto pops in when his card scrolls into view. */
.js .reveal .coach-card img, .js .privacy-band .reveal > img { transition: transform .6s cubic-bezier(.2,.8,.3,1.4) .3s; }
.js .reveal:not(.in-view) .coach-card img, .js .privacy-band .reveal:not(.in-view) > img { transform: scale(.6) rotate(-8deg); }
.pillar img { transition: transform .3s cubic-bezier(.2,.8,.3,1.4); }
.pillar:hover img { transform: rotate(-6deg) scale(1.08); }

/* Training band */
.band { background: var(--canvas-2); }
.band-dark {
  background: var(--band-dark-bg); color: #F5F3F0; border-block: 1px solid var(--band-dark-border);
  --ink: #F5F3F0; --ink-2: #C4C0BB; --surface: #232327; --tile: #2A2A2F; --coral-text: #FF9A7D;
  --shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.coach-card { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.coach-card img { width: 86px; }
.coach-card p { margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 520px) { .coach-card { grid-template-columns: 1fr; gap: 6px; } .coach-card img { width: 72px; } }

/* Calls */
.calls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.call {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-radius: 28px; padding: 30px; box-shadow: var(--shadow);
}
.call.featured { background: linear-gradient(160deg, color-mix(in srgb, var(--coral) 10%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow-lg); }
.call .tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--tile); color: var(--ink-2); }
.call .tag.free { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); }
.call h3 { font-size: 1.5rem; margin: 10px 0 0; }
.call .meta { font-weight: 700; color: var(--ink-2); }
.call ul { margin: 12px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.call li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink-2); line-height: 1.45; }
.call li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.call .btn { margin-top: auto; }
.call .note { font-size: 0.85rem; color: var(--ink-3); text-align: center; margin: 10px 0 0; }
@media (max-width: 760px) { .calls-grid { grid-template-columns: 1fr; } }

.disclaimer {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 18px 20px;
  border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--ink-3) 60%, transparent);
  color: var(--ink-2); font-size: 0.93rem; line-height: 1.5;
}
.disclaimer svg { flex: none; width: 22px; height: 22px; color: var(--amber); margin-top: 1px; }
.disclaimer p { margin: 0; }

/* Privacy band */
.privacy-band .card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px; }
.privacy-band img { width: 120px; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-band li { background: var(--tile); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 880px) { .privacy-band .card { grid-template-columns: 1fr; text-align: left; } .privacy-band img { width: 90px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin-inline: auto; }
.plan h3 { font-size: 1.35rem; }
.plan .price { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.plan ul { padding-left: 1.1em; margin: 0; color: var(--ink-2); }
.plan li { margin-bottom: 6px; }
.plan.premium { background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 14%, var(--surface)), var(--surface) 65%); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* Final CTA */
.final { text-align: center; }
.final .card { padding: clamp(36px, 6vw, 64px) 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--coral) 16%, var(--surface)), color-mix(in srgb, var(--amber) 12%, var(--surface))); box-shadow: var(--shadow-lg); overflow: hidden; }
.final img { width: 150px; margin: 0 auto 10px; }
.final .lead { margin-inline: auto; margin-bottom: 26px; }
.final .cta-row { justify-content: center; }

/* Inner pages */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 160%; z-index: -1; background: radial-gradient(45% 55% at 85% 20%, var(--glow-coral), transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero-grid img { width: 200px; }
@media (max-width: 760px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-grid img { width: 120px; order: -1; } }
.page-body { padding-top: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose .updated { color: var(--ink-3); font-size: 0.93rem; }
.prose .summary { background: var(--surface); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.prose .summary p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-grid .card { padding: 24px; }
.help-grid .card h3 { margin-bottom: 6px; }
.help-grid .card p { color: var(--ink-2); font-size: 0.97rem; margin-bottom: 14px; }
@media (max-width: 880px) { .help-grid { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--coral); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scope h3 { display: flex; align-items: center; gap: 10px; }
.scope ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.scope li { margin-bottom: 6px; }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

.robert { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.robert .photo { width: 180px; aspect-ratio: 1; border-radius: 50%; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.robert .photo img { width: 80%; }
@media (max-width: 760px) { .robert { grid-template-columns: 1fr; } .robert .photo { width: 130px; } }

.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-list .card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.article-list .card .kicker { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--coral-text); }
.article-list .card p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }
.article-list .soon { opacity: .75; }
@media (max-width: 880px) { .article-list { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.footer-grid nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; overflow-wrap: anywhere; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-brand p { color: var(--ink-2); margin: 12px 0 16px; max-width: 30ch; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.85rem; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal .fine { font-size: 0.78rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sections rise in as they scroll into view (theme.js adds .in-view). Without JavaScript everything just shows. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Phones and tablets: comfortable tap targets (44px, the iOS and Android guideline) and no tap delay */
a, button, summary, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.more-link { display: inline-block; padding: 10px 0; }
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .theme-switch button { width: 44px; height: 44px; }
  .footer-grid nav a { padding: 11px 0; }
  .footer-legal a { display: inline-block; padding: 10px 0; }
}
