/* The redesigned pages (the studio home and /glya), 2026-11-03, from the hand-over pack
   docs/website-redesign-2026-10-29/templates/site.css. Kept apart from styles.css until GLYA 1.0
   is approved, so the policy, terms, support and method pages App Review opens keep their bytes
   and their look; merge into styles.css afterwards (BUILD-SPEC §1.1). Tokens from
   docs/panel/brand-kit/kit/brand/tokens.json; food-tier colours are data only. No <style>, no
   style=, no inline script (the site's CSP, WEB-DEV-1). */

/* Self-hosted, Latin subset, pinned by SHA-256 in build.py (FONT_HASHES; WEB-DEV-2, WEB-SEC-1/9).
   Licence: fonts/OFL.txt. Both faces are preloaded in the page head, so a swap is rare and early
   (developer WB-DEV-2). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-85f55a58.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-8330490a.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
:root {
  --bg: #FBF6F1; --surface: #FFFFFF; --ink: #1E1218; --ink-muted: #6B4A5C; --line: #E6D6C6;
  --tint: #9A2A6C; --on-tint: #FFFFFF; --beet: #6E1C50; --cream: #FFF4E8;
  --blush: #EECBD9; --pink: #FF9DBB; --soft: #F4E9EE; --focus: #9A2A6C;
  --data: #6E1C50; --icon: #6E1C50;
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --max: 1120px;
  --display: "Bricolage Grotesque", ui-rounded, -apple-system, sans-serif;
  --text: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141015; --surface: #1F191F; --ink: #F6EEF2; --ink-muted: #C2AEB9; --line: #3A2E36;
    --tint: #FF9DBB; --on-tint: #141015; --soft: #261C24; --focus: #FF9DBB;
    --data: #EECBD9; --icon: #EECBD9;
  }
}
:root[data-theme="dark"] {
  --bg: #141015; --surface: #1F191F; --ink: #F6EEF2; --ink-muted: #C2AEB9; --line: #3A2E36;
  --tint: #FF9DBB; --on-tint: #141015; --soft: #261C24; --focus: #FF9DBB;
  --data: #EECBD9; --icon: #EECBD9;
}
* { box-sizing: border-box; }
html { font-family: var(--text); font-size: 106.25%; line-height: 1.6; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
/* iPhone Text Size, as the live site does (styles.css:47-53; WEB-A11Y-1). */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; font-family: var(--text); line-height: 1.6; }
}
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--tint); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 3.76rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.label { font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-muted); margin-bottom: .6em; }
.muted { color: var(--ink-muted); }
.small { font-size: .92rem; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-m); }
.skip:focus { top: 12px; }

/* Header: sticky on wide screens; on phones it scrolls away and the nav wraps under the
   name, so Prices and Privacy stay reachable and large text never fills the screen. */
