/* Intra · intra.training coming-soon page.
   Built from the design handoff's Website.dc.html (update 9, revised) and
   its Website Routine Preview: colours, type and spacing are the design's
   own values. Light by default; html[data-theme="dark"] swaps every token
   (theme.js sets it from the footer's Light / Dark / System menu). */

:root {
  /* The page */
  --bg: #FAFAFA;
  --ink: #111112;
  --line: #EDEDF0;
  --dot: #DCDCE0;
  --sub: #55555C;
  --sub2: #3A3A3E;
  --muted: #6C6C70;
  --card: #FFFFFF;
  --card-line: #E4E4E7;
  --card-line-hover: #C7C7CC;
  --underline: #C7C7CC;
  --btn: #111112;
  --btn-ink: #FFFFFF;
  --btn-hover: #2E2E33;
  --field-line: #DCDCE0;
  --link: #0A5CFF;
  --link-hover: #0848C8;
  --phone-shadow: rgba(17, 17, 18, .35);
  --tab-hover: #D8D8DC;

  /* The chat phones: iOS Messages, light */
  --chat-bg: #FFFFFF;
  --chat-bar: #F9F9F9;
  --chat-line: #E5E5EA;
  --chat-avatar: #D1D1D6;
  --chat-ink: #000000;
  --chat-ring: rgba(0, 0, 0, .4);
  --chat-bubble: #E9E9EB;
  --chat-card: #FFFFFF;
  --chat-card-press: #F2F2F7;
  --chat-sub: #6C6C70;
  --chat-chev: #C7C7CC;
  --chat-field: #FFFFFF;
  --chat-field-line: #D1D1D6;

  /* Intra's screen in the hero phone, light */
  --pv-bg: #FFFFFF;
  --pv-card: #F2F2F7;
  --pv-chip: #E5E5EA;
  --pv-hair: #D6D6DC;
  --pv-bar: #F7F7FA;
  --pv-text: #111112;
  --pv-sub: #55555C;
  --pv-body: #3A3A3E;
  --pv-accent: #0A63CC;
  --pv-on-accent: #FFFFFF;
  --pv-ring: rgba(17, 17, 18, .4);
  --pv-drop-bg: rgba(110, 70, 200, .11);
  --pv-drop-fg: #5B3AA8;
  --pv-fail-bg: rgba(179, 38, 30, .1);
  --pv-fail-fg: #B3261E;

  --brand: #0A5CFF;
  --danger: #D93025;
  --gutter: clamp(20px, 5vw, 64px);
  --font: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0E0F11;
  --ink: #FFFFFF;
  --line: #1F2125;
  --dot: #24262B;
  --sub: #9EA1A6;
  --sub2: #B4B7BC;
  --muted: #8A8D93;
  --card: #17181B;
  --card-line: #2A2C31;
  --card-line-hover: #3A3D46;
  --underline: #4A4D55;
  --btn: #FFFFFF;
  --btn-ink: #0E0F11;
  --btn-hover: #E6E7E9;
  --field-line: #2A2C31;
  --link: #7EB2F7;
  --link-hover: #A6CBFB;
  --phone-shadow: rgba(10, 92, 255, .5);
  --tab-hover: #1F2125;

  --chat-bg: #000000;
  --chat-bar: #121214;
  --chat-line: #2C2C2E;
  --chat-avatar: #3A3A3C;
  --chat-ink: #FFFFFF;
  --chat-ring: rgba(255, 255, 255, .5);
  --chat-bubble: #26262A;
  --chat-card: #1C1C1E;
  --chat-card-press: #2C2C2E;
  --chat-sub: #98989F;
  --chat-chev: #48484A;
  --chat-field: #1C1C1E;
  --chat-field-line: #2C2C2E;

  --pv-bg: #17181B;
  --pv-card: #22242A;
  --pv-chip: #2E3038;
  --pv-hair: #33353C;
  --pv-bar: #1C1E23;
  --pv-text: #FFFFFF;
  --pv-sub: #9EA1A6;
  --pv-body: #D8DADD;
  --pv-accent: #7EB2F7;
  --pv-on-accent: #0A1B2E;
  --pv-ring: rgba(255, 255, 255, .5);
  --pv-drop-bg: rgba(178, 148, 240, .15);
  --pv-drop-fg: #C3AEF5;
  --pv-fail-bg: rgba(242, 139, 130, .14);
  --pv-fail-fg: #F28B82;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Clip, not hidden: hidden would make the page its own scroll box, and
   the legal pages' sticky contents would stop following the window. */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon { display: block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Lockup: the icon, INTRA, and "training" with its "ai" in italic ---- */

.lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lockup-icon { flex: none; display: block; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); }
.lockup-words { display: flex; align-items: baseline; gap: 6px; line-height: 1; font-size: 22px; letter-spacing: -.01em; }
.lockup-name { font-style: italic; font-weight: 900; }
.lockup-sub { font-weight: 500; color: var(--sub); }

