/* Workout Studio site. Palette from the app: graphite ink, teal for work, amber for rest; the icon's orange for the brand. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --orange: #ff8d28;
  --on-orange: #141416;
  --paper: #f2f2f7;
  --surface: #ffffff;
  --ink: #141416;
  --muted: #5e5e66;
  --line: #e3e3e8;
  --work: #08796e;
  --work-soft: rgba(8, 121, 110, 0.13);
  --rest: #a6500b;
  --rest-soft: rgba(166, 80, 11, 0.13);
  --watch: #0b0b0c;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --surface: #1c1c1e;
    --ink: #f2f2f7;
    --muted: #a1a1a8;
    --line: #38383a;
    --work: #5de0ce;
    --work-soft: rgba(93, 224, 206, 0.16);
    --rest: #ffb56b;
    --rest-soft: rgba(255, 181, 107, 0.16);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: 0.92em; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--work); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; }

/* Two languages in one page: the html lang decides which copy is shown. */
html[lang="it"] [lang="en"], html[lang="en"] [lang="it"] { display: none !important; }

.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Display type: the condensed black lettering of the app icon. */
.display { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.005em; margin: 0; }

/* ---------- Top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.langs { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; }
.langs button { appearance: none; border: 0; background: none; color: inherit; font: 600 13px/1 var(--body); letter-spacing: 0.06em; padding: 8px 12px; min-width: 44px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: currentColor; }
.langs button[aria-pressed="true"] span { color: var(--orange); }
.page .langs button[aria-pressed="true"] span { color: var(--paper); }

/* ---------- Hero ---------- */
.hero { background: var(--orange); color: var(--on-orange); padding-bottom: clamp(48px, 8vw, 96px); position: relative; overflow: hidden; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: clamp(24px, 5vw, 56px); }
.hero h1 { font-size: clamp(68px, 19vw, 196px); }
@media (min-width: 980px) { .hero h1 { font-size: clamp(120px, 12.5vw, 196px); } }
.hero-side { display: flex; flex-direction: column; gap: 22px; max-width: 470px; }
.hero-side p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.soon { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: var(--on-orange); color: var(--orange); border-radius: 999px; padding: 12px 20px 12px 16px; font-weight: 650; font-size: 16px; }
.soon svg { width: 18px; height: 18px; }
@media (min-width: 980px) {
  .hero-head { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: end; gap: 48px; }
  .hero-side { padding-bottom: 14px; }
}

/* ---------- The transformation: a written plan becomes steps on the wrist ---------- */
.stage { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; justify-items: center; }
.stage > * { min-width: 0; }
@media (min-width: 860px) { .stage { grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 0.8fr); gap: 36px; } }

