/* zefro.app — the whole site's stylesheet.
 *
 * Look: light only, Apple-style. White ground, system greys, system font, brand
 * neutral: near-black #1C1C1E and greys. Violet and teal live only in the logo and the Zefro+ mark. There is no dark
 * mode and no theme switch. Do not introduce a colour that is not in
 * web/DESIGN.md, and never an orange.
 *
 NOTHING ON THIS SITE IS EVER ITALIC. No italic face is loaded,
 * `font-synthesis: none` stops the browser faking one, and i/em/cite/var/dfn/
 * address are reset upright. Emphasis is weight, size or colour.
 *
 * No third-party request of any kind — Nunito ExtraBold (numbers) is self-hosted below. That is
 * what lets the Worker serve the invite and shared-plan pages under a
 * `default-src 'none'` Content-Security-Policy, and it is why a font CDN link
 * must never be pasted into this file (web/test/pages.test.mjs fails on it).
 *
 * Two systems share this sheet:
 *   1. the marketing pages (home, for-coaches) — hero, sections, the dark
 *      stage and the phone mockup (.iphone);
 *   2. the utility pages (legal, delete-account, 404) and the Worker-rendered
 *      invite and shared-plan pages, which reuse .wrap/.card/.button/.stores
 *      and friends. Both are light only.
 */

/* ---------------------------------------------------------------- type --- */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Nunito-ExtraBold.ttf') format('truetype');
}

/* -------------------------------------------------------------- tokens --- */

:root {
  color-scheme: light;

  --num: ui-rounded, 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ground: #ffffff;
  --surface: #f2f2f7;
  --elevated: #ffffff;
  --ink: #1c1c1e;
  --ink-2: rgba(60, 60, 67, 0.6);
  --ink-3: rgba(60, 60, 67, 0.6);
  --hair: #e5e5ea;
  --hair-strong: #c6c6c8;
  --fill: #e5e5ea;
  --accent: #1c1c1e;
  --accent-ink: #ffffff;
  --danger: #d70015;
  --bar: rgba(255, 255, 255, 0.82);

  /* The alternating section ground (Apple's light grey). The site is light
     only: no section is ever dark. Phone bezels are devices, not sections. */
  --stage: #f2f2f7;
  --stage-ink: #1c1c1e;
  --stage-ink-2: rgba(60, 60, 67, 0.6);
  --stage-hair: #e5e5ea;
  --stage-accent: #1c1c1e;

  /* The QR code is drawn dark-on-light in both schemes. Scanners cope with
     inverted codes inconsistently and a misread invite is a lost client, so
     this one element deliberately does not follow the theme. */
  --qr-dark: #1c1c1e;
  --qr-light: #ffffff;

  --shell: 1140px;
  --gutter: clamp(20px, 5vw, 56px);

  --step-display: clamp(2.5rem, 6.6vw, 5rem);
  --step-h2: clamp(1.875rem, 4vw, 3rem);
  --step-h3: clamp(1.5rem, 2.6vw, 2rem);
  --step-lead: clamp(1.125rem, 1.6vw, 1.4375rem);
  --step-body: 1.0625rem;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------------------------------------------------------------- base --- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--hair-strong) var(--ground);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-synthesis: none;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* No italic face is loaded and none is faked. The legal pages emphasise a word
   here and there with <em>; upright-but-identical would silently delete that
   emphasis, so emphasis becomes weight — which is what the theme specifies. */
i,
em,
address,
cite,
dfn,
var {
  font-style: normal;
}

i,
em {
  font-weight: 600;
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

:where(a) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:where(a):hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-display);
}

h2 {
  font-size: var(--step-h2);
}

h3 {
  font-size: var(--step-h3);
  letter-spacing: -0.026em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  transition: top 0.16s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bar);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 58px;
}

/* Logo file plus the name in the system font, centred, half the icon's height. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .mark {
  display: block;
  height: 32px;
  width: 32px;
  flex: none;
}

.wordmark .name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 3vw, 30px);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

.nav a:hover {
  text-decoration: underline;
}

/* Sign in: the nav's one quiet button. */
.nav a.nav-signin {
  padding: 5px 13px;
  border: 0;
  border-radius: 7px;
  background: #e5e5ea;
  color: var(--ink);
}

