/* theonebytwo.com — dark only, like the app. Colours come from the app's
   core/theme/tokens.dart: plum fill, pink accent, near-black canvas. */
:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #161618;
  --surface-2: #1c1c1e;
  --text: #ffffff;
  --muted: rgba(235, 235, 245, 0.64);
  --faint: rgba(235, 235, 245, 0.46);
  --accent: #ef798a;
  --plum: #9b4487;
  --plum-deep: #5a2450;
  --rule: rgba(235, 235, 245, 0.12);
  --note-bg: rgba(155, 68, 135, 0.16);
  --note-text: #f4b6c2;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Google Sans", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Text pages: privacy, terms, support, 404 ---------- */

main, header, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header { padding-top: 28px; }
header a { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }

main { padding-top: 32px; padding-bottom: 56px; }

h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.025em; margin: 0.5em 0; }
h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 2em; }
h3 { font-size: 1.05rem; margin-top: 1.5em; }

a { color: var(--accent); text-underline-offset: 3px; }
strong { font-weight: 650; }

.lede { font-size: 1.2rem; color: var(--muted); }

.note {
  background: var(--note-bg);
  color: var(--note-text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

ul { padding-left: 1.2em; }
li { margin: 0.35em 0; }
li::marker { color: var(--plum); }

footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  padding-bottom: 36px;
  color: var(--faint);
  font-size: 0.9rem;
}
footer a { color: var(--muted); margin-right: 16px; text-decoration: none; }
footer a:hover { color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 9px; display: block; }

/* ---------- Homepage ---------- */

.home header, .home footer, .home main { max-width: none; padding: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 15, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.nav-links .btn-primary, .btn-primary { background: var(--plum); color: #fff; box-shadow: 0 8px 30px rgba(155, 68, 135, 0.35); }
.btn-primary:hover { background: #ad4f98; }
.btn-ghost { color: var(--text); border: 1px solid var(--rule); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 121, 138, 0.35);
  background: rgba(155, 68, 135, 0.14);
  color: var(--note-text);
  font-size: 0.85rem;
  font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(239, 121, 138, 0.2); }

.kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -240px;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(155, 68, 135, 0.38), rgba(155, 68, 135, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 22px 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.2rem; line-height: 1.55; max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 28px 0 0; color: var(--faint); font-size: 0.92rem; }

/* Phone mock-up, drawn with the app's tile gradients */
.phone-col { justify-self: center; }
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a2e, #111113);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(155, 68, 135, 0.25);
  transform: rotate(2deg);
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #000;
  padding: 50px 14px 18px;
}
.screen::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 20px;
  background: #1a1a1c;
}
.profile-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; }
.avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef798a, #5a2450);
  box-shadow: 0 0 0 2px rgba(239, 121, 138, 0.45);
}
.profile-head b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.3; }
.profile-head span { color: var(--faint); font-size: 0.78rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 108px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.tile.wide { grid-column: span 2; min-height: 88px; }
.tile small { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; }
.tile b { font-size: 0.96rem; line-height: 1.2; letter-spacing: -0.01em; }
.tile i { font-style: normal; font-size: 0.72rem; opacity: 0.82; line-height: 1.35; }
.t-saffron { background: linear-gradient(160deg, #c9812b, #7a3a04); }
.t-indigo { background: linear-gradient(160deg, #5b49a8, #241a4c); }
.t-teal { background: linear-gradient(160deg, #2c8479, #0b3f3a); }
.t-rose { background: linear-gradient(160deg, #c24e66, #6e162c); }
.phone-actions { display: flex; gap: 8px; margin-top: 12px; }
.phone-actions span {
  flex: 1;
  padding: 10px 0;
  border-radius: 999px;
  background: #1c1c1e;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: center;
}
.phone-actions span.go { background: var(--plum); color: #fff; }
.mock-note { margin: 22px 0 0; color: var(--faint); font-size: 0.78rem; text-align: center; }

/* Sources strip */
.sources { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 26px 0; }
.sources .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.sources p { margin: 0 8px 0 0; color: var(--faint); font-size: 0.9rem; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: linear-gradient(180deg, #111113, #0d0d0f); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface);
}
.card h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(155, 68, 135, 0.2);
  color: var(--note-text);
  font-weight: 750;
}

/* Biodata vs theonebytwo */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card { padding: 32px; }
.compare h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.compare ul { list-style: none; padding: 0; margin: 18px 0 0; }
.compare li { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.compare li:first-child { border-top: 0; }
.compare .ours { background: linear-gradient(160deg, rgba(155, 68, 135, 0.22), rgba(90, 36, 80, 0.08)); border-color: rgba(239, 121, 138, 0.3); }
.compare .ours h3 { color: var(--accent); }
.compare .ours li { color: var(--text); }

/* Privacy promises */
.promise { display: flex; gap: 16px; align-items: flex-start; }
.promise .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(239, 121, 138, 0.14);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

/* AI section */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai .section-head { margin-bottom: 0; }
.ai ul { list-style: none; padding: 0; margin: 24px 0 0; }
.ai li { position: relative; padding-left: 28px; margin: 12px 0; color: var(--muted); }
.ai li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.ai-flow { display: grid; gap: 8px; }
.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
}
.flow-row span:last-child { color: var(--faint); font-size: 0.84rem; font-weight: 500; text-align: right; }
.flow-row.hl { border-color: rgba(239, 121, 138, 0.4); background: rgba(155, 68, 135, 0.14); }
.flow-arrow { color: var(--faint); font-size: 0.9rem; line-height: 1; text-align: center; }

/* Closing call to action */
.cta-band {
  padding: 72px 24px;
  border-radius: 32px;
  border: 1px solid rgba(239, 121, 138, 0.25);
  background: radial-gradient(120% 140% at 50% 0%, rgba(155, 68, 135, 0.5), rgba(90, 36, 80, 0.18) 55%, rgba(13, 13, 15, 0) 100%), var(--surface);
  text-align: center;
}
.cta-band img { display: block; margin: 0 auto 24px; border-radius: 22px; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--muted); font-size: 1.1rem; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 0.85rem; letter-spacing: 0.04em; }
.footer-grid a { display: block; margin: 0 0 8px; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { display: inline-flex; color: var(--text); font-weight: 700; }
.footer-grid p { max-width: 340px; margin: 14px 0 0; }
.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .ai { grid-template-columns: 1fr; gap: 56px; }
  .grid-3, .grid-2, .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .phone { width: 272px; transform: none; }
  .card, .compare .card { padding: 22px; }
  .cta-band { padding: 56px 18px; border-radius: 24px; }
  .cta-row .btn { width: 100%; }
  .flow-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .flow-row span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
