/* The inner pages (Support, Privacy, Terms, the beta page, 404 and shared
   workouts), Nov 1, 2026. Jake: the footer links "bring me back to the old
   website", so these pages now share the home page's design: the same
   header and footer, the same six colors, Clash Display headings over IBM
   Plex Mono, cards lifted off the dark tread plate. The warm light
   stylesheet these replaced is in backup-2026-11-01-light/site.css.

   Colors, as on the home page:
     #07080A background   #15181D cards, nav, footer   #232830 borders
     #3DF2A0 buttons, links in use, focus   #F2F4F3 text   #9AA3AD secondary
   The four app colors (Gym, Food, Hub, Memos) mark the support topics only. */

@font-face { font-family: 'Clash Display'; src: url('/assets/fonts/clash-display-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #07080A;
  --panel: #15181D;
  --line: #232830;
  --accent: #3DF2A0;
  --text: #F2F4F3;
  --muted: #9AA3AD;
  --heading: 'Clash Display', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 24px;
  --nav-h: 72px;
  --rim: rgba(242, 244, 243, 0.1);
  --card: linear-gradient(180deg, rgba(242, 244, 243, 0.035), rgba(242, 244, 243, 0) 45%), var(--panel);
  --lift: inset 0 1px 0 rgba(242, 244, 243, 0.09), 0 2px 6px rgba(0, 0, 0, 0.55), 0 32px 80px rgba(0, 0, 0, 0.7);
  --field: rgba(7, 8, 10, 0.6);
  --gym: #FF6B4A;
  --food: #22B364;
  --hub: #7C8CFF;
  --memos: #9B5CF6;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--bg); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; font: 400 16px/1.75 var(--mono); background: var(--bg); color: var(--text); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* The same tread plate as the home page: it scrolls with the content. */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cdefs%3E%3Cpath id='u' d='M-15 0C-7-4.2 7-4.2 15 0Z'/%3E%3Cpath id='d' d='M-15 0C-7 4.2 7 4.2 15 0Z'/%3E%3Cpath id='a' d='M-15 0C-7-4.2 7-4.2 15 0C7 4.2-7 4.2-15 0Z'/%3E%3ClinearGradient id='gu' gradientUnits='userSpaceOnUse' x1='0' y1='-3' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%2316191E'/%3E%3Cstop offset='1' stop-color='%23262A31'/%3E%3C/linearGradient%3E%3ClinearGradient id='gd' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='3'%3E%3Cstop offset='0' stop-color='%230C0D10'/%3E%3Cstop offset='1' stop-color='%23050607'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='0.9'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url%28%23f%29'%3E%3Cuse href='%23a' transform='translate%28-30.0 -28.3%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-30.0 -30.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%28-30.0 11.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-30.0 10.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%28-30.0 51.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-30.0 50.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2810.0 -28.3%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2810.0 -30.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2810.0 11.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2810.0 10.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2810.0 51.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2810.0 50.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2850.0 -28.3%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2850.0 -30.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2850.0 11.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2850.0 10.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2850.0 51.7%29 rotate%2845%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2850.0 50.0%29 rotate%2845%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%28-10.0 -8.3%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-10.0 -10.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%28-10.0 31.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-10.0 30.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%28-10.0 71.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%28-10.0 70.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2830.0 -8.3%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2830.0 -10.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2830.0 31.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2830.0 30.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2830.0 71.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2830.0 70.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2870.0 -8.3%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2870.0 -10.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2870.0 31.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2870.0 30.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3Cuse href='%23a' transform='translate%2870.0 71.7%29 rotate%28-45%29' fill='black' fill-opacity='0.75'/%3E%3Cg transform='translate%2870.0 70.0%29 rotate%28-45%29'%3E%3Cuse href='%23u' fill='url%28%23gu%29'/%3E%3Cuse href='%23d' fill='url%28%23gd%29'/%3E%3Cpath d='M-13 0L13 0' stroke='white' stroke-opacity='0.13' stroke-width='0.7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009375' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.96 0 0 0 0 0.95 0.16 0 0 0 -0.05'/%3E%3C/filter%3E%3Crect width='640' height='640' filter='url%28%23n%29'/%3E%3C/svg%3E") 0 0 / 640px 640px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.96 0 0 0 0 0.95 0.26 0 0 0 -0.1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px 220px,
    var(--bg);
}
main, .foot { position: relative; z-index: 1; }
.surface { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(7, 8, 10, 0) 55%, rgba(0, 0, 0, 0.6) 100%); }
/* Plain black under the heading, the plate in the middle, and the footer's
   own color at the bottom, so neither end has a line (as on the home page). */