.nav a.nav-signin:hover {
  background: #d1d1d6;
  text-decoration: none;
}

@media (max-width: 480px) {
  .wordmark {
    flex: none;
  }

  .wordmark .mark {
    height: 28px;
    width: 28px;
  }

  .wordmark .name {
    font-size: 14px;
  }
}

/* One header everywhere: on a phone only Sign in stays in the row; the other links sit behind the menu button. */
.nav-menu {
  display: none;
  position: relative;
  flex: none;
}

@media (max-width: 760px) {
  .nav a:not(.nav-signin) {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

@media (max-width: 400px) {
  .site-header .wrap {
    gap: 12px;
  }

  .nav {
    font-size: 0.875rem;
  }
}

/* -------------------------------------------------------------- layout --- */

.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* A reading column for the utility and legal pages: header and footer keep the
   full shell above, the prose does not. */
main > .wrap {
  max-width: 56rem;
  padding-top: clamp(52px, 7vw, 96px);
  padding-bottom: clamp(60px, 8vw, 112px);
}

main > .wrap :where(p) {
  max-width: 72ch;
}

main > .wrap section + section {
  margin-top: clamp(40px, 4.6vw, 60px);
}

main > .wrap h1 {
  font-size: clamp(2.125rem, 4.8vw, 3.5rem);
}

main > .wrap h2 {
  font-size: clamp(1.3125rem, 2.3vw, 1.75rem);
  letter-spacing: -0.026em;
}

main > .wrap h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

main > .wrap p,
main > .wrap ul,
main > .wrap ol {
  margin-top: 16px;
  color: var(--ink-2);
  /* A bare URL in the legal text must not push the page sideways at 320px. */
  overflow-wrap: anywhere;
}

main > .wrap li + li {
  margin-top: 10px;
}

main > .wrap strong {
  color: var(--ink);
  font-weight: 600;
}

/* Marketing sections: more air above a heading than below the block it closes,
   so the page reads as one column of sections, not a stack of equal boxes. */
main > section {
  padding-top: clamp(76px, 11vw, 152px);
  padding-bottom: clamp(56px, 8vw, 108px);
  border-top: 1px solid var(--hair);
}

main > section > .wrap > h2 {
  max-width: 18ch;
  margin-inline: auto;
  text-align: center;
}

.section-lead {
  max-width: 54ch;
  margin-inline: auto;
  margin-top: clamp(18px, 2.2vw, 26px);
  text-align: center;
  font-size: var(--step-lead);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- type --- */

.lead {
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: var(--step-lead);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--ink-2);
}

/* A quiet label, not a marketing kicker: the invite page's "Your invite code"
   and the shared plan's byline. Sentence case, no tracking — an uppercase
   eyebrow above a heading is the reliable machine-made tell, and it does
   nothing at all in a language with no case. */
.eyebrow {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.muted {
  color: var(--ink-2);
}

small,
.small {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
}

ul.plain {
  list-style: none;
  padding-left: 0;
}

ul.plain > li {
  position: relative;
  padding-left: 26px;
}

ul.plain > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 13px;
  height: 1px;
  background: var(--hair-strong);
}

ol.plain {
  padding-left: 22px;
}

hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: clamp(28px, 3vw, 40px) 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
  font-size: 0.9375rem;
}

/* Wide content scrolls inside its own container; the page body never does. */
.scroll-x {
  overflow-x: auto;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
}

th {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ controls --- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: clamp(30px, 3.6vw, 42px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.24s var(--ease);
}

.button:hover {
  opacity: 0.88;
  text-decoration: none;
}

.spin {
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

.button--quiet {
  background: #e5e5ea;
  color: var(--ink);
  border-color: transparent;
}

.button[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ------------------------------------------------------------- surfaces --- */

.card {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--surface);
}

.well {
  margin-top: 16px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 12px;
  background: var(--surface);
}

.well p.flush {
  margin: 0;
}

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

.hero {
  border-top: 0;
  padding-top: clamp(64px, 12vw, 148px);
  padding-bottom: clamp(56px, 9vw, 104px);
  text-align: center;
}

.hero h1 {
  max-width: 15ch;
  margin-inline: auto;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 52ch;
  margin-inline: auto;
  margin-top: clamp(22px, 2.8vw, 32px);
}

.hero .actions {
  justify-content: center;
}

/* --------------------------------------------------------------- stage --- */

.stage {
  margin-top: clamp(44px, 5.5vw, 80px);
  padding: clamp(40px, 5.5vw, 84px) clamp(24px, 5vw, 68px) clamp(36px, 4.5vw, 68px);
  border-radius: clamp(16px, 2vw, 26px);
  border: 1px solid transparent;
  background: var(--stage);
  color: var(--stage-ink);
  overflow: clip;
}

/* The stage sits inside the centred hero and inherits its axis, so the copy
   block centres on the stage rather than hanging off its left edge. */
.stage-copy {
  max-width: 54ch;
  margin-inline: auto;
}

.stage h2,
.stage h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  letter-spacing: -0.032em;
}

.stage p {
  margin-top: 18px;
  font-size: var(--step-lead);
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--stage-ink-2);
}

/* The tracked caption is a label and stays one; the sentence beside it stays a
   sentence. This is the only uppercase on the site. */
.stage .status,
.status {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stage-accent);
}

