/* COACH: the home page (templates/index.html). Ported from the approved design,
   demos/v2-paper.html in the COACH design folder (~/Developer/Octavia PT Website),
   with its review bar removed. Keep the two in step by hand: this file is the live one. */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* the brand, sampled from the business card (see DEMO-SPEC "Colour") */
  --sage: #C9E1B0;        /* an accent: squiggles, dots, small highlights, the logo bar. Never text on light. */
  --sage-50: #F5F9F1; --sage-100: #EBF3E2; --sage-200: #DCEBCC; --sage-400: #A7BF92;
  --sage-600: #5D7051;    /* sage-coloured text on light backgrounds (5.4:1 on white) */
  --sage-800: #2B3626;
  --ink: #0E0E0E; --ink-soft: #3D3D3A; --paper: #F7F7F3; --white: #FFFFFF;
  --grey-300: #B8B8B8;    /* the card's tagline grey: decoration only on light */
  --grey-600: #6B6B68;    /* secondary text on light (5.3:1) */
  --grey-form: #737373;   /* the header bands on her forms (white on it: 4.7:1) */
  --line: #DCDCD5;        /* hairlines */
  --line-soft: #E8E8E2;
  /* the O filling up (the app icon's lead colours, also the "How I work" icons) */
  --ring-track: #DCDDD8; --ring-fill: var(--sage-400);
  /* the app section's backdrop: a soft filled O, lit from the top left */
  --dome-hi: #F2F7EC; --dome-mid: #DEECCF; --dome-edge: #CFE3BA;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Josefin Sans', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --wrap: 1240px; --gutter: clamp(20px, 4vw, 48px); --header-h: 76px;
  --tap: 44px;            /* the smallest thing a thumb has to hit */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* The online coaching card: grey instead of green. Two greys were tried; the
   class on the card picks one (see COPY.md, "v2"). */
.feat-form { --feat-bg: var(--grey-form); --feat-ink: var(--white); --feat-soft: rgba(255,255,255,.92); --feat-line: rgba(255,255,255,.3); --feat-dash: var(--sage); --feat-tag-bg: var(--sage); --feat-tag-ink: var(--ink); }
.feat-warm { --feat-bg: #EDEDE7; --feat-ink: var(--ink); --feat-soft: var(--ink-soft); --feat-line: rgba(14,14,14,.12); --feat-dash: var(--sage-600); --feat-tag-bg: var(--ink); --feat-tag-ink: var(--sage); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--sage); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
section[id] { scroll-margin-top: var(--header-h); }
/* Mobile first: a phone gets the short version; wider screens a little more. */
.more { display: none; }
@media (min-width: 700px) { .more { display: inline; } }
/* Lenis (smooth scrolling) bookkeeping */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Intro: "written by hand", then through the O ─────────────────────────
   One full-screen SVG: a sheet of paper with an O-shaped window cut in it
   (closed until the exit), and the primary logo on top. The page sits behind. */
html[data-intro="playing"] { overflow: hidden; }
#intro { position: fixed; inset: 0; z-index: 1000; display: none; transition: opacity .45s ease; }
html[data-intro="playing"] #intro { display: block; }
#intro.is-leaving { opacity: 0; pointer-events: none; }
.intro-stage { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.intro-paper { fill: var(--paper); }
/* behind the paper, so it shows only through the O's window: the O fills with sage */
.intro-wash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(42% 58% at 50% 50%, #D3E7BD 0%, var(--sage) 46%, var(--sage-200) 100%); }
.intro-track { stroke: #D3D3CB; stroke-width: 1; vector-effect: non-scaling-stroke; }
#intro [data-part="o"] { stroke-linecap: round; }
#intro [data-part="bar"] { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); }
/* until the drawing starts, the strokes are hidden (no flash of the finished logo) */
#intro.is-pending [data-part] path, #intro.is-pending path[data-part] { stroke-dasharray: 0 100000; }
#intro.is-pending [data-part="tagline"] { opacity: 0; }
.intro-corner { position: absolute; top: clamp(20px, 3vw, 34px); font: 400 11px/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--grey-600); }
.intro-corner--tl { left: clamp(20px, 3vw, 38px); }
.intro-corner--tr { right: clamp(20px, 3vw, 38px); }
.intro-pct { position: absolute; left: 0; top: 0; font: 300 12px/1 var(--font-display); letter-spacing: .24em; color: var(--grey-600); white-space: nowrap; }
.intro-pct-u { margin-left: .1em; }
#skip-intro { position: absolute; right: clamp(20px, 3vw, 38px); bottom: clamp(12px, 2.4vw, 26px); min-height: var(--tap); padding: 16px 0 6px; border: 0; border-bottom: 1px solid currentColor; background: none; font: 400 11px/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 560px) { .intro-corner--tr { display: none; } }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .035em; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.08; }
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.005em; font-size: 1.14em; line-height: .9; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.65; color: var(--ink-soft); max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 400 12.5px/1.4 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--sage-600); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
/* A sage squiggle under a word (drawn on with DrawSVG as it scrolls in): at most one per section. */
.hl { position: relative; isolation: isolate; white-space: nowrap; }
.hl-ink { position: absolute; left: -4%; bottom: .04em; width: 108%; height: .44em; z-index: -1; overflow: visible; pointer-events: none; }
.hl-ink path { fill: none; stroke: var(--sage); stroke-width: 15; stroke-linecap: round; }

/* the folio rail that opens every section: number, hairline, label */
.folio { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 5vw, 72px); }
.folio .no { font: italic 400 26px/1 var(--font-serif); }
.folio .rule { flex: 1; height: 1px; background: var(--line); transform-origin: 0 50%; align-self: center; }
.folio .label { font: 400 12px/1 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--grey-600); }

