/* Waywize waitlist site.
 * Source design: Figma "Waywize v1 – Dev Handoff" (desktop frame, 1440px). The mobile and
 * tablet layouts are not in the design; they are derived here from the desktop one.
 *
 * Fonts: the design uses P22 Mackinac (display) and Gilroy (body), both commercially
 * licensed. Until the font files are licensed and added, Fraunces and Plus Jakarta Sans
 * (Google Fonts) stand in. The stacks name the real fonts first, so adding an @font-face
 * for them is the only change needed. */

:root {
  color-scheme: light;

  --font-display: "P22 Mackinac", "Fraunces", Georgia, serif;
  --font-body: "Gilroy", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ink: #0e0e0e;
  --ink-2: #4d4d4d;
  --muted: #737373;          /* design uses #8e8e8e; darkened to meet WCAG AA 4.5:1 on white */
  --muted-2: #6d6d6d;
  --placeholder: #8e8e8e;
  --line: #e4e4e4;
  --surface: #fafafa;
  --white: #ffffff;

  --brand: #5b1636;
  --brand-edge: #1e0014;
  --brand-link: #882251;
  --accent: #eb7452;
  --pink: #e33887;
  --orange: #ef9634;
  --danger: #e60000;
  --alert: #fa0557;
  --success: #03ba0b;

  --grad: linear-gradient(90deg, var(--pink), var(--orange));
  --btn-shadow: 25px 23px 6.5px rgba(0, 0, 0, 0.02), 14px 13px 5.5px rgba(0, 0, 0, 0.06),
    6px 6px 4px rgba(0, 0, 0, 0.09), 2px 1px 2.5px rgba(0, 0, 0, 0.11);

  --page-max: 1300px;
  --gutter: 70px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ── Type ─────────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.display-xl {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.04;
}

.display-lg {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.04;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  /* Fraunces sets a tighter optical kern than Mackinac; keep the gradient word readable. */
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 24px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The desktop design frames the page with hairline rails 70px in from each edge. */
.rails {
  position: relative;
}

.rails::before,
.rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.rails::before {
  left: max(var(--gutter), calc(50% - var(--page-max) / 2));
}

.rails::after {
  right: max(var(--gutter), calc(50% - var(--page-max) / 2));
}

/* ── Buttons & form ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  min-width: 160px;
  padding: 0 20px;
  border: 1.5px solid var(--brand-edge);
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  font: 600 16px/24px var(--font-body);
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #4a112c;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.8;
}

.btn-sm {
  height: 48px;
}

.waitlist {
  width: 100%;
}

.waitlist-row {
  display: flex;
  gap: 12px;
}

.waitlist-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 18px/24px var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 22, 54, 0.15);
}

.waitlist-input[aria-invalid="true"] {
  border-color: var(--danger);
}

.waitlist-msg {
  min-height: 20px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
}

.waitlist-msg.is-error {
  color: var(--danger);
}

/* ── Snackbar (signup confirmation) ─────────────────────────────────────── */

.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 12px 14px 18px;
  border: 1px solid var(--brand-edge);
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(30, 0, 20, 0.28), var(--btn-shadow);
  font-size: 16px;
  line-height: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.snackbar.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.snackbar-icon {
  flex: none;
  color: #7ee08a;
}

.snackbar-text {
  word-break: break-word;
}

.snackbar-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.snackbar-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.snackbar-close:focus-visible {
  outline-color: var(--white);
}

/* ── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 24px/20px var(--font-body);
  letter-spacing: -0.009em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 33px;
  height: 24px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  color: var(--ink);
}

.nav a:hover {
  color: var(--brand);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  text-align: center;
}

/* Soft pink/peach wash with fine vertical banding behind the product shot. */
.hero::before {
  content: "";
  position: absolute;
  inset: 400px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, rgba(255, 255, 255, 0) 1px 10px),
    radial-gradient(60% 55% at 50% 0%, #fff4ea 0%, rgba(255, 244, 234, 0) 70%),
    linear-gradient(180deg, rgba(255, 238, 244, 0) 0%, #fde3ee 30%, #f7b6dc 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.hero-copy .lede {
  margin-top: 16px;
}

.hero-form {
  position: relative;
  max-width: 612px;
  margin: 32px auto 0;
}

.hero-form .waitlist-msg {
  text-align: center;
}

.hero-shot {
  position: relative;
  max-width: 1088px;
  margin: 56px auto 0;
  border: 8px solid rgba(255, 255, 255, 0.4);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.hero-shot img {
  width: 100%;
  height: auto;
}

/* ── Capability strip ─────────────────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-track {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}

.strip-track::-webkit-scrollbar {
  display: none;
}

.strip-list {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 20px 72px;
  list-style: none;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: #000;
  white-space: nowrap;
}

.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(252, 234, 214, 0.8);
}

.chip-icon img {
  width: 24px;
  height: 24px;
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.section-head .lede {
  margin-top: 20px;
}

/* ── Problems ─────────────────────────────────────────────────────────────── */

.cards {
  display: flex;
  gap: 20px;
  margin: 60px 0 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.card {
  position: relative;
  flex: 0 0 390px;
  display: flex;
  flex-direction: column;
  min-height: 425px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--white);
  scroll-snap-align: start;
  overflow: hidden;
}

.card-art {
  position: relative;
  height: 200px;
  border: 6px solid rgba(234, 234, 234, 0.5);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--white);
  overflow: hidden;
  font-weight: 600;
  font-size: 14px;
  line-height: 15px;
  letter-spacing: -0.01em;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.card-title::before {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 204, 204, 0.4) url("assets/icons/alert.svg") center / 24px no-repeat;
}

.card-body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 20px;
  line-height: 25px;
}

/* Card illustrations — rebuilt in HTML/CSS from the design's layers. */
.mini-table {
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
}

.mini-table td,
.mini-table th {
  height: 40px;
  padding: 0 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
}

.mini-table tr > :first-child {
  border-left: 1px solid var(--line);
}

.mini-table tr:first-child > * {
  border-top: 1px solid var(--line);
}

.mini-table tr:first-child > :first-child {
  border-top-left-radius: 10px;
}

.mini-table tr:first-child > :last-child {
  border-top-right-radius: 10px;
}

.mini-table tr:last-child > :first-child {
  border-bottom-left-radius: 10px;
}

.mini-table tr:last-child > :last-child {
  border-bottom-right-radius: 10px;
}

.art-revenue {
  padding: 10px 11px;
}

.art-caption {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--placeholder);
}

.art-revenue .row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.art-revenue .mini-table {
  width: 200px;
}

.art-revenue .mini-table td:first-child {
  width: 50%;
}

.art-revenue .mini-table img {
  margin: 0 auto;
  height: 16px;
  width: auto;
}

.art-revenue .mini-table .label {
  color: var(--muted-2);
}

.art-revenue .gap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.art-revenue .gap::before {
  content: "";
  width: 18px;
  height: 84px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.art-revenue .gap-amount {
  display: block;
  color: var(--alert);
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.art-revenue .gap-label {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 16px;
}

.art-churn {
  padding: 10px;
}

.art-churn .chart {
  position: relative;
  height: 168px;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, transparent 0 41px, var(--line) 41px 42px);
}

.art-churn .axis {
  position: absolute;
  left: 8px;
  top: 6px;
}

.art-churn .line {
  position: absolute;
  left: 0;
  right: 0;
  top: 42px;
  width: 100%;
  height: 84px;
}

.art-churn .blind {
  position: absolute;
  left: 57%;
  width: 38%;
  top: 42px;
  height: 84px;
  padding-top: 8px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fadee8);
  text-align: center;
}

.art-churn .marks {
  position: absolute;
  left: 50%;
  right: 0;
  top: 132px;
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.art-churn .marks span {
  width: 93px;
}

.art-payroll {
  padding: 34px 14px 0;
}

.art-payroll .tab {
  position: absolute;
  top: 6px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.art-payroll .tab img {
  width: 19px;
  height: 19px;
}

.art-payroll .xero {
  height: 16px;
  width: 42px;
  object-fit: cover;
  margin-bottom: 8px;
}

.art-payroll .mini-table {
  width: 100%;
  font-size: 14px;
}

.art-payroll .mini-table th {
  height: 32px;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--placeholder);
}

.art-payroll .mini-table td {
  height: 32px;
}

.art-payroll .mini-table td:first-child {
  text-align: left;
}

.art-payroll .mini-table tr:last-child td {
  background: var(--surface);
}

.art-payroll .mini-table img {
  margin: 0 auto;
}

.art-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.ring img {
  position: absolute;
}

.ring .track {
  inset: 0;
}

.ring .fill {
  left: 0;
  top: 0;
  width: 140px;
  height: 111px;
  transform: rotate(-90deg);
  transform-origin: 70px 70px;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 24px;
}

.ring-label b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ring-label span {
  color: #888;
  font-size: 18px;
}

.art-cover .class-name {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em;
}

.art-cover .class-time {
  margin-top: 4px;
  color: var(--placeholder);
  font-size: 16px;
  line-height: 20px;
}

.art-cover .pill {
  margin-top: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #ffe6e6;
  color: red;
  width: 126px;
}

/* ── Features (tabs) ─────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  padding: 20px 0 80px;
}

/* Grid items default to min-width:auto, which lets the scrolling chip row widen the page. */
.features > * {
  min-width: 0;
}

.tablist {
  display: flex;
  flex-direction: column;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding-left: 32px;
}

.tab {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-left: 4px solid transparent;
  background: none;
  color: var(--ink);
  font: 500 24px/28px var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--brand);
}

.tab[aria-selected="true"] {
  border-left-color: var(--orange);
}

.panels {
  padding: 0 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
}

.panel[hidden] {
  display: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 31px 31px 0;
}

.panel-head h3 {
  max-width: 400px;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.panel-head p {
  max-width: 374px;
  color: var(--muted);
  font-size: 18px;
  line-height: 22px;
}

.panel-shot {
  margin: 32px 31px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 844 / 380;
}

.panel-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.panel-chips {
  display: flex;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.panel-chips::-webkit-scrollbar {
  display: none;
}

.panel-chips li {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 60px;
  max-width: 240px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 18px;
}

.panel-chips li:last-child {
  border-right: 0;
}

/* ── Market ───────────────────────────────────────────────────────────────── */

.market {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 80px;
  padding-top: 80px;
  border-bottom: 1px solid var(--line);
}

.market .lede {
  margin-top: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 602px;
  padding: 12px 0 0 12px;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: var(--rule);
  background: #b62d6c;
}

.stat::after {
  content: "";
  position: absolute;
  left: -2.5px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  background: #b62d6c;
  transform: rotate(45deg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 40px;
  letter-spacing: -0.06em;
  color: var(--accent);
}

.stat-label {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 22px;
}

.stat-label b {
  font-weight: 600;
}

.stat-bar {
  margin-top: auto;
  width: 180px;
  height: var(--bar);
}

/* ── How it works ─────────────────────────────────────────────────────────── */

.steps-wrap {
  border-bottom: 1px solid var(--line);
}

/* The rule under the heading spans the full frame; the copy stays at reading width. */
.steps-head {
  max-width: none;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.steps-head > * {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 0 32px 48px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step .step-num {
  position: relative;
  margin-top: 0;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--accent);
  /* Corner ticks, drawn as four 8px L-shapes. */
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 8px 1.5px,
    linear-gradient(var(--accent), var(--accent)) left top / 1.5px 8px,
    linear-gradient(var(--accent), var(--accent)) right top / 8px 1.5px,
    linear-gradient(var(--accent), var(--accent)) right top / 1.5px 8px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 8px 1.5px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 1.5px 8px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 8px 1.5px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 1.5px 8px;
  background-repeat: no-repeat;
}

.step h3 {
  margin-top: 32px;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 24px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 50px;
}

.faq h2 {
  flex: 0 1 440px;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1;
}

.faq-list {
  flex: 0 1 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 20px;
  line-height: 26px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: url("assets/icons/faq-toggle.svg") center / 16px no-repeat;
  transform: rotate(45deg); /* the design's × reads as + when closed */
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  padding: 0 24px 20px;
  margin-top: -8px;
  color: var(--muted);
  font-size: 18px;
  line-height: 24px;
}

/* ── Founding studio CTA + footer ────────────────────────────────────────── */

.cta {
  position: relative;
  padding: 16px 0 0;
  background: #fff url("assets/cta-bg.jpg") center bottom / cover no-repeat;
  text-align: center;
}

.cta-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

.cta-icon {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.cta .lede {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted-2);
  font-size: 20px;
  line-height: 26px;
}

.cta .waitlist {
  margin-top: 32px;
}

.cta .waitlist-msg {
  color: var(--muted-2);
}

.site-footer {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 48px;
  border-radius: 32px 32px 0 0;
  background: var(--white);
  text-align: left;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand img {
  width: 176px;
  height: 32px;
}

.footer-brand p {
  max-width: 360px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 20px;
}

.footer-links .label {
  color: var(--muted);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-link);
}

.footer-links a::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  transform: scaleX(-1);
}

.copyright {
  color: var(--muted);
  font-size: 18px;
  line-height: 20px;
}

/* ── Privacy policy page (privacy.html) ───────────────────────────────────── */

.waitlist-privacy {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.hero-form .waitlist-privacy {
  text-align: center;
}

.waitlist-privacy a,
.legal a {
  color: var(--brand-link);
  text-underline-offset: 2px;
}

.legal-inner {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: 64px;
  padding-bottom: 96px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-2);
}

.legal-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-entity,
.legal-dates {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

.legal-entity strong,
.legal-dates strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-toc {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--surface);
}

.legal-toc h2,
.legal .clause h2 {
  font: 600 15px/1.4 var(--font-body);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.legal-toc ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}

.legal-toc li {
  break-inside: avoid;
  padding: 3px 0;
}

.legal-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--brand-link);
  text-decoration: underline;
}

.legal .clause {
  margin-top: 48px;
}

.legal .clause p,
.legal .items,
.legal .contact-block {
  margin-top: 12px;
}

.legal .sub > p,
.legal .items li {
  position: relative;
  padding-left: 48px;
}

.legal .sub .num,
.legal .items .num {
  position: absolute;
  left: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.legal .clause h2 .num {
  margin-right: 4px;
}

.legal .items {
  padding: 0 0 0 48px;
  list-style: none;
}

.legal .items li + li {
  margin-top: 6px;
}

.legal a[href^="tel:"] {
  white-space: nowrap;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal .contact-block {
  margin-left: 48px;
  padding: 16px 20px;
  border-left: 3px solid var(--line);
  font-style: normal;
}

.legal-closing {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root {
    --gutter: 40px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tablist {
    position: static;
    flex-direction: row;
    padding-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
  }

  .tablist::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: none;
    width: auto;
    padding: 12px 16px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 18px;
    line-height: 24px;
    white-space: nowrap;
  }

  .tab[aria-selected="true"] {
    border-bottom-color: var(--orange);
  }

  .panels {
    padding: 0;
  }

  .market {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 180px));
  }

  .stat {
    min-height: 460px;
  }

  .stat-bar {
    width: 100%;
  }

  .faq {
    flex-direction: column;
    padding: 64px 0;
  }

  .faq h2,
  .faq-list {
    flex-basis: auto;
  }
}

@media (max-width: 760px) {
  .snackbar {
    width: calc(100vw - 32px);
    bottom: 16px;
    font-size: 15px;
  }

  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .rails::before,
  .rails::after {
    display: none;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 20px;
  }

  .site-header .btn {
    height: 40px;
    min-width: 0;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero::before {
    inset: 520px 0 0;
  }

  .lede,
  .hero-copy .lede {
    font-size: 16px;
    line-height: 22px;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist-row .btn {
    width: 100%;
  }

  .hero-shot {
    margin-top: 40px;
    border-width: 4px;
    border-radius: 12px 12px 0 0;
  }

  .strip-list {
    gap: 12px;
    padding: 16px 24px;
  }

  .strip-track {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }

  .chip {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .cards {
    margin-top: 40px;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
  }

  .card {
    flex-basis: min(330px, 86vw);
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .card-art {
    transform-origin: top left;
  }

  .card-title {
    font-size: 20px;
    line-height: 24px;
  }

  .card-body {
    font-size: 16px;
    line-height: 22px;
  }

  .art-revenue .mini-table {
    width: 170px;
  }

  .art-cover {
    gap: 12px;
  }

  .panel {
    border-radius: 24px;
  }

  .panel-head {
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 0;
  }

  .panel-head h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .panel-head p {
    font-size: 16px;
  }

  .panel-shot {
    margin: 20px 20px 0;
    border-radius: 12px;
  }

  .market {
    padding-top: 56px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat {
    min-height: 0;
    padding-bottom: 0;
  }

  .stat::before {
    height: 100%;
  }

  .stat-bar {
    display: none;
  }

  .steps-head {
    padding: 56px 0 40px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step .step-num {
    width: 88px;
    height: 88px;
    font-size: 52px;
  }

  .step h3 {
    margin-top: 20px;
    font-size: 20px;
  }

  .step p {
    font-size: 16px;
    line-height: 22px;
  }

  .faq {
    padding: 56px 0;
    gap: 28px;
  }

  .faq-item {
    border-radius: 18px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 17px;
    line-height: 22px;
  }

  .faq-item p {
    padding: 0 18px 16px;
    font-size: 16px;
    line-height: 22px;
  }

  .cta-icon {
    width: 112px;
    height: 112px;
  }

  .cta .lede {
    font-size: 17px;
    line-height: 24px;
  }

  .cta-inner {
    padding-bottom: 72px;
  }

  .site-footer {
    margin: 0 16px;
    padding: 0 20px;
    border-radius: 24px 24px 0 0;
  }

  .footer-top,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-brand p {
    padding-left: 0;
    border-left: 0;
    font-size: 16px;
  }

  .copyright {
    font-size: 14px;
  }

  .legal-inner {
    padding-top: 40px;
    padding-bottom: 64px;
    font-size: 16px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal .sub > p,
  .legal .items li {
    padding-left: 40px;
  }

  .legal .items {
    padding-left: 20px;
  }

  .legal .contact-block {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
