/* Tabvy website — shared styles.
   Colour tokens mirror the app (splitly_app/lib/theme/app_colors_*.dart).
   Dark is the default; [data-theme="light"] switches to the light palette. */

:root {
  --primary: #6FCF6E;
  --primary-strong: #4CAF50;
  --primary-deep: #2E7D32;
  --on-primary: #0B2E0D;
  --accent-pink: #F48FB1;
  --amber: #E8A33D;
  --danger: #FFB4AB;

  --bg: #0D0F0C;
  --bg-2: #10120F;
  --surface: #171A15;
  --surface-2: #1C1F1A;
  --surface-3: #23271F;
  --line: rgba(226, 227, 221, 0.09);
  --line-strong: rgba(226, 227, 221, 0.16);

  --text: #E9EBE4;
  --text-2: #BFCABB;
  --text-3: #8A9586;

  --glow: rgba(111, 207, 110, 0.22);
  --n-settle: #A5D6A2;
  --n-expense: #7986CB;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(13, 15, 12, 0.72);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --primary: #006E1C;
  --primary-strong: #2E9B45;
  --primary-deep: #006E1C;
  --on-primary: #FFFFFF;
  --accent-pink: #A63360;
  --danger: #BA1A1A;

  --bg: #F6F8F4;
  --bg-2: #EEF2EC;
  --surface: #FFFFFF;
  --surface-2: #F3F6F1;
  --surface-3: #E8EDE5;
  --line: rgba(25, 28, 30, 0.08);
  --line-strong: rgba(25, 28, 30, 0.14);

  --text: #191C1E;
  --text-2: #3F4A3C;
  --text-3: #6F7A6B;

  --glow: rgba(76, 175, 80, 0.20);
  --n-settle: #42673F;
  --n-expense: #3F51B5;
  --shadow: 0 30px 70px rgba(16, 40, 18, 0.18);
  --card-shadow: 0 18px 40px rgba(16, 40, 18, 0.08);
  --header-bg: rgba(246, 248, 244, 0.78);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .35s ease;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.4px; }
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: transform .2s, background-color .35s;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; place-items: center; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 16px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 12px 30px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px var(--glow); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-store { height: 58px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--text); color: var(--bg); }
.btn-store svg { width: 26px; height: 26px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .3px; }
.btn-store b { font-size: 18px; font-weight: 800; }
.btn-store:hover { transform: translateY(-2px); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  opacity: .55;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55; }
.blob-1 { width: 560px; height: 560px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(76,175,80,.45), transparent 65%); animation: drift 16s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(244,143,177,.18), transparent 65%); animation: drift 20s ease-in-out infinite reverse; }
[data-theme="light"] .blob { opacity: .5; }
@keyframes drift { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-30px, 24px) } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(111,207,110,.16); }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--glow); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111,207,110,.6) } 80%,100% { box-shadow: 0 0 0 10px rgba(111,207,110,0) } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; margin: 22px 0 20px; }
.grad {
  background: linear-gradient(100deg, var(--primary) 10%, #B8F2A9 50%, var(--primary-strong) 90%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
[data-theme="light"] .grad { background-image: linear-gradient(100deg, #006E1C 10%, #3FA35A 50%, #006E1C 90%); }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 540px; margin: 0 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--text-3); font-size: 14px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 720 / 1600; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2B2E2A, #0B0C0A); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #050505; z-index: 2; box-shadow: 0 0 0 2px #151515; }
.phone img, .phone picture { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.hero .phone { transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: rotate(-3deg) translateY(0) } 50% { transform: rotate(-3deg) translateY(-14px) } }
.hero-glow { position: absolute; width: 380px; height: 380px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, var(--glow), transparent 70%); filter: blur(10px); }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--card-shadow); font-size: 14px; min-width: 210px;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 15px; color: var(--text); }
.float-card small { color: var(--text-3); font-size: 12.5px; }
.float-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.fc-1 { top: 90px; left: -10px; }
.fc-2 { bottom: 120px; right: -18px; animation-delay: -2s; }
.fc-3 { bottom: 26px; left: 10px; animation-delay: -4s; min-width: 0; }
.amount { font-family: var(--display); font-weight: 800; color: var(--primary); font-size: 18px; margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ── Sections ───────────────────────────────────────────────────────── */
section { position: relative; }
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.kicker { display: inline-block; color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 18px; margin: 18px 0 0; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 28px 24px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.stat span { color: var(--text-3); font-size: 14px; font-weight: 500; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden;
  transition: transform .35s ease, border-color .35s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(111,207,110,.12), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(111,207,110,.12); color: var(--primary); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card.pink .icon { background: rgba(244,143,177,.14); color: var(--accent-pink); }
.card.amber .icon { background: rgba(232,163,61,.14); color: var(--amber); }

/* Split calculator */
.split-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--card-shadow); }
.panel h3 { font-size: 22px; margin-bottom: 6px; }
.panel .sub { color: var(--text-3); font-size: 14.5px; margin: 0 0 24px; }
.field label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; }
.amount-input { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 16px; padding: 4px 18px; transition: border-color .2s, box-shadow .2s; }
.amount-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.amount-input span { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--text-3); }
.amount-input input { width: 100%; border: 0; background: transparent; outline: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 36px; padding: 10px 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 4px; margin-top: 20px; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; height: 42px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--on-primary); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 11px; background: var(--primary); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.people-row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--surface-3); cursor: pointer; font-size: 18px; font-weight: 700; }
.stepper button:hover { background: var(--line-strong); }
.stepper output { min-width: 34px; text-align: center; font-weight: 800; font-size: 17px; }
.shares { display: flex; flex-direction: column; gap: 14px; }
.share { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.share .bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.share .bar i { display: block; height: 100%; border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.share .name { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.share .name em { font-style: normal; color: var(--text-3); font-weight: 600; font-size: 13px; }
.share .val { font-family: var(--display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.share input { width: 84px; text-align: right; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: 15px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); font-weight: 700; font-size: 14.5px; }
.check.ok { color: var(--primary); }
.check.bad { color: var(--danger); }
.check svg { width: 18px; height: 18px; }

/* Showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.showcase + .showcase { margin-top: 120px; }
.showcase.flip .show-text { order: 2; }
.show-text h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin: 0 0 18px; }
.show-text p { color: var(--text-2); font-size: 17.5px; margin: 0 0 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 1px; }
.show-visual { position: relative; display: flex; justify-content: center; }
.show-visual .phone { width: 280px; }
.show-visual .ring { position: absolute; width: 440px; height: 440px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid var(--line-strong); }
.show-visual .ring::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 1px dashed var(--line); }

/* Screens carousel */
.screens { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screen { flex: none; scroll-snap-align: center; text-align: center; }
.screen .phone { width: 240px; border-radius: 38px; padding: 9px; }
.screen .phone img { border-radius: 30px; }
.screen .phone::before { top: 17px; width: 10px; height: 10px; margin-left: -5px; }
.screen p { margin: 18px 0 0; color: var(--text-2); font-weight: 600; font-size: 15px; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.carousel-nav button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.carousel-nav button:hover { background: var(--surface-2); }
.carousel-nav svg { width: 20px; height: 20px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step .num { font-family: var(--display); font-weight: 800; font-size: 15px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: var(--on-primary); margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Privacy band */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-item { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.p-item svg { width: 26px; height: 26px; color: var(--primary); margin-bottom: 14px; }
.p-item b { display: block; font-size: 16px; margin-bottom: 4px; }
.p-item span { color: var(--text-3); font-size: 14.5px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color .25s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; transition: transform .3s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 40px; text-align: center;
  background: radial-gradient(circle at 20% 0%, rgba(111,207,110,.35), transparent 50%), linear-gradient(135deg, #0F3D16 0%, #006E1C 55%, #2E9B45 100%);
  color: #fff; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; color: #fff; }
.cta-band p { font-size: 18px; opacity: .88; margin: 16px auto 32px; max-width: 520px; }
.cta-band .btn-store { background: #fff; color: #0B2E0D; }
.cta-band .coin { position: absolute; opacity: .12; width: 300px; right: -60px; bottom: -80px; transform: rotate(-12deg); }

/* Footer */
.footer { padding: 64px 0 40px; color: var(--text-3); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer h4 { color: var(--text); font-size: 14px; margin: 0 0 14px; letter-spacing: .3px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Simple content pages (privacy, delete-account, friend-request) ─── */
.page-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.page-hero p { color: var(--text-2); margin: 12px 0 0; }
.doc { max-width: 820px; margin: 0 auto 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--card-shadow); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.doc h2:first-of-type { margin-top: 28px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc a { color: var(--primary); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text-3); font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.doc td b { color: var(--text); }
.callout { background: rgba(111,207,110,.08); border: 1px solid rgba(111,207,110,.22); border-radius: 16px; padding: 18px 22px; }
.callout ul { margin: 8px 0 0; }

.narrow { max-width: 460px; margin: 0 auto 80px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--card-shadow); }
.form-card h2 { font-size: 26px; margin-bottom: 8px; }
.form-card p { color: var(--text-2); margin: 0 0 18px; }
.form-card label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--text-3); margin: 16px 0 8px; text-transform: uppercase; }
.form-card input[type=email], .form-card input[type=password] {
  width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--text); padding: 0 16px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--glow); }
.form-card .btn { width: 100%; margin-top: 20px; }
.btn-danger { background: #BA1A1A; color: #fff; }
.btn-danger:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 20px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.who { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 18px; color: var(--text-2); }
.who b { color: var(--text); word-break: break-all; }
.confirm-box { display: flex; gap: 10px; align-items: flex-start; background: rgba(186,26,26,.10); border: 1px solid rgba(255,180,171,.25); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; cursor: pointer; margin-top: 8px; }
.confirm-box input { margin-top: 3px; accent-color: #BA1A1A; }
.err { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 1em; }
.hidden { display: none !important; }
.center { text-align: center; }
.done-tick { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: rgba(111,207,110,.15); color: var(--primary); font-size: 34px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid, .split-demo, .showcase { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .trust { justify-content: center; }
  .showcase { gap: 48px; }
  .showcase.flip .show-text { order: 0; }
  .show-text { text-align: center; }
  .ticks { max-width: 480px; margin: 0 auto; text-align: left; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; padding: 10px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .menu-btn { display: grid; }
  .header-actions .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 70px; }
  .hero-visual { min-height: 520px; }
  .hero .phone { width: 250px; }
  .float-card { min-width: 0; padding: 10px 12px; font-size: 13px; }
  .fc-1 { left: -4px; top: 60px; }
  .fc-2 { right: -4px; bottom: 110px; }
  .features, .privacy-grid { grid-template-columns: 1fr; }
  .panel, .doc { padding: 24px 20px; }
  .cta-band { padding: 56px 22px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .show-visual .ring { width: 340px; height: 340px; }
  .show-visual .phone { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Use cases ("Made for") */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s; }
.usecase:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.uc-emoji { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--surface-2); margin-bottom: 18px; }
.usecase h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.02em; }
.usecase p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Pricing */
.price-card { max-width: 760px; margin: 0 auto; padding: 36px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--card-shadow), 0 0 0 1px rgba(111,207,110,.12); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); pointer-events: none; }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid var(--line); position: relative; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(111,207,110,.14); color: var(--primary); font-weight: 800; font-size: 12.5px; letter-spacing: .4px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.price b { font-family: var(--display); font-size: 64px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.price span { color: var(--text-3); font-weight: 600; }
.price-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; position: relative; }
.price-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111,207,110,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FCF6E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
[data-theme="light"] .price-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006E1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

@media (max-width: 1024px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .usecases, .price-list { grid-template-columns: 1fr; }
  .price-card { padding: 26px 22px; }
  .price-top .btn { width: 100%; }
}

/* ── Interactive hero demo: the real Tabvy Home + Settle Up screens ─────
   Scaled from lib/screens/home_dashboard.dart and settlement_screen.dart;
   colours come from the same tokens as the app's theme. */
.demo-wrap { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.hero .phone-demo { transform: none; animation: floatY 7s ease-in-out infinite; width: 310px; }
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.ax { position: absolute; inset: 11px; border-radius: 36px; overflow: hidden; background: var(--bg-2); color: var(--text); text-align: left; font-family: Roboto, var(--font); font-size: 12px; line-height: 1.3; }
.ax svg { width: 100%; height: 100%; }
.ax-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-2); transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; }
.ax-home.pushed { transform: translateX(-22%); filter: brightness(.6); }
.ax-settle-screen { transform: translateX(100%); box-shadow: -20px 0 40px rgba(0,0,0,.35); }
.ax-settle-screen.open { transform: none; }

.ax-status { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px 0; color: #fff; font-weight: 700; font-size: 10.5px; }
.ax-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.ax-sig i { width: 3px; background: #fff; border-radius: 1px; }
.ax-sig i:nth-child(1) { height: 4px; } .ax-sig i:nth-child(2) { height: 6px; } .ax-sig i:nth-child(3) { height: 8px; }
.ax-sig b { width: 15px; height: 8px; border: 1.5px solid #fff; border-radius: 2px; margin-left: 4px; background: linear-gradient(90deg, #fff 80%, transparent 80%); background-clip: content-box; padding: 1px; }

/* Home */
.ax-header { background: linear-gradient(135deg, #004D14 0%, #006E1C 55%, #2D9B45 100%); padding-bottom: 12px; }
.ax-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px 0; color: #fff; }
.ax-title b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.ax-title small { display: block; font-size: 10px; opacity: .72; margin-top: 1px; }
.ax-iconbtn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.ax-iconbtn svg { width: 16px; height: 16px; }
.ax-acts { display: flex; gap: 6px; }
.ax-bell { position: relative; border: 0; padding: 0; color: #fff; cursor: pointer; }
.ax-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #E53935; color: #fff;
  font: 700 8.5px/16px Roboto, var(--font); font-style: normal; text-align: center; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.ax-badge.on { transform: scale(1); }
.ax-bell.tap { animation: tap .45s ease; }
.ax-insight { display: flex; gap: 9px; align-items: flex-start; margin-top: 9px; padding: 9px; border-radius: 7px;
  background: color-mix(in srgb, var(--accent-pink) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent-pink) 18%, transparent); }
.ax-insight .ic { width: 28px; height: 28px; flex: none; border-radius: 7px; display: grid; place-items: center; color: var(--accent-pink); background: color-mix(in srgb, var(--accent-pink) 18%, transparent); }
.ax-insight .ic svg { width: 15px; height: 15px; }
.ax-insight span { display: block; font-size: 9.5px; line-height: 1.35; color: var(--text); }
.ax-insight b { display: block; margin-top: 3px; font-size: 9px; color: var(--accent-pink); }
.ax-insight.bump { animation: bump .45s ease; }
/* Add Expense sheet */
.ax-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 12px 12px 16px; border-radius: 16px 16px 0 0; background: var(--surface);
  box-shadow: 0 -12px 30px rgba(0,0,0,.4); transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ax-sheet.open { transform: none; }
.ax-sheet-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.ax-sheet-bar b { font-size: 13px; font-weight: 800; }
.ax-sheet-bar span { font-size: 8.5px; color: var(--text-3); font-weight: 700; }
.ax-sheet-amt { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; background: var(--bg-2); }
.ax-cur { padding: 3px 7px; border-radius: 6px; font-size: 9px; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.ax-sheet-amt b { flex: 1; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ax-cat { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ic); background: color-mix(in srgb, var(--ic, #5C8D89) 16%, transparent); }
.ax-cat svg { width: 15px; height: 15px; }
.ax-sheet-desc { margin-top: 7px; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--line); font-size: 10.5px; font-weight: 600; }
.ax-sheet-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.ax-sheet-pills span { padding: 7px 8px; border-radius: 8px; background: var(--bg-2); font-size: 9.5px; font-weight: 700; }
.ax-sheet-pills span:first-child { color: var(--primary); }
.ax-sheet-split { display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap; }
.ax-sheet-split i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 4px; border-radius: 14px; font-size: 9px; font-weight: 700;
  background: var(--primary); color: var(--on-primary); }
.ax-sheet-split i span { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 7.5px; }
.ax-sheet-save { margin-top: 9px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--primary); color: var(--on-primary); }
.ax-sheet-save.tap { animation: tap .45s ease; }
.ax-body { flex: 1; padding: 10px 12px 0; overflow: hidden; }
.ax-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ax-bal { height: 104px; padding: 9px; border-radius: 7px; background: var(--surface); box-shadow: 0 8px 20px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.ax-bal-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ax-bal-top span { font-size: 7.5px; font-weight: 700; letter-spacing: .8px; color: var(--text-3); }
.ax-trend { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; }
.ax-trend svg { width: 14px; height: 14px; }
.ax-trend.owe { background: rgba(255,180,171,.18); color: var(--danger); }
.ax-trend.owed { background: rgba(111,207,110,.18); color: var(--primary); }
.ax-amt { margin-top: auto; font-size: 21px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.ax-amt.owe { color: var(--danger); }
.ax-amt.owed { color: var(--primary); }
.ax-bal small { font-size: 8.5px; color: var(--text-2); margin-top: 1px; }
.ax-amt.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
.ax-settle { width: 100%; height: 46px; margin-top: 10px; border: 0; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 13px Roboto, var(--font); color: #fff; background: linear-gradient(135deg, #004D14 0%, #006E1C 55%, #2D9B45 100%); box-shadow: 0 4px 10px rgba(0,77,20,.3); }
.ax-settle svg { width: 17px; height: 17px; }
.ax-recent { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 8px; }
.ax-recent b { font-size: 15px; font-weight: 700; }
.ax-recent span { font-size: 10px; font-weight: 700; color: var(--primary); }
.ax-list { display: flex; flex-direction: column; gap: 6px; }
.ax-empty { text-align: center; color: var(--text-3); font-size: 10.5px; padding: 18px 0; }
.ax-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 9px; border-radius: 7px; background: var(--surface-2); animation: axIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes axIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.ax-item .ic { width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--ic, #5C8D89) 16%, transparent); color: var(--ic, #5C8D89); }
.ax-item .ic svg { width: 18px; height: 18px; }
.ax-item > div { min-width: 0; }
.ax-item b { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-item small { display: block; font-size: 9.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-item .r { text-align: right; }
.ax-item .r b { font-size: 11.5px; }
.ax-item .r b.pos { color: var(--primary); } .ax-item .r b.neg { color: var(--danger); }
.ax-item .r i { display: block; font-style: normal; font-size: 7px; font-weight: 700; letter-spacing: .7px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.ax-fab { position: absolute; right: 12px; bottom: 76px; height: 40px; padding: 0 15px 0 12px; border: 0; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font: 700 11.5px Roboto, var(--font); color: var(--on-primary); background: var(--primary); box-shadow: 0 6px 16px rgba(0,0,0,.35); z-index: 2; }
.ax-fab svg { width: 17px; height: 17px; }
.ax-fab.tap, .ax-settle.tap { animation: tap .45s ease; }
@keyframes tap { 40% { transform: scale(.92); filter: brightness(1.15); } }
.ax-nav { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 50px; border-radius: 7px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.35); z-index: 2; }
.ax-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6.8px; font-weight: 600; letter-spacing: .4px; color: var(--text-3); }
.ax-nav span svg { width: 17px; height: 17px; }
.ax-nav span.on { color: var(--primary); font-weight: 800; }

/* Settle Up — current design: gradient hero with decorative circles,
   round app-bar buttons, pills with arrow icons, tinted section headers,
   gradient-ring avatars and a "Settle All" bottom bar. */
.ax-shero { position: relative; overflow: hidden; color: #fff; padding-bottom: 14px; background: linear-gradient(135deg, #004D14 0%, #006E1C 55%, #2D9B45 100%); }
.ax-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.ax-deco.a { width: 150px; height: 150px; top: -40px; right: -40px; }
.ax-deco.b { width: 110px; height: 110px; bottom: -20px; left: -30px; background: rgba(255,255,255,.05); }
.ax-shero .ax-status { color: #fff; }
.ax-sbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; position: relative; }
.ax-sbar b { flex: 1; font-size: 16px; font-weight: 700; }
.ax-round { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
.ax-round svg { width: 15px; height: 15px; }
.ax-net { text-align: center; font-size: 34px; font-weight: 900; margin-top: 10px; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; position: relative; }
.ax-netsub { text-align: center; font-size: 10.5px; color: rgba(255,255,255,.65); margin-top: 1px; position: relative; }
.ax-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px 12px 0; position: relative; }
.ax-pills > div { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); }
.ax-pills .pi { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.ax-pills .pi svg { width: 12px; height: 12px; }
.ax-pills b { display: block; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ax-pills small { display: block; font-size: 8px; color: rgba(255,255,255,.6); }
.ax-shelf { flex: 1; margin-top: -1px; padding: 12px 11px 80px; background: var(--bg-2); border-radius: 8px 8px 0 0; overflow: hidden; }
.ax-sec { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; margin-bottom: 8px; background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--c); font-size: 8.5px; font-weight: 900; letter-spacing: 1.1px; }
.ax-sec::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--c); }
.ax-sec .sp { flex: 1; }
.ax-sec .remind { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 7px; letter-spacing: .6px; }
.ax-sec .remind svg { width: 9px; height: 9px; }
.ax-sec .cnt { padding: 2px 7px; border-radius: 6px; background: var(--c); color: #fff; font-size: 8.5px; letter-spacing: 0; }
.ax-person { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 9px; align-items: center; padding: 11px 10px 9px; margin-bottom: 8px; border-radius: 8px; background: var(--surface); overflow: hidden; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 12%, transparent); animation: axIn .5s ease both; transition: opacity .4s, transform .4s, max-height .4s, margin .4s, padding .4s; max-height: 80px; }
.ax-person::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.ax-person .ring { padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--c), var(--c2)); }
.ax-person .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; border: 2px solid var(--surface); }
.ax-person b { display: block; font-size: 12px; font-weight: 700; }
.ax-person .chip { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; font-size: 7px; font-weight: 900; letter-spacing: .7px; color: var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), color-mix(in srgb, var(--c2) 6%, transparent)); }
.ax-person .bell { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ax-person .bell svg { width: 13px; height: 13px; }
.ax-person .r { text-align: right; }
.ax-person .v { display: block; font-size: 15px; font-weight: 900; color: var(--c); letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.ax-person .chev { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ax-person .chev svg { width: 10px; height: 10px; }
.ax-person.gone { opacity: 0; transform: translateX(30%); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; }
.ax-sec.gone { opacity: 0; max-height: 0; margin: 0; padding: 0; overflow: hidden; transition: all .4s; }
.ax-bottombar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; border-radius: 8px 8px 0 0;
  background: var(--surface); border-top: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); box-shadow: 0 -6px 20px rgba(0,0,0,.18); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.ax-bottombar.hide { transform: translateY(110%); }
.ax-stack { display: flex; }
.ax-stack span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; border: 2px solid var(--surface); margin-left: -8px; }
.ax-stack span:first-child { margin-left: 0; }
.ax-bb-text { flex: 1; min-width: 0; }
.ax-bb-text b { display: block; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ax-bb-text small { font-size: 8.5px; color: var(--text-2); }
.ax-settleall { height: 34px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer; font: 700 11.5px Roboto, var(--font); color: #fff;
  background: linear-gradient(90deg, #004D14, #2D9B45); box-shadow: 0 4px 12px rgba(0,77,20,.35); min-width: 82px; display: grid; place-items: center; }
.ax-settleall.loading { background: var(--surface-3); box-shadow: none; }
.ax-settleall.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.ax-settleall.tap { animation: tap .45s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Notifications */
.ax-notif-screen { transform: translateX(100%); box-shadow: -20px 0 40px rgba(0,0,0,.35); }
.ax-notif-screen.open { transform: none; }
.ax-markread { border: 0; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font: 700 9.5px Roboto, var(--font); }
.ax-markread.tap { animation: tap .45s ease; }
.ax-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 12px 0; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.14); }
.ax-tabs span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border-radius: 7px; color: #fff; font-size: 10.5px; font-weight: 700; }
.ax-tabs span svg { width: 13px; height: 13px; }
.ax-tabs span.on { background: #fff; color: #006E1C; }
.ax-tabs i { font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: #F28B82; color: #fff; font-size: 8.5px; transition: opacity .3s; }
.ax-tabs i.zero { opacity: 0; }
.ax-nbody { flex: 1; padding: 10px 11px 80px; overflow: hidden; }
.ax-nsec { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 8.5px; font-weight: 800; letter-spacing: 1.2px; margin: 0 2px 8px; }
.ax-nsec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ax-ncard { display: flex; margin-bottom: 7px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 4px 12px rgba(0,0,0,.12); animation: axIn .5s ease both; transition: background-color .4s, border-color .4s; }
.ax-ncard::before { content: ""; width: 4px; flex: none; background: var(--c); transition: opacity .4s; }
.ax-ncard.read { background: var(--surface-2); border-color: var(--line); }
.ax-ncard.read::before { opacity: .35; }
.ax-ncard .in { flex: 1; min-width: 0; display: flex; gap: 8px; padding: 8px 8px 8px 9px; }
.ax-ncard .ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.ax-ncard .ic svg { width: 15px; height: 15px; }
.ax-ncard .tx { flex: 1; min-width: 0; }
.ax-ncard .t { display: flex; align-items: center; gap: 5px; }
.ax-ncard .t b { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ncard .t .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; transition: opacity .3s; }
.ax-ncard.read .t .dot { opacity: 0; }
.ax-ncard .m { display: block; font-size: 9.5px; color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ncard .who { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; padding: 0; background: none; border-radius: 0; font-size: 8px; color: var(--text-3); }
.ax-ncard .who span { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 7px; font-weight: 800; }

/* Push banner + nav buttons */
.ax-push { position: absolute; left: 9px; right: 9px; top: 30px; z-index: 6; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.4); transform: translateY(-140%); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.ax-push.show { transform: none; }
.ax-push img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ax-push b { display: block; font-size: 10.5px; font-weight: 800; }
.ax-push b small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.ax-push span { display: block; font-size: 11px; color: var(--text-2); }
.ax-navbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 0; cursor: pointer; position: relative;
  font: 600 6.8px Roboto, var(--font); letter-spacing: .4px; color: var(--text-3); }
.ax-navbtn svg { width: 17px; height: 17px; }
.ax-navbtn.tap { animation: tap .45s ease; }
.ax-dot { position: absolute; top: -2px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #F28B82; border: 1.5px solid var(--surface); opacity: 0; transition: opacity .3s; }
.ax-dot.on { opacity: 1; }
.ax-home.pushed, .ax-home.pushed2 { transform: translateX(-22%); filter: brightness(.6); }

.demo-controls { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-3); font-size: 13px; }
.demo-controls b { color: var(--text-2); }
.demo-controls button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.demo-controls button:hover { background: var(--surface-2); }
.dm-pause-ic { width: 10px; height: 10px; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.demo-controls button[aria-pressed="true"] .dm-pause-ic { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (max-width: 600px) { .hero .phone-demo { width: 290px; } }


/* Line-icon tiles for "Made for", step labels */
.uc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(111,207,110,.12); color: var(--primary); }
.uc-icon svg { width: 26px; height: 26px; }
.usecase:nth-child(2) .uc-icon { background: rgba(232,163,61,.14); color: var(--amber); }
.usecase:nth-child(3) .uc-icon { background: rgba(244,143,177,.14); color: var(--accent-pink); }
.usecase:nth-child(4) .uc-icon { background: rgba(244,143,177,.14); color: var(--accent-pink); }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-top .num { margin: 0; }
.step-top .step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.step-top .step-ic svg { width: 20px; height: 20px; }
.step-top span { color: var(--text-3); font-weight: 700; font-size: 13px; letter-spacing: .4px; }

/* The one header button: Get started -> the web app (sign in or sign up there). Stays visible on phones too. */
@media (max-width: 860px) { .header-actions .btn.header-login { display: inline-flex; height: 38px; padding: 0 14px; } }