.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .95rem; }
.site nav a { color: var(--ink-muted); text-decoration: none; padding: 8px 0; }
.site nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site { position: static; }
  .site .wrap { padding-top: 10px; padding-bottom: 6px; }
  .site nav { margin-left: 0; width: 100%; gap: 0 18px; }
}
@media (prefers-reduced-transparency: reduce) { .site { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Buttons: radius-md, not a pill (WEB-DESIGNER-5). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: var(--r-m); background: var(--tint); color: var(--on-tint); text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-muted); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.alt { background: var(--soft); }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 36em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid2 > *, .grid3 > * { min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; gap: 32px; } section { padding: 64px 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.card p:last-child { margin-bottom: 0; }

/* Phone frames around real simulator screenshots */
.phone { width: 100%; max-width: min(300px, 70vw); aspect-ratio: 1206 / 2622; border-radius: 44px; padding: 10px; background: #1E1218; box-shadow: 0 30px 60px -20px rgba(72,14,52,.45); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; display: block; }

footer { border-top: 1px solid var(--line); padding: 40px 0 60px; font-size: .92rem; color: var(--ink-muted); }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--ink-muted); }

@media (prefers-contrast: more) { :root { --line: #8A6F7E; } }

/* ===== GLYA page (scope under body.glya when merging) ===== */


.hero { padding: 72px 0 96px; }
.hero .eyebrow { font-size: .95rem; font-weight: 600; color: var(--tint); margin-bottom: 1em; }
.hero h1 em { font-style: normal; color: var(--tint); }
.facts-line { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 0 26px; padding: 0; list-style: none; font-size: .98rem; color: var(--ink-muted); }
.facts-line li::before { content: "\2713\00a0"; color: var(--tint); font-weight: 700; }
.price-line { font-size: .98rem; color: var(--ink-muted); margin: 18px 0 0; max-width: 34em; }
.soon { font-size: 1.02rem; font-weight: 600; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: var(--r-m); background: #000; color: #fff; text-decoration: none; font-weight: 600; }
.badge svg { width: 20px; height: 24px; fill: currentColor; }

/* Hero: example meal cards. Each bar is SVG drawn from its own numbers on one shared
   0-1,200 kcal scale, so widths compare and the CSP has no style= to block. */
.meals { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 22px 16px; box-shadow: 0 18px 40px -26px rgba(72,14,52,.5); }
.mc .t { font-size: .9rem; color: var(--ink-muted); display: block; }
.mc h3 { font-size: 1.15rem; margin: 2px 0 4px; }
.mc .k { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.mc .k span { font-family: var(--text); font-size: 1rem; font-weight: 500; color: var(--ink-muted); }
.mc .r { font-size: .95rem; color: var(--ink-muted); display: block; }
.bar { display: block; width: 100%; height: 14px; margin: 8px 0 4px; overflow: visible; }
.bar .track { fill: var(--line); }
.bar .band { fill: var(--tint); }
.bar .est { fill: var(--ink); }
.scale-key { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-muted); margin: 6px 4px 0; }
.meals-foot { font-size: .9rem; color: var(--ink-muted); margin: 10px 4px 0; }

/* Three ways in */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.way .shot { height: 300px; overflow: hidden; background: var(--soft); display: flex; justify-content: center; align-items: flex-start; padding-top: 24px; }
.way .shot img { width: 72%; border-radius: 22px 22px 0 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
.way .shot.photo { padding: 0; }
.way .shot.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.way .body { padding: 22px 24px 26px; }
.quote { font-family: var(--display); font-size: 1.05rem; background: var(--soft); border-radius: var(--r-m); padding: 8px 14px; display: inline-block; margin: 0 0 .6em; }
.caveat { margin: 26px 0 0; max-width: 46em; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* Range demo: one meal, real engine figures, radio choices, one status line. */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
.demo .meal { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
.demo .kcal { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 0; }
.demo .kcal span { font-family: var(--text); font-size: 1rem; font-weight: 500; color: var(--ink-muted); }
.demo .rng { font-size: 1.05rem; margin: 8px 0 0; }
.demo .was { font-size: .95rem; color: var(--ink-muted); margin: 2px 0 0; min-height: 1.6em; }
.demo .bar { height: 22px; margin: 18px 0 2px; }
.demo .bar .prev { fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-dasharray: 5 4; }
.demo .scale-key { margin: 0; }
.demo fieldset { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 18px 0 0; }
.demo legend { font-weight: 600; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; clear: both; }
.chips label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-m); border: 1.5px solid var(--ink-muted); cursor: pointer; font-size: .95rem; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips label:has(input:checked) { background: var(--tint); color: var(--on-tint); border-color: var(--tint); }
.chips label:has(input:checked)::before { content: "\2713"; font-weight: 700; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.demo .js-only { display: none; }
.demo.ready .js-only { display: block; }
.demo .src { font-size: .9rem; color: var(--ink-muted); margin: 16px 0 0; }
@media (prefers-reduced-motion: no-preference) { .demo .bar rect { transition: x .45s, width .45s; } }

/* Privacy map: three places, each line from the policy's own list. */
.flow { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-top: 36px; }
.zone { border-radius: var(--r-l); padding: 26px; }
.zone h3 { font-size: 1.15rem; }
.zone.device { background: var(--beet); color: var(--cream); }
.zone.device a { color: var(--cream); }
.zone.health { background: var(--surface); border: 1px solid var(--line); }
.zone.net { border: 1.5px dashed var(--ink-muted); background: var(--surface); }
.zone ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.zone li { padding-left: 24px; position: relative; }
.zone li::before { position: absolute; left: 0; }
.zone.device li::before { content: "\25A0"; color: var(--pink); }
.zone.health li::before { content: "\2192"; color: var(--ink-muted); }
.zone.net li::before { content: "\2197"; color: var(--ink-muted); }
.zone li span { display: block; font-size: .92rem; opacity: .85; }
.zone.device li span { color: var(--blush); opacity: 1; }
.paid { margin-top: 28px; font-family: var(--display); font-size: 1.25rem; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } }

/* Spec sheet */
.spec { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding-bottom: 8px; }
.spec th, .spec td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; font-weight: 600; padding-right: 20px; }

/* A tool, not a diet */
.care { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.care li { border-top: 1px solid var(--line); padding-top: 14px; }
.care h3 { font-size: 1.1rem; margin-bottom: .3em; }
.care p { margin: 0; color: var(--ink-muted); }
.small-print { margin-top: 32px; max-width: 46em; }
@media (max-width: 860px) { .care { grid-template-columns: 1fr; } }

/* Prices */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 780px; margin: 30px 0 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
.plan.main { border: 2px solid var(--tint); }
.plan h3 { font-size: 1.1rem; margin-bottom: .2em; }
.plan .price { font-family: var(--display); font-size: 2.4rem; font-weight: 700; margin: 0 0 .3em; }
.plan .price span { font-family: var(--text); font-size: 1rem; font-weight: 500; color: var(--ink-muted); }
.keep { max-width: 780px; margin-top: 20px; }
.billing { max-width: 780px; margin-top: 14px; font-size: .95rem; color: var(--ink-muted); }
.billing summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* Questions, built from the support page's own answers */
.faq .wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.12rem; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 12px; }
.faq summary .sign { margin-left: auto; color: var(--tint); font-family: var(--text); }
.faq details[open] summary .sign { transform: rotate(45deg); }
.faq details p { margin: 8px 0 6px; color: var(--ink-muted); }

/* Contact band, kept from today's page (WEB-SUPPORT-1) */
.contact { background: var(--beet); color: var(--cream); border-radius: var(--r-l); padding: 44px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact h2 { margin-bottom: .3em; }
.contact p { margin: 0; color: var(--blush); max-width: 36em; }
.contact a:not(.btn) { color: var(--cream); }
.contact .btn { background: var(--cream); color: var(--beet); }

/* H8 (agreed): tint means "tap this"; data has its own colour; nothing else is tinted. */
.bar .band { fill: var(--data); }
.bar .est { fill: var(--surface); }
.hero .eyebrow { color: var(--ink); }
.facts-line li::before { color: var(--ink); }
.zone.device li::before { color: var(--blush); }
.plan.main { border-color: var(--ink); }

/* H1 (agreed): footnotes */
sup.fn { line-height: 0; font-size: .72em; margin-left: 1px; }
sup.fn a { text-decoration: none; font-weight: 600; padding: 0 2px; }
.notes h2 { font-size: 1.3rem; }
.notes ol { margin: 0; padding-left: 1.4em; max-width: 52em; color: var(--ink-muted); font-size: .95rem; display: grid; gap: 10px; }
.notes li:target { background: var(--soft); border-radius: var(--r-s); }
/* H2 (agreed): one bold phrase per lede */
.lede strong { color: var(--ink); font-weight: 600; }
/* H7 (agreed): one checkable fact line under a heading */
.fact { font-size: .98rem; font-weight: 600; color: var(--ink); margin: -.2em 0 1em; font-variant-numeric: tabular-nums; }

/* H6 (agreed): topic links under the hero. Soft fill, arrow, no border, so they read as
   links, not as the demo's answers. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-m); background: var(--soft); color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.jump a::after { content: "\2192"; color: var(--tint); }
.jump a:hover { background: var(--line); }
.jump svg { width: 20px; height: 20px; fill: none; stroke: var(--icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Studio home ===== */

/* Text-only studio wordmark: the G mark means GLYA, so the studio never wears it (WEB-DESIGNER-4). */
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--ink-muted); font-weight: 600; }

body.studio-home .hero { padding: 96px 0 72px; }
body.studio-home .hero h1 { max-width: 14em; }

.feature { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--beet); color: var(--cream); border-radius: var(--r-l); overflow: hidden; }
.feature .txt { padding: 56px 48px; }
.feature .label, .feature p { color: var(--blush); }
.feature .btn { background: var(--cream); color: var(--beet); }
.feature .mark { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.feature .mark img { width: 64px; height: 64px; border-radius: 15px; }
.feature .mark span { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: .02em; }
.feature .art { display: flex; align-items: flex-end; justify-content: center; padding: 48px 32px 0; }
.feature .phone { max-width: 260px; border-radius: 40px 40px 0 0; padding-bottom: 0; aspect-ratio: auto; height: 420px; }
.feature .phone img { border-radius: 31px 31px 0 0; }
.teaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 40px; }
.teaser h2 { margin-bottom: .3em; }
.teaser p { margin: 0; color: var(--ink-muted); max-width: 38em; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .txt { padding: 36px 26px; } .teaser { padding: 28px 24px; } }

.promise { border-top: 2px solid var(--ink); padding-top: 18px; }
.promise h3 { font-size: 1.35rem; }
.promise a { font-weight: 600; }

.open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.open a.card { text-decoration: none; color: var(--ink); }
.open .card span { display: block; color: var(--ink-muted); margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .open a.card { transition: transform .2s; } .open a.card:hover { transform: translateY(-3px); } }
@media (max-width: 860px) { .open { grid-template-columns: 1fr; } }
.cookies { margin-top: 22px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.facts div { border-left: 2px solid var(--line); padding-left: 16px; }
.facts b { display: block; font-family: var(--display); font-size: 1.3rem; }
.facts span { color: var(--ink-muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* The footer's legal lines: copyright, the GLYA mark, Apple's credit line (on every page; AT1). */
footer .legal { flex-basis: 100%; margin: 4px 0 0; font-size: .82rem; line-height: 1.5; }

/* Before launch the studio shows one open-work card: keep it card-sized (designer WB-DESIGNER-3). */
.open.one { grid-template-columns: minmax(0, 26em); }
/* Things you can tap look tappable (WB-DESIGNER-4): an arrow on the open cards, a marker on Billing details. */
.open a.card h3::after { content: "\00a0\2192"; color: var(--tint); }
.billing summary { cursor: pointer; color: var(--tint); font-weight: 600; gap: 10px; }
.billing summary::-webkit-details-marker { display: none; }
.billing summary .sign { color: var(--tint); }
.billing[open] summary .sign { transform: rotate(45deg); }
