/* Workzenly home — black theme */
:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: #161616;
  --raised: #202020;
  --ink: #f2f2ef;
  --muted: #a6a6a2;
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(40px, 4.7vw, 78px);
  --fs-h2: clamp(32px, 3.4vw, 54px);
  --fs-statement: clamp(21px, 2vw, 30px);
  --fs-body: 17px;
  --fs-small: 14px;

  --margin: clamp(16px, 2vw, 32px);
  --gutter: 24px;
  --section: clamp(112px, 13vw, 200px);
  --radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
p { text-wrap: pretty; }

/* Links and buttons */
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  border-radius: 999px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background: #ecffc4; }
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--margin);
  background: var(--bg);
}
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.nav__links { display: flex; gap: 32px; font-size: 15px; }
.nav__links a { text-decoration-color: transparent; }
.nav .button { justify-self: end; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
  min-height: calc(100svh - 70px);
  padding: 40px var(--margin) 72px;
}
.hero__text { grid-column: 1 / span 6; }
.hero h1 { font-size: var(--fs-display); }
.hero__lead { margin-top: 36px; max-width: 34ch; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__actions .link { font-weight: 500; }
.hero__hint { margin-top: 56px; color: var(--muted); font-size: var(--fs-small); }
.hero__stage {
  grid-column: 7 / span 6;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 48px);
  display: grid; place-items: center;
  min-height: 600px;
}