/* ---- Header ---- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

/* ---- Hero ---- */

.hero {
  flex: 1;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: center;
  gap: clamp(40px, 4vw, 56px);
  padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(32px, 4vw, 48px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* A faint dot grid behind the hero, fading out toward the bottom. The fade
   is on this layer alone, never on the content. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.pitch { display: flex; flex-direction: column; max-width: 540px; }

h1 {
  margin: 0 0 32px;
  font-size: clamp(46px, 6.4vw, 80px);
  font-weight: 800;
  font-style: italic;
  line-height: .96;
  letter-spacing: -.035em;
}
/* Lines 2 and 4 sit a touch right, so the italic's edge lines up by eye. */
h1 .nudge { display: inline-block; margin-left: .04em; }

.lede {
  margin: 0 0 40px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: var(--sub2);
  text-wrap: pretty;
}

/* ---- Sign-up ---- */

.signup { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }

.signup input {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--field-line);
  background: var(--card);
  color: var(--ink);
  font: 500 16px var(--font);
  outline: none;
}
.signup input::placeholder { color: #6B6E75; }
.signup input:focus-visible { border-color: var(--link); }
.signup.has-error input { border-color: var(--danger); }

.signup button {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 14px;
  background: var(--btn);
  color: var(--btn-ink);
  font: 700 16px var(--font);
  cursor: pointer;
}
.signup button:hover { background: var(--btn-hover); }
.signup button:disabled { opacity: .6; cursor: progress; }

.signup-error { font-size: 13px; color: var(--danger); }
.signup-check:empty { display: none; }

/* The confirmation that takes the form's place (update 11): a check and
   two lines, as tall as the form's field, with no card around it. */
.signed-up {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 460px;
  min-height: 52px;
  padding: 4px 0;
}
.signed-up-check {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--link);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.signed-up-check .icon { width: 14px; height: 14px; stroke-width: 3; }
.signed-up-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.signed-up-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.signed-up-body { font-size: 15px; line-height: 1.5; color: var(--sub); text-wrap: pretty; }
.signed-up-email { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

/* ---- Phones ----
   300 × 640 at the design's 1.12 zoom, a little smaller on screens too
   narrow for that. Zoom rather than a transform, so the text inside is laid
   out at size and stays sharp. The frame stays dark in both themes; the
   screen follows the theme. */

.phone-slot { display: flex; justify-content: center; }

.phone {
  --zoom: 1.12;
  flex: none;
  position: relative;
  zoom: var(--zoom);
  width: 300px;
  height: 640px;
  border-radius: 44px;
  background: #111113;
  padding: 9px;
  box-shadow: inset 0 0 0 1.2px #3A3A3C, 0 0 0 1.5px #2C2C2E, 0 40px 80px -36px var(--phone-shadow);
}
@media (max-width: 379px) { .phone { --zoom: 1; } }
@media (max-width: 339px) { .phone { --zoom: .9; } }

/* Volume, action and side buttons. */
.button { position: absolute; width: 4px; background: #2C2C2E; }
.button-1 { left: -3px; top: 100px; height: 26px; border-radius: 2px 0 0 2px; }
.button-2 { left: -3px; top: 142px; height: 46px; border-radius: 2px 0 0 2px; }
.button-3 { left: -3px; top: 198px; height: 46px; border-radius: 2px 0 0 2px; }
.button-4 { right: -3px; top: 160px; height: 72px; border-radius: 0 2px 2px 0; }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--chat-bg);
  display: flex;
  flex-direction: column;
}

.island { position: absolute; z-index: 3; top: 9px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 13px; background: #000; }

.status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--chat-ink);
}
.battery { position: relative; width: 16px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1.3px var(--chat-ring); }
.battery::after { content: ""; position: absolute; top: 1.5px; bottom: 1.5px; left: 1.5px; width: 9px; border-radius: 1px; background: var(--chat-ink); }

.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--chat-line);
  background: var(--chat-bar);
  font-size: 14px;
  font-weight: 600;
  color: var(--chat-ink);
}
.avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--chat-avatar); }

