/* Design tokens ------------------------------------------------------------
   paper  #F2F4F7  cool chart paper
   ink    #0F1B2D  deep navy ink
   action #2447F5  cobalt (buttons, links)
   long   #0B7A5E  the long leg of a hedge
   short  #B4325A  the short leg of a hedge
   The two leg colors only ever mean "long" and "short". */
:root {
  --paper: #F2F4F7;
  --panel: #FFFFFF;
  --ink: #0F1B2D;
  --ink-2: #44546A;
  --line: #D5DBE4;
  --action: #2447F5;
  --action-ink: #FFFFFF;
  --long: #0B7A5E;
  --short: #B4325A;
  --wash: #E7EBF1;
  --radius: 10px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1422;
    --panel: #121C2E;
    --ink: #EAF0FA;
    --ink-2: #A3B1C6;
    --line: #26344B;
    --action: #7C95FF;
    --action-ink: #0C1422;
    --long: #3CCB9F;
    --short: #FF7DA3;
    --wash: #172338;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: var(--action); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--action); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 62ch; }
.muted { color: var(--ink-2); }

/* Header ------------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.97rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--action-ink); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--text); padding: 14px 22px; border-radius: 8px; border: 1.5px solid var(--action);
  background: var(--action); color: var(--action-ink); cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--action); }
.btn.small { padding: 10px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero -------------------------------------------------------------------- */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 36ch; margin: 22px 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 20px; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero { padding: 44px 0 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* The hedge ticket: the one memorable element ------------------------------ */
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15,27,45,.35); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.ticket-head strong { color: var(--ink); font-weight: 600; }
.leg { border: 1px solid var(--line); border-left-width: 5px; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; background: var(--paper); }
.leg.long { border-left-color: var(--long); }
.leg.short { border-left-color: var(--short); }
.leg-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.leg-top .side { font-family: var(--display); font-size: 1.1rem; }
.leg.long .side { color: var(--long); }
.leg.short .side { color: var(--short); }
.leg-sub { font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.bar { height: 6px; background: var(--wash); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--long); border-radius: 99px; }
.leg.short .bar > i { background: var(--short); }
.net { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.net .label { color: var(--ink-2); font-size: .95rem; }
.net .value { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.ticket-note { font-size: .82rem; color: var(--ink-2); margin: 14px 0 0; }

/* Animation: runs once on load, only if the user allows motion */
.hero-anim .leg.short, .hero-anim .net { opacity: 0; transform: translateY(6px); }
.hero-anim.play .leg.long .bar > i { animation: fill 1.4s cubic-bezier(.3,.7,.2,1) .3s forwards; }
.hero-anim.play .leg.short { animation: appear .5s ease 1.8s forwards; }
.hero-anim.play .leg.short .bar > i { animation: fill .45s ease 2.1s forwards; }
.hero-anim.play .net { animation: appear .5s ease 2.6s forwards; }
.hero-anim.done .leg.short, .hero-anim.done .net { opacity: 1; transform: none; }
.hero-anim.done .bar > i { width: 100%; }
@keyframes fill { to { width: 100%; } }
@keyframes appear { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-anim .leg.short, .hero-anim .net { opacity: 1; transform: none; }
  .hero-anim .bar > i { width: 100%; animation: none !important; }
}

/* Sections ---------------------------------------------------------------- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li { list-style: none; padding: 26px; border-right: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--action); display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li { border-right: 0; border-bottom: 1px solid var(--line); } .steps li:last-child { border-bottom: 0; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2.5px solid var(--long); border-bottom: 2.5px solid var(--long); transform: rotate(-45deg); }
.checks b { font-weight: 600; }

.venues { display: flex; flex-wrap: wrap; gap: 10px 14px; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.venues span + span::before { content: "/"; color: var(--line); margin-right: 14px; font-weight: 400; }

/* Products ---------------------------------------------------------------- */
.bundle { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (prefers-color-scheme: dark) { .bundle { background: var(--panel); border: 1px solid var(--line); color: var(--ink); } }
.bundle h3 { font-size: 1.9rem; }
.bundle p { color: inherit; opacity: .8; margin: 10px 0 0; max-width: 42ch; }
.bundle .buy { text-align: right; }
.bundle .price { font-family: var(--display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1; }
.bundle .price small { font-size: 1rem; font-weight: 500; opacity: .7; letter-spacing: 0; }
.bundle .btn { margin-top: 18px; background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (prefers-color-scheme: dark) { .bundle .btn { background: var(--action); color: var(--action-ink); border-color: var(--action); } }
@media (max-width: 760px) { .bundle { grid-template-columns: 1fr; } .bundle .buy { text-align: left; } }
.single { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.single:first-of-type { margin-top: 12px; }
.single h3 { margin-bottom: 4px; }
.single p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.single .price { font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
@media (max-width: 640px) { .single { grid-template-columns: 1fr auto; } .single .price { grid-column: 2; grid-row: 1; } .single .btn { grid-column: 1 / -1; } }

/* Demo -------------------------------------------------------------------- */
.demo-frame { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.demo-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.shot-slot { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: var(--ink-2); padding: 24px; background:
  repeating-linear-gradient(135deg, transparent 0 14px, var(--wash) 14px 15px); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.shots figcaption { color: var(--ink-2); font-size: .92rem; margin-top: 8px; }

/* Payment section --------------------------------------------------------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.coins div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; }
.coins small { display: block; font-weight: 400; color: var(--ink-2); }

/* FAQ --------------------------------------------------------------------- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--action); }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--ink-2); max-width: 66ch; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-2); font-size: .93rem; }
.site-footer .risk { max-width: 78ch; margin-bottom: 18px; }
.site-footer a { color: var(--ink-2); }

/* Checkout modal ---------------------------------------------------------- */
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(520px, calc(100% - 32px)); background: var(--panel); color: var(--ink); }
dialog::backdrop { background: rgba(8, 14, 26, .6); }
.dlg { padding: 26px; }
.dlg h3 { margin-bottom: 4px; }
.dlg .close { float: right; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-2); cursor: pointer; }
label { display: block; font-weight: 600; margin: 18px 0 6px; font-size: .95rem; }
select, input[type=email] { width: 100%; padding: 13px 12px; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 22px; font-weight: 600; }
.err { color: var(--short); margin: 12px 0 0; min-height: 1.4em; font-size: .95rem; }

/* Order page -------------------------------------------------------------- */
.order { padding: 56px 0 80px; }
.order .box { max-width: 620px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.field { margin-top: 18px; }
.field .k { font-size: .9rem; color: var(--ink-2); }
.copyline { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.copyline code { flex: 1; overflow-wrap: anywhere; font: 500 1rem/1.4 var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.copyline button { white-space: nowrap; }
.copyline code.big-amount { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.2; }
.copyline code.keybox { font: 500 .85rem/1.5 var(--text); max-height: 120px; overflow: auto; word-break: break-all; }
.status { display: inline-block; padding: 6px 12px; border-radius: 99px; font-weight: 600; font-size: .92rem; background: var(--wash); }
.status.paid { background: var(--long); color: #fff; }
.status.expired { background: var(--short); color: #fff; }
.warn { background: var(--wash); border-radius: 8px; padding: 14px 16px; font-size: .95rem; margin-top: 22px; }
.qr { margin: 22px auto 0; width: 176px; height: 176px; background: #fff; padding: 8px; border-radius: 8px; }
.keybox { font: 500 .85rem/1.5 var(--text); word-break: break-all; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 140px; overflow: auto; }
.files a { display: block; margin-top: 8px; }

/* Prose pages (docs, terms) ------------------------------------------------ */
.prose { padding: 56px 0 90px; }
.prose .layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.prose nav { position: sticky; top: 90px; align-self: start; font-size: .95rem; }
.prose nav a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; }
.prose nav a:hover { color: var(--action); }
.prose article { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
.prose h2 { margin: 52px 0 14px; font-size: 1.7rem; scroll-margin-top: 90px; }
.prose h3 { margin: 28px 0 8px; }
.prose code { background: var(--wash); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.prose pre { background: var(--ink); color: var(--paper); padding: 16px; border-radius: 8px; overflow-x: auto; font-size: .92rem; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
@media (prefers-color-scheme: dark) { .prose pre { background: #070C16; color: #EAF0FA; } }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.callout { border-left: 4px solid var(--action); background: var(--wash); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
@media (max-width: 860px) { .prose .layout { grid-template-columns: 1fr; gap: 20px; } .prose nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; } }
