/* Punchlist — tokens */
:root {
  --bg: #0a0d14;
  --surface: #131824;
  --raised: #1d2433;
  --ink: #e9edf3;
  --muted: #a3acbb;
  --accent: #5a9bfc;
  --accent-ink: #0a0d14;
  --paper: #e9edf3;
  --paper-ink: #0a0d14;
  --negative: #e5566f;
  --positive: #3fc07a;

  /* fragment (app) tokens: cards darker than the ground, 1px accent line marks selection */ /* taste-skill-ignore: data-ui fragment */
  --ui-card: #07090f;
  --ui-border: #222a3a;
  --ui-rule: #161c29;
  --ui-text: #e9edf3;
  --ui-muted: #8a93a3;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --step-small: 0.9375rem;                                   /* 15 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17–19 */
  --step-lead: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);     /* 22–28 */
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);         /* 36–64 */
  --step-display: clamp(3rem, 5.6vw, 5.25rem);               /* 48–84 */

  --m: clamp(20px, 2.8vw, 40px);
  --g: 24px;
  --gap-section: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.7,0,.2,1);
  --ease-soft: cubic-bezier(.25,.6,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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(--step-body); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: data-ui fragment */
.skip { position: absolute; left: var(--m); top: -60px; background: var(--paper); color: var(--paper-ink); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--m); }

/* links and buttons */
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink); font: 500 var(--step-body)/1 var(--font);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #82b4ff; } }
.btn-dark { background: var(--paper-ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: #1d2433; } }

/* navigation */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--m) 0; font-size: var(--step-small);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.wordmark svg { color: var(--accent); }
.nav nav { display: flex; gap: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(780px, 100svh, 900px); }
.hero-copy { padding: 150px var(--m) 0; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-display); }
.hero-lead { margin-top: 36px; max-width: 34ch; font-size: var(--step-body); }
.hero .btn { margin-top: 32px; }

.stage-wrap {
  --colw: calc((100% - 2 * var(--m) - 11 * var(--g)) / 12);
  position: absolute; top: 42%; right: 0; bottom: 0;
  left: calc(var(--m) + 4 * (var(--colw) + var(--g)));
}
.stage { position: relative; height: 100%; background: var(--accent); overflow: hidden; }
/* the punched notch: the stage's corner is cut by a round hole, like a ticket punch */
.stage::before {
  content: ""; position: absolute; left: -64px; top: -64px; width: 128px; height: 128px;
  border-radius: 50%; background: var(--bg); z-index: 1;
}
.hero-app { position: absolute; left: 96px; top: 56px; width: min(700px, calc(100% - 152px)); }