/* Nothing in a chat shrinks: what doesn't fit is cut off at the top. */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 12px; }
.chat > * { flex: none; }

.chat-time { align-self: center; white-space: nowrap; font-size: 11px; font-weight: 600; color: #6B6E75; }

/* A video reads as a video in either theme. */
.video {
  align-self: flex-end;
  width: 230px;
  max-width: 84%;
  height: 120px;
  border-radius: 16px;
  background: #2A2C32;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}
.video-time {
  align-self: flex-end;
  font-size: 10.5px;
  font-weight: 600;
  color: #D8DADD;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .4);
}
.video-info { display: flex; align-items: center; gap: 8px; }
.play { flex: none; width: 0; height: 0; border-left: 11px solid #FFF; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.video-title { font-size: 11.5px; font-weight: 700; color: #FFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-by { font-size: 10.5px; color: #B4B7BC; }

.bubble { padding: 10px 13px; font-size: 14px; }
.bubble-mine { align-self: flex-end; max-width: 84%; border-radius: 18px 18px 6px 18px; background: var(--brand); color: #FFF; line-height: 1.4; }
.bubble-theirs { align-self: flex-start; max-width: 88%; border-radius: 18px 18px 18px 6px; background: var(--chat-bubble); color: var(--chat-ink); line-height: 1.45; text-wrap: pretty; }

/* A reply with a card under it: the two share one column. */
.chat-theirs { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 8px; }
.chat-theirs > .bubble { max-width: none; }

.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--chat-bubble);
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9EA1A6; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--chat-card);
  box-shadow: inset 0 0 0 1px var(--chat-line), 0 1px 4px rgba(0, 0, 0, .05);
}
.card-wide { align-self: flex-start; width: 88%; transition: transform .15s, background .15s; }
.card-icon { flex: none; display: block; width: 32px; height: 32px; border-radius: 7px; background: var(--brand); }
.card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card-title { font-size: 13.5px; font-weight: 700; color: var(--chat-ink); }
.card-meta { font-size: 11.5px; color: var(--chat-sub); }
.card-chevron { font-size: 16px; color: var(--chat-chev); }

.message {
  flex: none;
  margin: 0 10px 14px;
  height: 38px;
  border-radius: 19px;
  background: var(--chat-field);
  box-shadow: inset 0 0 0 1px var(--chat-field-line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13.5px;
  color: #8E8E93;
}

/* ---- The hero phone's loop (hero.js sets data-step) ---- */

@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

/* A message rises in each time it's shown. */
.enters { animation: msgIn .35s ease-out; }
.typing.enters { animation-duration: .3s; }

/* Step 6: the card pressed. Step 7: Intra slid in over the chat. Parked at
   130%, far enough out that its shadow never falls on the chat. */
.screen[data-step="6"] .card-wide { background: var(--chat-card-press); transform: scale(.97); }

.preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--pv-bg);
  overflow: hidden;
  transform: translateX(130%);
  transition: transform .5s cubic-bezier(.32, .72, 0, 1);
  box-shadow: -20px 0 40px rgba(0, 0, 0, .5);
}
.screen[data-step="7"] .preview { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enters, .typing span { animation: none; }
  .preview { transition: none; }
}

/* ---- Intra's routine preview in the hero phone ----
   Workout 6a, drawn at 370 × 816 and scaled to .7622 to fill the screen. */

.preview-page {
  width: 370px;
  height: 816px;
  transform: scale(.7622);
  transform-origin: 0 0;
  border-radius: 42px;
  overflow: hidden;
  background: var(--pv-bg);
  color: var(--pv-text);
  display: flex;
  flex-direction: column;
}

.pv-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px 4px;
  font-size: 15px;
  font-weight: 600;
}
.pv-battery {
  box-sizing: content-box;
  position: relative;
  width: 24px;
  height: 12px;
  border: 1.5px solid var(--pv-ring);
  border-radius: 3.5px;
}
.pv-battery::after {
  content: "";
  position: absolute;
  top: 1.5px;
  bottom: 1.5px;
  left: 1.5px;
  width: 14px;
  border-radius: 2px;
  background: var(--pv-text);
}

