/* ==========================================================================
   Purrfolio landing site
   Tokens mirror the Purrfolio app (violet → magenta → pink brand gradient,
   Lora display + Nunito body).
   ========================================================================== */

:root {
  --bg: #0a0614;
  --bg-2: #120b24;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3eefe;
  --text-soft: #c9bfe0;
  --text-muted: #b3a9c9;

  --violet: #a78bfa;
  --violet-deep: #7433e6;
  --magenta: #b62ad9;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;

  --gradient: linear-gradient(120deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
  --gradient-text: linear-gradient(100deg, #ffffff 0%, #d8c8ff 35%, #f9a8d4 75%, #fbbf24 110%);
  --gradient-card:
    radial-gradient(120% 140% at 100% 0%, rgba(190, 24, 93, 0.85) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(14, 116, 144, 0.6) 0%, transparent 55%),
    linear-gradient(135deg, #2c1370 0%, #5b21b6 50%, #86198f 100%);

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Nunito', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--violet-deep); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Background: aurora + grain ---------- */

.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  will-change: transform;
}
.aurora span:nth-child(1) { width: 52vw; height: 52vw; background: #6d28d9; top: -18vw; left: -12vw; animation: drift1 28s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 42vw; height: 42vw; background: #db2777; top: 10vh; right: -16vw; opacity: 0.35; animation: drift2 32s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; background: #0891b2; bottom: -20vw; left: 20vw; opacity: 0.25; animation: drift3 36s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate(10vw, 8vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-8vw, 14vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(12vw, -10vh) scale(1.15); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 6, 20, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 12px; background: #fff; padding: 3px; box-shadow: 0 6px 20px -6px rgba(167, 139, 250, 0.7); }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--text); letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }
.nav-links .btn { padding: 10px 16px; }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-ghost { color: var(--text); margin-left: 6px; }

.nav-toggle {
  display: none; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: rgba(18, 11, 36, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { display: flex; justify-content: center; margin-top: 6px; margin-left: 0; padding: 14px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 0.98rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff; background: var(--gradient); background-size: 200% 100%;
  box-shadow: 0 12px 34px -10px rgba(182, 42, 217, 0.75), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 44px -10px rgba(236, 63, 122, 0.8), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { color: var(--text); background: var(--surface-strong); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 16px; min-width: 190px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.22);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}
.store-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.5); box-shadow: 0 16px 40px -14px rgba(167, 139, 250, 0.7); }
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.9; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.15; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border-strong);
  font-size: 0.85rem; font-weight: 700; color: var(--text);
}
.eyebrow .pill { background: var(--gradient); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); letter-spacing: -0.025em; margin: 22px 0 22px; }
.hero h1 em { font-style: italic; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--text-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 0.92rem; color: var(--text-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- Phone mockup ---------- */

.phone-stage { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.phone-glow {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, #7433e6, #ec3f7a, #fbbf24, #22d3ee, #7433e6);
  filter: blur(70px); opacity: 0.45; top: 10%;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.phone {
  position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 19;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(145deg, #2a2147, #120b24);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.14),
    0 50px 100px -30px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
  animation: floaty 7s ease-in-out infinite;
}
.phone-stage:hover .phone { transform: rotateY(-4deg) rotateX(2deg); }
@keyframes floaty { 50% { translate: 0 -12px; } }

.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #0f0a1e; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px;
}
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }

.app-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.app-head h4 { font-size: 1.15rem; }
.app-head .avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 2px; }

.net-card {
  border-radius: 20px; padding: 16px; color: #fff; background: var(--gradient-card);
  box-shadow: 0 16px 34px -14px rgba(155, 43, 201, 0.8);
}
.net-card small { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.net-card .amount { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin: 2px 0 10px; }
.net-card .row { display: flex; gap: 8px; }
.net-card .chip { flex: 1; background: rgba(255,255,255,0.14); border-radius: 12px; padding: 6px 8px; font-size: 0.7rem; }
.net-card .chip b { display: block; font-size: 0.85rem; }

.mini-card { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.mini-card h5 { margin: 0 0 8px; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }

.stack-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.stack-bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow 1.4s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 0.66rem; color: var(--text-soft); }
.legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; }

.tx { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.tx + .tx { border-top: 1px solid var(--border); }
.tx .emoji { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 0.95rem; background: var(--bg-c); }
.tx .meta { flex: 1; min-width: 0; font-size: 0.75rem; }
.tx .meta b { display: block; color: var(--text); font-size: 0.8rem; }
.tx .meta span { color: var(--text-muted); font-size: 0.68rem; }
.tx .val { font-weight: 800; font-size: 0.8rem; }
.val.neg { color: var(--red); }
.val.pos { color: var(--green); }

.phone-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 20px; padding: 8px; }
.phone-nav i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,0.2); }
.phone-nav .add { width: 36px; height: 36px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 1.2rem; }

.float-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(22, 15, 40, 0.78); border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.8);
  font-size: 0.82rem; color: var(--text); font-weight: 700;
  animation: floaty 6s ease-in-out infinite;
}
.float-badge small { display: block; color: var(--text-muted); font-weight: 600; font-size: 0.72rem; }
.float-badge .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; background: var(--bg-c); }
.float-badge.one { top: 14%; left: -2%; animation-delay: -2s; }
.float-badge.two { bottom: 18%; right: -4%; animation-delay: -4s; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin: 0 auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .phone-stage { margin-top: 20px; }
  .phone { transform: none; }
  .float-badge.one { left: 0; }
  .float-badge.two { right: 0; }
}
@media (max-width: 480px) {
  .float-badge { display: none; }
}


