/* SplitDone landing site - single shared stylesheet, no build step. */

:root {
  --teal: #14b8a6;
  --teal-strong: #0d9488;
  --teal-soft: #ccfbf1;
  --teal-glow: rgba(20, 184, 166, 0.18);
  --ink: #0f1f2e;
  --ink-2: #3b4a5a;
  --ink-3: #6b7a8a;
  --amber: #f59e0b;
  --amber-ink: #3d2a00;
  --amber-soft: #fef3c7;
  --bg: #ffffff;
  --surface: #f5f8fa;
  --surface-2: #e9eff3;
  --line: #dfe6ec;
  --on-teal: #ffffff;
  --shadow: 0 18px 50px rgba(15, 31, 46, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 16px;
  --free-bg: #0f1f2e;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #2dd4bf;
    --teal-strong: #5eead4;
    --teal-soft: #0f2e2b;
    --teal-glow: rgba(45, 212, 191, 0.16);
    --ink: #eef3f6;
    --ink-2: #b9c5cf;
    --ink-3: #8a98a6;
    --amber: #fbbf24;
    --amber-ink: #2a1c00;
    --amber-soft: #3a2a07;
    --bg: #0b1218;
    --surface: #121c25;
    --surface-2: #1a2631;
    --line: #253240;
    --on-teal: #06211d;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --teal: #2dd4bf;
  --teal-strong: #5eead4;
  --teal-soft: #0f2e2b;
  --teal-glow: rgba(45, 212, 191, 0.16);
  --ink: #eef3f6;
  --ink-2: #b9c5cf;
  --ink-3: #8a98a6;
  --amber: #fbbf24;
  --amber-ink: #2a1c00;
  --amber-soft: #3a2a07;
  --bg: #0b1218;
  --surface: #121c25;
  --surface-2: #1a2631;
  --line: #253240;
  --on-teal: #06211d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-strong);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--teal); color: var(--on-teal); padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 10px 24px var(--teal-glow); }
.btn-primary:hover { background: var(--teal-strong); color: var(--on-teal); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-disabled, .btn[aria-disabled="true"] {
  background: var(--surface-2); color: var(--ink-3); border-color: transparent;
  cursor: not-allowed; box-shadow: none; pointer-events: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--surface); }
.nav-links .btn { min-height: 40px; padding: 0 16px; font-size: 0.95rem; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 0; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; position: relative; }
.hero-copy { max-width: 36rem; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1 em { font-style: normal; color: var(--teal-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-3); }
.hero-visual { display: flex; justify-content: center; padding-bottom: 24px; }

.badge-free {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--amber-ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.badge-free svg { width: 16px; height: 16px; }

/* Phone frame (CSS-drawn device) */
.phone {
  position: relative; width: 272px; aspect-ratio: 272 / 560;
  border-radius: 44px; background: #0b1218; padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 2px #2a3744;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #0b1218; z-index: 2;
}
.phone::after {
  content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 60px; border-radius: 2px; background: #2a3744;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--surface); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Free section */
.free { background: var(--free-bg); color: #eef3f6; position: relative; overflow: hidden; }
.free::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.35), transparent 65%); pointer-events: none;
}
.free .wrap { position: relative; display: grid; gap: 32px; }
.free h2 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); }
.free .lead { color: #c3cfd9; }
.free .eyebrow { color: #5eead4; }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.free-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.free-list svg { width: 24px; height: 24px; flex: none; color: #2dd4bf; margin-top: 2px; }
.free-list strong { color: #fff; }
.price-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 28px; text-align: center;
}
.price-card .price { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: #8fb3ab; letter-spacing: 0; margin-left: 4px; }
.price-card .tag { display: inline-block; background: var(--amber); color: var(--amber-ink); font-weight: 800; border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; font-size: 0.85rem; }
.price-card p { color: #c3cfd9; margin: 10px 0 0; }

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong);
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }

/* Features */
.features { display: grid; gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid transparent; transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: var(--line); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-strong); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Simplify */
.simplify .wrap { display: grid; gap: 36px; align-items: center; }
.diagram { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: 0.9rem; color: var(--ink-3); text-align: center; margin-top: 8px; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.check-list svg { width: 22px; height: 22px; color: var(--teal-strong); flex: none; margin-top: 3px; }

/* Currency callout */
.currency-card {
  display: grid; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--teal-soft), var(--surface));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px);
}
.currency-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 0.9rem; }
.chip-soon { background: var(--amber-soft); color: var(--amber-ink); border-color: transparent; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; }
.rate-example { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; font-variant-numeric: tabular-nums; }
.rate-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rate-row .muted { font-size: 0.85rem; }
.rate-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; }

/* Coming soon */
.soon-grid { display: grid; gap: 10px; }
.soon-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 46rem; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid transparent; }
.faq details[open] { border-color: var(--line); background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--ink-2); }

/* Final CTA */
.cta { text-align: center; }
.cta .wrap { max-width: 44rem; }
.cta .hero-actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 0.93rem; color: var(--ink-2); }
.footer .wrap { display: grid; gap: 28px; }
.footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 10px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--teal-strong); }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; color: var(--ink-3); }

/* Docs (privacy, terms) */
.doc { max-width: 44rem; padding: clamp(40px, 6vw, 72px) 0; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { font-size: 1.05rem; margin-top: 1.5em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; }
.doc .updated { color: var(--ink-3); font-size: 0.9rem; }
.doc .summary-box { background: var(--teal-soft); border-radius: var(--radius); padding: 18px 20px; margin: 1.5em 0; }
.doc .summary-box p:last-child { margin: 0; }
.doc .summary-box strong { color: var(--ink); }

/* Invite / 404 centered cards */
.center-page { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 40px 0; }
.card { width: 100%; min-width: 0; max-width: 30rem; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); text-align: center; }
.card .brand { justify-content: center; margin-bottom: 20px; }
.card .brand img { width: 48px; height: 48px; border-radius: 13px; }
.card h1 { font-size: 1.7rem; }
.card .actions { display: grid; gap: 10px; margin: 22px 0; }
.card .btn { white-space: normal; padding-left: 16px; padding-right: 16px; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.token-field { display: flex; gap: 8px; margin-top: 8px; }
.token-field input {
  flex: 1; min-width: 0; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.token-field button { font: inherit; font-weight: 700; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.token-field button:hover { border-color: var(--teal); color: var(--teal-strong); }
.status { color: var(--ink-3); font-size: 0.95rem; margin: 0 0 8px; }
.js-only { display: none; }
.js .js-only { display: block; }
.js.opening .fallback { display: none; }

/* Very narrow phones (320px) */
@media (max-width: 359px) {
  .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.btn) { padding: 8px 8px; }
  .nav-links .btn { padding: 0 12px; }
}

/* Larger screens */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .soon-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
  .free .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .currency-card { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { padding-bottom: 0; }
  .phone { width: 300px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .soon-grid { grid-template-columns: repeat(3, 1fr); }
  .simplify .wrap { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