/* ---------- fragments: shared app style ---------- */
.app {
  font-family: var(--font); font-size: 14px; line-height: 1.4; color: var(--ui-text);
  background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 8px; /* taste-skill-ignore: data-ui fragment */
  letter-spacing: 0;
}
.app .faint { color: var(--ui-muted); }
.app .id { color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.app kbd { font: 500 12px/1 var(--font); color: var(--ui-text); background: #1a2130; border: 1px solid #2a3346; border-radius: 4px; padding: 3px 5px; min-width: 20px; display: inline-block; text-align: center; } /* taste-skill-ignore: data-ui fragment */
.app code { font: 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ui-text); }
.pri { display: inline-block; width: 14px; height: 12px; flex: none; position: relative; background: no-repeat center / 14px 12px; }
.pri-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='0' y='7' width='3' height='5' rx='1' fill='%238a93a3'/%3E%3Crect x='5' y='4' width='3' height='8' rx='1' fill='%233a4458'/%3E%3Crect x='10' y='0' width='3' height='12' rx='1' fill='%233a4458'/%3E%3C/svg%3E"); }
.pri-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='0' y='7' width='3' height='5' rx='1' fill='%23e9edf3'/%3E%3Crect x='5' y='4' width='3' height='8' rx='1' fill='%23e9edf3'/%3E%3Crect x='10' y='0' width='3' height='12' rx='1' fill='%233a4458'/%3E%3C/svg%3E"); }
.pri-3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Crect x='0' y='7' width='3' height='5' rx='1' fill='%23e9edf3'/%3E%3Crect x='5' y='4' width='3' height='8' rx='1' fill='%23e9edf3'/%3E%3Crect x='10' y='0' width='3' height='12' rx='1' fill='%23e9edf3'/%3E%3C/svg%3E"); }
.pri-4 { background: var(--negative); border-radius: 3px; width: 13px; height: 13px; }
.pri-4::after { content: "!"; position: absolute; inset: 0; font: 700 10px/13px var(--font); color: #07090f; text-align: center; }
.tag { font-size: 12px; color: var(--ui-muted); border: 1px solid var(--ui-border); border-radius: 4px; padding: 1px 6px; } /* taste-skill-ignore: data-ui fragment */
.who { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1f2737; color: var(--ui-text); font-size: 10.5px; font-weight: 600; flex: none; }

/* hero list */
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.team-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.cycle-meta { color: var(--ui-muted); }
.cycle-meta .num { color: var(--ui-text); }
.tabs { display: flex; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--ui-border); } /* taste-skill-ignore: data-ui fragment */
.tab { padding: 8px 0 10px; color: var(--ui-muted); position: relative; }
.tab.is-on { color: var(--ui-text); }
.tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); } /* taste-skill-ignore: data-ui fragment */
.rows { padding: 4px 0; }
.row {
  display: grid; grid-template-columns: 22px 16px 70px 1fr auto 22px; align-items: center; gap: 12px;
  height: 44px; padding: 0 18px; position: relative; cursor: default;
  transition: background-color 140ms ease, opacity 300ms ease;
}
.row + .row { border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */
.row.is-sel { background: #0f1420; }
.row.is-sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--accent); } /* taste-skill-ignore: data-ui fragment */
@media (hover: hover) and (pointer: fine) { .row:hover { background: #0f1420; } }
.row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.row .t::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); } /* taste-skill-ignore: data-ui fragment */
.row.is-done .t::after { transform: scaleX(1); }
.row.is-done .t, .row.is-done .id, .row.is-done .tag { color: #5d6678; }
.punch {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #4a5468; background: transparent; padding: 0;
  cursor: pointer; position: relative; transition: transform 120ms var(--ease-out), border-color 140ms ease, background-color 140ms ease;
}
.punch:active { transform: scale(0.85); }
@media (hover: hover) and (pointer: fine) { .punch:hover { border-color: var(--accent); } }
.row.is-done .punch { background: var(--accent); border-color: var(--accent); }
.row.is-done .punch::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ui-card); }
.row-new input { width: 100%; background: transparent; border: 0; color: var(--ui-text); font: inherit; outline: none; }
.app-foot { display: flex; gap: 18px; align-items: center; padding: 12px 18px 16px; color: var(--ui-muted); border-top: 1px solid var(--ui-border); flex-wrap: wrap; } /* taste-skill-ignore: data-ui fragment */
.app-foot kbd { margin-right: 4px; }
#hint { margin-left: auto; }

