/* WealthOS landing page. Mobile first; no build step. */

/* ───────── Tokens ───────── */
:root {
  --orange: #FF5B22;
  --electric: #3939FF;
  --pale: #AEE6ED;
  --gold: #F2BB05;
  --lilac: #DBB8FF;
  --cream: #FAF3E8;
  --bark: #29231D;

  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --fill: #E9E9EE;
  --ink: #111111;
  --muted: #5F5F66;
  --line: rgba(0, 0, 0, 0.08);
  --inv-bg: #111111;
  --inv-ink: #FFFFFF;
  --inv-muted: #B4B4BA;
  --inv-field: #262628;
  --bezel: #0B0B0C;
  --show-light: block;
  --show-dark: none;

  --r-card: 32px;
  --r-ctl: 20px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #1C1C1E;
    --fill: #2C2C2E;
    --ink: #FFFFFF;
    --muted: #A5A5AC;
    --line: rgba(255, 255, 255, 0.12);
    --inv-bg: #FFFFFF;
    --inv-ink: #111111;
    --inv-muted: #5F5F66;
    --inv-field: #F2F2F7;
    --bezel: #2A2A2D;
    --show-light: none;
    --show-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #1C1C1E;
  --fill: #2C2C2E;
  --ink: #FFFFFF;
  --muted: #A5A5AC;
  --line: rgba(255, 255, 255, 0.12);
  --inv-bg: #FFFFFF;
  --inv-ink: #111111;
  --inv-muted: #5F5F66;
  --inv-field: #F2F2F7;
  --bezel: #2A2A2D;
  --show-light: none;
  --show-dark: block;
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.noscript { padding: 20px; text-align: center; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.section { margin-top: 72px; }

.kicker {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.h2 {
  font-size: clamp(1.9rem, 6.4vw, 3rem); line-height: 1.05;
  font-weight: 800; letter-spacing: -0.02em; text-wrap: balance;
}
.h3 { font-size: 1.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.h4 { font-size: 1.1rem; line-height: 1.2; font-weight: 800; }

.tag, .pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em;
  background: rgba(0, 0, 0, 0.1);
}
.pill { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.tag--orange { background: var(--orange); color: #111; }

/* ───────── W/OS mark ───────── */
.mark {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  background: var(--inv-bg); display: grid; place-items: center; overflow: hidden;
}
.mark--sm { width: 40px; height: 40px; border-radius: 12px; }
.mark__img { width: 100%; height: 100%; }
.mark__img--light { display: var(--show-light); }
.mark__img--dark { display: var(--show-dark); }

/* ───────── Hero ───────── */
.hero { padding-top: 20px; display: grid; gap: 40px; }
.brandbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brandbar__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.brandbar .pill { margin-left: auto; }
.hero__title {
  font-size: clamp(2.5rem, 11.2vw, 4.6rem); line-height: 0.98;
  font-weight: 800; letter-spacing: -0.03em;
}
.hero__title span { display: block; }
.hero__title span:nth-child(3) { color: var(--orange); }
.hero__sub { margin: 18px 0 22px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero__shot { display: grid; justify-items: center; gap: 12px; }
.shotnote { font-size: 0.8rem; color: var(--muted); text-align: center; }
.shotnote--left { text-align: left; color: rgba(41, 35, 29, 0.7); }

/* ───────── Waitlist form ───────── */
.wl {
  --f-bg: var(--surface); --f-ink: var(--ink); --f-muted: var(--muted); --f-line: var(--line);
  max-width: 520px;
}
.wl__row { display: grid; gap: 10px; }
.wl__input {
  width: 100%; height: 58px; padding: 0 20px;
  border-radius: var(--r-ctl); border: 2px solid var(--f-line);
  background: var(--f-bg); color: var(--f-ink);
  font: inherit; font-weight: 600; font-size: 1.05rem;
  appearance: none; -webkit-appearance: none;
}
.wl__input::placeholder { color: var(--f-muted); opacity: 0.8; font-weight: 500; }
.wl__input:focus { outline: none; border-color: var(--electric); }
.wl__input[aria-invalid="true"] { border-color: var(--orange); }
.btn {
  height: 58px; padding: 0 26px; border: 0; border-radius: var(--r-ctl);
  background: var(--orange); color: #111; font-weight: 800; font-size: 1.05rem;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.wl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl__error { margin-top: 10px; font-weight: 700; font-size: 0.95rem; color: var(--f-ink); }
.wl__error::before {
  content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px;
  margin-right: 8px; border-radius: 50%; background: var(--orange); color: #111;
  font-size: 0.8rem; font-weight: 900;
}
.wl__note { margin-top: 10px; font-size: 0.82rem; color: var(--f-muted); }
.wl__ok {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border-radius: 24px; background: var(--f-bg); color: var(--f-ink); border: 2px solid var(--f-line);
}
.wl__ok:focus { outline: none; }
.wl__ok strong { font-size: 1.15rem; font-weight: 800; }
.wl__ok p { color: var(--f-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.wl__tick {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); display: grid; place-items: center;
}
.wl__tick svg { width: 22px; height: 22px; fill: none; stroke: #111; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.link {
  margin-top: 6px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; text-decoration: underline; color: var(--f-ink);
}

/* ───────── iPhone frame around real app screenshots ─────────
   Drawn in CSS: titanium band, black bezel, side buttons, Dynamic Island.
   Everything scales from --pw (the phone's width). */
.phone {
  --pw: 290px;
  position: relative; flex: none; width: var(--pw); max-width: 100%;
  padding: calc(var(--pw) * 0.013);
  border-radius: calc(var(--pw) * 0.17);
  background: linear-gradient(135deg, #d9d9dc 0%, #8d8d92 18%, #c9c9cd 38%, #77777c 60%, #bdbdc2 80%, #6c6c71 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 calc(var(--pw) * 0.012) rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 28px 60px rgba(0, 0, 0, 0.28);
}
/* left: action button, volume up, volume down. right: side button. */
.phone::before, .phone::after {
  content: ""; position: absolute; width: calc(var(--pw) * 0.012);
  background: linear-gradient(90deg, #6f6f74, #c4c4c8 45%, #85858a);
  border-radius: 2px;
}
.phone::before {
  left: calc(var(--pw) * -0.009); top: 16.5%; height: 4.2%;
  box-shadow: 0 calc(var(--pw) * 0.155) 0 0 #9a9a9f, 0 calc(var(--pw) * 0.165) 0 0 #9a9a9f,
              0 calc(var(--pw) * 0.31) 0 0 #9a9a9f, 0 calc(var(--pw) * 0.32) 0 0 #9a9a9f;
}
.phone::after { right: calc(var(--pw) * -0.009); top: 27%; height: 11.5%; }
.phone__screen {
  position: relative; overflow: hidden; background: #000;
  border: calc(var(--pw) * 0.03) solid #050506;
  border-radius: calc(var(--pw) * 0.157);
}
.phone__screen::after { /* soft glass highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 28%);
}
.phone__island {
  position: absolute; top: 1.55%; left: 50%; transform: translateX(-50%);
  width: 30%; aspect-ratio: 3.35; border-radius: 999px; background: #000; z-index: 1;
}
.phone__island::after { /* camera lens */
  content: ""; position: absolute; right: 12%; top: 50%; transform: translateY(-50%);
  height: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b2f4a, #0a0a12 60%);
}
.shot { width: 100%; height: auto; }
.shot--light { display: var(--show-light); }
.shot--dark { display: var(--show-dark); }

/* fat segmented bars */
.seg { display: flex; gap: 4px; }
.seg i { flex: 1; height: 18px; border-radius: 6px; background: var(--fill); }
.seg i.on { background: var(--c); }
.seg--sm i { height: 10px; border-radius: 4px; gap: 3px; }

/* ───────── Pillars ───────── */
.pillars { display: grid; gap: 16px; margin-top: 28px; }
.pillar {
  border-radius: var(--r-card); overflow: hidden; color: #111;
  display: grid; grid-template-rows: auto 1fr;
}
.pillar--pale { background: var(--pale); }
.pillar--gold { background: var(--gold); }
.pillar--blue { background: var(--electric); color: #fff; }
.pillar--blue .tag { background: rgba(255, 255, 255, 0.2); }
.pillar__copy { padding: 28px 24px 24px; display: grid; gap: 12px; justify-items: start; align-content: start; }
.pillar__copy p { font-weight: 500; }
.pillar__shot { height: 338px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; align-self: end; }

/* ───────── Why another app ───────── */
.why { display: grid; gap: 12px; margin-top: 28px; }
.tile__ico--n { font-size: 1.4rem; font-weight: 800; color: #111; }
.why__close { margin-top: 24px; font-size: 1.25rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; max-width: 30em; text-wrap: balance; }

/* ───────── Feature sections (Splits, Households) ───────── */
.feature { background: var(--surface); border-radius: var(--r-card); padding: 28px 20px 0; display: grid; gap: 28px; overflow: hidden; }
.feature__copy { display: grid; gap: 14px; justify-items: start; align-content: start; }
.feature__lead { color: var(--muted); font-size: 1.08rem; }
.tag--blue { background: var(--electric); color: #fff; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 40px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks p { color: var(--muted); font-size: 0.97rem; margin-top: 2px; }
.feature__shots {
  display: flex; gap: 14px; align-items: flex-start; height: 292px;
  margin: 0 -20px; padding: 0 20px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.feature__shots::-webkit-scrollbar { display: none; }
.feature__shots--tall { height: auto; padding-bottom: 28px; }
.feature .phone { --pw: 250px; scroll-snap-align: center; }

/* ───────── Benny ───────── */
.benny {
  background: var(--cream); color: var(--bark); border-radius: var(--r-card);
  padding: 28px 20px; display: grid; gap: 28px;
}
.benny__copy { display: grid; gap: 14px; justify-items: start; }
.benny__img { width: 132px; height: 132px; margin: -14px 0 -8px -14px; transform: rotate(-6deg); }
.callout { border-radius: 20px; border: 2px solid var(--bark); padding: 14px 16px; display: grid; gap: 4px; }
.callout strong { font-weight: 800; }
.callout p { font-size: 0.92rem; }
.benny__demo { background: #fff; border-radius: 28px; padding: 18px 16px; display: grid; gap: 14px; align-content: start; }
.benny__try { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(41, 35, 29, 0.7); }
.benny__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.link--bark { color: var(--bark); margin: 0; white-space: nowrap; }
.benny__qs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.qchip {
  min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 2px solid var(--bark); background: transparent; color: var(--bark); font-weight: 700; font-size: 0.9rem;
  animation: pop 0.25s ease both;
}
.qchip:hover { background: var(--bark); color: #fff; }
.chat {
  display: flex; flex-direction: column; gap: 12px; height: 380px; overflow-y: auto;
  padding: 14px; border-radius: 22px; background: var(--cream); overscroll-behavior: contain;
}
.chat > * { flex: none; animation: pop 0.25s ease both; }
.chat__me {
  align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 20px 20px 6px 20px;
  background: var(--bark); color: #fff; font-weight: 600; font-size: 0.95rem;
}
.chat__benny { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; }
.chat__face { width: 40px; height: 40px; }
.chat__body { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.chat__text { padding: 10px 14px; border-radius: 6px 20px 20px 20px; background: #fff; font-weight: 600; font-size: 0.95rem; }
.chat__typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.chat__typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--bark); opacity: 0.35; animation: blink 1s infinite; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
.chat__card {
  --fill: #EFE6D8;
  display: grid; gap: 10px; width: 100%; padding: 14px; border-radius: 22px; cursor: pointer; text-align: left;
  background: #fff; border: 2px solid var(--bark); color: var(--bark);
  box-shadow: 0 4px 0 var(--bark); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chat__card:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bark); }
.chat__cardtop, .chat__rowline { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.95rem; }
.chat__cardtop b, .chat__rowline b { font-weight: 800; font-variant-numeric: tabular-nums; }
.chat__cardtop span { font-weight: 700; font-variant-numeric: tabular-nums; }
.chat__rows { display: grid; gap: 6px; padding-top: 10px; border-top: 2px dashed #EFE6D8; }
.chat__rowline { font-size: 0.9rem; font-weight: 600; }
.chat__action { font-weight: 800; font-size: 0.88rem; color: #C23A0B; }
.ask { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ask__input {
  min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--bark);
  background: #fff; color: var(--bark); font: inherit; font-weight: 600; font-size: 1rem;
}
.ask__input::placeholder { color: rgba(41, 35, 29, 0.6); }
.ask__input:focus { outline: none; border-color: var(--orange); }
.ask__send { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; }
.ask__send svg { width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 2.800; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ───────── Trust ───────── */
.trust { display: grid; gap: 12px; margin-top: 28px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 24px; display: grid; gap: 8px; align-content: start; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile__ico { width: 52px; height: 52px; border-radius: 18px; background: var(--c); display: grid; place-items: center; margin-bottom: 6px; }
.tile__ico svg { width: 26px; height: 26px; fill: none; stroke: #111; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Early users ───────── */
.early {
  background: var(--inv-bg); color: var(--inv-ink); border-radius: var(--r-card);
  padding: 32px 20px; display: grid; gap: 22px; justify-items: start;
}
.perks { display: grid; gap: 18px; width: 100%; }
.perks li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; align-content: start; }
.perks p { color: var(--inv-muted); font-size: 0.97rem; margin-top: 2px; }
.perks__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.25rem; color: #111; background: var(--pale);
}
.perks li:nth-child(2) .perks__n { background: var(--gold); }
.perks li:nth-child(3) .perks__n { background: var(--orange); }
.early .wl {
  --f-bg: var(--inv-field); --f-ink: var(--inv-ink); --f-muted: var(--inv-muted); --f-line: transparent;
  width: 100%;
}

/* ───────── Footer ───────── */
.footer {
  margin-top: 56px; padding-top: 28px; padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: 10px;
  color: var(--muted); font-size: 0.9rem;
}
.footer strong { color: var(--ink); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 6px; }
.footer__copy { margin-top: 8px; font-size: 0.8rem; }

.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.footer__nav a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 6px 0; }
.footer__nav a:hover { text-decoration: underline; }

/* ───────── Terms page ───────── */
.legal__head { padding-top: 20px; }
.brandbar--link { text-decoration: none; margin-bottom: 0; width: fit-content; }
.legal { max-width: 760px; margin-top: 40px; display: grid; gap: 14px; }
.legal__meta { color: var(--muted); font-size: 0.9rem; }
.legal__intro { font-size: 1.1rem; }
.legal #terms-body { display: grid; gap: 12px; }
.legal__h { margin-top: 18px; }
.legal #terms-body p { color: var(--muted); }
.legal__back { font-weight: 800; }
[id] { scroll-margin-top: 20px; }

/* ───────── Wider screens ───────── */
@media (min-width: 560px) {
  .wl__row { grid-template-columns: 1fr auto; }
  .trust { grid-template-columns: 1fr 1fr; }
  .benny, .early { padding: 40px; }
  .why { grid-template-columns: repeat(3, 1fr); }
  .feature { padding: 40px 40px 0; }
  .feature__shots { margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 900px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .section { margin-top: 112px; }
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-top: 36px; gap: 48px; }
  .brandbar { margin-bottom: 56px; }
  .brandbar .pill { margin-left: 4px; }
  .hero__sub { font-size: 1.2rem; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pillar__copy { padding: 32px 28px 28px; }
  .benny { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; align-items: center; }
  .benny__demo { padding: 24px; }
  .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 56px 0; align-items: end; }
  .feature__copy { padding-bottom: 56px; align-self: center; }
  .feature--flip .feature__copy { order: 2; }
  .feature__shots { margin: 0; padding: 0; justify-content: center; overflow: hidden; }
  .feature__shots--tall { padding-bottom: 56px; align-self: center; }
  .footer__nav { grid-column: 1 / -1; }
  .early { padding: 56px; gap: 28px; }
  .perks { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .perks li { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .footer__brand, .footer__copy { grid-column: 1 / -1; }
}

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