/* main grows, so a short page (404, a shared workout) still ends with the footer at the bottom. */
main { display: block; flex: 1 0 auto; background: linear-gradient(180deg, var(--bg) 0, var(--bg) 140px, rgba(7, 8, 10, 0) 440px, rgba(21, 24, 29, 0) calc(100% - 220px), var(--panel) 100%); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
input, textarea, select { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }
.skip { position: absolute; left: var(--gutter); top: -100px; padding: 12px 16px; background: var(--accent); color: var(--bg); border-radius: 12px; font-weight: 600; text-decoration: none; z-index: 20; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nojs-note { display: none; }
.no-js .nojs-note { display: block; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--rim); color: var(--muted); font-size: 15px; }
.no-js .beta-form, .no-js #contact-form { display: none; }
.lede { margin-top: 24px; max-width: 60ch; font-size: 17px; line-height: 1.75; color: var(--muted); }

/* ---------- Header and footer: the home page's ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(21, 24, 29, 0.84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--heading); font-size: 22px; letter-spacing: 0.02em; }
.logo { width: 30px; height: 30px; }
.nav nav ul { display: flex; gap: 32px; list-style: none; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 10px 0; }
.nav nav a:hover { color: var(--text); }
.foot { background: var(--panel); padding: 40px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; gap: 32px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 16px 28px; border: 0; border-radius: 14px; background: var(--accent); color: var(--bg); font: 600 16px/1.2 var(--mono); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 12px 32px rgba(61, 242, 160, 0.22); transition: transform 0.15s ease, box-shadow 0.15s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(61, 242, 160, 0.3); }
.btn:active { transform: none; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--rim); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px rgba(242, 244, 243, 0.24); }
.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }

/* Cards: the home page's, lifted off the plate. */
.contact-card, .beta-fields, .beta-done, .nf-links a, .workout-list li, .toc, .prose .table-wrap, .dialog-card { background: var(--card); border: 1px solid var(--rim); box-shadow: var(--lift); }

/* ---------- Page headings ---------- */
.s-hero, .b-hero, .simple-hero, .legal-hero { padding-block: 120px 56px; }
.s-hero h1, .simple-hero h1, .b-hero h1, .legal-hero h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1.05; }

/* ---------- Support ---------- */
.search { display: flex; align-items: center; gap: 12px; max-width: 640px; height: 58px; margin-top: 40px; padding: 0 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--rim); color: var(--muted); font-size: 18px; transition: border-color 0.15s ease; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 400 16px/1 var(--mono); outline: none; }
.search input::placeholder { color: var(--muted); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; list-style: none; }
.topic-chips a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--rim); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.15s ease; }
.topic-chips a:hover { border-color: rgba(242, 244, 243, 0.24); }
.topic-chips .i { color: var(--c, var(--muted)); }
.s-body { padding-bottom: 120px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 72px; align-items: start; }
.faq-group { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.faq-group h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 28px; }
.fg-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, var(--panel)); color: var(--c); font-size: 20px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 16px; font-weight: 600; line-height: 1.45; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 14px; height: 14px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--muted); transition: transform 0.25s ease, background-color 0.15s ease; }
.pm::after { transform: rotate(90deg); }
.faq[open] .pm::after { transform: rotate(0deg); }
.faq summary:hover .pm::before, .faq summary:hover .pm::after { background: var(--text); }
.faq .a { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }
.faq .a p + p { margin-top: 12px; }
.faq .a a, .faq .a b { color: var(--text); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq[open]::details-content { height: auto; }
}
.faq-empty { color: var(--muted); }
.contact-card { position: sticky; top: calc(var(--nav-h) + 24px); padding: 34px; border-radius: var(--radius); scroll-margin-top: calc(var(--nav-h) + 24px); }
.contact-card h2 { font-size: 28px; }
.contact-card > .muted { margin-top: 12px; font-size: 15px; }
.contact-card .muted a, .fine a { color: var(--text); }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hint { color: var(--muted); font-weight: 400; opacity: 0.8; }
.field input, .field textarea, .field select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font: 400 15px/1.4 var(--mono); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field textarea { height: 150px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 242, 160, 0.16); }
.field ::placeholder { color: var(--muted); opacity: 0.7; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: var(--panel); color: var(--text); }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#contact-form .btn { margin-top: 22px; }
.fine { margin-top: 8px; font-size: 13px; color: var(--muted); }
.form-msg { min-height: 1.4em; margin: 10px 6px 0; font-size: 14px; color: var(--muted); }
.form-msg.err { color: var(--gym); }
.sent { display: none; outline: none; }
.contact-card.done form, .contact-card.done > .muted { display: none; }
.contact-card.done .sent { display: block; margin-top: 18px; animation: rise 0.5s ease both; }
.sent h3 { font-size: 24px; }
.sent p { margin: 8px 0 20px; }
.done-tick { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 22px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Beta form and dialog ---------- */
.beta-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; border-radius: 20px; }
.beta-fields:focus-within { border-color: var(--accent); }
.field-email { grid-column: 1 / -1; display: flex; border-bottom: 1px solid var(--line); }
.field-email input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 400 16px/1 var(--mono); outline: none; }
.field-email input::placeholder { color: var(--muted); }
.platform { justify-self: start; display: flex; gap: 2px; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: var(--field); }
.platform label { position: relative; display: flex; }
.platform input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.platform span { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.platform input:checked + span { background: var(--line); color: var(--text); }
.platform input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.beta-fields .btn { justify-self: end; padding-block: 14px; }
.beta-fine { margin: 4px 6px 0; font-size: 13px; color: var(--muted); }
.beta-fine a { color: var(--text); }
.beta-done { display: none; padding: 26px; border-radius: 20px; }
.done > form { display: none; }
.done > .beta-done { display: block; animation: rise 0.5s ease both; outline: none; }
.beta-done h3 { font-size: 23px; }
.beta-done p { margin-top: 6px; color: var(--muted); }
.beta-done b { color: var(--text); }
.beta-dialog { width: min(540px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.beta-dialog::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-card { position: relative; padding: 32px; border-radius: var(--radius); }
.beta-dialog[open] .dialog-card { animation: pop 0.28s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.beta-dialog h2 { font-size: 30px; padding-right: 40px; }
.dialog-lede { margin: 12px 0 22px; color: var(--muted); }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--line); color: var(--text); cursor: pointer; }
.dialog-close:hover { background: rgba(242, 244, 243, 0.16); }

/* ---------- Beta page, 404, shared workout ---------- */
.b-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 80px; align-items: center; }
.b-hero .lede { margin-bottom: 36px; }
.b-facts { display: grid; gap: 16px; margin-top: 40px; list-style: none; color: var(--muted); }
.b-facts li { display: flex; gap: 14px; }
.b-facts .i { margin-top: 0.3em; font-size: 18px; color: var(--text); }
.b-facts b { color: var(--text); }
.b-phone { justify-self: center; width: min(100%, 320px); }
/* A real screenshot in the home page's phone frame. */
.shot-phone { margin: 0; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 44px; box-shadow: inset 0 1px 0 rgba(242, 244, 243, 0.1), 0 40px 90px rgba(0, 0, 0, 0.6); }
.shot-phone img { width: 100%; height: auto; border-radius: 34px; }
.simple-hero .lede { margin-bottom: 36px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; list-style: none; }
.nf-links a { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px; border-radius: 16px; font-weight: 500; text-decoration: none; }
.nf-links .i { color: var(--c, var(--muted)); font-size: 20px; }
.workout-list { display: grid; gap: 10px; max-width: 720px; margin: 32px 0; list-style: none; }
.workout-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; }
.workout-list .muted { margin-left: 6px; }