/* ── Buttons & links ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: var(--tap); padding: 18px 28px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font: 600 15px/1 var(--font-body); letter-spacing: .005em; transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out); }
.btn .arr { width: 18px; height: 10px; transition: transform .35s var(--ease-out); }
.link-line { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 0; border: 0; color: inherit; font: 600 15px/1 var(--font-body); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 100% 1px no-repeat; transition: background-size .45s var(--ease-out); }
/* hover effects only where there's a mouse: on a phone a tap would leave them stuck on */
@media (hover: hover) {
  .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--ink); }
  .btn:hover .arr { transform: translateX(4px); }
  .link-line:hover { background-size: 0% 1px; background-position: 100% calc(50% + 12px); }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .45s, box-shadow .45s; }
.site-header.is-scrolled { background: rgba(247, 247, 243, .86); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 138px; flex: none; padding: 4px 0; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); list-style: none; }
.nav-links a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 0 6px; font: 400 12.5px/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
@media (hover: hover) { .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: 0 50%; } }
.nav-links .btn { padding: 14px 20px; font-size: 14px; }
.menu-btn { display: none; width: var(--tap); height: var(--tap); border: 0; background: none; }
.menu-btn span { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: transform .35s var(--ease-out), opacity .25s; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease-out); }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links li:last-child { border: 0; }
  .nav-links a:not(.btn) { display: flex; padding: 18px 0; font-size: 14px; }
  .nav-links .btn { width: 100%; margin-top: 18px; padding: 18px; }
  .site-header.is-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .site-header.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .site-header.is-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.is-open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.is-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ── Photo placeholders: plain rounded frames, ready for a photo to drop in ─
   (v1's arches and thin ovals are gone: she couldn't see what they were for) */
.photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 78% 18%, rgba(255,255,255,.85), transparent 60%), linear-gradient(168deg, #DCE9CF 0%, #EAF1E2 46%, #EFEFE9 100%); }
.photo::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .2; mix-blend-mode: multiply; }
.photo figcaption { position: absolute; left: 20px; bottom: 20px; z-index: 1; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 12px/1.2 var(--font-body); color: var(--sage-800); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(48px, 8vh, 96px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(50px, 8.7vw, 138px); line-height: .96; letter-spacing: .012em; margin: 26px 0 30px; }
.hero-title .line { display: block; overflow: hidden; padding: .06em .12em .05em 0; margin: -.06em -.12em -.05em 0; }
.hero-title .line-in { display: block; white-space: nowrap; }
.hero-title .line-2 { padding-left: .62em; }
.hero-title em { font-size: 1.06em; }
.hero-title .hl-ink { bottom: .1em; height: .36em; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: var(--ink-soft); max-width: 31em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 28px 0 32px; padding: 15px 0 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 680px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 10px; font: 400 11.5px/1.3 var(--font-display); letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.hero-badges li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-400); transform: translateY(-1px); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.hero-art { position: relative; justify-self: end; width: min(100%, 440px); }
.hero-vert { position: absolute; right: -40px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font: 400 11px/1 var(--font-display); letter-spacing: .42em; text-transform: uppercase; color: var(--grey-600); white-space: nowrap; }
@media (max-width: 1180px) { .hero-vert { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: clamp(50px, 14.4vw, 124px); }
  .hero-art { justify-self: stretch; width: 100%; }
  .hero-art .photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .eyebrow { gap: 10px; font-size: 11px; letter-spacing: .24em; }
  .eyebrow::before { width: 26px; }
  .hero-title { margin: 20px 0 22px; }
  .hero-badges { flex-direction: column; gap: 8px; margin: 24px 0 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .link-line { align-self: center; }
}

/* ── Marquee: the scrolling words, sage dots between ──────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(16px, 2.6vw, 30px) 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.marquee-track > span { display: inline-flex; align-items: center; gap: .42em; padding-right: .42em; font: italic 400 clamp(42px, 6.6vw, 96px)/1 var(--font-serif); white-space: nowrap; }
.marquee .o { flex: none; display: inline-block; width: .16em; height: .16em; border-radius: 50%; background: var(--sage-400); transform: translateY(-.08em); }
.marquee .soft { color: var(--grey-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(64px, 11vw, 152px) 0; overflow-x: clip; }
.section-white { background: var(--white); }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 72px); }
@media (max-width: 960px) { .head-row { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 7vw, 120px); align-items: center; }
.about-head h2 { max-width: 11em; }
.about-photo { margin-top: clamp(36px, 4vw, 52px); width: min(100%, 290px); aspect-ratio: 4 / 4.5; }
.pillars { list-style: none; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: clamp(22px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.pillar-no { font: italic 400 46px/1 var(--font-serif); color: var(--sage-600); }
.pillar h3 { font-size: clamp(19px, 1.9vw, 26px); margin-bottom: 6px; }
.pillar p { color: var(--ink-soft); max-width: 30em; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { display: none; }
  .pillar { grid-template-columns: 44px 1fr; gap: 10px; }
  .pillar-no { font-size: 30px; }
}

/* Coaching */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 44px) clamp(22px, 2.6vw, 38px) clamp(26px, 3.4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
@media (hover: hover) { .offer:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(14,14,14,.28); } }
.offer-no { font: italic 400 30px/1 var(--font-serif); color: var(--grey-600); margin-bottom: clamp(28px, 6vw, 88px); }
.offer h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 2vw, 27px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
@media (min-width: 961px) { .offer h3 { min-height: 2.4em; } }
.offer-intro { margin: 8px 0 22px; font: italic 400 22px/1.25 var(--font-serif); color: var(--ink-soft); }
.offer ul { list-style: none; margin-top: auto; border-top: 1px solid var(--line); }
.offer li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; line-height: 1.5; }
.offer li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 1px; background: var(--ink); }
.offer-tag { position: absolute; top: clamp(24px, 3vw, 42px); right: clamp(20px, 2.6vw, 36px); padding: 8px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 11.5px/1 var(--font-body); letter-spacing: .02em; }
/* the highlighted card: grey, not a block of green (her colours, the accent kept small) */
.offer--featured { background: var(--feat-bg); border-color: var(--feat-bg); color: var(--feat-ink); }
.offer--featured .offer-no, .offer--featured .offer-intro { color: var(--feat-soft); }
.offer--featured ul, .offer--featured li { border-color: var(--feat-line); }
.offer--featured li::before { background: var(--feat-dash); height: 2px; }
.offer--featured .offer-tag { background: var(--feat-tag-bg); color: var(--feat-tag-ink); }
.offer--featured.feat-warm::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; border-radius: 4px 4px 0 0; background: var(--sage); }
.offers-note { margin-top: 28px; text-align: center; color: var(--ink-soft); }
.offers-note a { font-weight: 600; text-decoration: none; background: linear-gradient(var(--sage), var(--sage)) 0 88% / 100% .42em no-repeat; }
@media (max-width: 960px) {
  .offers { grid-template-columns: 1fr; gap: 14px; }
}