.stage a:not(.button) {
  color: var(--stage-accent);
}

.stage .button {
  background: #1c1c1e;
  color: #ffffff;
}

.stage :focus-visible {
  outline-color: var(--stage-accent);
}

/* ------------------------------------------------------------- feature ---
   A statement and the screen that proves it. Two columns on wide screens,
   stacked on narrow ones; the phone leads on alternate rows for rhythm. */

.feature {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(44px, 5.5vw, 80px);
}

.feature + .feature {
  margin-top: clamp(64px, 8vw, 116px);
  padding-top: clamp(64px, 8vw, 116px);
  border-top: 1px solid var(--hair);
}

.feature h3 {
  max-width: 16ch;
}

.feature p {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--ink-2);
}

.feature .detail {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 0.9375rem;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  }

  .feature--flip .feature-copy {
    order: 2;
  }
}

/* -------------------------------------------------------------- prices --- */

.plans {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 5vw, 72px);
}

.plans > div {
  display: grid;
  gap: 8px 48px;
  padding: clamp(24px, 2.8vw, 36px) 0;
  border-top: 1px solid var(--hair);
}

.plans > div:last-child {
  border-bottom: 1px solid var(--hair);
}

.plans dt {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.024em;
}

.plans dd {
  max-width: 56ch;
  margin: 0;
  color: var(--ink-2);
}

.plans .plus-list {
  margin: 10px 0 12px;
  padding-inline-start: 1.1em;
}

.plans .plus-list li + li {
  margin-top: 4px;
}

.plans .price {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

@media (min-width: 860px) {
  .plans > div {
    grid-template-columns: minmax(0, 24ch) minmax(0, 1fr);
    align-items: baseline;
  }
}

/* -------------------------------------------------------------- facts ---- */

.facts {
  display: grid;
  gap: 0;
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0;
  list-style: none;
}

.facts li {
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
  max-width: none;
}

.facts li:last-child {
  border-bottom: 1px solid var(--hair);
}

.facts strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.018em;
  margin-bottom: 4px;
}

@media (min-width: 860px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
  }

  .facts li:nth-child(2) {
    border-top: 1px solid var(--hair);
  }

  .facts li:nth-last-child(2) {
    border-bottom: 1px solid var(--hair);
  }
}

/* The slot real store screenshots land in once the app is finished. It is
   deliberately visible and labelled rather than a silent absence. */
.shotslot {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px dashed var(--hair-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--ink-2);
}

.shotslot .status {
  color: var(--ink-2);
}

.shotslot p {
  max-width: 52ch;
  margin: 10px auto 0;
}

