/* MatchedBet.app website. Colours and type are the tools app's (theme.css);
   this adds the site's own layout. The slanted bar is the logo's
   parallelogram, used as the site's one recurring mark. */

:root {
  --wrap: 1180px;
  --gutter: 28px;
  --radius: 16px;
  --band: #102640;
  --band-text: #EAF2FA;
  --band-muted: #A9BCCF;
  --slant: skewX(-24deg);
  --shadow-lg: 0 1px 0 rgb(20 45 78 / 4%), 0 24px 60px -18px rgb(20 45 78 / 22%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mark-2: #142D4E;
}
:root[data-theme="dark"] {
  --band: #0F2B2A;
  --band-text: #E3F1EC;
  --band-muted: #9FBDB4;
  --mark-2: #24425F;
  --shadow-lg: 0 1px 0 rgb(255 255 255 / 3%), 0 24px 60px -18px rgb(0 0 0 / 55%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
button, input, select { font-family: inherit; font-feature-settings: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "cv05", "cv08";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s var(--ease), filter .15s ease;
}
.btn:hover { border-color: var(--control-line); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(.93); border-color: var(--accent); }
.btn-primary:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: default; filter: none; }
.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color .15s ease;
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- the slanted mark ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before {
  content: ""; width: 22px; height: 10px; flex: none;
  background: var(--accent); transform: var(--slant);
}
.kicker .idx { color: var(--accent); font-family: var(--mono); letter-spacing: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav .brand-logo { width: 174px; height: 58px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
}
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.pitch {
  position: absolute; inset: -40px -10% auto auto; width: 70%; height: 140%;
  color: var(--line); pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center;
  padding-top: 72px; padding-bottom: 96px;
}
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(44px, 4.3vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 680;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.lede { margin: 0 0 36px; max-width: 34em; color: var(--muted); font-size: 19px; line-height: 1.6; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.assurances {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 14px;
}
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* The match card: a 2UP played out, minute by minute. */
.match-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px;
}
.match-card::before {
  /* the logo's two bars, set behind the card's corner */
  content: ""; position: absolute; z-index: -1; right: -26px; top: -26px; width: 120px; height: 64px;
  background: var(--accent); transform: var(--slant); border-radius: 4px; opacity: .9;
}
.match-card::after {
  content: ""; position: absolute; z-index: -1; left: -30px; bottom: -22px; width: 150px; height: 56px;
  background: var(--mark-2); transform: var(--slant); border-radius: 4px; opacity: .9;
}
.mc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.mc-comp { font-weight: 600; color: var(--text); }
.mc-tag {
  margin-left: auto; padding: 3px 8px; border-radius: 6px; background: var(--panel-2);
  font-size: 11px; font-weight: 500;
}
.mc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mc-team { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.mc-team.away { text-align: right; }
.mc-team small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.mc-board {
  min-width: 112px; padding: 8px 14px; border-radius: 12px; text-align: center;
  background: var(--panel-2);
}
.mc-goals { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mc-min { display: block; font: 600 12px var(--mono); color: var(--accent); }
.mc-board.bump .mc-goals { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.14); } }

.mc-track { position: relative; height: 34px; margin: 18px 2px 6px; }
.mc-rail { position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line); border-radius: 2px; }
.mc-fill { position: absolute; left: 0; top: 16px; height: 2px; width: 0; background: var(--accent); border-radius: 2px; }
.mc-ht { position: absolute; left: 50%; top: 11px; width: 1px; height: 12px; background: var(--control-line); opacity: .5; }
.mc-goal {
  position: absolute; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  border: 2px solid var(--panel); opacity: 0; transform: scale(.4);
  transition: opacity .25s ease, transform .35s var(--ease);
}
.mc-goal.home { top: 3px; background: var(--back); }
.mc-goal.away { top: 21px; background: var(--lay); }
.mc-goal.on { opacity: 1; transform: none; }
.mc-ticks { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin: 0 0 16px; }

.legs { display: grid; gap: 8px; }
.leg {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg);
  transition: background .3s ease, border-color .3s ease;
}
.leg-side {
  grid-row: span 2; align-self: stretch; width: 4px; border-radius: 4px; background: var(--back);
}
.leg.lay .leg-side { background: var(--lay); }
.leg-name { font-size: 14px; font-weight: 600; }
.leg-name .odds { font-variant-numeric: tabular-nums; }
.leg-detail { grid-column: 2; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.leg-status {
  grid-row: 1 / span 2; grid-column: 3;
  padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); color: var(--muted);
}
.leg.won { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.leg.won .leg-status { background: var(--accent); color: var(--on-accent); }
.leg.lost .leg-status { color: var(--bad); }

.mc-result {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--muted);
}
.mc-result strong { font-size: 22px; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.mc-result strong.up { color: var(--accent); }
.mc-stamp {
  position: absolute; right: 18px; top: 112px;
  padding: 6px 12px; border: 2px solid var(--accent); border-radius: 6px;
  color: var(--accent); background: var(--panel);
  font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-8deg) scale(1.6); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.mc-stamp.on { opacity: 1; transform: rotate(-8deg) scale(1); }
.mc-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- figures strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 28px 24px; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { display: block; font-size: 36px; font-weight: 680; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: 14px; }
/* Two broadcast-style ticker bands crossing at the logo's slant, sliding
   opposite ways; hovering either one holds both still. */
.tickers {
  --band-h: 78px;
  position: relative; height: 270px; overflow: hidden;
  background: var(--bg); border-top: 1px solid var(--line);
}
.ticker {
  position: absolute; left: -10%; width: 120%; top: 50%; height: var(--band-h); margin-top: calc(var(--band-h) / -2);
  display: flex; align-items: center; overflow: hidden;
}
.ticker-a {
  z-index: 2; transform: rotate(-3.2deg);
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 18px 40px -16px rgb(8 127 91 / 45%);
}
.ticker-b {
  transform: rotate(2.6deg);
  background: var(--mark-2); color: #EAF2FA;
}
:root[data-theme="dark"] .ticker-a { box-shadow: 0 18px 40px -12px rgb(70 215 171 / 22%); }
/* A fine rule along each edge, as on a broadcast ticker. */
.ticker::before, .ticker::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; opacity: .18;
}
.ticker::before { top: 7px; }
.ticker::after { bottom: 7px; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: tick 48s linear infinite; }
.ticker-b .ticker-track { animation-duration: 56s; animation-direction: reverse; }
.tickers:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
/* Too narrow for the crossing to leave the lower band readable: the two run
   parallel instead, stacked at the same slant. */
@media (max-width: 900px) {
  .ticker-a { transform: translateY(calc(var(--band-h) * .55)) rotate(-3deg); }
  .ticker-b { transform: translateY(calc(var(--band-h) * -.55)) rotate(-3deg); }
}
.bk {
  --h: 24px;
  flex: none; height: var(--h); width: calc(var(--h) * var(--ar));
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.bk-tall { --h: 34px; }
.sep {
  flex: none; width: 12px; height: 7px; margin: 0 34px;
  background: currentColor; opacity: .4; transform: var(--slant);
}

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head.solo { grid-template-columns: minmax(0, 760px); }
.section h2 {
  margin: 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.045em; font-weight: 670;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 32em; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-num { font: 600 13px var(--mono); color: var(--accent); }
.step h3 { margin: 14px 0 10px; font-size: 22px; letter-spacing: -.03em; font-weight: 650; }
.step p { margin: 0; color: var(--muted); }
.step .side { font-weight: 600; }
.step .side.back { color: var(--back); }
.step .side.lay { color: var(--lay); }

.outcomes { margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.outcomes-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.outcomes-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.outcomes-head p { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.outcome-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.outcome { padding: 24px; border-left: 1px solid var(--line); }
.outcome:first-child { border-left: 0; }
.outcome .label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.outcome b { display: block; font-size: 32px; font-weight: 680; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.outcome small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.outcome.best { background: var(--accent-soft); }
.outcome.best b { color: var(--accent); }
.outcomes-note { margin: 0; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Tools */
.tool {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding: 44px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow);
}
.tool-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 650;
}
.tool-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.tool h3 { margin: 0 0 12px; font-size: 32px; letter-spacing: -.04em; font-weight: 670; }
.tool > div > p { margin: 0 0 24px; color: var(--muted); }
.ticks { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.ticks b { font-weight: 600; }

.board { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); font-size: 13px; }
.board-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.board-bar b { font-size: 14px; letter-spacing: -.02em; }
.board-bar .pill { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: 11px; }
.board-bar .pill::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); }
.board table { width: 100%; border-collapse: collapse; }
.board th { padding: 9px 12px; text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.board td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board tr:last-child td { border-bottom: 0; }
.board .r { text-align: right; }
.board .ev { font-weight: 650; color: var(--accent); }
.board .ev.neg { color: var(--muted); font-weight: 500; }
.board .evt { font-weight: 600; }
.board .evt small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.price { display: inline-block; min-width: 46px; padding: 3px 6px; border-radius: 6px; text-align: center; font-weight: 600; }
.price.back { background: rgb(var(--back-rgb) / 14%); color: var(--back); }
.price.lay { background: rgb(var(--lay-rgb) / 14%); color: var(--lay); }
.mkt { margin-left: 4px; font-size: 10px; font-weight: 700; color: var(--muted); }
.board .pick { color: var(--back); text-decoration: underline; text-decoration-color: rgb(var(--back-rgb) / 35%); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.tools-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.tool-soon {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px;
  border: 1px dashed var(--control-line); border-radius: 20px; color: var(--muted);
}
.tool-soon h4 { margin: 0 0 4px; color: var(--text); font-size: 17px; letter-spacing: -.02em; }
.tool-soon p { margin: 0; font-size: 14px; }
.tool-soon .soon { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--panel-2); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.principle .idx { font: 600 13px var(--mono); color: var(--accent); padding-top: 6px; }
.principle h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.03em; font-weight: 650; }
.principle p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
.pricing h2 { margin-bottom: 20px; }
.pricing-copy > p { margin: 0 0 28px; color: var(--muted); font-size: 18px; max-width: 30em; }
.promises { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.promises .mark { width: 18px; height: 9px; margin-top: 8px; background: var(--accent); transform: var(--slant); }
.promises b { font-weight: 600; }
.promises span { color: var(--muted); }

/* The plan, drawn as a bet slip: perforated across the middle. */
.slip {
  --notch: 13px;
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.slip-top { padding: 30px 32px 26px; }
.slip-bottom { padding: 24px 32px 30px; }
.slip-tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 26px; }
.slip-tear::before, .slip-tear::after {
  content: ""; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.slip-tear::before { left: calc(-26px - var(--notch) - 1px); clip-path: inset(0 0 0 50%); }
.slip-tear::after { right: calc(-26px - var(--notch) - 1px); clip-path: inset(0 50% 0 0); }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.slip-name { font-size: 14px; font-weight: 650; }
.slip-ref { font: 12px var(--mono); color: var(--muted); }
.slip-price { display: flex; align-items: baseline; gap: 6px; }
.slip-price b { font-size: 64px; font-weight: 700; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.slip-price span { color: var(--muted); font-size: 16px; }
.slip-trial {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650;
}
.slip-lines { margin: 0 0 22px; }
.slip-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.slip-line dt { color: var(--muted); }
.slip-line dd { margin: 0; font-weight: 600; text-align: right; }
.slip-line[hidden] { display: none; }
.slip-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 16px; }
.slip-line.total dt { color: var(--text); font-weight: 600; }
.slip .btn { width: 100%; }
.slip-fine { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; }
.faq-grid .section-head { display: block; margin: 0; }
.faq-grid .section-head p { margin-top: 18px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 22px; max-width: 44em; color: var(--muted); }

/* Closing band */
.cta-band { background: var(--band); color: var(--band-text); position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; transform: var(--slant); }
.cta-band::before { right: 6%; top: -30%; width: 220px; height: 160%; background: var(--accent); opacity: .9; }
.cta-band::after { right: calc(6% + 250px); top: -30%; width: 48px; height: 160%; background: var(--accent); opacity: .35; }
.cta-inner { position: relative; z-index: 1; padding: 96px 0; max-width: 720px; }
.cta-band h2 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 680; }
.cta-band p { margin: 0 0 32px; color: var(--band-muted); font-size: 18px; }
.cta-band .btn-primary { background: #46D7AB; border-color: #46D7AB; color: #0C151F; }
.cta-band .text-link { color: var(--band-text); text-decoration-color: rgb(255 255 255 / 30%); }

/* Footer */
.site-footer { padding: 64px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand-logo { width: 168px; height: 56px; margin: -10px 0 8px -6px; }
.footer-grid h4 { margin: 0 0 14px; color: var(--text); font-size: 13px; font-weight: 650; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.legal { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.legal p { margin: 0; max-width: 62em; }
.age {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; vertical-align: middle;
  border: 2px solid var(--text); border-radius: 50%; color: var(--text); font-size: 12px; font-weight: 750;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- sign-up ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.auth-header .brand-logo { width: 174px; height: 58px; }
.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 400px); gap: 72px; justify-content: center; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.auth h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.1; letter-spacing: -.045em; font-weight: 680; }
.auth-sub { margin: 0 0 32px; color: var(--muted); }
.form-card { padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 550; }
.field .hint { color: var(--muted); font-size: 12px; }
.field input {
  width: 100%; padding: 12px 13px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--control-line); border-radius: 10px;
  font-size: 16px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus { outline: none; border-color: var(--tf); box-shadow: 0 0 0 3px rgb(var(--back-rgb) / 18%); }
.field.bad input { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; }
.field .err:empty { display: none; }
.turnstile { margin: 0 0 20px; min-height: 65px; }
.turnstile[hidden] { display: none; }
.field.bad .hint { display: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: var(--panel-2); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 4px 0 24px; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check.bad { color: var(--bad); }
.form-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); font-size: 14px; }
.form-error[hidden] { display: none; }
.form-card .btn { width: 100%; }
.form-alt { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.notice { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.auth-aside { position: sticky; top: 24px; }
.auth-aside .slip { margin-top: 64px; }
.secure { display: flex; gap: 10px; align-items: center; margin: 18px 4px 0; color: var(--muted); font-size: 13px; }
.secure svg { width: 16px; height: 16px; flex: none; }

/* ---------- welcome / 404 ---------- */
.center-page { flex: 1; display: grid; place-items: center; padding: 40px 0 96px; }
.center-card { width: 100%; max-width: 560px; text-align: center; }
.center-card h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.045em; line-height: 1.05; font-weight: 680; }
.center-card > p { margin: 0 auto 28px; max-width: 30em; color: var(--muted); font-size: 17px; }
.done-mark {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.done-mark svg { width: 30px; height: 30px; }
.receipt { margin: 0 0 30px; padding: 6px 22px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.receipt .slip-line { border-top: 1px solid var(--line); padding: 12px 0; }
.receipt .slip-line:first-child { border-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .hero h1 { font-size: clamp(44px, 6.6vw, 64px); }
  .match-card { max-width: 560px; }
  .tool { grid-template-columns: 1fr; padding: 32px; }
  .pricing, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .auth { grid-template-columns: minmax(0, 520px); gap: 32px; }
  .auth-aside { position: static; }
  .auth-aside .slip { margin-top: 0; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .nav { height: 64px; gap: 12px; }
  .nav .brand-logo, .auth-header .brand-logo { width: 138px; height: 46px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .lede { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .match-card { padding: 18px 16px 14px; }
  .match-card::before { right: -8px; top: -18px; width: 80px; height: 44px; }
  .match-card::after { left: -8px; }
  .mc-team { font-size: 15px; }
  .mc-board { min-width: 92px; padding: 8px 10px; }
  .mc-stamp { right: 10px; top: 104px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure { padding: 22px 0 22px 18px; }
  .figure:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figure b { font-size: 30px; }
  .tickers { --band-h: 58px; height: 200px; }
  .bk { --h: 18px; }
  .bk-tall { --h: 26px; }
  .sep { margin: 0 22px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .outcome-row { grid-template-columns: 1fr; }
  .outcome { border-left: 0; border-top: 1px solid var(--line); padding: 20px; }
  .outcome:first-child { border-top: 0; }
  .outcomes-head, .outcomes-note { padding-left: 20px; padding-right: 20px; }
  .tool { padding: 22px; border-radius: 20px; }
  .tool h3 { font-size: 27px; }
  .board { margin: 0 -8px; }
  .board .hide-sm { display: none; }
  .board td, .board th { padding-left: 8px; padding-right: 8px; }
  .tools-more { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(even) { grid-template-columns: 44px 1fr; padding: 28px 0; border-left: 0; }
  .slip-top, .slip-bottom { padding-left: 22px; padding-right: 22px; }
  .slip-tear { margin: 0 18px; }
  .slip-tear::before { left: calc(-18px - var(--notch) - 1px); }
  .slip-tear::after { right: calc(-18px - var(--notch) - 1px); }
  .slip-price b { font-size: 54px; }
  .cta-band::before { right: -60px; width: 140px; }
  .cta-band::after { right: 110px; }
  .cta-inner { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth { padding-top: 16px; }
  .auth h1 { font-size: 32px; }
  .form-card { padding: 22px; }
}

/* Header actions: the trial button's short label and the theme toggle's
   place on a phone, where the footer holds the toggle instead. */
.btn .short { display: none; }
.site-footer .theme-toggle { margin-top: 16px; }
.site-footer .footer-grid p { margin: 0; max-width: 24em; }
@media (max-width: 760px) {
  .nav-actions .header-theme { display: none; }
  .nav-actions .btn .long { display: none; }
  .nav-actions .btn .short { display: inline; }
}
.match-card { margin: 0; }
@media (max-width: 760px) {
  .board .rt { display: none; }
  .tool-soon { flex-direction: column-reverse; gap: 12px; padding: 22px; }
}
@media (max-width: 760px) {
  .board td.evt { white-space: normal; }
  .board .price { min-width: 0; }
  .board .mkt { display: block; margin: 2px 0 0; }
}

/* The terms and privacy pages: long text, set to read. */
.prose { max-width: 720px; margin: 0 auto; padding: 32px 0 96px; }
.prose h1 { margin: 0 0 8px; font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.04em; line-height: 1.1; font-weight: 680; }
.prose .updated { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.prose h2 { margin: 36px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--text); font-size: 16px; line-height: 1.65; }
.prose ul { padding-left: 22px; }
.prose a { color: inherit; font-weight: 550; }
.prose .todo { padding: 1px 6px; border-radius: 4px; background: rgba(var(--back-rgb), .14); font-weight: 600; }
