:root {
  --mist: #EDF2F5;
  --paper: #FFFFFF;
  --ink: #0F2233;
  --ink-2: #4E6070;
  --line: #D3DEE6;
  --harbour: #1E4E79;
  --harbour-deep: #153B5E;
  --night: #102A43;
  --ice: #CFE3EF;
  --frost: #E3EEF4;
  --sea: #2C9C89;
  --danger: #B4412F;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--harbour); text-underline-offset: 3px; }
a:hover { color: var(--harbour-deep); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--harbour); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header { padding: 22px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; color: var(--harbour); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.975rem; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(2.65rem, 6.2vw, 4.75rem);
  line-height: 0.98;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.035em;
}
.lede { margin-top: 22px; max-width: 34em; font-size: 1.15rem; color: var(--ink-2); }

.picker { margin-top: 36px; max-width: 520px; }
.picker fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.picker legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; padding: 0; }

.segmented { display: inline-flex; background: var(--frost); border-radius: 999px; padding: 4px; gap: 2px; }
.seg {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: 600 0.975rem var(--body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.seg[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 42, 67, .12); }

.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.amt {
  appearance: none; text-align: left; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: var(--r-md); padding: 12px 14px 11px;
  transition: border-color .15s ease, background-color .15s ease;
}
.amt:hover { border-color: #A9BDCC; }
.amt b { display: block; font-family: var(--display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.1; }
.amt small { display: block; color: var(--ink-2); font-size: 0.85rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.amt[aria-checked="true"] { border-color: var(--harbour); background: var(--harbour); color: #fff; }
.amt[aria-checked="true"] small { color: var(--ice); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff;
  font: 600 1.05rem var(--body); padding: 17px 30px; border-radius: 999px;
  min-height: 56px; transition: background-color .15s ease, transform .1s ease;
}
.btn-primary:hover { background: var(--harbour-deep); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-primary.wide { width: 100%; }
.picker .btn-primary { margin-top: 6px; min-width: 260px; }
.fine { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.fine.center { text-align: center; }

/* Ticket */
.ticket-stage { display: grid; place-items: center; perspective: 1200px; }
.ticket {
  --notch: 14px;
  position: relative;
  width: min(100%, 440px);
  display: grid; grid-template-columns: 1fr 92px;
  color: #fff;
  transform: rotate(-4deg);
  filter: drop-shadow(0 30px 40px rgba(16, 42, 67, .22)) drop-shadow(0 4px 8px rgba(16, 42, 67, .12));
}
.ticket-main, .ticket-stub { background: var(--night); }
.ticket-main {
  padding: 26px 26px 28px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 100% 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  border-left: 2px dashed rgba(207, 227, 239, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 24px 0 20px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.78rem; color: var(--ice); letter-spacing: 0.02em;
}
.code-lines {
  width: 34px; flex: 1; max-height: 150px; margin-bottom: 16px;
  background: repeating-linear-gradient(180deg, var(--ice) 0 2px, transparent 2px 5px, var(--ice) 5px 6px, transparent 6px 10px, var(--ice) 10px 13px, transparent 13px 15px);
  opacity: .85; border-radius: 2px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-brand { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.ticket-cur { font-weight: 600; font-size: 0.85rem; padding: 5px 11px; border-radius: 999px; background: rgba(207, 227, 239, .14); color: var(--ice); }
.ticket-label { margin-top: 34px; font-size: 0.92rem; color: var(--ice); }
.ticket-face {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(4rem, 10vw, 5.75rem); line-height: 1; letter-spacing: -0.045em;
  margin-top: 6px; font-variant-numeric: tabular-nums;
}
.ticket-rows { margin: 30px 0 0; display: grid; gap: 10px; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(207, 227, 239, .18); padding-top: 10px; }
.ticket-rows dt { color: var(--ice); font-size: 0.92rem; }
.ticket-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.ticket.bump { animation: bump .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes bump {
  0% { transform: rotate(-4deg) translateY(0); }
  40% { transform: rotate(-1.5deg) translateY(-8px); }
  100% { transform: rotate(-4deg) translateY(0); }
}

/* Sections */
.how, .uses, .help { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.how h2, .uses h2, .help h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); line-height: 1.08; font-weight: 650; max-width: 18em; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-weight: 700; font-size: 3.25rem; line-height: 1;
  color: var(--harbour); letter-spacing: -0.04em; margin-bottom: 18px;
}
.steps h3 { font-size: 1.3rem; font-weight: 650; }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 30ch; }


.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

.uses { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.uses-copy p { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.uses-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--r-md); }
.uses-list li { display: grid; gap: 2px; padding: 18px 22px; border-bottom: 1px solid var(--frost); }
.uses-list li:last-child { border-bottom: 0; }
.uses-list b { font-weight: 600; font-size: 1.05rem; }
.uses-list span { color: var(--ink-2); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--night); color: var(--ice); padding: 48px 0 56px; margin-top: 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.2rem; }
.footer-note { margin-top: 10px; font-size: 0.9rem; max-width: 52ch; color: #A9C2D3; }
.footer-links { display: flex; gap: 24px; align-items: flex-start; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ice); text-decoration: underline; }

/* Checkout sheet */
.sheet {
  border: 0; padding: 0; width: min(100% - 32px, 460px); border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px rgba(16, 42, 67, .28);
}
.sheet::backdrop { background: rgba(16, 42, 67, .45); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { padding: 26px 26px 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 1.5rem; font-weight: 650; }
.icon-btn { appearance: none; border: 0; background: var(--frost); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--ice); }

.summary { margin: 20px 0 22px; background: var(--mist); border-radius: var(--r-md); padding: 6px 18px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total dt { color: var(--ink); font-weight: 600; }
.summary .total dd { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field input {
  width: 100%; font: 500 1rem var(--body); color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
}
.field input:focus { outline: none; border-color: var(--harbour); box-shadow: 0 0 0 4px rgba(30, 78, 121, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--harbour); flex: none; }
.form-error { color: var(--danger); font-weight: 500; font-size: 0.92rem; margin-bottom: 12px; }

.done-sub { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.code-box {
  margin: 20px 0 18px; padding: 18px; border-radius: var(--r-md);
  background: var(--night); color: #fff; display: grid; gap: 14px; justify-items: center;
}
.code-box code { overflow-wrap: anywhere; text-align: center; font: 600 clamp(1.15rem, 5vw, 1.45rem) ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.btn-quiet {
  appearance: none; border: 1px solid rgba(207, 227, 239, .4); background: transparent; color: #fff;
  font: 600 0.92rem var(--body); padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.btn-quiet:hover { background: rgba(207, 227, 239, .12); }
.link-box { margin: 20px 0 18px; padding: 18px; border-radius: var(--r-md); background: var(--mist); display: grid; gap: 14px; justify-items: start; }
.link-box p { color: var(--ink-2); font-size: 0.95rem; }
.btn-quiet.dark { color: var(--ink); border-color: var(--line); background: var(--paper); text-decoration: none; }
.btn-quiet.dark:hover { background: var(--frost); }
.mini-steps { margin: 0 0 20px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }

/* Legal pages */
.doc { padding: 24px 0 80px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 700; }
.doc .updated { margin-top: 10px; color: var(--ink-2); }
.doc h2 { font-size: 1.35rem; font-weight: 650; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 22px; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .ticket-stage { order: -1; }
  .ticket { width: min(100%, 380px); transform: rotate(-2.5deg); }
  @keyframes bump { 0%, 100% { transform: rotate(-2.5deg); } 40% { transform: rotate(-1deg) translateY(-6px); } }
  .uses { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
  .steps li::before { grid-row: span 2; font-size: 2.6rem; margin: 0; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .picker .btn-primary { width: 100%; }
  .seg { padding: 10px 18px; }
  .ticket { width: min(100%, 350px); grid-template-columns: 1fr 64px; }
  .ticket-main { padding: 18px 18px 18px; }
  .ticket-label { margin-top: 14px; font-size: 0.85rem; }
  .ticket-face { font-size: 3.4rem; }
  .ticket-rows { margin-top: 14px; gap: 6px; }
  .ticket-rows div { padding-top: 7px; }
  .ticket-rows dt, .ticket-rows dd { white-space: nowrap; font-size: 0.88rem; }
  .ticket-stub { padding: 16px 0 14px; }
  .code-lines { width: 26px; max-height: 80px; margin-bottom: 10px; }
  .ticket-stub span { font-size: 0.7rem; }
  .hero { padding-top: 8px; gap: 28px; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sheet-inner { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