/* ------------------------------------------------------ store badges ----- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.stores > li {
  margin: 0;
  max-width: none;
}

.badge {
  display: block;
  text-decoration: none;
}

.badge img {
  display: block;
  height: 48px;
  width: auto;
}

.badge[aria-disabled='true'] {
  opacity: 0.62;
  pointer-events: none;
}

/* --------------------------------------------------------- invite page --- */

.invite {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(60px, 8vw, 104px);
}

.invite h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.invite h2 {
  margin-top: clamp(36px, 4.4vw, 56px);
  font-size: clamp(1.3125rem, 2.3vw, 1.75rem);
  letter-spacing: -0.026em;
}

/* A shared plan puts an <h3> on every routine and every meal inside a day
   card. At the global display size those compete with the plan's own title, so
   they take the document's h3 instead. */
.invite h3 {
  margin-top: 22px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.invite .card > h3:first-child {
  margin-top: 0;
}

.invite p,
.invite ul {
  margin-top: 16px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.coach {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.coach__avatar,
.coach__initials {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--hair);
}

.coach__initials {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.coach__name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.18;
  color: var(--ink);
}

.coach__headline {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* The code is the load-bearing element on the invite page: every failure mode
   of deep linking degrades to a person typing these six characters. */
.code-block {
  text-align: center;
}

.code {
  display: block;
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: 0.14em;
  text-indent: 0.14em; /* offset the trailing letter-space to optically centre */
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 12px;
  overflow-wrap: anywhere;
}

.code-hint {
  margin: 0 auto 20px;
  max-width: 42ch;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.copy-status {
  display: block;
  min-height: 1.3em;
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* The desktop path. Hidden on touch and narrow screens by CSS rather than by a
   user-agent string: a phone photographing its own screen is absurd, a tablet
   beside a phone is not, and CSS gets that boundary right more often. */
.qr-block {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}

.qr {
  flex: none;
  width: 148px;
  height: 148px;
  border-radius: 7px;
}

@media (pointer: coarse), (max-width: 40rem) {
  .qr-block {
    display: none;
  }
}

.code-entry,
.auth-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.auth-form {
  flex-direction: column;
  align-items: stretch;
}

.code-entry label,
.auth-form label {
  flex: 1 0 100%;
  color: var(--ink-2);
}

.code-entry input,
.auth-form input {
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--elevated);
  border: 1px solid var(--hair-strong);
  border-radius: 7px;
}

.code-entry input {
  flex: 1 1 12rem;
  font-size: 1.375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.auth-form input {
  width: 100%;
}

/* The password rules on the set-a-password page: the app's four sign-up rules, ticked as they are met. */
.pw-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.pw-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-rules li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--hair-strong);
  border-radius: 50%;
}

.pw-rules li.is-met {
  color: var(--ink);
}

.pw-rules li.is-met::before {
  background: var(--ink);
  border-color: var(--ink);
}

.code-entry input::placeholder,
.auth-form input::placeholder {
  color: var(--ink-3);
}

/* Support page: the same field look for select and textarea, the FAQ
   disclosures, the honeypot and the send status. */
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--elevated);
  border: 1px solid var(--hair-strong);
  border-radius: 7px;
}

.auth-form textarea {
  resize: vertical;
}

.auth-form .hp {
  position: absolute;
  inset-inline-start: 0; opacity: 0; clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-form {
  max-width: 34rem;
  margin-top: 20px;
}

.support-status {
  margin: 0;
  min-height: 1.5em;
  color: var(--ink-2);
}

.support-status.is-error {
  color: var(--danger);
}
.field-error {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: var(--danger);
}

details.faq {
  border-top: 1px solid var(--hair);
  padding: 4px 0;
}

details.faq:last-of-type {
  border-bottom: 1px solid var(--hair);
}

details.faq > summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
}

details.faq[open] > summary {
  padding-bottom: 6px;
}

/* -------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--hair);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-footer .wrap {
  padding-top: clamp(38px, 4.5vw, 60px);
  padding-bottom: clamp(38px, 4.5vw, 60px);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
  max-width: none;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer p {
  max-width: 62ch;
}

/* ------------------------------------------------------- growth pages ---- */

/* /guess, the calorie battle: two food photos side by side, a draining timer, one tap per round. */
.battle-lead {
  color: var(--ink-2);
}

html:not(.js) .battle-hud,
html:not(.js) .battle-timer,
html:not(.js) .battle-arena,
html:not(.js) .battle-take,
html:not(.js) .battle-start {
  display: none;
}

.battle-hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 20px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.battle-hud strong {
  color: var(--ink);
  font-size: 1.5rem;
}

.battle-timer {
  height: 6px;
  margin-block: 10px 14px;
  border-radius: 3px;
  background: var(--fill);
  overflow: hidden;
}

.battle-timer span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
}