/* ---------- showcase: paste the mess ---------- */
.paste {
  display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-top: 0;
}
.paste-in, .paste-out { min-height: min(90svh, 810px); padding-top: min(22svh, 198px); position: relative; }
.paste-in { background: #05070b; padding-left: calc(var(--m) + (100vw - 2 * var(--m)) / 12); padding-right: var(--m); }
.paste-out { background: var(--paper); color: var(--paper-ink); display: flex; justify-content: center; align-items: flex-start; padding-inline: var(--m); }
.paste-label { display: block; max-width: 34ch; color: var(--ink); font-size: var(--step-body); margin-bottom: 20px; }
.paste-text {
  display: block; width: 100%; max-width: 34ch; min-height: 7.6em; resize: none;
  background: transparent; color: var(--ink); border: 0; padding: 0; margin: 0;
  font: 400 var(--step-lead)/1.4 var(--font); caret-color: var(--accent);
}
.paste-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.issue-card { width: min(500px, 100%); padding: 0; box-shadow: none; } /* taste-skill-ignore: data-ui fragment */
.ic-top { display: flex; gap: 12px; padding: 14px 18px 0; }
.ic-title { padding: 10px 18px 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; transition: opacity 160ms ease; }
.ic-fields { border-top: 1px solid var(--ui-border); padding: 6px 18px; } /* taste-skill-ignore: data-ui fragment */
.ic-fields div { display: grid; grid-template-columns: 96px 1fr; align-items: center; min-height: 38px; }
.ic-fields div + div { border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */
.ic-fields dt { color: var(--ui-muted); }
.ic-fields dd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ic-fields dd code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-actions { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 16px; border-top: 1px solid var(--ui-border); } /* taste-skill-ignore: data-ui fragment */
.btn-ui { display: inline-flex; align-items: center; gap: 6px; background: var(--ui-text); color: var(--ui-card); font-weight: 500; border-radius: 6px; padding: 7px 10px; }
.btn-ui kbd { background: #c9d0db; border-color: #b4bccb; color: var(--ui-card); padding: 2px 4px; min-width: 0; }
.is-flash { animation: flash 420ms var(--ease-out); }
@keyframes flash { from { opacity: 0.25; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.paste-h { position: absolute; inset: auto 0 32px 0; display: grid; grid-template-columns: 1fr 1fr; font-size: var(--step-display); pointer-events: none; }
.paste-h span { display: block; padding-inline: var(--m); }
.ph-a { color: var(--ink); padding-left: calc(var(--m) + (100vw - 2 * var(--m)) / 12) !important; }
.ph-b { color: var(--paper-ink); text-align: right; }

/* ---------- how it works: one card, four fields ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { min-height: min(84svh, 756px); position: relative; padding: 32px 28px 28px; display: flex; flex-direction: column; }
.f1 { background: var(--surface); }
.f2 { background: #2a3348; }
.f3 { background: var(--paper); color: var(--paper-ink); }
.f4 { background: var(--accent); color: var(--accent-ink); }
.flow h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; max-width: 12ch; }
.field .card { position: absolute; top: 38%; left: 50%; width: 260px; margin-left: -130px; padding: 14px 16px; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .field:hover .card { transform: translateY(-6px); } }
.c-row { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #1a2130; color: var(--ui-muted); }
.pill-on { color: var(--ui-text); box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; background: transparent; padding-inline: 0; } /* taste-skill-ignore: data-ui fragment */
.pill-done { background: #172a1d; color: var(--positive); }
.c-title { margin: 10px 0 8px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.c-title.struck { text-decoration: line-through; text-decoration-color: var(--ui-muted); color: var(--ui-muted); }
.c-sub { display: flex; align-items: center; gap: 8px; color: var(--ui-muted); font-size: 13px; margin-top: 6px; }
.checks { margin: 4px 0 6px; font-size: 13px; }
.checks li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--ui-text); }
.checks li::before { content: ""; width: 12px; height: 12px; border: 1.5px solid #4a5468; border-radius: 3px; flex: none; }
.checks li.done { color: var(--ui-muted); text-decoration: line-through; }
.checks li.done::before { background: var(--accent); border-color: var(--accent); }
.clause { margin-top: auto; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; font-weight: 500; }

/* ---------- crew ---------- */
.crew { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g); padding-top: var(--gap-section); align-items: start; }
.crew-text { grid-column: 1 / span 5; }
.crew h2, .features h2 { font-size: var(--step-head); max-width: 14ch; }
.crew-text p { margin-top: 28px; max-width: 38ch; }
.crew-text h2 + p { margin-top: 40px; }
.crew-small { margin-top: 56px; width: 74%; }
.crew-big { grid-column: 6 / -1; }
.drift { overflow: hidden; aspect-ratio: 1920 / 1339; }
.drift img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* ---------- features ---------- */
.features { padding-top: var(--gap-section); }
.features h2 { margin-bottom: 56px; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { background: var(--surface); height: 470px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.cell-text { padding: 28px; }
.cell h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.cell p { margin-top: 8px; color: var(--ink); max-width: 36ch; font-size: var(--step-body); line-height: 1.45; }
.frag { position: absolute; width: 86%; }
.frag-bottom { bottom: -1px; right: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 0; } /* taste-skill-ignore: data-ui fragment */
.frag-top { top: -1px; left: -1px; border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; } /* taste-skill-ignore: data-ui fragment */
.cell-bottom .cell-text { margin-top: auto; }

.cmd-input { padding: 14px 16px; border-bottom: 1px solid var(--ui-border); font-size: 15px; } /* taste-skill-ignore: data-ui fragment */
.caret { display: inline-block; width: 1px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; } /* taste-skill-ignore: data-ui fragment */
@keyframes blink { 50% { opacity: 0; } }
.cmd-list { padding: 6px; }
.cmd-list li { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; height: 38px; border-radius: 5px; position: relative; }
.cmd-list li.is-sel { background: #121826; }
.cmd-list li.is-sel::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--accent); } /* taste-skill-ignore: data-ui fragment */
.cmd-list li + li { margin-top: 2px; }

.git-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 0 16px; }
.git-row + .git-row { border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */
.git-row code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copied { font-size: 12px; color: var(--ui-text); box-shadow: inset 0 -1px 0 var(--accent); } /* taste-skill-ignore: data-ui fragment */
.ok { color: var(--positive); }

.cy-head, .tri-head { display: flex; justify-content: space-between; padding: 14px 16px 10px; font-weight: 500; }
.cy-bar { margin: 0 16px 12px; height: 6px; background: #1a2130; border-radius: 3px; overflow: hidden; }
.cy-bar span { display: block; height: 100%; background: var(--accent); }
.cy-days, .ho-table { width: 100%; border-collapse: collapse; }
.cy-days th { font-weight: 400; color: var(--ui-muted); font-size: 12px; text-align: left; padding: 6px 16px; }
.cy-days td, .ho-table td { padding: 0 16px; height: 36px; border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */
.cy-days .num, .ho-table .num { text-align: right; }
.cy-days tr.is-sel td:first-child { box-shadow: inset 1px 0 0 var(--accent); } /* taste-skill-ignore: data-ui fragment */

.tri-list li { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; min-height: 46px; padding: 0 16px; border-top: 1px solid var(--ui-rule); position: relative; } /* taste-skill-ignore: data-ui fragment */
.tri-list li.is-sel { background: #0f1420; }
.tri-list li.is-sel::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--accent); } /* taste-skill-ignore: data-ui fragment */
.tri-list .src { color: var(--ui-muted); font-size: 13px; }
.tri-list .tt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act { font-size: 12px; border: 1px solid #2a3346; border-radius: 5px; padding: 3px 8px; } /* taste-skill-ignore: data-ui fragment */

.ho-sub { padding: 16px 16px 2px; color: var(--ui-muted); }
.ho-title { padding: 0 16px 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.off-bar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--ui-border); } /* taste-skill-ignore: data-ui fragment */
.dot-off { width: 8px; height: 8px; border-radius: 50%; background: #e0a43b; }
.off-list li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; min-height: 44px; padding: 0 16px; }
.off-list li + li { border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g); padding-top: var(--gap-section); min-height: min(80svh, 720px); align-items: center; }
.price-text { grid-column: 1 / span 4; align-self: start; padding-top: 40px; }
.price-text h2 { font-size: var(--step-head); max-width: 10ch; }
.price-text p { margin-top: 28px; max-width: 34ch; }
.price-figure { grid-column: 6 / -1; position: relative; }
.fig-wrap { position: relative; width: max-content; max-width: 100%; }
.figure { font-size: clamp(120px, 16vw, 240px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.85; display: flex; align-items: flex-start; width: max-content; }
.figure .cur { font-size: 0.5em; line-height: 1; margin-top: 0.06em; margin-right: 0.04em; }
.figure .per { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; align-self: flex-end; margin-left: 14px; margin-bottom: 0.1em; color: var(--ink); }
.seats { position: absolute; top: calc(clamp(120px, 16vw, 240px) * 0.85 * 0.88 * -1 + clamp(120px, 16vw, 240px) * 0.85 * 0.12); left: calc(clamp(120px, 16vw, 240px) * 1.55); width: 240px; padding: 14px 16px; }
.seats-row { display: flex; justify-content: space-between; font-weight: 500; }
.seats-bar { height: 6px; margin: 10px 0 10px; background: #1a2130; border-radius: 3px; overflow: hidden; }
.seats-bar span { display: block; height: 100%; background: var(--accent); }
.seats p { font-size: 13px; }
.included { margin-top: 44px; font-size: var(--step-body); }
.included li + li { margin-top: 6px; }
.price-figure .btn { margin-top: 36px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--g); padding-top: var(--gap-section); align-items: start; }
.faq-list { grid-column: 1 / span 5; }
.faq-h { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.faq-list li + li { margin-top: 18px; }
.q {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 0;
  font: 400 var(--step-body)/1.4 var(--font); color: var(--muted); cursor: pointer; transition: color 150ms ease;
}
.q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-2px); transition: background-color 150ms ease, transform 150ms var(--ease-out); }
.q.is-on { color: var(--ink); }
.q.is-on::before { background: var(--accent); transform: translateY(-2px) scale(1.25); }
@media (hover: hover) and (pointer: fine) { .q:hover { color: var(--ink); } }
.a-inline { display: none; }
.faq-pane { grid-column: 7 / -1; position: sticky; top: 120px; }
.answer { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; transition: opacity 150ms ease; }
.answer.is-out { opacity: 0; }

/* ---------- cta ---------- */
.cta {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: var(--gap-section);
  margin-inline: calc(-1 * 2 * var(--g));
}
.tile { height: 360px; border-radius: 0; overflow: hidden; }
.tile-side:first-child { grid-column: 1 / span 2; }
.tile-main { grid-column: 3 / span 8; background: var(--accent); color: var(--accent-ink); padding: 40px 48px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.invite { align-self: center; }
.inv-head { display: flex; justify-content: space-between; padding: 14px 16px 10px; font-weight: 500; }
.inv-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 42px; padding: 0 16px; position: relative; }
.tile-side:last-child { grid-column: 11 / span 2; }
.tile-flat { background: var(--raised); }
.tile-video video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tile-main h2 { font-size: clamp(2.25rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; max-width: 16ch; }
.tile-main p { margin-top: 16px; max-width: 46ch; }
.signup { margin-top: 28px; display: flex; width: min(520px, 100%); background: var(--paper); }
.signup input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: 400 var(--step-body) var(--font); color: var(--paper-ink); height: 56px; }
.signup input::placeholder { color: #5b6474; }
.signup input:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: -2px; }
.signup .btn { margin: 2px; min-height: 52px; }

/* ---------- footer ---------- */
.foot { padding: min(30svh, 270px) var(--m) 30px; font-size: var(--step-small); }
.credits { color: var(--muted); max-width: 72ch; margin-bottom: 40px; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; }
.foot-links { display: flex; gap: 24px; }
.foot-end { text-align: right; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-r].is-in { opacity: 1; transform: none; }
  .js .flow .field .card[data-r] { transform: translateY(24px); }
  .js .flow .field .card[data-r].is-in { transform: none; }
  .js .shutter { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out) 250ms; }
  .js .shutter .hero-app { transform: translateY(40px) scale(1.04); transform-origin: top left; transition: transform 1500ms var(--ease-soft) 250ms; }
  .js .shutter.is-in { clip-path: inset(0 0 0 0); }
  .js .shutter.is-in .hero-app { transform: none; }
  @supports (animation-timeline: view()) {
    .drift img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.16) translateY(-4%); } to { transform: scale(1.06) translateY(4%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .tile-video video { display: none; }
  .tile-video { background: url("../assets/construction-site-of-xuanmen-bay-bridge-poster.jpg") center / cover; filter: grayscale(1); }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 0; padding-bottom: 0; }
  .hero h1 { max-width: 12ch; }
  .hero-lead { max-width: 44ch; }
  .stage-wrap { position: relative; left: auto; top: auto; margin-top: 56px; height: 520px; }
  .hero-app { left: 56px; top: 48px; width: min(700px, calc(100% - 72px)); }
  .flow { grid-template-columns: 1fr 1fr; }
  .field { min-height: min(62svh, 560px); }
  .cells { grid-template-columns: 1fr 1fr; }
  .crew-text { grid-column: 1 / -1; }
  .crew-text p { max-width: 60ch; }
  .crew-big { grid-column: 1 / -1; margin-top: 48px; order: 2; }
  .crew-small { width: 60%; }
  .pricing, .faq { grid-template-columns: 1fr; }
  .price-text, .price-figure, .faq-list, .faq-pane { grid-column: 1 / -1; }
  .price-figure { margin-top: 64px; }
  .faq-pane { display: none; }
  .a-inline { padding: 12px 0 4px 22px; font-size: 19px; line-height: 1.45; max-width: 52ch; }
  .a-inline:not([hidden]) { display: block; }
  .cta { margin-inline: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-main { grid-column: 1 / -1; order: -1; height: auto; min-height: 320px; padding: 40px var(--m); }
  .tile-side:first-child, .tile-side:last-child { grid-column: auto; height: 160px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .nav nav { gap: 16px; }
  .nav nav a:nth-child(1), .nav nav a:nth-child(2) { display: none; }
  .hero-copy { padding-top: 112px; }
  .hero h1 { font-size: 10.4vw; }
  .hero-lead { margin-top: 24px; font-size: 1rem; }
  .stage-wrap { margin-top: 44px; height: 480px; }
  .stage::before { width: 112px; height: 112px; left: -56px; top: -56px; }
  .hero-app { left: 16px; top: 72px; width: 640px; }
  .paste { grid-template-columns: 1fr; }
  .paste-in, .paste-out { min-height: min(62svh, 520px); padding-top: 48px; padding-bottom: 96px; }
  .paste-in { padding-left: var(--m); }
  .paste-out { padding-top: 96px; padding-bottom: 48px; }
  .paste-text { font-size: 18px; }
  .paste-h { position: static; display: contents; font-size: 11vw; }
  .paste-h span { position: absolute; }
  .ph-a { top: calc(min(62svh, 520px) - 72px); left: 0; padding-left: var(--m) !important; }
  .ph-b { top: calc(min(62svh, 520px) + 20px); left: 0; text-align: left; }
  .issue-card { width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .field { min-height: 64svh; padding: 28px 20px; }
  .flow h2 { font-size: 24px; order: -2; }
  .clause { order: -1; margin-top: 8px; font-size: 24px; max-width: 18ch; }
  .flow h2 + .card + .clause { margin-top: 12px; }
  .field .card { position: static; margin: 32px 0 0; }
  .cells { grid-template-columns: 1fr; gap: 6px; }
  .cell { height: auto; }
  .frag { position: relative; width: 92%; top: auto; bottom: auto; }
  .cell .frag { order: 2; }
  .cell .cell-text { order: 1; margin-top: 0; }
  .cell:nth-child(odd) .frag { margin-left: auto; right: -1px; border-radius: 8px 0 0 0; } /* taste-skill-ignore: data-ui fragment */
  .cell:nth-child(even) .frag { left: -1px; border-radius: 0 8px 0 0; } /* taste-skill-ignore: data-ui fragment */
  .cell { padding-bottom: 0; }
  .crew-small { width: 100%; }
  .figure { font-size: 34vw; }
  .seats { position: absolute; top: -32px; left: auto; right: 0; width: 46%; padding: 10px 12px; }
  .seats p { display: none; }
  .included { font-size: 17px; }
  .price-figure .btn { width: 100%; }
  .tile-main { min-height: 300px; }
  .tile-main h2 { font-size: 28px; }
  .signup { flex-direction: column; background: transparent; gap: 8px; }
  .signup input { background: var(--paper); }
  .signup .btn { margin: 0; }
  .tile-side:first-child, .tile-side:last-child { height: 120px; }
  .foot { padding-top: min(20svh, 170px); padding-bottom: 24px; font-size: 14px; }
  .foot-line { grid-template-columns: 1fr; gap: 8px; }
  .foot-links { flex-wrap: wrap; }
  .foot-end { text-align: left; }
}


/* ---------- round 2 ---------- */
main { overflow-x: clip; }
.inv-list li + li { border-top: 1px solid var(--ui-rule); } /* taste-skill-ignore: data-ui fragment */
.inv-list li.is-sel::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--accent); } /* taste-skill-ignore: data-ui fragment */
.inv-list .who { font-size: 12px; }
.seats { top: -28px; left: auto; right: -40px; }
@media (max-width: 1100px) {
  .tile-main { grid-template-columns: 1fr; }
  .invite { max-width: 420px; width: 100%; }
  .seats { right: -24px; }
}
@media (max-width: 640px) {
  .hero-lead { font-size: var(--step-body); }
  .paste-h { font-size: 10.4vw; }
  .paste-text { font-size: var(--step-lead); }
  .flow h2, .clause { font-size: var(--step-lead); }
  .field { min-height: 0; padding-bottom: 48px; }
  .a-inline { font-size: var(--step-body); }
  .included { font-size: var(--step-body); }
  .tile-main h2 { font-size: var(--step-head); }
  .signup input { flex: none; height: 56px; }
  .seats { top: -36px; right: 0; }
  .invite { max-width: none; }
}


/* ---------- round 3 ---------- */
.credits { max-width: 60ch; }
.stage::before { left: -66px; top: -66px; width: 132px; height: 132px; }
@media (max-width: 1100px) {
  .crew-text p { max-width: 52ch; }
  .price-figure { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: end; }
  .fig-wrap { grid-column: 1 / -1; }
  .included { margin-top: 56px; }
  .price-figure .btn { justify-self: start; align-self: end; }
  .figure { font-size: clamp(120px, 34vw, 240px); }
}
@media (max-width: 640px) {
  .price-figure { display: block; }
  .figure { font-size: 34vw; }
}