.pv-header { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px; }
.pv-circle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pv-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-circle .icon { width: 21px; height: 21px; stroke-width: 2.6; }
.pv-back { color: var(--pv-accent); }
.pv-back .icon { width: 20px; height: 20px; stroke-width: 2.3; }
.pv-title { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.pv-pill {
  flex: none;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pv-card);
  font-size: 15px;
  font-weight: 600;
}

.pv-body { flex: 1; min-height: 0; overflow: hidden; padding: 0 18px; display: flex; flex-direction: column; }
.pv-heading { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 0 2px; margin-bottom: 13px; }
.pv-kicker { font-size: 13px; color: var(--pv-sub); }
.pv-name { font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.pv-note {
  flex: none;
  padding: 11px 14px;
  margin-bottom: 13px;
  border-radius: 13px;
  background: var(--pv-card);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--pv-body);
  text-wrap: pretty;
}

.pv-list { flex: none; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pv-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 14px 12px;
  background: var(--pv-card);
  border-top: 1px solid var(--pv-hair);
}
.pv-list li:first-child { border-top: none; border-radius: 15px 15px 0 0; }
.pv-list li:last-child { border-radius: 0 0 15px 15px; }

/* The superset's line, out in the margin: 3px solid accent on the website
   (the app's is 2pt at 50%), so it survives the scaling. From level with
   the first lift's name to level with the last lift's chips. */
.pv-list .superset-first::before,
.pv-list .superset-last::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 3px;
  border-radius: 2px;
  background: var(--pv-accent);
}
.pv-list .superset-first::before { top: 12px; bottom: 0; }
.pv-list .superset-last::before { top: -1px; bottom: 12px; }

.pv-lift { font-size: 15px; line-height: 1.25; font-weight: 600; text-wrap: pretty; }
.pv-chevron { display: inline-block; vertical-align: middle; width: 14px; height: 14px; margin: -3px 0 0 4px; color: var(--pv-sub); stroke-width: 2.4; }
.pv-cue { margin-top: -4px; font-size: 13px; line-height: 1.35; color: var(--pv-sub); text-wrap: pretty; }

.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--pv-chip);
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chip-type { font-size: 11px; font-weight: 700; }
.chip-fail { background: var(--pv-fail-bg); }
.chip-fail .chip-type { color: var(--pv-fail-fg); }
.chip-drop { background: var(--pv-drop-bg); }
.chip-drop .chip-type { color: var(--pv-drop-fg); }
.chip-count { margin-left: 2px; font-size: 12px; color: var(--pv-sub); }

.pv-foot { flex: none; padding: 12px 18px 22px; border-top: 1px solid var(--pv-hair); background: var(--pv-bar); }
.pv-start {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--pv-accent);
  color: var(--pv-on-accent);
  font-size: 16px;
  font-weight: 700;
}

/* ---- Works with ---- */

.works-with {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px var(--gutter) clamp(40px, 5vw, 64px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.works-with p {
  margin: 0;
  max-width: 640px;
  width: 100%;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--sub);
  text-wrap: balance;
}
.works-with a,
.works-with a:hover {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--underline);
}

.agents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.agents li {
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sub);
}
.agent-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.agent-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Check-ins: a phone and its point, alternating sides ---- */

.checkin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.checkin-text { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.checkin-text-first { justify-self: end; }
/* One column: both points start at the left edge. */
@media (max-width: 809px) { .checkin-text-first { justify-self: start; } }
.checkin h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.checkin p { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--sub); text-wrap: pretty; }

/* ---- Features ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(56px, 7vw, 96px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.feature p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--sub); text-wrap: pretty; }

/* ---- Footer ---- */

.foot {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 56px);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }

/* The brand column keeps at least 320px; the link columns wrap under it. */
.foot-brand {
  flex: 1 1 320px;
  min-width: min(100%, 320px);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.foot-tagline { margin: 0; font-size: 16px; line-height: 1.5; color: var(--sub); }

.maker,
.maker:hover {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  white-space: nowrap;
  padding: 0 14px 0 5px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line), 0 1px 3px rgba(0, 0, 0, .04);
  color: var(--sub);
  font-size: 15px;
}
.maker:hover { box-shadow: inset 0 0 0 1px var(--card-line-hover), 0 1px 3px rgba(0, 0, 0, .06); }
.maker-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--card-line); }
.maker-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.maker-name { font-weight: 600; color: var(--ink); }
.maker-arrow { width: 14px; height: 14px; color: var(--muted); stroke-width: 2; transition: transform .18s ease-out; }
.maker:hover .maker-arrow { transform: translate(1.5px, -2px); }