.battle-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.battle-vs {
  align-self: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.food {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 0 12px;
  border: 2px solid var(--hair);
  border-radius: 16px;
  background: var(--elevated);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease;
}

.food:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--hair-strong);
}

.food:disabled {
  cursor: default;
}

.food img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--fill);
}

.food-name {
  padding-inline: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.food-portion {
  padding-inline: 12px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.3;
}

.food-kcal {
  min-height: 1.6em;
  padding-inline: 12px;
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.food[data-result='more'] {
  border-color: var(--accent);
}

[data-state='wrong'] .food[data-result='more'] {
  border-color: var(--danger);
}

.battle-take {
  min-height: 3em;
  margin-block: 14px 8px;
  font-weight: 600;
  text-align: center;
}

[data-state='wrong'] .battle-take {
  color: var(--danger);
}

.battle-start {
  width: 100%;
}

.battle-start[hidden],
.battle-over[hidden] {
  display: none;
}

.battle-over {
  margin-block-start: 8px;
  text-align: center;
}

.battle-score {
  margin: 0;
}

.battle-score strong {
  display: block;
  font-size: clamp(4rem, 18vw, 7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.battle-tier {
  font-weight: 600;
}

.battle-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.battle-list ul,
.battle-credits ul {
  padding-inline-start: 1.2em;
}

/* Phones keep the two foods side by side: the whole duel fits on one screen. */
@media (max-width: 480px) {
  .battle-arena {
    gap: 6px;
  }

  .battle-vs {
    font-size: 0.8125rem;
  }

  .food {
    border-radius: 12px;
  }

  .food img {
    aspect-ratio: 1 / 1;
  }

  .food-name,
  .food-portion,
  .food-kcal {
    padding-inline: 8px;
  }

  .food-name {
    font-size: 0.9375rem;
  }

  .food-portion {
    font-size: 0.75rem;
  }

  .food-kcal {
    font-size: 1.125rem;
  }

  .battle-lead {
    font-size: 0.9375rem;
  }
}

.button.button-secondary {
  background: #e5e5ea;
  color: var(--ink);
}

.battle-credits {
  margin-block-start: 24px;
}

/* /guess on desktop (Founder 2026-10-08): a wide arena with big photos, centred heading and HUD. */
@media (min-width: 960px) {
  .invite:has(.battle) {
    max-width: 1040px;
  }
  .battle {
    text-align: center;
  }
  .battle-lead {
    margin-inline: auto;
  }
  .battle-hud {
    justify-content: center;
    gap: 32px;
  }
  .battle-arena {
    gap: 28px;
  }
  .battle-arena .food img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .battle-start {
    margin-inline: auto;
  }
  .invite:has(.battle) > .small,
  .invite:has(.battle) > h2,
  .invite:has(.battle) > .stores {
    text-align: center;
  }
}

.shot {
  display: block;
  width: 100%;
  height: auto;
}

.getapp {
  margin-top: clamp(48px, 6vw, 88px);
  text-align: center;
}

.getapp p {
  margin: 10px auto 0;
  color: var(--ink-2);
}

.getapp .stores,
.hero > .wrap > .stores {
  justify-content: center;
}


/* --------------------------------------------------- coaching list ------ */

.coach-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  max-width: 52ch;
}

.coach-list li {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
}

.coach-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* The coaching row carries a trio, so its visual gets the wider column. */
@media (min-width: 860px) {
  .feature--coach {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

/* ------------------------------------------------------- Zefro+ grid --- */

.plus {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--stage);
  color: var(--stage-ink);
}

.plus-head h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.plus-head .price {
  margin-top: 10px;
  color: var(--stage-accent);
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

.plus-grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(28px, 3.5vw, 44px);
  background: var(--stage-hair);
  border-radius: 18px;
  overflow: hidden;
}

.plus-grid section {
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--elevated);
}

.plus-grid h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plus-grid ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.plus-grid li {
  padding: 9px 0;
  border-top: 1px solid var(--stage-hair);
  color: var(--stage-ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.plus-grid li span {
  display: block;
  margin-top: 2px;
  color: var(--stage-accent);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--num);
  font-weight: 800;
}

@media (min-width: 700px) {
  .plus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .plus-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Language menu on every page (src/seo/site.js). */
.lang-menu, .nav-menu { position: relative; margin-inline-start: 8px; flex: none; }
.lang-menu summary, .nav-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }
.lang-menu summary::-webkit-details-marker, .nav-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary, .nav-menu summary:hover, .nav-menu[open] summary { color: var(--ink); }
.lang-menu ul, .nav-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 168px; background: var(--elevated); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(28, 28, 30, 0.35); z-index: 50; }
.lang-menu li + li, .nav-menu li + li { margin-top: 0 !important; }
.lang-menu a, .nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.lang-menu a:hover, .nav-menu a:hover { background: var(--fill); }
.nav-menu summary { min-width: 44px; justify-content: center; }
.lang-menu a[aria-current] { font-weight: 600; }
.site-header .wrap { gap: 16px; }
.site-header .nav { margin-inline-start: auto; }

/* 320px: the header row must fit the longest sign-in label (de) without sideways scroll. */
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .nav { gap: 8px; font-size: 0.8125rem; }
  .nav a.nav-signin { padding: 5px 8px; }
  .lang-menu, .nav-menu { margin-inline-start: 0; }
  .lang-menu summary, .nav-menu summary { padding: 0 2px; gap: 4px; }
}

/* ------------------------------------------------ coach page (C15.02/03) --- */
.cp-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 20px; background: var(--fill); }
.cp-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-tags li { padding: 4px 12px; border: 1px solid var(--hair-strong); border-radius: 999px; font-size: 0.9375rem; color: var(--ink-2); }
.cp-section { margin-top: clamp(28px, 4vw, 44px); padding-top: 4px; border-top: 1px solid var(--hair); }
.cp-list { margin-top: 12px; }
.cp-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.cp-list dt { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.cp-list dd { margin: 0; color: var(--ink-2); }
.cp-powered { margin: 32px 0 0; text-align: center; }
.cp-powered a { color: inherit; }
.cp-quote { margin: 20px 0 0; }
.cp-quote blockquote { margin: 0; font-size: 1.125rem; color: var(--ink); overflow-wrap: anywhere; }
.cp-quote figcaption { margin-top: 6px; color: var(--ink-3); font-size: 0.9375rem; }
.cp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cp-ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--fill); }
.cp-form { margin-top: 16px; display: grid; gap: 16px; }
.cp-field { display: grid; gap: 6px; }
.cp-field label { font-weight: 600; color: var(--ink); }
.cp-field input, .cp-field textarea, .cp-field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--elevated);
  border: 1px solid var(--hair-strong); border-radius: 10px; padding: 12px 14px; min-height: 44px;
}
.cp-field input:focus-visible, .cp-field textarea:focus-visible, .cp-field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cp-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.cp-check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.cp-hp { position: absolute; inset-inline-start: 0; opacity: 0; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.cp-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cp-slot {
  font: inherit; min-height: 44px; padding: 8px 16px; color: var(--ink); background: var(--elevated);
  border: 1px solid var(--hair-strong); border-radius: 10px; cursor: pointer;
}
.cp-slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cp form [hidden] { display: none; }

/* A heading that follows a paragraph, list or table in a reading column gets air above it. */
main > .wrap :is(p, ul, ol, table) + h2 {
  margin-top: clamp(32px, 4vw, 44px);
}

main > .wrap :is(p, ul, ol, table) + h3 {
  margin-top: clamp(24px, 3vw, 32px);
}

/* An email address is always typed left to right, even on a right-to-left page. */
input[type="email"] {
  direction: ltr;
  text-align: start;
}

/* ------------------------------------------- legal pages: contents, print --- */

.toc {
  margin: 20px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--hair);
  border-radius: 12px;
}