/* The app */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.app-copy .lead { margin: 18px 0 32px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.f-icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--white); }
.f-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 16.5px; margin: 2px 0 4px; }
.feature p { font-size: 15px; line-height: 1.5; color: var(--grey-600); }
.app-line { margin: 36px 0 22px; padding-top: 26px; border-top: 1px solid var(--line); font: italic 400 clamp(28px, 2.8vw, 40px)/1.15 var(--font-serif); }
.app-visual { position: relative; }
.phones { position: relative; z-index: 1; height: 660px; max-width: 540px; margin: 0 auto; font-size: 10px; }
/* a soft filled O behind the phones (she liked this over v1's thin line circle) */
.app-dome { position: absolute; z-index: 0; left: 50%; top: 50%; height: 112%; width: auto; aspect-ratio: 196 / 336; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
.app-small { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-size: 13px; color: var(--grey-600); }
@media (max-width: 960px) {
  .app-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 18px; }
}

/* ── Phone mock-ups (sizes in em, so a phone scales with its font size) ─── */
.phone { position: absolute; width: 27em; height: 56.6em; margin: 0; padding: .9em; border-radius: 4.6em; background: #111110; box-shadow: 0 4em 8em -3em rgba(14,14,14,.36), 0 1.6em 3.2em -1.6em rgba(14,14,14,.28), inset 0 0 0 .15em #2A2A28; }
.phone::before { content: ""; position: absolute; left: 50%; top: 1.9em; z-index: 3; width: 8.4em; height: 2.4em; border-radius: 2em; background: #111110; transform: translateX(-50%); }
.phone-a { left: 0; top: 52px; transform: rotate(-4deg); z-index: 2; }
.phone-b { right: 0; top: 0; transform: rotate(4.5deg); z-index: 1; }
.screen { position: relative; height: 100%; border-radius: 3.8em; overflow: hidden; background: #FBFBF8; color: var(--ink); font-family: var(--font-body); font-size: 1em; line-height: 1.3; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 1.9em 2.4em 0 2.8em; font-size: 1.25em; font-weight: 600; }
.ph-status i { display: inline-block; width: 1.5em; height: .8em; margin-left: .35em; border-radius: .2em; background: var(--ink); opacity: .85; }
.ph-status i:first-child { width: .9em; border-radius: 50%; }
.ph-body { padding: 2.2em 1.9em 0; }
.ph-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.7em; }
.ph-kicker { font: 400 1.05em/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--grey-600); }
.ph-hello { margin-top: .45em; font: italic 400 2.7em/1 var(--font-serif); }
.ph-avatar { width: 3.6em; height: 3.6em; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-weight: 700; font-size: 1.2em; }
.ph-next { padding: 1.5em 1.6em; border-radius: 1.8em; background: var(--ink); color: #F4F4EF; position: relative; }
.ph-label { font: 400 1em/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.ph-big { margin-top: .55em; font: 300 2.5em/1 var(--font-display); letter-spacing: .02em; }
.ph-sub { margin-top: .5em; font-size: 1.2em; opacity: .8; }
.ph-pill { position: absolute; right: 1.4em; top: 1.3em; padding: .55em .9em; border-radius: 2em; background: var(--sage); color: var(--ink); font-size: 1.05em; font-weight: 700; }
.ph-ring-card { display: flex; align-items: center; gap: 1.6em; margin-top: 1.2em; padding: 1.5em 1.6em; border-radius: 1.8em; background: var(--white); border: 1px solid #ECECE6; }
.ph-ring { width: 8.6em; height: 8.6em; flex: none; }
.ph-ring circle { fill: none; stroke-width: 11; }
.ph-ring .trk { stroke: #EEF0EA; }
.ph-ring .val { stroke: var(--sage-400); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 23.2; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ph-ring-txt b { display: block; font: 300 2.6em/1 var(--font-display); letter-spacing: .01em; }
.ph-ring-txt span { display: block; margin-top: .35em; font-size: 1.15em; color: var(--grey-600); }
.ph-ring-txt small { display: block; margin-top: .9em; font: 400 .95em/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--sage-600); }
.ph-macros { display: grid; gap: 1.05em; margin-top: 1.5em; padding: 0 .3em; }
.ph-macro { display: grid; grid-template-columns: 1fr auto; row-gap: .45em; font-size: 1.15em; }
.ph-macro b { font-weight: 600; }
.ph-macro .bar { grid-column: 1 / -1; height: .5em; border-radius: 1em; background: #EEF0EA; overflow: hidden; }
.ph-macro .bar s { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--ink); transform-origin: 0 50%; }
.ph-streak { display: inline-flex; align-items: center; gap: .6em; margin-top: 1.5em; padding: .65em 1em; border-radius: 2em; background: var(--sage-100); font-size: 1.1em; font-weight: 600; }
.ph-streak .o { width: .75em; height: 1.1em; border: .16em solid var(--sage-600); border-radius: 50%; }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 1.2em 1em 2.2em; background: rgba(251,251,248,.94); border-top: 1px solid #ECECE6; font-size: 1em; font-weight: 600; color: var(--grey-600); }
.ph-tabs span { display: grid; justify-items: center; gap: .45em; }
.ph-tabs span::before { content: ""; width: 1.7em; height: 1.7em; border-radius: .55em; border: .15em solid currentColor; }
.ph-tabs .on { color: var(--ink); }
.ph-tabs .on::before { background: var(--sage); border-color: var(--ink); }
/* workout screen */
.ph-top { display: flex; align-items: center; gap: .9em; }
.ph-back { width: 2.6em; height: 2.6em; border-radius: 50%; border: 1px solid #E2E2DC; display: grid; place-items: center; font-size: 1.2em; }
.ph-title { margin: .8em 0 .2em; font: italic 400 3em/1 var(--font-serif); }
.ph-meta { font-size: 1.15em; color: var(--grey-600); margin-bottom: 1.2em; }
.ph-ex { list-style: none; display: grid; gap: .7em; }
.ph-ex li { position: relative; display: grid; grid-template-columns: 4em 1fr auto; gap: 1em; align-items: center; padding: .85em; border-radius: 1.5em; background: var(--white); border: 1px solid #ECECE6; }
.ph-thumb { width: 4em; height: 4em; border-radius: 1em; background: linear-gradient(150deg, var(--sage-200), #EEF3E7); display: grid; place-items: center; }
.ph-thumb::before { content: ""; width: 0; height: 0; margin-left: .25em; border-left: 1.05em solid var(--ink); border-top: .65em solid transparent; border-bottom: .65em solid transparent; opacity: .82; }
.ph-ex b { display: block; font-size: 1.3em; font-weight: 600; }
.ph-ex span.d { display: block; margin-top: .25em; font-size: 1.12em; color: var(--grey-600); }
.ph-sets { display: flex; gap: .35em; margin-top: .55em; }
.ph-sets i { width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--ink); }
.ph-pr { position: relative; padding: .55em .85em; border-radius: 2em; background: var(--sage); font-size: 1.02em; font-weight: 700; white-space: nowrap; }
.ph-spark { position: absolute; right: 1.5em; top: .2em; width: 1px; height: 1px; }
.ph-spark i { position: absolute; left: 0; top: 0; width: .16em; height: .9em; border-radius: 1em; background: var(--sage-600); transform-origin: 50% 2.2em; opacity: 0; }
.ph-btn { position: absolute; left: 1.5em; right: 1.5em; bottom: 1.6em; display: grid; place-items: center; height: 4.2em; border-radius: 3em; background: var(--ink); color: #F4F4EF; font-size: 1.25em; font-weight: 600; }
@media (max-width: 960px) {
  .phones { height: 600px; }
}
@media (max-width: 560px) {
  .phones { height: 452px; max-width: 360px; font-size: 7px; }
  .phone-a { top: 34px; }
}

/* How I work: the O filling up, a quarter, a half, then whole (the app icon's idea) */
.how-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 6vw, 80px); border-top: 1px solid var(--line); }
.how-col { padding: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px) 8px; border-left: 1px solid var(--line); }
.how-col:first-child { border-left: 0; padding-left: 0; }
.how-icon { width: 40px; height: 56px; margin-bottom: 24px; overflow: visible; }
.how-icon path { fill: none; stroke-width: 5; stroke-linecap: round; }
.how-icon .trk { stroke: var(--ring-track); }
.how-icon .val { stroke: var(--ring-fill); }
.how-col h3 { font-size: clamp(19px, 1.9vw, 25px); margin-bottom: 6px; }
.how-col p { color: var(--ink-soft); max-width: 22em; }
@media (max-width: 860px) {
  .how-cols { grid-template-columns: 1fr; }
  .how-col, .how-col:first-child { display: grid; grid-template-columns: 40px 1fr; gap: 0 18px; border-left: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .how-icon { grid-row: span 2; width: 30px; height: 42px; margin: 2px 0 0; }
}

/* How it works */
.steps-wrap { position: relative; margin-top: clamp(32px, 7vw, 96px); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.steps-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--sage-600); transform-origin: 0 50%; }
.step { position: relative; padding-top: 52px; }
.step-dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--sage); border: 1.5px solid var(--ink); }
.step-no { display: block; margin-bottom: 18px; font: 200 clamp(44px, 6vw, 84px)/.9 var(--font-display); letter-spacing: .02em; }
.step h3 { font-size: clamp(19px, 1.8vw, 24px); margin-bottom: 6px; }
.step p { color: var(--ink-soft); max-width: 24em; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps-line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps-line i { transform-origin: 50% 0; }
  .step { padding: 0 0 32px 44px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { top: 6px; }
  .step-no { margin-bottom: 10px; }
}

/* Contact: a short form, before the questions */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy form" "talk form"; gap: 0 clamp(40px, 7vw, 112px); align-items: start; }
.contact-copy { grid-area: copy; }
.contact-copy .lead { margin: 20px 0 36px; }
.contact-form { grid-area: form; display: grid; gap: 22px; padding: clamp(22px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.talk-first { grid-area: talk; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.talk-first .form-status { flex-basis: 100%; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font: 400 11.5px/1.4 var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--grey-600); }
.field legend { margin-bottom: 10px; }
.field .opt { letter-spacing: .1em; text-transform: none; font-family: var(--font-body); }
.field input:not([type=radio]), .field textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid #CDCDC6; border-radius: 0; background: transparent; font: 400 17px/1.5 var(--font-body); color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 84px; }
/* "How did you hear about me?": one line, the same underline as the boxes, her own arrow */
.field select { width: 100%; min-height: var(--tap); padding: 10px 28px 12px 0; border: 0; border-bottom: 1px solid #CDCDC6; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E0E0E' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; appearance: none; -webkit-appearance: none; font: 400 17px/1.5 var(--font-body); color: var(--ink); cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:not([type=radio]):focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
/* "what are you interested in?" as one tap each, not a dropdown */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field .chip { position: relative; font: 500 15px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); transition: background .25s, color .25s, border-color .25s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .chip input:not(:checked):hover + span { border-color: var(--ink); } }
.form-privacy { font-size: 13.5px; color: var(--grey-600); }
.contact-form .btn { width: 100%; padding: 20px; }
.contact-form .form-status { margin-top: -10px; min-height: 1.4em; }
.form-status { min-height: 1.6em; font-weight: 600; color: var(--sage-600); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "talk"; }
  .contact-copy .lead { margin: 16px 0 26px; }
  .talk-first { margin-top: 20px; padding-top: 14px; border-top: 0; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 7vw, 120px); align-items: start; }
.faq-head h2 em { font-size: 1.5em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: var(--tap); padding: 20px 0; cursor: pointer; list-style: none; font: 600 clamp(16.5px, 1.5vw, 20px)/1.4 var(--font-body); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.faq-list .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] .pm { background: var(--sage); border-color: var(--sage); }
.faq-list details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) { .faq-list summary:hover .pm { border-color: var(--ink); } }
.faq-list details p { padding: 0 64px 24px 0; color: var(--ink-soft); max-width: 40em; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-list details p { padding-right: 0; }
}

/* ── Footer (as v1; the links just have bigger tap areas) ────────────────── */
.site-footer { padding: clamp(72px, 9vw, 120px) 0 104px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo { width: min(100%, 420px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 30px; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); font: 400 12px/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
@media (hover: hover) { .footer-nav a:hover { color: var(--sage-600); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 32px; padding-top: 14px; font-size: 13.5px; color: var(--grey-600); }
.footer-bottom p { padding: 12px 0 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .footer-top { flex-direction: column; align-items: flex-start; } .footer-logo { width: min(100%, 320px); } }


/* ── The live site's additions (not in the design file) ─────────────────── */
/* the contact form's honeypot: a field people never see, which bots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* a problem sending reads in ink, not a new colour (the palette has no red) */
.form-status.is-error { color: var(--ink); }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
/* the footer's links to the app and the privacy notice */
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
