/* Hunch — site styles. Three colours and paper; tickets do the talking. */
:root {
  --flare: #ff5a1f;
  --ember: #b8400e;
  --ink: #13111f;
  --ink-2: #3f3b4f;
  --muted: #6b6778;
  --stock: #f5f3ee;
  --white: #ffffff;
  --line: #e6e2da;
  --gain: #188a4c;
  --loss: #d12f2f;
  --sky: #bfe1ff;
  --butter: #ffe58a;
  --lilac: #dacfff;
  --mint: #bff0d3;
  --rose: #ffcada;
  --teal: #b9ece8;
  --display: "Bricolage Grotesque", "Arial Narrow", Impact, system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 500 16px / 1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--ember);
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  margin: 0;
  font: 600 11px / 1.3 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(36px, 5vw, 64px);
}
h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
p {
  margin: 0;
}
.lead {
  color: var(--ink-2);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
  max-width: 32ch;
}
.flare {
  color: var(--flare);
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font: 800 1em / 1 var(--display);
  letter-spacing: -0.055em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .stub {
  display: inline-block;
  position: relative;
  width: 0.5em;
  height: 0.72em;
  margin-left: 0.07em;
  border-radius: 0.12em;
  background: var(--flare);
  transform: rotate(-10deg);
  transform-origin: 50% 60%;
  vertical-align: -0.02em;
  -webkit-mask:
    radial-gradient(circle 0.085em at 0 62%, transparent 0.08em, #000 0.085em),
    radial-gradient(circle 0.085em at 100% 62%, transparent 0.08em, #000 0.085em);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 0.085em at 0 62%, transparent 0.08em, #000 0.085em),
    radial-gradient(circle 0.085em at 100% 62%, transparent 0.08em, #000 0.085em);
  mask-composite: intersect;
}
.wordmark .stub::after {
  content: "";
  position: absolute;
  left: 0.09em;
  right: 0.09em;
  top: 62%;
  border-top: 0.035em dashed rgba(19, 17, 31, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font: 700 16px / 1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-flare {
  background: var(--flare);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(255, 90, 31, 0.7);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-pill {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--stock) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.nav .wordmark {
  font-size: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:not(.btn):hover {
  color: var(--ember);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px var(--gutter) 18px;
    background: var(--stock);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a:not(.btn) {
    padding: 12px 6px;
    font-size: 16px;
  }
  .nav-links .btn {
    margin-top: 8px;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow-x: clip;
}
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.hero .lead {
  margin-top: 22px;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font: 600 14px / 1.4 var(--body);
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding: 28px 0 48px;
  }
}

/* Demo */
.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  user-select: none;
  -webkit-user-select: none;
}
.deck {
  position: relative;
  width: min(100%, 340px);
  height: 440px;
  --gyes: 0;
  --gno: 0;
}
.deck::before,
.deck::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 120px;
  pointer-events: none;
  border-radius: 40px;
  filter: blur(24px);
  z-index: 0;
}
.deck::before {
  left: -90px;
  background: var(--ink);
  opacity: calc(var(--gno) * 0.35);
}
.deck::after {
  right: -90px;
  background: var(--flare);
  opacity: calc(var(--gyes) * 0.55);
}
.ticket {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: var(--field, var(--butter));
  color: var(--ink);
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  --pyes: 0;
  --pno: 0;
  --d: 0;
  z-index: 3;
  transform: translateY(calc(var(--d) * 12px)) scale(calc(1 - var(--d) * 0.05));
  transform-origin: 50% 100%;
  transition: transform 0.32s var(--ease);
  -webkit-mask:
    radial-gradient(circle 10px at 0 calc(100% - 86px), transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% calc(100% - 86px), transparent 9.5px, #000 10px);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 10px at 0 calc(100% - 86px), transparent 9.5px, #000 10px),
    radial-gradient(circle 10px at 100% calc(100% - 86px), transparent 9.5px, #000 10px);
  mask-composite: intersect;
}
.ticket[data-depth="0"] {
  transform-origin: 50% 50%;
  box-shadow: 0 30px 60px -30px rgba(19, 17, 31, 0.5);
}
.ticket[data-depth="1"] {
  --d: 1;
  z-index: 2;
  cursor: default;
}
.ticket[data-depth="2"] {
  --d: 2;
  z-index: 1;
  cursor: default;
}
.ticket.live {
  transition: none;
  cursor: grabbing;
}
.ticket.leaving {
  z-index: 10;
  pointer-events: none;
  transition: none;
  transform-origin: 50% 50%;
}
.ticket.entering {
  animation: ticketIn 0.5s var(--ease) both;
}
@keyframes ticketIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}
.ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: calc(var(--d) * 0.1);
  pointer-events: none;
}
.ticket .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 12px / 1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticket .cat {
  background: var(--ink);
  color: var(--field, var(--butter));
  padding: 7px 10px;
  border-radius: 999px;
}
.ticket .q {
  margin: 0;
  font: 800 clamp(26px, 9cqi, 34px) / 1.02 var(--display);
  letter-spacing: -0.035em;
}
.ticket .mid {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.ticket .pct {
  font: 800 64px / 0.86 var(--display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.ticket .pct small {
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
}
.ticket .sub {
  margin-top: 6px;
  font: 600 12px / 1.2 var(--body);
}
.ticket .vol {
  font: 500 12px / 1.4 var(--body);
  text-align: right;
  opacity: 0.85;
}
.ticket .vol b {
  display: block;
  font: 600 12px / 1.2 var(--mono);
}
.stub-row {
  height: 86px;
  margin: 0 -22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px dashed rgba(19, 17, 31, 0.42);
}
.half {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 22px;
}
.half::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.half.no {
  opacity: calc(1 - var(--pyes) * 0.6);
}
.half.no::before {
  background: var(--ink);
  opacity: var(--pno);
}
.half.no {
  color: color-mix(in srgb, #fff calc(var(--pno) * 100%), var(--ink));
}
.half.yes {
  align-items: flex-end;
  text-align: right;
  border-left: 2px dashed rgba(19, 17, 31, 0.42);
  opacity: calc(1 - var(--pno) * 0.6);
}
.half.yes::before {
  background: var(--flare);
  opacity: var(--pyes);
}
.half .sd {
  font: 800 22px / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.half.yes .sd {
  color: color-mix(in srgb, var(--ink) calc(var(--pyes) * 100%), var(--ember));
}
.half .py {
  font: 600 13px / 1.2 var(--body);
  font-variant-numeric: tabular-nums;
}
.stamp {
  position: absolute;
  top: 60px;
  padding: 9px 18px 8px;
  border-radius: 14px;
  font: 800 40px / 1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
}
.stamp.yes {
  left: 18px;
  background: var(--flare);
  color: var(--ink);
  opacity: var(--pyes);
  transform: rotate(-11deg) scale(calc(0.8 + var(--pyes) * 0.2));
  box-shadow: 0 14px 30px -10px rgba(255, 90, 31, 0.6);
}
.stamp.no {
  right: 18px;
  background: var(--ink);
  color: #fff;
  opacity: var(--pno);
  transform: rotate(11deg) scale(calc(0.8 + var(--pno) * 0.2));
}
.ticket.nudge {
  animation: nudge 1.6s var(--ease) 1;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  35% {
    transform: translateX(46px) rotate(4deg);
  }
  70% {
    transform: translateX(-22px) rotate(-2deg);
  }
}
.demo-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 14px / 1.3 var(--body);
  color: var(--muted);
  min-height: 24px;
  text-align: center;
}
.demo-hint .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flare);
  animation: pulse 1.2s ease-in-out infinite;
}
.demo-hint.done .dot {
  animation: none;
  background: var(--gain);
}
@keyframes pulse {
  50% {
    transform: scale(0.5);
    opacity: 0.5;
  }
}
.demo-end {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 0.3s,
    transform 0.3s var(--ease);
}
.demo-end.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.demo-end h3 {
  font-size: 34px;
  letter-spacing: -0.04em;
}
.demo-end p {
  color: #c9c5d6;
  max-width: 26ch;
}
.demo-keys {
  font: 500 12px / 1.4 var(--body);
  color: var(--muted);
}
kbd {
  font: 600 11px / 1 var(--mono);
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
}

/* Strip */
.strip {
  background: var(--ink);
  color: #a9a4ba;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  justify-content: center;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  font: 600 13px / 1.4 var(--body);
}
.strip strong {
  color: #fff;
  font-weight: 700;
}

/* Sections */
section {
  padding: 96px 0 48px;
}
section + section {
  padding-top: 48px;
}
.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.step {
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.step .n {
  font: 800 44px / 1 var(--display);
  letter-spacing: -0.04em;
  color: var(--flare);
}
.step p {
  color: var(--ink-2);
  font-size: 15px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}
.split .lead {
  max-width: 46ch;
  font-size: 17px;
  margin-top: 18px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  padding: 20px;
  border-radius: 20px;
  background: var(--field);
  color: var(--ink);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.tile:hover {
  transform: translateY(-4px) rotate(var(--r, -1deg));
  box-shadow: 0 24px 40px -28px rgba(19, 17, 31, 0.5);
}
.tile .cat {
  align-self: flex-start;
  background: var(--ink);
  color: var(--field);
  padding: 5px 8px;
  border-radius: 999px;
  font: 600 11px / 1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile .q {
  font: 800 22px / 1.05 var(--display);
  letter-spacing: -0.03em;
}
.tile .odds {
  display: flex;
  justify-content: space-between;
  font: 800 14px / 1 var(--display);
}
.tile .odds .y {
  color: var(--ember);
}
.dark {
  background: var(--ink);
  color: #fff;
}
.dark .eyebrow {
  color: #a9a4ba;
}
.dark h2 {
  max-width: 18ch;
}
.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.card h3 {
  color: var(--flare);
  font-size: 22px;
}
.card p {
  margin-top: 10px;
  color: #c9c5d6;
  font-size: 15px;
}
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}
.faq h2 {
  font-size: clamp(36px, 5vw, 56px);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font: 700 18px / 1.3 var(--body);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 20px / 1 var(--body);
  color: var(--ink);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .a {
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 62ch;
}
.cta {
  padding: 48px 0 96px;
}
.cta-box {
  border-radius: 32px;
  background: var(--flare);
  color: var(--ink);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}
.cta-box h2 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.05em;
}
.cta-box p {
  margin-top: 14px;
  font-size: 18px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form label {
  font: 600 12px / 1.3 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: 600 16px / 1 var(--body);
}
.form input[type="email"]::placeholder {
  color: #8a8599;
}
.form .fine {
  font: 500 12.5px / 1.4 var(--body);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
footer {
  border-top: 1px solid var(--line);
}
footer .wrap {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  font: 500 13px / 1.5 var(--body);
  color: var(--muted);
}
footer .wordmark {
  font-size: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
footer nav a {
  color: var(--muted);
  text-decoration: none;
}
footer nav a:hover {
  color: var(--ink);
}
footer .legal {
  flex-basis: 100%;
  max-width: 72ch;
}

/* Reveal on scroll */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.js .reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.js .reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* Legal pages */
.doc {
  max-width: 72ch;
  padding: 48px 0 96px;
}
.doc h1 {
  font-size: clamp(40px, 6vw, 72px);
}
.doc h2 {
  font-size: 28px;
  margin-top: 40px;
}
.doc p,
.doc li {
  color: var(--ink-2);
  margin-top: 12px;
}
.doc .draft {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 600;
}
.doc .updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .steps,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .split,
  .faq,
  .cta-box {
    grid-template-columns: minmax(0, 1fr);
  }
  section {
    padding: 64px 0 32px;
  }
  .cta-box {
    padding: 36px 24px;
  }
  .deck {
    height: 420px;
  }
}
@media (max-width: 480px) {
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticket,
  .tile,
  .btn,
  .demo-end {
    transition: none;
  }
  .ticket.nudge,
  .ticket.entering,
  .demo-hint .dot {
    animation: none;
  }
}