/* ---------- Product fragments (data-ui: the app's own conventions) ---------- */
[data-ui].app {
  width: 100%; max-width: 520px;
  background: #0e0e0e;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 20px;
  font-size: 14px; line-height: 1.4;
}
[data-ui] .app__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
[data-ui] .app__brand { font-weight: 700; letter-spacing: -0.03em; font-size: 15px; }
[data-ui] .seg { display: inline-flex; background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 999px; padding: 3px; }
[data-ui] .seg__btn {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  color: #b4b4b4; font-size: 13px; font-weight: 500;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
[data-ui] .seg__btn[aria-pressed="true"] { background: var(--ink); color: #0b0b0b; }
[data-ui] .seg__btn:active { transform: scale(0.96); }
[data-ui] .app__view { animation: viewIn 320ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
[data-ui] .app__hello { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
[data-ui] .app__date { color: #a8a8a8; margin-top: 2px; margin-bottom: 18px; }

[data-ui] .clock { background: #171717; border: 1px solid #262626; border-radius: 10px; padding: 18px; }
[data-ui] .clock__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
[data-ui] .clock__label { color: #a8a8a8; font-size: 13px; }
[data-ui] .clock__time { font-variant-numeric: normal; min-width: 6.2ch; font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 4px; }
[data-ui] .clock__shift { color: #a8a8a8; font-size: 13px; }
[data-ui] .clock__btn {
  flex: none; border: 0; cursor: pointer; border-radius: 999px;
  min-height: 44px; padding: 0 20px; font-weight: 600; font-size: 14px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
}
[data-ui] .clock__btn:active { transform: scale(0.95); }
[data-ui] .clock__btn[aria-pressed="true"] { background: #2a2a2a; color: var(--ink); }
[data-ui] .clock__status { margin-top: 16px; padding-top: 14px; border-top: 1px solid #262626; color: #b4b4b4; font-size: 13px; }
[data-ui] .clock__status b { color: var(--accent); font-weight: 600; }

[data-ui] .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
[data-ui] .tile { background: #171717; border: 1px solid #262626; border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
[data-ui] .tile__k { color: #a8a8a8; font-size: 12px; }
[data-ui] .tile__v { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
[data-ui] .tile__v small { display: block; font-size: 12px; font-weight: 400; color: #a8a8a8; margin-top: 2px; }

[data-ui] .roster { width: 100%; border-collapse: collapse; font-size: 13px; }
[data-ui] .roster th { text-align: left; font-weight: 400; color: #949494; font-size: 12px; padding: 0 8px 8px 0; }
[data-ui] .roster td { padding: 10px 8px 10px 0; border-top: 1px solid #1f1f1f; white-space: nowrap; }
[data-ui] .roster td:first-child { font-weight: 500; }
[data-ui] .roster td:nth-child(2) { color: #b4b4b4; }
[data-ui] .roster .num { text-align: right; padding-right: 16px; }
[data-ui] .pill { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #222; color: #c4c4c4; }
[data-ui] .pill--ok { background: #222b14; color: var(--accent); }
[data-ui] .pill--warn { background: #2e2410; color: #f2c36b; }
[data-ui] .approve { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #171717; border: 1px solid #262626; border-radius: 10px; padding: 14px; }
[data-ui] .approve__k { color: #a8a8a8; font-size: 12px; }
[data-ui] .approve__v { font-weight: 600; }
[data-ui] .approve__btn {
  flex: none; border: 0; cursor: pointer; border-radius: 999px; min-height: 40px; padding: 0 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
}
[data-ui] .approve__btn:active { transform: scale(0.95); }
[data-ui] .approve__btn:disabled { background: #2a2a2a; color: #c4c4c4; cursor: default; }

/* Intro */
.intro { padding: var(--section) var(--margin) 0; }
.intro h2 { max-width: 16ch; }
.intro__lead { margin-top: 40px; font-size: var(--fs-statement); line-height: 1.3; max-width: 48ch; }
.intro__cols { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px var(--gutter); }
.intro__cols p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.intro__cols b { color: var(--ink); font-weight: 600; }

/* Features: command list */
.features { padding: var(--section) var(--margin) 0; }
.features__note { margin-top: 20px; color: var(--muted); }
[data-ui].cmd { margin-top: 48px; }
[data-ui] .cmd__input {
  width: min(100%, 860px); height: 72px; padding: 0 24px;
  background: var(--surface); border: 1px solid #262626; border-radius: 10px;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em;
  transition: border-color var(--t-hover) ease;
}
[data-ui] .cmd__input::placeholder { color: #8c8c8c; }
[data-ui] .cmd__input:focus { outline: none; border-color: var(--accent); }
[data-ui] .cmd__list { margin-top: 24px; }
[data-ui] .cmd__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px;
  padding: 10px 20px; margin: 0 -20px; border-radius: 10px; cursor: pointer;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) ease;
}
[data-ui] .cmd__name { font-size: clamp(30px, 4.3vw, 70px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; color: #8f8f8b; transition: color var(--t-ui) ease; }
[data-ui] .cmd__keys kbd {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  background: #1c1c1c; color: #b4b4b4; font: 600 16px var(--font);
}
[data-ui] .cmd__text { grid-column: 1 / -1; display: none; font-size: 17px; max-width: 60ch; padding: 4px 0 8px; }
[data-ui] .cmd__row[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
[data-ui] .cmd__row[aria-selected="true"] .cmd__name { color: var(--accent-ink); }
[data-ui] .cmd__row[aria-selected="true"] kbd { background: rgba(15, 15, 15, 0.12); color: var(--accent-ink); }
[data-ui] .cmd__row[aria-selected="true"] .cmd__text { display: block; animation: viewIn 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  [data-ui] .cmd__row:not([aria-selected="true"]):hover .cmd__name { color: var(--ink); }
}
[data-ui] .cmd__empty { margin-top: 24px; font-size: 20px; color: #b4b4b4; }

/* How it works: pinned request */
.how {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: var(--section) var(--margin) 0;
}
.how__steps { grid-column: 1 / span 5; }
.how__step { min-height: min(72vh, 720px); display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: opacity 400ms var(--ease-out); }
.how__step.is-active { opacity: 1; }
.how__line { font-size: clamp(26px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 16ch; }
.how__sub { margin-top: 16px; max-width: 38ch; }
.how__stage {
  grid-column: 7 / span 6; position: sticky; top: 14vh; align-self: start;
  height: 72vh; min-height: 520px; background: var(--surface); border-radius: var(--radius);
  display: grid; place-items: center; padding: 32px;
}
[data-ui].req {
  position: relative; width: 100%; max-width: 420px; min-height: 400px;
  background: #0e0e0e; border: 1px solid #262626; border-radius: 14px; font-size: 14px; line-height: 1.4;
}
[data-ui] .req__state {
  position: absolute; inset: 0; padding: 22px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 360ms var(--ease-out), transform 480ms var(--ease-out);
}
[data-ui].req[data-state="1"] [data-s="1"],
[data-ui].req[data-state="2"] [data-s="2"],
[data-ui].req[data-state="3"] [data-s="3"] { opacity: 1; transform: none; }
[data-ui] .req__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
[data-ui] .req__meta { color: #a8a8a8; margin-bottom: 18px; }
[data-ui] .req__field { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1f1f1f; }
[data-ui] .req__field:first-of-type { margin-top: 14px; }
[data-ui] .req__field span { color: #a8a8a8; }
[data-ui] .req__field b { font-weight: 500; text-align: right; }
[data-ui] .req__btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
[data-ui] .req__btn--ghost { background: #222; color: var(--ink); }
[data-ui] .req__row { display: flex; gap: 8px; }
[data-ui] .req__k { color: #949494; font-size: 12px; margin: 14px 0 6px; }
[data-ui] .req__away li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
[data-ui] .req__away em { margin-left: auto; font-style: normal; color: #a8a8a8; font-size: 13px; }
[data-ui] .dot { width: 8px; height: 8px; border-radius: 50%; background: #777; flex: none; }
[data-ui] .dot--ok { background: var(--accent); }
[data-ui] .req__table { width: 100%; border-collapse: collapse; margin-top: 4px; }
[data-ui] .req__table td { padding: 10px 0; border-bottom: 1px solid #1f1f1f; }
[data-ui] .req__table td.num { text-align: right; }
[data-ui] .req__table .is-new td { color: var(--accent); }
[data-ui] .req__total td { font-weight: 600; font-size: 16px; border-bottom: 0; }
[data-ui] .req__done { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #b4b4b4; }

/* Then: clocking on since 1940 */
.then {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px;
  padding: var(--section) var(--margin) 0; align-items: start;
}
.then__main { grid-column: 1 / span 7; }
.then__crop { overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 1300 / 994; }
.then__crop img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.then__text { grid-column: 9 / span 4; display: grid; gap: 24px; }
.then__text h2 { max-width: 10ch; margin-bottom: 8px; }
.then__small { margin-top: 16px; max-width: 280px; }
.then__small img { border-radius: var(--radius); aspect-ratio: 900 / 1300; object-fit: cover; object-position: center 20%; width: 100%; background: var(--surface); }

/* Workplaces */
.places { padding: var(--section) var(--margin) 0; }
.places__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter);
  align-items: start;
}
.place img { width: 100%; border-radius: var(--radius); object-fit: cover; background: var(--surface); }
.place figcaption { color: var(--muted); max-width: 44ch; }
.place figcaption b { color: var(--ink); font-weight: 600; }
.place--a { grid-column: 1 / span 7; }
.place--a img { aspect-ratio: 4 / 3; }
.place--b { grid-column: 8 / span 5; margin-top: 160px; }
.place--b img { aspect-ratio: 4 / 5; object-position: 40% center; }
.place--c { grid-column: 2 / span 5; }
.place--c img { aspect-ratio: 1 / 1; object-position: 30% center; }
.place--d {
  grid-column: 8 / span 5; align-self: center;
  background: var(--surface); border-radius: var(--radius); padding: 40px;
}
.place__big { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 20px; }

/* FAQ */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: var(--section) var(--margin) 0; align-items: start;
}
.faq__title { grid-column: 1 / span 4; position: sticky; top: 110px; font-size: clamp(40px, 4.4vw, 72px); }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 76px; padding: 20px 24px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 24px 26px; max-width: 54ch; font-size: 17px; }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]):hover { background: var(--raised); }
}

/* Start: first step already open */
.start {
  margin-top: var(--section);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center; min-height: 88svh;
  padding: 80px var(--margin);
  background: var(--surface);
}
.start__text { grid-column: 1 / span 5; align-self: end; }
.start__text h2 { font-size: clamp(52px, 6.6vw, 108px); line-height: 0.92; }
.start__text p { margin-top: 28px; max-width: 34ch; font-size: 19px; }
[data-ui].dialog {
  grid-column: 8 / span 4; width: 100%; max-width: 440px; justify-self: center;
  background: #0e0e0e; border: 1px solid #2a2a2a; border-radius: 14px; padding: 26px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  font-size: 14px;
}
[data-ui] .dialog__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
[data-ui] .dialog__label { display: block; color: #b4b4b4; font-size: 13px; margin: 14px 0 6px; }
[data-ui] .dialog__input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 8px;
  background: #181818; border: 1px solid #333; font-size: 16px;
  transition: border-color var(--t-hover) ease;
}
[data-ui] .dialog__input:focus { outline: none; border-color: var(--accent); }
[data-ui] .dialog__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #181818; border: 1px solid #333; border-radius: 8px; padding: 4px; }
[data-ui] .dialog__seg label { position: relative; cursor: pointer; }
[data-ui] .dialog__seg input { position: absolute; opacity: 0; inset: 0; }
[data-ui] .dialog__seg span { display: grid; place-items: center; min-height: 38px; border-radius: 6px; color: #b4b4b4; font-weight: 500; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
[data-ui] .dialog__seg input:checked + span { background: var(--ink); color: #0b0b0b; }
[data-ui] .dialog__seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-ui] .dialog__btn {
  width: 100%; margin-top: 22px; min-height: 50px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
[data-ui] .dialog__btn:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { [data-ui] .dialog__btn:hover { background: #ecffc4; } }
[data-ui] .dialog__note { margin-top: 12px; color: #a8a8a8; font-size: 13px; text-align: center; }

/* Footer: a row of tiles */
.foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
  padding: 8px var(--margin) 32px;
}
.foot__tile { background: var(--surface); border-radius: var(--radius); padding: 24px; min-height: 220px; }
.foot__statement { grid-column: 1 / span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.foot__statement p:first-child { font-size: 22px; line-height: 1.3; max-width: 32ch; }
.foot__legal { color: var(--muted); font-size: 15px; }
.foot__nav { grid-column: 6 / span 3; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.foot__nav .link, .foot__mail .link { text-decoration-color: transparent; }
.foot__mail { grid-column: 9 / span 4; display: flex; flex-direction: column; justify-content: space-between; }
.foot__mail p { color: var(--muted); }
.foot__mail .link { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }
.foot__word {
  grid-column: 1 / span 8; min-height: 320px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: clamp(56px, 10.4vw, 168px); font-weight: 700; letter-spacing: -0.06em; line-height: 1;
  overflow: hidden;
}
.foot__go {
  grid-column: 9 / span 4; min-height: 320px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  transition: background-color var(--t-hover) ease;
}
.foot__go svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .foot__go:hover { background: #ecffc4; }
  .foot__go:hover svg { transform: translate(4px, -4px); }
}
.foot__credits { grid-column: 1 / -1; margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 110ch; }
.foot__credits .link { color: var(--ink); text-decoration-color: rgba(242, 242, 239, 0.35); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .load { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.08; }
    @keyframes drift { from { transform: translateY(-3.5%); } to { transform: translateY(3.5%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .how__step, [data-ui] .req__state { transition: opacity 200ms ease; transform: none !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; row-gap: 56px; min-height: 0; padding-top: 48px; }
  .hero__text, .hero__stage { grid-column: 1 / -1; }
  .hero__stage { min-height: 0; }
  .hero__hint { margin-top: 28px; }
  .intro__cols { grid-template-columns: 1fr 1fr; }
  .then__main { grid-column: 1 / -1; }
  .then__text { grid-column: 1 / -1; max-width: 62ch; }
  .then__text h2 { max-width: none; }
  .then__small { max-width: 300px; }
  .faq__title { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .faq__list { grid-column: 1 / -1; }
  .start { grid-template-columns: 1fr; row-gap: 48px; }
  .start__text, [data-ui].dialog { grid-column: 1 / -1; }
  [data-ui].dialog { justify-self: start; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 104px; }
  .nav { grid-template-columns: 1fr auto; padding-block: 12px; }
  .nav__links { display: none; }
  .hero { padding-top: 32px; padding-bottom: 40px; row-gap: 40px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero__lead { margin-top: 24px; font-size: 18px; }
  .hero__actions { margin-top: 28px; }
  .hero__stage { padding: 12px; margin-inline: calc(var(--margin) * -0.5); }
  [data-ui].app { padding: 16px; }
  [data-ui] .clock__time { font-size: 38px; }
  [data-ui] .clock__top { flex-direction: column; }
  [data-ui] .clock__btn { width: 100%; }
  [data-ui] .tiles { grid-template-columns: 1fr 1fr; }
  [data-ui] .tiles .tile:last-child { grid-column: 1 / -1; }
  [data-ui] .roster th:nth-child(2), [data-ui] .roster td:nth-child(2) { display: none; }
  [data-ui] .approve { flex-direction: column; align-items: stretch; }
  [data-ui] .approve__btn { min-height: 44px; }

  .intro__lead { margin-top: 28px; font-size: 20px; }
  .intro__cols { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }

  [data-ui] .cmd__input { height: 56px; font-size: 20px; }
  [data-ui] .cmd__name { font-size: 8.4vw; }
  [data-ui] .cmd__keys { display: none; }
  [data-ui] .cmd__row { padding: 10px 14px; margin: 0 -14px; }
  [data-ui] .cmd__text { font-size: 16px; }

  .how { display: flex; flex-direction: column; }
  .how__steps { display: contents; }
  .how h2 { order: 0; margin-bottom: 24px; }
  .how__stage { order: 1; display: block; align-self: stretch; position: sticky; top: 64px; z-index: 2; height: auto; min-height: 0; padding: 10px; }
  [data-ui].req { width: 100%; min-height: 372px; max-width: none; }
  .how__step { order: 2; min-height: 52svh; justify-content: flex-start; padding-top: 28px; }
  .how__line { font-size: 24px; }
  .how__sub { font-size: 16px; }

  .then { row-gap: 32px; }
  .then__small { max-width: 70%; }

  .places__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .place--a, .place--b, .place--c, .place--d { grid-column: 1 / -1; margin-top: 0; }
  .place--b img { aspect-ratio: 4 / 3; }
  .place--c { width: 82%; justify-self: end; }
  .place--d { padding: 28px 24px; }

  .faq summary { font-size: 18px; min-height: 64px; padding: 18px 20px; }
  .faq details p { padding: 0 20px 22px; font-size: 16px; }

  .start { min-height: 84svh; padding-block: 64px; }
  .start__text { align-self: start; }
  .start__text h2 { font-size: 13vw; }
  .start__text p { font-size: 17px; }
  [data-ui].dialog { max-width: none; padding: 20px; }
  [data-ui] .dialog__btn { min-height: 52px; }

  .foot { grid-template-columns: 1fr 1fr; gap: 6px; }
  .foot__tile { min-height: 0; padding: 20px; }
  .foot__word { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 18vw; }
  .foot__go { grid-column: 1 / -1; order: -1; min-height: 160px; font-size: 24px; }
  .foot__nav { grid-column: 1; }
  .foot__mail { grid-column: 2; gap: 16px; }
  .foot__mail .link { font-size: 16px; overflow-wrap: anywhere; }
  .foot__statement { grid-column: 1 / -1; }
  .foot__statement p:first-child { font-size: 19px; }
}