.toc-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 280px;
  column-gap: 32px;
}

.toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}

section[id] {
  scroll-margin-top: 80px;
}

/* Printing a legal page: plain black on white, no chrome, link addresses spelled out. */
@media print {
  :root {
    color-scheme: light;
  }

  html,
  body {
    background: #fff !important;
    color: #1c1c1e !important;
  }

  body * {
    color: #1c1c1e !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .toc,
  .nav,
  form,
  .button {
    display: none !important;
  }

  main a {
    text-decoration: underline;
  }

  main a[href^='http']::after,
  main a[href^='mailto:']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
  }

  main a[href^='mailto:']::after {
    content: '';
  }

  section {
    break-inside: avoid-page;
  }

  h1,
  h2 {
    break-after: avoid;
  }

  details.faq > :not(summary) {
    display: block;
  }
}

/* FAQ questions are real headings (h3) inside the summary, drawn like the summary text. */
details.faq > summary > h3 {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

/* ------------------------------------------------- the phone mockup --- */

/* The one phone mockup on every page: an iPhone drawn in CSS with a graphite frame, black
   bezel, the screen at 9:19.5, the Dynamic Island over the capture's own status bar (the
   images in /home/screens/ carry it), and the side buttons. --w is the frame width. */
.iphone {
  --w: 300px;
  /* The phone never outgrows the window: at most 78% of the height below the header. */
  --wc: min(var(--w), calc((100svh - 52px) * 0.78 / 2.11));
  position: relative;
  flex: none;
  width: var(--wc);
  margin: 0;
  padding: calc(var(--wc) * 0.03);
  border-radius: calc(var(--wc) * 0.168);
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 calc(var(--wc) * 0.004) #48484a,
    inset 0 0 0 calc(var(--wc) * 0.009) #1c1c1e,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 3px rgba(0, 0, 0, 0.06),
    0 calc(var(--wc) * 0.06) calc(var(--wc) * 0.12) calc(var(--wc) * -0.04) rgba(0, 0, 0, 0.22),
    0 calc(var(--wc) * 0.2) calc(var(--wc) * 0.3) calc(var(--wc) * -0.16) rgba(0, 0, 0, 0.2);
}

/* Side buttons: action and two volume keys on the left, the side key on the right. */
.iphone::before,
.iphone::after {
  content: '';
  position: absolute;
  width: calc(var(--wc) * 0.012);
  border-radius: calc(var(--wc) * 0.006);
  background: #2c2c2e;
}

.iphone::before {
  left: calc(var(--wc) * -0.009);
  top: 17.5%;
  height: 3.6%;
  box-shadow:
    0 calc(var(--wc) * 0.155) 0 #2c2c2e,
    0 calc(var(--wc) * 0.29) 0 #2c2c2e;
}

.iphone::after {
  right: calc(var(--wc) * -0.009);
  top: 26%;
  height: 9.5%;
}

.iphone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--wc) * 0.14);
  background: #ece9e3;
  isolation: isolate;
}

.iphone-screen::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: calc(var(--wc) * 0.026);
  left: 50%;
  width: calc(var(--wc) * 0.3);
  height: calc(var(--wc) * 0.088);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.iphone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}


/* ------------------------------------------------------- scroll reveal ---
   /reveal.js adds `rv` to <html> and `data-rv` to the elements below the first
   screen. Without the script nothing here applies and everything is visible. */

.rv [data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-delay, 0ms);
}

.rv [data-rv].rv-in {
  opacity: 1;
  transform: none;
}

.rv [data-rv].rv-done {
  transition: none;
}

/* The first screen: one gentle fade-in on load, nothing else. The home hero shows at once. */
@media (prefers-reduced-motion: no-preference) {
  .site .hero:not(.hero--home) {
    animation: hero-in 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes hero-in {
    from {
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce), print {
  .rv [data-rv] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
