/* Wealth Atlas: shared styles. Matches the App Store screenshot system:
   dark emerald gradient, rising brand line, SF Pro Display Heavy headlines (Inter elsewhere). */

:root {
  --green: #1FD39A;
  --green-deep: #0E8F66;
  --amber: #F2A65A;
  --red: #FF6B6B;
  --ink: #F4F7F5;
  --ink-2: rgba(244, 247, 245, 0.72);
  --muted: rgba(244, 247, 245, 0.56);
  --bg: #030806;
  --bg-2: #07130F;
  --card: rgba(16, 26, 22, 0.78);
  --card-solid: #0E1813;
  --line: rgba(255, 255, 255, 0.08);
  --line-green: rgba(31, 211, 154, 0.28);
  --radius: 28px;
  --display: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --body: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::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-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

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

/* Page background: emerald glow plus the brand line, fixed behind everything. */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 700px at 80% -10%, rgba(14, 143, 102, 0.30), transparent 70%),
    radial-gradient(900px 800px at 10% 40%, rgba(31, 211, 154, 0.10), transparent 70%),
    linear-gradient(180deg, #061A13 0%, #04100C 40%, #020705 100%);
}
.backdrop svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.10; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
em.g, .g { font-style: normal; color: var(--green); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 620px; margin: 22px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 8, 6, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang > button {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 10px;
  font: 600 13px var(--body); cursor: pointer;
}
.lang > button:hover { color: var(--ink); border-color: rgba(255,255,255,.18); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); display: none;
}
.lang.open ul { display: block; }
.lang li button {
  width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-2); font: 500 14px var(--body); cursor: pointer;
}
.lang li button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.lang li button[aria-checked="true"] { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 16px; text-decoration: none;
  font: 700 16px var(--body); letter-spacing: -0.01em; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #02140D; box-shadow: 0 10px 40px rgba(31,211,154,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(31,211,154,.40); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Phone ---------- */
/* Bezel is 1.4% of the width, like a real iPhone. Radii are concentric: the screen corner is
   12.5% of its width (iPhone 17 Pro Max), and the frame corner is that plus the bezel, so the
   rim keeps an even thickness all the way round. */
.phone {
  position: relative; width: 100%; padding: 1.4%; border-radius: 13.55% / 6.33%;
  background: #0A0C0B;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 0 0 1px rgba(0,0,0,.6),
    0 50px 100px rgba(0,0,0,.55),
    0 0 120px rgba(31,211,154,.12);
}
.phone .screen { border-radius: 12.5% / 5.75%; overflow: hidden; background: #0B0D10; aspect-ratio: 1320 / 2868; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(31,211,154,.10); border: 1px solid var(--line-green); color: var(--green);
  font-size: 13px; font-weight: 700; margin-bottom: 26px;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero-phones { position: relative; height: clamp(460px, 56vw, 660px); }
.hero-phones .phone { position: absolute; width: 46%; }
.hero-phones .p1 { left: 27%; top: 0; z-index: 3; }
.hero-phones .p2 { left: 0; top: 13%; transform: rotate(-6deg); opacity: .92; z-index: 2; }
.hero-phones .p3 { right: 0; top: 13%; transform: rotate(6deg); opacity: .92; z-index: 1; }
.float-card {
  position: absolute; z-index: 5; padding: 16px 20px; border-radius: 20px;
  background: rgba(10, 20, 16, 0.86); border: 1px solid var(--line-green);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.float-card .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.float-card .v { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--green); letter-spacing: -0.03em; line-height: 1.1; }
.hero-phones .fc1 { left: -2%; bottom: 10%; }
.hero-phones .fc2 { right: -2%; top: 4%; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .phone { max-width: 360px; margin: 0 auto; }

.bullets { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.bullets li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.bullets li b { display: block; color: var(--ink); font-weight: 700; }
.tick {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(31,211,154,.12); border: 1px solid var(--line-green); color: var(--green); font-size: 14px; font-weight: 800;
}

.breakdown { margin-top: 30px; padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-green); }
.breakdown .head { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown .total { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--green); letter-spacing: -0.03em; }
.breakdown .row { display: flex; justify-content: space-between; margin-top: 14px; font-weight: 600; }
.breakdown .row .pos { color: var(--green); }
.breakdown .row .neg { color: var(--amber); }
.bar { height: 8px; margin-top: 7px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.bar i.neg { background: linear-gradient(90deg, #9A5A22, var(--amber)); }

/* Bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 54px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); min-height: 250px; display: flex; flex-direction: column;
}
.tile.wide { grid-column: span 3; }
.tile.tall { grid-row: span 2; }
.tile p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.tile .icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(31,211,154,.10); border: 1px solid var(--line-green); color: var(--green);
}
.tile .icon svg { width: 22px; height: 22px; }
.tile .stat { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.035em; color: var(--green); margin-top: auto; padding-top: 20px; }
.tile .stat.amber { color: var(--amber); }
.tile img.widget { margin-top: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }

/* Security band */
.security { background: linear-gradient(180deg, rgba(31,211,154,.05), transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.sec-card { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.sec-card .icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(31,211,154,.10); color: var(--green); margin-bottom: 18px; }
.sec-card .icon svg { width: 22px; height: 22px; }
.sec-card p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; max-width: 900px; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan.pro { border-color: var(--line-green); background: linear-gradient(160deg, rgba(31,211,154,.08), var(--card) 55%); }
.plan .name { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan.pro .name { color: var(--green); }
.plan h3 { margin-top: 10px; font-size: 28px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.trial {
  margin-top: 22px; display: flex; gap: 16px; align-items: center; max-width: 900px; padding: 20px 24px;
  border-radius: 20px; border: 1px dashed var(--line-green); color: var(--ink-2);
}
.trial b { color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Final CTA */
.final {
  position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-radius: 36px; border: 1px solid var(--line-green);
  background: radial-gradient(600px 300px at 50% 0%, rgba(31,211,154,.18), transparent 70%), var(--card);
}
.final .lede { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 96px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer .small { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 360px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--ink); }

/* Document pages (privacy, support, about) */
.doc { padding: clamp(56px, 8vw, 96px) 0 0; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(40px, 6vw, 68px); }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 52px; letter-spacing: -0.025em; }
.doc h3 { font-size: 19px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc a:not(.btn) { color: var(--green); }
.meta { color: var(--muted); font-size: 15px; margin-top: 16px; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.highlights div { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-green); }
.highlights b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.highlights span { color: var(--muted); font-size: 15px; }
.notice:empty { display: none; }
.notice { margin-top: 30px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Reveal on scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-phones { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento, .sec-grid, .plans, .highlights { grid-template-columns: 1fr; }
  .hero-phones { height: 118vw; }
  .float-card .v { font-size: 22px; }
  .float-card { padding: 12px 14px; border-radius: 16px; }
  .nav .btn-sm { display: none; }
  .trial { flex-direction: column; align-items: flex-start; }
}
