/* Hallmark · shape: Misura (una pagina che si legge come un rilievo: tre punti, un angolo, un dato per sezione) · genre: modern-minimal · theme: custom · job: book · idea: "OnlyFit misura l'angolo del ginocchio, dell'anca e della caviglia, e la pagina mostra quel dato prima di spiegarlo" · vibe: "grafite, volt, strumento di misura sportivo"
 * paper: #111418 graphite (brand kit) · accent: #C8FF2E volt (brand kit) · display: Manrope 800 (brand kit scheda stile, opzione A) · body: Manrope · hero: Stage, titolo a sinistra e il goniometro in tempo reale a destra · nav: edge-aligned, logo, quattro link, area atleti e prenota · footer: a mast, il logo grande sopra due colonne di fatti · imagery: the product built (goniometro, report, sensori) e una sola foto stand-in · signature: il goniometro che segue la pedalata e legge il ginocchio in gradi
 * axes: dark/grotesk-heavy/chromatic-volt · posture: volt as a solid fill on buttons, price chips and one band, retreating to hairlines elsewhere · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E, the tech section carries three exhibits; each was cut to one readout and one label so the section holds one idea per screen */
/* Hallmark · answered F7 · the inputs share one recipe on purpose: the questionnaire and the reserved area must read as one instrument */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/ui/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("/ui/fonts/manrope-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/ui/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/ui/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/ui/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"), url("/ui/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }

:root {
  /* brand kit: grafite #111418, volt #C8FF2E; the rest are tints of the graphite hue */
  --color-paper: #111418; --color-paper-2: #171B20; --color-paper-3: #1E2329; --color-deep: #0A0C0F;
  --color-ink: #EDF0E8; --color-ink-2: #C5CBC1; --color-muted: #98A0A8;
  --color-rule: #2B3139;
  --color-light: #EEF1E9; --color-light-2: #E1E6D9; --color-light-ink: #111418; --color-light-muted: #485059; --color-light-rule: #C3C9B9;
  --color-accent: #C8FF2E; --color-accent-ink: #111418; --color-focus: #C8FF2E; --color-focus-light: #111418;
  --color-error: #FF8A80; --color-error-light: #A8231B; --color-success: #8FE3A8; --color-success-light: #1F6B3A;
  --color-low: #7FB8FF; --color-high: #FFB86B;

  --font-display: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display: clamp(2.6rem, 4.4vw + 0.6rem, 5.25rem); --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
  --text-section: clamp(2.25rem, 2.6vw + 1rem, 3.75rem); --text-title: clamp(1.25rem, 0.75vw + 0.9rem, 1.625rem); --text-lead: clamp(1.125rem, 0.4vw + 1rem, 1.4rem);
  --text-figure: clamp(4rem, 8vw + 1rem, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1360px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --radius-card: 6px; --radius-pill: 999px; --radius-control: 8px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.025em;

  /* semantic layer: sections swap these, components read them */
  --c-bg: var(--color-paper); --c-bg-2: var(--color-paper-2); --c-bg-3: var(--color-paper-3);
  --c-fg: var(--color-ink); --c-fg-2: var(--color-ink-2); --c-muted: var(--color-muted); --c-rule: var(--color-rule);
  --c-focus: var(--color-focus); --c-error: var(--color-error); --c-success: var(--color-success);
}
.tone-light {
  --c-bg: var(--color-light); --c-bg-2: var(--color-light-2); --c-bg-3: var(--color-light-2);
  --c-fg: var(--color-light-ink); --c-fg-2: var(--color-light-ink); --c-muted: var(--color-light-muted); --c-rule: var(--color-light-rule);
  --c-focus: var(--color-focus-light); --c-error: var(--color-error-light); --c-success: var(--color-success-light);
}
.tone-deep { --c-bg: var(--color-deep); --c-bg-2: var(--color-paper); --c-bg-3: var(--color-paper-2); }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong, th { font-weight: 600; }
p:not([class]) { max-width: 62ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* buttons: one primary style (volt fill), one quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-control); border: 1px solid var(--c-rule); background: transparent; color: var(--c-fg); font-weight: 600; font-size: var(--text-md); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--c-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary, .btn.acc { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-primary:hover, .btn.acc:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn-danger { border-color: var(--c-error); color: var(--c-error); }
.btn-danger:hover { background: var(--c-error); color: var(--color-paper); border-color: var(--c-error); }
.btn-sm { min-height: 44px; padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); }

/* form controls shared by the site questionnaire and the reserved area */
.field { display: grid; gap: var(--space-xs); }
.field > label, .field > .label, legend.label { font-size: var(--text-sm); font-weight: 600; color: var(--c-fg-2); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control); border: 1px solid var(--c-muted); background: var(--c-bg-2); color: var(--c-fg); transition: border-color var(--dur-short) var(--ease-out); }
input:hover, select:hover, textarea:hover { border-color: var(--c-fg-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }
::placeholder { color: var(--c-muted); opacity: 1; }
.err { color: var(--c-error); font-size: var(--text-sm); }
.ok { color: var(--c-success); font-size: var(--text-sm); }

@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