.foot-links { flex: none; display: flex; flex-wrap: wrap; gap: clamp(48px, 7vw, 96px); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-heading { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-col a { font-size: 15.5px; color: var(--ink); }
.foot-col a:hover { color: var(--brand); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- Theme menu ---- */

.theme { position: relative; }

.theme-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-button:hover { background: var(--card-line); }
.theme-button .icon { width: 18px; height: 18px; stroke-width: 1.9; }
/* The button shows the theme on screen, even when it comes from System. */
:root[data-theme="dark"] .theme-sun,
:root:not([data-theme="dark"]) .theme-moon { display: none; }

.theme-tip {
  position: absolute;
  right: 0;
  bottom: 44px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}
.theme-button:hover ~ .theme-tip { visibility: visible; }
.theme.is-open .theme-tip { visibility: hidden; }

.theme-menu {
  position: absolute;
  right: 0;
  bottom: 44px;
  z-index: 10;
  width: 180px;
  padding: 5px;
  border-radius: 13px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line), 0 12px 32px rgba(0, 0, 0, .14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: 500 14.5px var(--font);
  text-align: left;
  cursor: pointer;
}
.theme-menu button:hover,
.theme-menu button:focus-visible { background: var(--line); outline: none; }
.theme-menu button > .icon:first-child { width: 18px; height: 18px; stroke-width: 1.9; color: var(--sub); }
.theme-menu button > span { flex: 1; }
.theme-check { width: 16px; height: 16px; stroke-width: 2.2; color: var(--link); }
.theme-menu [aria-checked="false"] .theme-check { visibility: hidden; }

/* ---- Legal pages: Acceptable use, Privacy, Terms (update 10 §3) ---- */

.legal-bar { border-bottom: 1px solid var(--line); }
.legal-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}
a.lockup, a.lockup:hover { color: var(--ink); }

.legal {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px);
}

/* Same weight on every tab, so switching never shifts the text. No blue:
   on this site blue means a link or an action. */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 clamp(40px, 5vw, 56px); }
.legal-tabs a { padding: 8px 0; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 500; color: var(--sub); }
.legal-tabs a:hover { color: var(--ink); border-bottom-color: var(--tab-hover); }
.legal-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.legal-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.legal-kicker { font: 500 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legal-intro h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.legal-lead { margin: 0; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.6; color: var(--sub); text-wrap: pretty; }

.legal p { margin: 0; text-wrap: pretty; }
.legal strong { font-weight: 600; color: var(--ink); }

/* Contents beside the article on wide screens, above it on narrow ones,
   where it stops sticking so it never sits over the text. Two columns
   only once the article keeps a readable width. */
.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
}
@media (min-width: 880px) {
  .legal-body { grid-template-columns: 240px minmax(0, 720px); }
  .toc { position: sticky; top: 32px; }
}

.toc { display: flex; flex-direction: column; gap: 16px; }
.toc-label { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.toc-list a { display: flex; gap: 14px; font-size: 15.5px; line-height: 1.4; color: var(--sub); }
.toc-list a:hover { color: var(--ink); }
.toc-n { flex: none; width: 18px; font: 500 12.5px/1.75 var(--mono); color: var(--muted); }

.legal-article {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 5vw, 64px);
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--sub2);
}
.legal-article section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 32px; }
.legal-article h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
}
.legal-n { font: 500 14px var(--mono); letter-spacing: 0; color: var(--muted); }

/* Acceptable use: one numbered list, no contents. */
.aup { padding-top: clamp(16px, 2vw, 24px); }
.aup-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--sub2);
}
.aup-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.aup-list li > span:last-child { text-wrap: pretty; }
.aup-n { flex: none; width: 18px; font: 500 14px/1.7 var(--mono); color: var(--muted); }
.aup-after {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  padding-top: clamp(32px, 4vw, 40px);
  font-size: 17px;
  line-height: 1.7;
  color: var(--sub2);
}
