/* RewaFlow marketing site, v2 */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0B1033;
  --ink-2: #33395C;
  --muted: #474E70;
  --soft: #5B6285;
  --line: #E3E6F5;
  --line-2: #D5D9EE;
  --bg-soft: #F7F8FF;
  --night: #070A24;
  --night-2: #0B0F2E;
  --night-line: #1C2150;
  --on-night: #FFFFFF;
  --on-night-muted: #B8C0E8;
  --on-night-soft: #8D95C7;
  --cta: linear-gradient(135deg, #2563EB 0%, #7C3AED 60%, #C026D3 100%);
  --glow-text: linear-gradient(90deg, #0EA5E9 0%, #4F46E5 45%, #9333EA 75%, #DB2777 100%);
  --glow-text-night: linear-gradient(90deg, #22D3EE, #A78BFA, #F0ABFC);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: #FFFFFF; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: #4F46E5; text-decoration: none; }
a:hover { color: #3730A3; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #6366F1; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }

/* ---------- Announcement + header ---------- */
.announce { background: linear-gradient(90deg, #0B1033 0%, #1E1B4B 50%, #3B0764 100%); color: #E0E7FF; font-size: 14px; }
.announce .container { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; text-align: center; }
.announce strong { background: var(--glow-text-night); -webkit-background-clip: text; background-clip: text; color: transparent; }
.announce a { color: #FFFFFF; font-weight: 600; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid #ECEEF7; }
.site-header.dark { background: rgba(7,10,36,.92); border-bottom-color: var(--night-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.dark .brand, .dark .brand:hover { color: #FFFFFF; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: #7C3AED; }
.dark .nav a { color: #C7CCEB; }
.dark .nav a:hover, .dark .nav a[aria-current="page"] { color: #FFFFFF; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #FFFFFF; color: var(--ink); cursor: pointer; }
.dark .menu-toggle { background: transparent; border-color: var(--night-line); color: #FFFFFF; }
.menu-toggle svg { width: 22px; height: 22px; }
.nav .nav-cta { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 16px 32px -20px rgba(11,16,51,.3); }
  .dark .nav { background: var(--night); border-bottom-color: var(--night-line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dark .nav a { border-bottom-color: var(--night-line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: #7C3AED; }
  .nav .nav-cta { display: inline-flex; margin-top: 14px; border-bottom: 0; }
  .nav .nav-cta.btn-primary { color: #FFFFFF; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 26px; }
.btn-primary { background: var(--cta); color: #FFFFFF; box-shadow: 0 12px 26px -14px rgba(124,58,237,.8); }
.btn-primary:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(124,58,237,.9); }
.btn-outline { background: #FFFFFF; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { color: var(--ink); border-color: #A5B4FC; }
.dark .btn-outline, .on-night .btn-outline { background: rgba(99,102,241,.12); color: #FFFFFF; border-color: #4F46E5; }
.dark .btn-outline:hover, .on-night .btn-outline:hover { color: #FFFFFF; border-color: #A5B4FC; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #EEF2FF; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: #4338CA; background: #FFFFFF; border: 1px solid #DDD6FE; padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: 0 6px 16px -10px rgba(67,56,202,.4); }
.orbit { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; flex-shrink: 0; }
.orbit i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.orbit i:nth-child(1) { background: #3B82F6; } .orbit i:nth-child(2) { background: #8B5CF6; }
.orbit i:nth-child(3) { background: #14B8A6; } .orbit i:nth-child(4) { background: #F59E0B; }
.orbit.lg { grid-template-columns: repeat(2, 7px); gap: 3px; } .orbit.lg i { width: 7px; height: 7px; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7C3AED; }
.on-night .kicker { color: #67E8F9; }
.kicker.pink { color: #F0ABFC; }
.display-1 { font-family: var(--display); font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.display-2 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.glow { background: var(--glow-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-night .glow { background: var(--glow-text-night); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.on-night .lead { color: var(--on-night-muted); }
.small { font-size: 14px; color: var(--soft); }
.on-night .small { color: var(--on-night-soft); }
.muted { color: var(--soft); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.tight { padding: 80px 0; }
.soft { background: var(--bg-soft); }
.on-night { color: var(--on-night); background:
  radial-gradient(50% 50% at 15% 0%, rgba(34,211,238,.16) 0%, rgba(34,211,238,0) 60%),
  radial-gradient(50% 60% at 95% 30%, rgba(192,38,211,.24) 0%, rgba(192,38,211,0) 60%), var(--night); }
.on-night.alt { background:
  radial-gradient(50% 70% at 0% 100%, rgba(34,211,238,.16) 0%, rgba(34,211,238,0) 60%),
  radial-gradient(45% 60% at 100% 0%, rgba(192,38,211,.3) 0%, rgba(192,38,211,0) 60%), var(--night); }
.band-grad { color: #FFFFFF; background: linear-gradient(135deg, #0B1033 0%, #1E1B4B 50%, #3B0764 100%); }
.head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split.center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 640px) { .section { padding: 68px 0; } .section.tight { padding: 56px 0; } .head { margin-bottom: 32px; } }

/* ---------- Hero ---------- */
.hero { position: relative; background:
  radial-gradient(60% 70% at 85% 30%, #EDE4FF 0%, rgba(237,228,255,0) 60%),
  radial-gradient(45% 60% at 0% 100%, #D9F4FF 0%, rgba(217,244,255,0) 60%), #FAFAFF; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .lead { max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--soft); }
.bullets span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 60px; padding-bottom: 56px; } }

.river { margin: 0; position: relative; }
.river svg { display: block; width: 100%; height: auto; overflow: visible; }
.chip-src { position: absolute; left: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 22px -14px rgba(11,16,51,.35); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip-src i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.answer { position: absolute; right: 0; top: 58%; width: 40%; min-width: 210px; padding: 14px 16px; background: var(--ink); color: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(11,16,51,.6); display: flex; flex-direction: column; gap: 10px; }
.answer .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.answer .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #A5B4FC; }
.answer p { font-size: 12px; color: #C7D2FE; line-height: 1.5; }
.pill-risk { font-size: 11px; font-weight: 700; color: #FFE4E6; background: rgba(244,63,94,.32); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.river figcaption { margin-top: 6px; font-size: 12px; color: var(--soft); text-align: right; }
@media (max-width: 560px) {
  .chip-src { font-size: 11px; padding: 6px 8px; }
  .answer { position: static; width: 100%; margin-top: 14px; }
}

.sources { border-top: 1px solid #ECEEF7; background: rgba(255,255,255,.7); }
.sources .container { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.sources .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-right: 8px; }
.tag { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.tag.live-a { background: #EEF2FF; color: #3730A3; }
.tag.live-b { background: #ECFEFF; color: #155E75; }
.tag.next { border: 1px dashed #C7CBE3; color: var(--soft); font-weight: 500; }

/* ---------- Animation ---------- */
@keyframes flow { to { stroke-dashoffset: -240; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: .9; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.flow { stroke-dasharray: 6 18; animation: flow 6s linear infinite; }
.flow-slow { stroke-dasharray: 4 22; animation: flow 9s linear infinite; }
.halo { transform-origin: center; transform-box: fill-box; animation: pulse 3.2s ease-in-out infinite; }
.caret { display: inline-block; width: 2px; height: 15px; background: #A78BFA; vertical-align: -2px; margin-left: 2px; animation: blink 1s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .flow, .flow-slow, .halo, .caret { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Cards ---------- */
.lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(79,70,229,.45); border-color: #A5B4FC; }
@media (prefers-reduced-motion: reduce) { .lift:hover { transform: none; } }
.num-card { padding: 28px 30px; border-radius: 20px; color: #FFFFFF; display: flex; gap: 22px; align-items: flex-start; border: 1px solid; }
.num-card h3 { font-size: 21px; font-weight: 700; }
.num-card .n { font-family: var(--display); font-size: 15px; font-weight: 700; padding-top: 4px; }
.num-card > div { display: flex; flex-direction: column; gap: 6px; }
.num-card.c1 { background: var(--ink); border-color: #1E2456; } .num-card.c1 .n { color: #22D3EE; } .num-card.c1 p { color: #B8C0E8; }
.num-card.c2 { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%); border-color: #3730A3; } .num-card.c2 .n { color: #A78BFA; } .num-card.c2 p { color: #C7D2FE; }
.num-card.c3 { background: linear-gradient(135deg, #3B0764 0%, #701A75 100%); border-color: #86198F; } .num-card.c3 .n { color: #F0ABFC; } .num-card.c3 p { color: #F5D0FE; }
.callout { padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #FFF1F2 0%, #FDF4FF 100%); border: 1px solid #FBCFE8; display: flex; gap: 18px; align-items: center; }
.callout svg { flex-shrink: 0; }
.callout p { font-size: 15px; color: #6B213D; }
.callout strong { display: block; font-size: 17px; color: #4C0519; }

/* Product frame */
.frame { border-radius: 22px; padding: 2px; background: linear-gradient(135deg, rgba(34,211,238,.6), rgba(124,58,237,.6), rgba(236,72,153,.6)); box-shadow: 0 40px 90px -40px rgba(124,58,237,.7); }
.frame-in { border-radius: 20px; background: var(--night-2); overflow: hidden; }
.frame-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--night-line); }
.frame-top .title { display: flex; align-items: center; gap: 12px; }
.frame-top .title img { width: 26px; height: 26px; border-radius: 7px; }
.kpis { display: flex; flex-wrap: wrap; gap: 26px; }
.kpis div { display: flex; flex-direction: column; }
.kpis span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-soft); }
.kpis strong { font-family: var(--display); font-size: 22px; }
.sankey { padding: 18px 22px 10px; overflow-x: auto; }
.sankey svg { min-width: 760px; width: 100%; display: block; }
.frame-note { padding: 0 22px 18px; font-size: 12px; color: #6E76A8; }
.glass { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); display: flex; flex-direction: column; gap: 8px; }
.glass p { color: var(--on-night-muted); }
.glass .t { font-family: var(--display); font-size: 15px; font-weight: 700; }

/* Grids that always form clean rectangles */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .g4 { grid-template-columns: minmax(0, 1fr); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento .span2 { grid-column: span 2; }
.bento .span3 { grid-column: span 3; }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .span2, .bento .span3 { grid-column: span 2; } }
@media (max-width: 680px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento .span2, .bento .span3 { grid-column: auto; } }
.tile { padding: 28px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile h3 { font-size: 20px; font-weight: 700; }
.tile p { color: var(--soft); }
.tile .viz { min-height: 110px; display: flex; align-items: center; margin-bottom: 6px; }
.tile .viz svg { width: 100%; height: 110px; }
.tile.dark { background: var(--ink); color: #FFFFFF; border-color: #1E2456; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.tile.dark p { color: var(--on-night-muted); }
.tile.dark h3 { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; }
.tile.dark .badge-orbit { align-self: flex-start; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; }
@media (max-width: 760px) { .tile.dark { grid-template-columns: minmax(0, 1fr); } }
.chat { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid #262C63; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chat .q { align-self: flex-end; max-width: 92%; font-size: 13px; background: linear-gradient(135deg, #2563EB, #7C3AED); padding: 8px 12px; border-radius: 12px 12px 2px 12px; }
.chat .a { font-size: 13px; color: #E0E7FF; line-height: 1.55; }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 12px; }
.approve b { font-weight: 700; color: #FFFFFF; background: linear-gradient(135deg, #2563EB, #7C3AED); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.approve.done { background: #ECFDF5; color: #065F46; }
.approve.done b { background: none; color: #065F46; padding: 0; }
.tile.evidence { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #EEF2FF 0%, #FAF5FF 55%, #FDF2F8 100%); border-color: #DDD6FE; }
.tile.evidence > div:first-child { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.tile.evidence p { color: var(--muted); }
.evid { display: flex; flex-wrap: wrap; gap: 8px; }
.evid span { padding: 8px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* Principles */
.principle { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; }
.principle strong { font-size: 17px; }
.principle span { color: #C7D2EA; font-size: 15px; }

/* Roles */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.chip.c-blue { background: #EEF4FF; color: #1E40AF; } .chip.c-violet { background: #F4EEFF; color: #5B21B6; }
.chip.c-teal { background: #EAF8F5; color: #115E59; } .chip.c-pink { background: #FDF2F8; color: #9D174D; }
.chip.c-amber { background: #FFF7E6; color: #92400E; } .chip.c-indigo { background: #EEF0FF; color: #3730A3; }
.chip.c-cyan { background: #ECFEFF; color: #155E75; }
.role { padding: 22px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.role .who { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.role p { font-family: var(--display); font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }

/* Founder */
.founder { margin: 0; padding: 36px; border-radius: 24px; background: radial-gradient(70% 80% at 100% 0%, #EDE4FF 0%, rgba(237,228,255,0) 60%), var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.founder blockquote { margin: 0; font-family: var(--display); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
.founder figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font-weight: 700; background: linear-gradient(135deg, #2563EB, #C026D3); flex-shrink: 0; }
.founder figcaption > span:last-child { display: flex; flex-direction: column; }
.founder figcaption small { color: var(--soft); font-size: 14px; }
.rule-line { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* Final CTA cards */
.cta-card { padding: 32px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); }
.cta-card h3 { font-family: var(--display); font-size: 28px; letter-spacing: -0.02em; }
.cta-card p { color: var(--on-night-muted); }
.cta-card.feature { background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(192,38,211,.22)); border-color: #4C1D95; }

/* Mini perks (design partner) */
.perk { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); }
.perk strong { display: block; font-size: 14px; }
.perk span { font-size: 14px; color: var(--on-night-muted); }
.perk.p1 strong { color: #67E8F9; } .perk.p2 strong { color: #C4B5FD; } .perk.p3 strong { color: #F9A8D4; } .perk.p4 strong { color: #FCD34D; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); }
.steps .n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #FFFFFF; }
.steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.steps small { color: var(--on-night-muted); font-size: 15px; }
.light-steps .card-step { padding: 26px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.light-steps .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; font-weight: 700; font-size: 14px; }
.light-steps p { color: var(--soft); }
.bg-cyan { background: #0891B2; } .bg-violet { background: #7C3AED; } .bg-pink { background: #DB2777; } .bg-teal { background: #0D9488; } .bg-blue { background: #2563EB; }

.info-card { padding: 26px; border-radius: 18px; border: 1px solid; display: flex; flex-direction: column; gap: 8px; }
.info-card h3 { font-size: 19px; }
.info-card p { color: var(--muted); }
.ic-blue { background: #EEF4FF; border-color: #C7D8FB; } .ic-violet { background: #F4EEFF; border-color: #DCCCFB; }
.ic-teal { background: #EAF8F5; border-color: #BFE8DF; } .ic-pink { background: #FDF2F8; border-color: #F5C9E1; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: #7C3AED; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 16px 20px 20px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { padding: 32px; border-radius: 22px; background: #FFFFFF; color: var(--ink); box-shadow: 0 40px 90px -40px rgba(124,58,237,.8); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 520px) { .form-card { padding: 22px; } }
.form-card h2, .form-card h3 { font-size: 22px; font-weight: 700; }
.form-fields { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.label-text { display: block; }
.req { color: #B91C1C; font-weight: 600; }
.opt { font-weight: 400; color: var(--soft); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #CBD0E6; border-radius: 10px; font-weight: 400; font-size: 16px; background: #FFFFFF; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #6366F1; outline-offset: 1px; border-color: #6366F1; }
.field-error { font-size: 13px; font-weight: 500; color: #B91C1C; }
[aria-invalid="true"] { border-color: #DC2626 !important; }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 400; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.checks input, .pick input, .seg input { width: 18px; height: 18px; margin: 0; accent-color: #4F46E5; flex-shrink: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid; font-size: 14px; font-weight: 600; cursor: pointer; }
.pick.k1 { background: #FFF1F2; border-color: #FECDD3; color: #9F1239; } .pick.k2 { background: #EEF2FF; border-color: #C7D2FE; color: #3730A3; }
.pick.k3 { background: #F5F3FF; border-color: #DDD6FE; color: #5B21B6; } .pick.k4 { background: #F0FDFA; border-color: #99F6E4; color: #115E59; }
.pick.k5 { background: #FDF2F8; border-color: #FBCFE8; color: #9D174D; }
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid #CBD0E6; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg:has(input:checked) { border-color: #6366F1; background: #EEF2FF; color: #3730A3; box-shadow: inset 0 0 0 1px #6366F1; }
@media (max-width: 420px) { .segs { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.progress { height: 4px; border-radius: 4px; background: #EDE9FE; overflow: hidden; display: none; }
.progress.active { display: block; }
.progress span { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--cta); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .progress span { animation: none; width: 100%; } }
.form-status { font-size: 15px; border-radius: 10px; padding: 12px 14px; display: none; }
.form-status.error { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.form-done { display: none; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-done .ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #DDF7F3; color: #0D9488; }
.form-done .ok svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form-card.sent .form-fields { display: none; }
.form-card.sent .form-done { display: flex; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: 88px; padding-bottom: 88px; }
@media (max-width: 640px) { .page-hero { padding-top: 56px; padding-bottom: 56px; } }
.note-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--on-night-soft); }
.note-row span { display: inline-flex; align-items: center; gap: 6px; }

/* Legal prose */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 22px; margin-top: 20px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #050719; color: var(--on-night-muted); }
.footer-inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-brand .brand { color: #FFFFFF; font-size: 18px; }
.footer-brand .brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav strong { font-size: 14px; color: #FFFFFF; }
.footer-nav a { color: var(--on-night-muted); }
.footer-nav a:hover { color: #FFFFFF; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 14px; color: var(--on-night-soft); }

.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-top: 96px; padding-bottom: 96px; }
.river-art { position: relative; }
.swipe { display: none; }
@media (max-width: 820px) { .swipe { display: inline; } }

/* 30-second story video */
.story-video { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.story-frame { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(67,56,202,.45); }
.story-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-play { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; color: #FFFFFF; font: 600 16px/1 Inter, system-ui, sans-serif; background: linear-gradient(135deg, #4F46E5, #C026D3); box-shadow: 0 0 0 6px rgba(255,255,255,.6), 0 18px 40px -12px rgba(67,56,202,.7); cursor: pointer; transition: transform .15s ease; }
.story-play-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding-left: 2px; border-radius: 999px; background: rgba(255,255,255,.22); }
.story-len { font-weight: 500; opacity: .8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.4); }
.story-play:hover { transform: translateY(-2px); }
.story-play:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 6px; }
.story-play[hidden] { display: none; }
@media (max-width: 640px) { .story-frame { border-radius: 14px; } .story-play { left: 12px; bottom: 12px; min-height: 40px; font-size: 14px; padding: 4px 14px 4px 4px; gap: 8px; box-shadow: 0 0 0 4px rgba(255,255,255,.6); } .story-play-icon { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .story-play:hover { transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
