/* Tideline landing. Layout: dark gradient hero with a paper receipt, then left-aligned sections
   that alternate between a two-column split and a full-width table. Blue only, cyan appears at gradient ends. */
:root {
  --bg: #F2F6FC; --surface: #FFFFFF; --surface-2: #E8EFFA; --line: #D5E0F0;
  --ink: #0A1E3F; --ink-2: #425A80; --ink-3: #586E94;
  --accent: #1457D9; --accent-ink: #FFFFFF; --accent-soft: #E3EDFD; --accent-line: #A8C3F3;
  --grad: linear-gradient(135deg, #0F3FB5 0%, #1A6BE6 55%, #22B2E8 100%);
  --grad-deep: linear-gradient(158deg, #051338 0%, #0A2F86 48%, #1370CF 100%);
  --warm: #E4572E; --good: #1B8A4F;
  --paper: #FBFCFE; --paper-ink: #0A1E3F; --paper-line: #C9D6EA; --paper-mute: #5B7094;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(10,30,63,.06), 0 10px 30px rgba(10,30,63,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071226; --surface: #0E1D38; --surface-2: #15284A; --line: #223B63;
    --ink: #E6EEFB; --ink-2: #A9BCD9; --ink-3: #8DA1C4;
    --accent: #5C9BFF; --accent-ink: #041330; --accent-soft: #12305F; --accent-line: #2A5CAA;
    --grad: linear-gradient(135deg, #1F4FD8 0%, #1C7FE6 55%, #25AFE0 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071226; --surface: #0E1D38; --surface-2: #15284A; --line: #223B63;
  --ink: #E6EEFB; --ink-2: #A9BCD9; --ink-3: #8DA1C4;
  --accent: #5C9BFF; --accent-ink: #041330; --accent-soft: #12305F; --accent-line: #2A5CAA;
  --grad: linear-gradient(135deg, #1F4FD8 0%, #1C7FE6 55%, #25AFE0 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); }
h1, h2, h3 { margin: 0; font-family: var(--font); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: 700 15px/1.1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(20,87,217,.28); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.line { border-color: var(--line); background: var(--surface); }
.btn.line:hover { border-color: var(--ink-3); }
.btn.sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.btn.light { background: #fff; color: #0A2F86; }
.btn.light:hover { background: #EAF2FF; }
.btn.ghost-w { border-color: rgba(255,255,255,.4); color: #fff; }
.btn.ghost-w:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* header: sits on the dark hero */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 21px/1 var(--font); letter-spacing: -.03em; }
.brand .logo { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.top .sp { flex: 1; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.12); gap: 2px; }
.lang a, .lang button { all: unset; box-sizing: border-box; cursor: pointer; padding: 5px 11px; border-radius: 8px; font: 700 13px/1.2 var(--font); color: rgba(255,255,255,.8); }
.lang [aria-current="true"], .lang [aria-pressed="true"] { background: #fff; color: #0A2F86; }
.lang a:focus-visible, .lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* hero */
.hero { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; right: -8%; bottom: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52,196,244,.42), rgba(52,196,244,0) 64%); }
.hero::after { content: ''; position: absolute; z-index: -1; left: -12%; top: -40%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(46,98,230,.5), rgba(46,98,230,0) 66%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: center; padding-block: 52px 70px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 4.7vw, 60px); line-height: 1.04; letter-spacing: -.035em; max-width: 15ch; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,.84); max-width: 52ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { margin-top: 20px; font-size: 14px; color: rgba(255,255,255,.66); max-width: 54ch; }
.wave { display: block; width: 100%; height: 44px; fill: var(--bg); margin-top: -1px; }

/* receipt */
.receipt-wrap { filter: drop-shadow(0 18px 34px rgba(2,10,40,.45)); }
.receipt { background: var(--paper); color: var(--paper-ink); padding: 24px 24px 34px; --s: 18px; --h: 9px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--h)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) var(--h) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--h)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) var(--h) repeat-x;
  border-radius: 6px 6px 0 0; }
.receipt h2 { font: 800 17px/1.2 var(--font); letter-spacing: -.01em; }
.receipt .sub { color: var(--paper-mute); font-size: 13.5px; line-height: 1.5; margin-top: 4px; }
.rcp-rows { margin-top: 16px; display: grid; gap: 0; }
.rcp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 0; border-top: 1px dashed var(--paper-line); align-items: baseline; }
.rcp-row:first-child { border-top: 0; }
.rcp-row label, .rcp-row .l { font-weight: 600; font-size: 15px; }
.rcp-row .v { font: 500 15px var(--mono); text-align: right; white-space: nowrap; }
.rcp-row .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.rcp-row input[type=range] { width: 100%; accent-color: #1457D9; margin: 2px 0 0; }
.rcp-row .chk { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; cursor: pointer; }
.rcp-row .chk input { width: 18px; height: 18px; accent-color: #1457D9; margin: 0; }
.rcp-row .hint { grid-column: 1 / -1; font-size: 12.5px; color: var(--paper-mute); line-height: 1.4; }
.rcp-total { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--paper-ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.rcp-total .l { font-weight: 800; font-size: 16px; }
.rcp-total .v { font: 700 28px/1.1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.rcp-total .buys { grid-column: 1 / -1; font-size: 14px; color: var(--paper-mute); }
.rcp-total .buys b { color: var(--paper-ink); font-family: var(--mono); font-weight: 600; }

/* sections */
section[id], .sec { scroll-margin-top: 12px; }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec.tint { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
h2.h { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.sec .intro { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.facts { display: grid; gap: 0; }
.fact { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; }
.fact:first-child { border-top: 0; padding-top: 4px; }
.fact b { font-weight: 700; }
.fact p { color: var(--ink-2); }

.tbl { overflow-x: auto; margin-top: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { border-top: 0; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tbl tbody th { font-weight: 700; white-space: nowrap; }
.tbl td { color: var(--ink-2); }
.tbl td.mono { font-size: 13px; color: var(--ink-3); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font: 700 13.5px/1.3 var(--font); }
.pill.open { background: var(--surface-2); color: var(--ink-2); }
.pill.pmp { background: var(--accent-soft); color: var(--accent); }
.pill.pd { background: #E4E6FB; color: #3D45B5; }
.pill.pg { background: var(--grad); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.pd { background: #262B63; color: #B4BAFF; } }
:root[data-theme="dark"] .pill.pd { background: #262B63; color: #B4BAFF; }

.compare .tbl table { min-width: 640px; }
.compare th.col-m, .compare td.col-m { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.compare thead th.col-m { background: var(--accent-soft); color: var(--accent); }

.formats { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.formats li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 22px; padding: 14px 0; border-top: 1px solid var(--line); }
.formats li:first-child { border-top: 0; padding-top: 0; }
.formats b { font-weight: 700; }
.formats span { color: var(--ink-2); }
.note-box { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); font-size: 15.5px; }

/* sequence */
.seq { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: s; }
.seq::before { content: ''; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: linear-gradient(90deg, #1457D9, #22B2E8); opacity: .55; }
.seq li { position: relative; padding-top: 44px; counter-increment: s; }
.seq li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 14px var(--mono); box-shadow: 0 0 0 5px var(--bg); }
.sec.tint .seq li::before { box-shadow: 0 0 0 5px var(--surface); }
.seq b { display: block; font-weight: 700; margin-bottom: 4px; }
.seq p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* faq */
.faq { display: grid; gap: 0; }
.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 40px 20px 0; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .18s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 64ch; }

/* closing band */
.close { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.close::before { content: ''; position: absolute; z-index: -1; right: -10%; top: -60%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52,196,244,.38), rgba(52,196,244,0) 64%); }
.close .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: clamp(48px, 7vw, 76px); }
.close h2 { font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.03em; max-width: 20ch; }
.close p { margin-top: 12px; color: rgba(255,255,255,.82); max-width: 52ch; }
.close .addr { font: 600 15px var(--mono); color: #fff; user-select: all; }
.close .cta { display: flex; gap: 12px; flex-wrap: wrap; }

footer { padding-block: 34px 44px; color: var(--ink-3); font-size: 14.5px; }
footer .wrap { display: flex; gap: 14px 28px; justify-content: space-between; flex-wrap: wrap; align-items: baseline; }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--ink); }

.lang-root[hidden] { display: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 28px 56px; }
  .hero h1 { max-width: 18ch; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .seq { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .seq::before { left: 14px; right: auto; top: 14px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, #1457D9, #22B2E8); }
  .seq li { padding: 0 0 24px 52px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .top .btn { display: none; }
}
@media (max-width: 560px) {
  .fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .formats li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .receipt { padding: 20px 18px 30px; }
  .rcp-total .v { font-size: 24px; }
  .close .cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