/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.kicker {
  display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(100deg, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 18px; font-size: 1.1rem; }

/* ---------- Bento features ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(167, 139, 250, 0.16), transparent 45%);
}
.tile:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }

.tile-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--bg-c, rgba(167,139,250,0.15)); border: 1px solid rgba(255,255,255,0.08); margin-bottom: 20px;
}
.tile h3 { font-size: 1.4rem; margin-bottom: 10px; }
.tile p { color: var(--text-soft); font-size: 0.98rem; }
.tile ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tile li { font-size: 0.8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text); }

.tile-visual { margin-top: 22px; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars div { flex: 1; display: flex; gap: 4px; align-items: flex-end; height: 100%; }
.bars i { flex: 1; border-radius: 8px 8px 4px 4px; transform-origin: bottom; }
.bars i:first-child { background: rgba(255,255,255,0.14); }
.bars i:last-child { background: var(--gradient); }
.reveal.is-visible .bars i { animation: rise 1.2s var(--ease-out) both; }
@keyframes rise { from { transform: scaleY(0); } }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--text-muted); }

.recurring-list { display: grid; gap: 8px; }
.recurring-list div {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text);
}
.recurring-list b { margin-left: auto; font-weight: 800; }
.recurring-list .due { font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(251, 191, 36, 0.15); color: var(--amber); }

.fx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fx div { padding: 14px 10px; text-align: center; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.fx b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.fx span { font-size: 0.75rem; color: var(--text-muted); }

.net-bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 3px; }
.net-bar i { display: block; height: 100%; }
.accounts-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 14px; font-size: 0.85rem; }
.accounts-legend span { display: flex; justify-content: space-between; gap: 8px; color: var(--text-soft); }
.accounts-legend span b { color: var(--text); }

.csv {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; line-height: 1.7;
  padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); color: var(--text-muted);
  overflow: hidden; white-space: nowrap;
}
.csv .hl { color: var(--cyan); }
.csv .ok { color: var(--green); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide, .tile.half { grid-column: span 2; }
  .tile.sm-half { grid-column: span 1; }
}
@media (max-width: 600px) {
  .tile.sm-half { grid-column: span 2; }
  .tile { padding: 22px; }
  .accounts-legend { grid-template-columns: 1fr; }
}

/* ---------- Showcase / split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
.split.reverse .split-media { order: 2; }
.split h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; margin-bottom: 16px; }
.split p { font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 600; }
.checks li::before {
  content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 900; color: #fff; background: var(--gradient);
}

.panel {
  position: relative; padding: 26px; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
}
.panel::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(167,139,250,0.6), transparent 35%, transparent 65%, rgba(244,114,182,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.panel-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-title h4 { font-size: 1.15rem; }
.panel-title span { font-size: 0.8rem; color: var(--text-muted); }

.cat-rows { display: grid; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.cat-row .emoji { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-c); }
.cat-row .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 6px; }
.cat-row .track i { display: block; height: 100%; border-radius: 99px; background: var(--c); width: var(--w); transform-origin: left; }
.reveal.is-visible .cat-row .track i { animation: grow 1.3s var(--ease-out) both; }
.cat-row b { color: var(--text); }
.cat-row .delta { font-size: 0.75rem; font-weight: 800; }

.predict { display: grid; gap: 10px; }
.predict-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.predict-item .emoji { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-c); font-size: 1.1rem; }
.predict-item div { flex: 1; font-size: 0.85rem; }
.predict-item div b { display: block; color: var(--text); font-size: 0.95rem; }
.predict-item div span { color: var(--text-muted); }
.predict-item strong { color: var(--text); font-size: 0.95rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(100deg, #c4b5fd, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */

.privacy-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(116, 51, 230, 0.35), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(236, 63, 122, 0.28), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--border-strong);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.privacy-band h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 14px; }
.privacy-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-points div { padding: 18px; border-radius: var(--radius-md); background: rgba(0,0,0,0.25); border: 1px solid var(--border); }
.privacy-points b { display: block; color: var(--text); margin: 8px 0 4px; }
.privacy-points span { font-size: 0.88rem; }
.privacy-points .ico { font-size: 1.4rem; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .privacy-points { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-weight: 800; color: var(--text); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.07); font-size: 1.2rem; transition: transform 0.3s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; }

/* ---------- CTA ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--gradient-card);
  box-shadow: 0 50px 100px -40px rgba(155, 43, 201, 0.7);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta > * { position: relative; }
.cta img.cat { width: 96px; height: 96px; margin: 0 auto 22px; background: #fff; border-radius: 28px; padding: 8px; box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5); animation: floaty 5s ease-in-out infinite; }
.cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
.cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin: 16px auto 0; max-width: 34em; }
.cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */

.footer { padding: 64px 0 40px; margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--text-soft); transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer-blurb { margin-top: 14px; max-width: 26em; font-size: 0.95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Legal / document pages ---------- */

.doc-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); text-align: center; position: relative; }
.doc-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); letter-spacing: -0.02em; margin-top: 12px; }
.doc-hero p { margin-top: 14px; color: var(--text-muted); }

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.toc h2 { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9rem; }
.toc a { text-decoration: none; color: var(--text-soft); }
.toc a:hover { color: var(--text); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.prose {
  max-width: 760px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg);
  background: rgba(18, 11, 36, 0.7); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.prose.center { margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: var(--text-soft); }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.45em; margin: 1em 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--violet); text-underline-offset: 3px; }
.prose a:hover { color: var(--pink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 800; background: rgba(255,255,255,0.04); }
.callout {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-md); margin: 1.4em 0;
  background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.3); color: var(--text);
}
.callout .ico { font-size: 1.3rem; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.support-grid .tile { grid-column: auto; text-decoration: none; display: block; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 48px; min-height: 34px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--gradient);
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