/* ---------- Privacy and Terms ---------- */
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.legal-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; text-decoration: none; }
.legal-meta a:hover { color: var(--accent); }
.legal-body { padding-bottom: 120px; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 80px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100svh - var(--nav-h) - 48px); overflow-y: auto; scrollbar-width: thin; padding: 18px 12px; border-radius: 20px; }
.toc h2 { margin: 0 10px 12px; font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; text-decoration: none; transition: color 0.15s ease, background-color 0.15s ease; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent); background: rgba(61, 242, 160, 0.08); }
.prose { max-width: 74ch; color: var(--muted); font-size: 15px; }
.prose h2 { margin: 56px 0 16px; font-size: 28px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child, .draft-note + h2 { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-size: 20px; }
.prose p, .prose li { line-height: 1.8; }
.prose p + p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong, .prose a { color: var(--text); }
.prose .table-wrap { margin: 24px 0; border-radius: 16px; overflow-x: auto; }
.prose table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--text); font-weight: 600; background: rgba(242, 244, 243, 0.03); }
.ph { padding: 0 4px; border-radius: 4px; background: rgba(255, 196, 0, 0.16); color: #FFD466; }
.draft-note { margin-bottom: 28px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 196, 0, 0.08); border: 1px solid rgba(255, 196, 0, 0.3); color: var(--text); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 999px) {
  .support-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { position: static; }
}
@media (max-width: 899px) {
  .b-grid { grid-template-columns: 1fr; gap: 56px; }
  .b-phone { width: min(72vw, 300px); }
  .legal { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --nav-h: 104px; }
  .nav-in { flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; min-height: 0; }
  .nav nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav nav ul { gap: 24px; white-space: nowrap; }
  .nav nav a { font-size: 14px; }
  .s-hero, .b-hero, .simple-hero, .legal-hero { padding-block: 72px 40px; }
  .contact-card, .dialog-card { padding: 26px 22px; }
  .beta-fields { grid-template-columns: 1fr; }
  .platform { justify-self: stretch; }
  .platform label { flex: 1; }
  .platform span { flex: 1; justify-content: center; }
  .beta-fields .btn { width: 100%; }
  .shot-phone { border-radius: 32px; padding: 7px; }
  .shot-phone img { border-radius: 25px; }
  .beta-dialog { width: 100vw; max-height: 92svh; margin: auto 0 0; }
  .dialog-card { border-radius: 26px 26px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .beta-dialog[open] .dialog-card { animation: sheet-up 0.36s ease; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (max-width: 459px) { .two { grid-template-columns: 1fr; gap: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