.sheet { width: 100%; max-width: 560px; background: #fffdf8; color: #1b1b1d; border-radius: 6px; padding: 26px 26px 30px; font: 400 clamp(14px, 1.45vw, 17px)/1.5 var(--mono); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 50px -18px rgba(60, 25, 0, 0.45); transform: rotate(-1.4deg); position: relative; }
.sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 calc(1.5em - 1px), rgba(30, 60, 120, 0.09) calc(1.5em - 1px) 1.5em); background-position: 0 26px; border-radius: inherit; pointer-events: none; }
.sheet-title { font-weight: 500; letter-spacing: 0.04em; margin: 0 0 10px; }
.sheet ol { list-style: none; margin: 0; padding: 0; }
.sheet li { position: relative; padding: 2px 8px; margin: 0 -8px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .35s ease; }
.sheet li.reading { background: rgba(255, 141, 40, 0.16); }
.tk { border-radius: 4px; padding: 1px 3px; margin: 0 -3px; transition: background-color .3s ease, color .3s ease; }
.sheet li.read .tk-work, .sheet li.reading .tk-work { background: rgba(8, 121, 110, 0.16); color: #066258; }
.sheet li.read .tk-rest, .sheet li.reading .tk-rest { background: rgba(166, 80, 11, 0.15); color: #8a420a; }
.sheet-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; letter-spacing: 0.02em; color: #55555c; }
.sheet-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sheet-legend .lg-work::before { background: #08796e; }
.sheet-legend .lg-rest::before { background: #a6500b; }

.flow { width: 64px; height: 64px; display: grid; place-items: center; transform: rotate(90deg); }
.flow svg { width: 44px; height: 44px; }
@media (min-width: 860px) { .flow { transform: none; } }

/* The watch, drawn in CSS: what the Workout app shows for each step. */
.watch { position: relative; width: 224px; height: 268px; }
.watch-case { position: absolute; inset: 0; border-radius: 64px; background: linear-gradient(145deg, #3a3a3e, #121214 60%); padding: 12px; box-shadow: 0 28px 50px -20px rgba(40, 15, 0, 0.6); }
.watch-crown { position: absolute; right: -9px; top: 70px; width: 12px; height: 46px; border-radius: 5px; background: linear-gradient(90deg, #1c1c1e, #4a4a4e); }
.watch-button { position: absolute; right: -6px; top: 140px; width: 8px; height: 40px; border-radius: 4px; background: #2a2a2d; }
.screen { position: relative; height: 100%; border-radius: 52px; background: var(--watch); color: #fff; padding: 26px 22px 22px; display: flex; flex-direction: column; overflow: hidden; }
.screen-top { display: flex; justify-content: space-between; font: 600 13px/1 var(--body); color: rgba(255,255,255,.62); }
.screen-kind { font: 700 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 18px; color: #5de0ce; }
.screen.resting .screen-kind { color: #ffb56b; }
.screen-name { font: 650 21px/1.12 var(--body); margin-top: 6px; min-height: 2.24em; }
.screen-value { margin-top: auto; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 54px; line-height: 0.9; color: #5de0ce; font-variant-numeric: tabular-nums; }
.screen.resting .screen-value { color: #ffb56b; }
.screen-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); margin-top: 12px; overflow: hidden; }
.screen-bar i { display: block; height: 100%; width: 0; background: #5de0ce; border-radius: inherit; }
.screen.resting .screen-bar i { background: #ffb56b; }
.screen-swap { animation: swap .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section.band { padding: clamp(64px, 9vw, 120px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(52px, 8vw, 104px); margin-bottom: 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; margin: 0 0 clamp(32px, 5vw, 56px); }

/* What it reads without AI: the written line, then what the app makes of it. */
.reads { display: grid; gap: 12px; }
.read-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 28px; align-items: center; background: var(--surface); border-radius: 18px; padding: 18px 22px; }
@media (min-width: 820px) { .read-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.read-row code { font: 400 16px/1.45 var(--mono); overflow-wrap: anywhere; }
.read-row code .tk-work { background: var(--work-soft); color: var(--work); }
.read-row code .tk-rest { background: var(--rest-soft); color: var(--rest); }
.read-row p { margin: 0; color: var(--muted); font-size: 16px; }
.read-row p b { color: var(--ink); font-weight: 600; }
.note { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 720px; }

/* Three steps, in the order they happen in the app. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border-radius: 22px; padding: 26px 26px 30px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-stretch: 62%; font-weight: 850; font-size: 64px; line-height: 0.9; color: var(--orange); margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin: 0 0 8px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Screens: a rail that scrolls sideways on its own, never the page. */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.rail img { width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 26px; background: var(--surface); scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line); }

/* Privacy */
.privacy-band { background: var(--ink); color: var(--paper); }
.privacy-band .lede { color: inherit; opacity: .78; }
.privacy-band h2 span.o { color: var(--orange); }
.facts { display: grid; gap: 1px; background: rgba(127,127,127,.35); border-radius: 18px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--ink); padding: 22px 24px; font-size: 16.5px; }
.facts b { display: block; font-size: 18px; margin-bottom: 4px; }
.text-link { display: inline-block; margin-top: 28px; font-weight: 650; }

/* Requirements */
.needs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.needs li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .needs li { grid-template-columns: 260px 1fr; } }
.needs b { font-weight: 650; }
.needs span { color: var(--muted); }

/* Footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink); }

/* ---------- Text pages (privacy, support) ---------- */
.page .top { border-bottom: 1px solid var(--line); }
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(60px, 10vw, 128px); }
.page-head p { color: var(--muted); margin: 18px 0 0; }
.doc { max-width: 760px; padding-bottom: 80px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; font-weight: 650; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; font-weight: 650; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.summary { background: var(--surface); border-left: 4px solid var(--orange); border-radius: 6px 14px 14px 6px; padding: 18px 22px; font-size: 19px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; line-height: 1; color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; color: inherit; }
.contact { margin-top: 48px; background: var(--surface); border-radius: 22px; padding: 26px; }
.contact p { margin: 0 0 6px; }
.contact a { font-weight: 650; font-size: 20px; }

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