/* ============================================================================
   Cuanflow — Landing page styles
   Design language mirrors the app: charcoal canvas (#0A0A0C), tosca mint
   accent (#23D6BC), an "aurora" teal hero gradient, Funnel Display for display
   type + Poppins for body. Motion follows Emil Kowalski's craft principles:
   strong custom easing, transform/opacity only, scale-on-press feedback,
   scroll reveals with stagger, and a hard respect for reduced motion.
   ========================================================================== */

:root {
  /* ── Brand palette (from lib/themes.ts → cuanflow) ─────────────────────── */
  --bg: #0a0a0c;
  --surface: #16161a;
  --surface-hi: #222228;
  --hairline: #2c2c34;
  --ink: #ffffff;
  --muted: #8c8c97;
  --faint: #5a5a65;
  --accent: #23d6bc;
  --accent-2: #41d5b9;
  --accent-dim: rgba(35, 214, 188, 0.16);
  --good: #35d6a4;
  --warn: #fbbf24;
  --bad: #fe4b60;
  --gold: #e8c45c;

  /* category pie colours (from the app) */
  --pie-1: #23d6bc;
  --pie-2: #fbbf24;
  --pie-3: #fe4b60;
  --pie-4: #7ab2ff;
  --pie-5: #b7a2ff;
  --pie-6: #5a5a65;

  /* ── Type ──────────────────────────────────────────────────────────────── */
  --font-display: "Funnel Display", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  /* ── Motion (Emil's strong curves) ─────────────────────────────────────── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* ── Layout ────────────────────────────────────────────────────────────── */
  --maxw: 1140px;
  --radius: 22px;
  --radius-sm: 14px;
  --nav-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #04201c;
}

/* ── Shared layout helpers ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin-block: 18px 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

.lead {
  color: var(--muted);
}

.accent-text {
  color: var(--accent);
}

/* ── Buttons (press feedback per Emil) ─────────────────────────────────── */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #04201c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
    box-shadow 240ms var(--ease-out), border-color 200ms ease;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  box-shadow: 0 8px 30px -10px rgba(35, 214, 188, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--accent-2);
    box-shadow: 0 12px 40px -10px rgba(35, 214, 188, 0.65);
  }
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--hairline);
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
  }
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.04rem;
}

.btn--block {
  width: 100%;
}

/* ============================================================================
   NAVBAR
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background-color 300ms ease, border-color 300ms ease,
    backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}

.nav[data-scrolled="true"] {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__glyph {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: radial-gradient(120% 120% at 30% 20%, #1c1c20, #0c0c0e);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 18px -6px rgba(35, 214, 188, 0.6);
  padding: 5px;
}

.brand__word {
  width: auto;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 22px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    color: var(--ink);
  }
}

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__signin {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__signin:hover {
    color: var(--ink);
  }
}

/* language toggle — a tiny segmented control */
.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  position: relative;
}

.lang__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}

.lang__btn[aria-pressed="true"] {
  color: #04201c;
}

.lang__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: 44px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 280ms var(--ease-out);
  z-index: 0;
}

.lang[data-lang="id"] .lang__thumb {
  transform: translateX(44px);
}

/* mobile: collapse nav links */
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav__signin {
    display: none;
  }
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 40px;
  overflow: hidden;
}

/* aurora — the app's dashboard hero gradient, bled behind the fold */
.hero__aurora {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 760px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      60% 70% at 50% 0%,
      rgba(18, 139, 118, 0.55),
      rgba(14, 110, 94, 0.28) 38%,
      rgba(10, 51, 47, 0.12) 62%,
      transparent 78%
    );
  filter: saturate(120%);
}

.hero__grid-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(35, 214, 188, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(35, 214, 188, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 10%, #000, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero__copy {
  max-width: 580px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-block: 22px 22px;
}

.hero h1 .flow {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__trust {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.84rem;
  color: var(--faint);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__trust svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* ── Hero phone stage ──────────────────────────────────────────────────── */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.hero__stage .phone {
  z-index: 2;
}

/* floating "email → transaction" card telling the automation story */
.float-card {
  position: absolute;
  z-index: 3;
  background: rgba(22, 22, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.float-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.float-card__icon svg {
  width: 20px;
  height: 20px;
}

.float-card__t {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.float-card__s {
  font-size: 0.72rem;
  color: var(--muted);
}

.float-card--email {
  top: 8%;
  left: -6%;
  animation: floatA 6s ease-in-out infinite;
}

.float-card--email .float-card__icon {
  background: rgba(255, 255, 255, 0.06);
  color: #ea4335;
}

.float-card--txn {
  bottom: 12%;
  right: -7%;
  animation: floatB 7s ease-in-out infinite;
}

.float-card--txn .float-card__icon {
  background: var(--accent-dim);
  color: var(--accent);
}

.float-card__arrow {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 38%;
  color: var(--accent);
  opacity: 0.5;
  width: 26px;
  height: 26px;
  animation: floatB 7s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card--email,
  .float-card--txn,
  .float-card__arrow {
    animation: none;
  }
}

/* ============================================================================
   PHONE MOCKUP (reused — recreates real app screens in CSS)
   ========================================================================== */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2a30, #121214);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 6;
}

/* a phone that frames a real captured screenshot instead of a CSS mockup */
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* app hero gradient inside the phone */
.app-hero {
  background: linear-gradient(
    180deg,
    #128b76 0%,
    #0e6e5e 26%,
    #0a514a 48%,
    #0a332f 70%,
    var(--bg) 100%
  );
  padding: 40px 18px 18px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.app-brand svg {
  display: block;
}

.app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

.app-greet {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #fff;
}
.app-greet + .app-period {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.app-balance-label {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2px;
}

.app-balance {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-balance small {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}
.app-balance small b {
  font-weight: 600;
  color: #fff;
}

.app-bar {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.app-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--warn);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out);
}

.is-visible .app-bar__fill {
  transform: scaleX(var(--w, 0.39));
}

.app-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}
.app-bar-meta b {
  font-weight: 600;
}

/* transaction list */
.app-body {
  flex: 1;
  padding: 16px 16px 60px;
  overflow: hidden;
}

.app-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.app-row-head h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.app-row-head span {
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 500;
}

.txn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin-bottom: 9px;
}

.txn__ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.txn__main {
  flex: 1;
  min-width: 0;
}
.txn__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}
.txn__meta {
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txn__amt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bad);
  white-space: nowrap;
}

/* bottom tab bar */
.app-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
}
.app-tabbar i {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--faint);
  display: block;
}
.app-tabbar i.active {
  background: var(--accent);
}
.app-tabbar .fab {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 1.2rem;
  font-weight: 300;
}

/* ============================================================================
   BANK MARQUEE
   ========================================================================== */
.banks {
  padding-block: 56px;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, rgba(35, 214, 188, 0.015));
}

.banks__label {
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.banks__label b {
  color: var(--ink);
  font-weight: 600;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  white-space: nowrap;
  flex-shrink: 0;
}

.chip__logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.chip__name {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink);
}

/* ============================================================================
   FEATURE SECTIONS (alternating)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(90px, 14vw, 150px);
}

.feature--reverse .feature__media {
  order: -1;
}

.feature__copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-block: 16px 16px;
}

.feature__copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.feature__list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  font-size: 0.96rem;
  color: var(--ink);
}

.feature__list .tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.feature__list .tick svg {
  width: 13px;
  height: 13px;
}

.feature__media {
  display: grid;
  place-items: center;
  position: relative;
}

/* soft glow behind each phone */
.feature__media::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 60%;
  background: radial-gradient(
    closest-side,
    rgba(35, 214, 188, 0.22),
    transparent
  );
  filter: blur(40px);
  z-index: 0;
}

.feature__media .phone,
.feature__media .panel {
  position: relative;
  z-index: 1;
}

/* ── In-phone: platform picker screen ──────────────────────────────────── */
.app-plain-head {
  padding: 38px 18px 6px;
}
.app-plain-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.app-plain-head p {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}

.plat-list {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.plat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.plat__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.plat__name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
}
.plat__check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #04201c;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 360ms var(--ease-out);
}
.plat__check svg {
  width: 14px;
  height: 14px;
}
.is-visible .plat__check {
  transform: scale(1);
}
.is-visible .plat:nth-child(1) .plat__check {
  transition-delay: 0.05s;
}
.is-visible .plat:nth-child(2) .plat__check {
  transition-delay: 0.12s;
}
.is-visible .plat:nth-child(3) .plat__check {
  transition-delay: 0.19s;
}
.is-visible .plat:nth-child(4) .plat__check {
  transition-delay: 0.26s;
}
.is-visible .plat:nth-child(5) .plat__check {
  transition-delay: 0.33s;
}

/* ── Budget bars panel ─────────────────────────────────────────────────── */
.budget-list {
  padding: 16px;
  display: grid;
  gap: 16px;
}
.budget-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.budget-item__name {
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.budget-item__name .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.budget-item__val {
  font-size: 0.72rem;
  color: var(--muted);
}
.budget-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-hi);
  overflow: hidden;
}
.budget-track__fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out);
}
.is-visible .budget-track__fill {
  transform: scaleX(var(--w));
}
.is-visible .budget-item:nth-child(2) .budget-track__fill {
  transition-delay: 0.1s;
}
.is-visible .budget-item:nth-child(3) .budget-track__fill {
  transition-delay: 0.2s;
}
.is-visible .budget-item:nth-child(4) .budget-track__fill {
  transition-delay: 0.3s;
}
.budget-item.over .budget-item__val {
  color: var(--bad);
}

/* ── Analytics donut panel ─────────────────────────────────────────────── */
.analytics-panel {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.donut-wrap {
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 22px;
}
.donut {
  transform: rotate(-90deg);
}
.donut circle {
  fill: none;
  stroke-width: 26;
  stroke-linecap: round;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.is-visible .donut circle {
  stroke-dashoffset: var(--off);
}
.is-visible .donut circle:nth-child(2) {
  transition-delay: 0.12s;
}
.is-visible .donut circle:nth-child(3) {
  transition-delay: 0.24s;
}
.is-visible .donut circle:nth-child(4) {
  transition-delay: 0.36s;
}
.is-visible .donut circle:nth-child(5) {
  transition-delay: 0.48s;
}
.is-visible .donut circle:nth-child(6) {
  transition-delay: 0.6s;
}
.donut-center {
  position: absolute;
  text-align: center;
}
.donut-center b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}
.donut-center span {
  font-size: 0.68rem;
  color: var(--muted);
}

.legend {
  display: grid;
  gap: 11px;
}
.legend__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.legend__name {
  color: var(--ink);
}
.legend__pct {
  color: var(--muted);
  font-size: 0.76rem;
}
.legend__amt {
  font-weight: 600;
  font-size: 0.8rem;
}

/* ============================================================================
   FREE TIER
   ========================================================================== */
.free__inner {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}

.free__copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-block: 18px 14px;
}
.free__copy h2 .num {
  color: var(--accent);
}
.free__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}
.free__copy .btn {
  margin-top: 26px;
}
.free__fine {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--faint);
}

.free__card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: radial-gradient(
      130% 130% at 50% 0%,
      var(--accent-dim),
      transparent 55%
    ),
    var(--surface);
  padding: clamp(26px, 4vw, 36px);
  overflow: hidden;
}

.free__stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
}
.free__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.free__unit {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 15ch;
  line-height: 1.2;
}

.free__feats {
  display: grid;
  gap: 13px;
}
.free__feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-size: 0.97rem;
}
.free__feats .tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.free__feats .tick svg {
  width: 14px;
  height: 14px;
}

.free__upsell {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.free__upsell a {
  color: var(--accent);
  transition: opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .free__upsell a:hover {
    opacity: 0.78;
  }
}

/* ============================================================================
   PRO / PRICING
   ========================================================================== */
.pro {
  position: relative;
}
.pro__inner {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(
      120% 120% at 50% -10%,
      rgba(35, 214, 188, 0.1),
      transparent 55%
    ),
    var(--surface);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}

.pro__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(232, 196, 92, 0.12);
  border: 1px solid rgba(232, 196, 92, 0.3);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pro h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-block: 18px 14px;
}
.pro__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.pro__feats {
  margin-top: 26px;
  display: grid;
  gap: 13px;
}
.pro__feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  font-size: 0.98rem;
}
.pro__feats .tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #04201c;
  display: grid;
  place-items: center;
}
.pro__feats .tick svg {
  width: 14px;
  height: 14px;
}

/* pricing cards */
.plans {
  display: grid;
  gap: 16px;
}

.plan {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px;
  background: var(--bg);
  position: relative;
  transition: transform 200ms var(--ease-out), border-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .plan:hover {
    transform: translateY(-3px);
  }
}
.plan--featured {
  border-color: rgba(35, 214, 188, 0.5);
  background: linear-gradient(180deg, rgba(35, 214, 188, 0.06), var(--bg));
  box-shadow: 0 20px 50px -28px rgba(35, 214, 188, 0.5);
}
.plan__tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.plan--featured .plan__tag {
  color: var(--accent);
}
.plan__save {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #04201c;
  background: var(--warn);
  padding: 3px 9px;
  border-radius: 999px;
}
.plan__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.plan__price span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--muted);
}
.plan__note {
  font-size: 0.74rem;
  color: var(--accent);
  margin-top: 4px;
  min-height: 1em;
}
.plan .btn {
  margin-top: 16px;
}

.plans__fine {
  margin-top: 4px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--faint);
}

/* ============================================================================
   TESTIMONIALS
   ========================================================================== */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.tcard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.tcard__stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.tcard__quote {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 300;
  flex: 1;
}
.tcard__who {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.tcard__ava {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #04201c;
}
.tcard__name {
  font-size: 0.86rem;
  font-weight: 500;
}
.tcard__role {
  font-size: 0.74rem;
  color: var(--muted);
}

/* ============================================================================
   SECURITY
   ========================================================================== */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.trust__card {
  text-align: center;
  padding: 34px 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.trust__ic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.trust__ic svg {
  width: 26px;
  height: 26px;
}
.trust__card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.trust__card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ============================================================================
   FAQ
   ========================================================================== */
.faq {
  max-width: 760px;
  margin-inline: auto;
}
.faq__list {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 280ms var(--ease-out);
  color: var(--accent);
}
.faq__q .plus::before,
.faq__q .plus::after {
  content: "";
  position: absolute;
  inset: 50% 2px auto 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: opacity 200ms ease;
}
.faq__q .plus::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq__item[data-open="true"] .plus::after {
  opacity: 0;
}
.faq__item[data-open="true"] .plus {
  transform: rotate(180deg);
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.faq__item[data-open="true"] .faq__a {
  grid-template-rows: 1fr;
}
.faq__a-inner {
  overflow: hidden;
}
.faq__a p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ============================================================================
   FINAL CTA + FOOTER
   ========================================================================== */
.final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final__glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 460px;
  background: radial-gradient(
    50% 80% at 50% 100%,
    rgba(35, 214, 188, 0.28),
    transparent 70%
  );
  pointer-events: none;
}
.final__inner {
  position: relative;
  z-index: 1;
}
.final h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin-inline: auto;
}
.final p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}
.final .btn {
  margin-top: 30px;
}
.final__fine {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--faint);
}

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 50px 40px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__brand .brand__word {
  width: auto;
}
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__col-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.footer__col a {
  transition: color 180ms ease;
  width: fit-content;
}
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover {
    color: var(--ink);
  }
}
.footer__copy {
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--faint);
}

/* ============================================================================
   LEGAL PAGE (terms + privacy)
   ========================================================================== */
.legal {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: clamp(60px, 10vw, 120px);
}
.legal__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.legal__head h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
}
.legal__updated {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--faint);
}

.legal__tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 24px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--bg) 55%, transparent);
}
.legal__tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 200ms ease,
    background-color 200ms ease, border-color 200ms ease;
}
.legal__tab:active {
  transform: scale(0.97);
}
.legal__tab[aria-current="true"] {
  color: #04201c;
  background: var(--accent);
  border-color: transparent;
}

.legal__doc {
  max-width: 760px;
  margin: 0 auto;
  scroll-margin-top: 150px;
}
.legal__doc + .legal__doc {
  margin-top: clamp(64px, 10vw, 120px);
}
.legal__doc > h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 8px;
  scroll-margin-top: 150px;
}
.legal__intro {
  color: var(--muted);
  font-size: 1rem;
}

.legal__section {
  margin-top: 32px;
}
.legal__section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 11px;
  display: flex;
  gap: 11px;
}
.legal__section h3 .n {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.legal__section p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.legal__section ul {
  margin: 6px 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.legal__section li {
  color: var(--muted);
  font-size: 0.96rem;
  padding-left: 20px;
  position: relative;
}
.legal__section li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.legal__contact a {
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .legal__contact a:hover {
    opacity: 0.8;
  }
}

/* ============================================================================
   SCROLL REVEAL (Emil: translateY + opacity, stagger, once)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .app-bar__fill,
  .budget-track__fill,
  .plat__check,
  .donut circle {
    transition: none !important;
  }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .hero__copy {
    margin-inline: auto;
  }
  .hero__sub {
    margin-inline: auto;
  }
  .hero__cta,
  .hero__trust {
    justify-content: center;
  }
  .hero__stage {
    margin-top: 30px;
    min-height: 600px;
  }
  .feature,
  .pro__inner,
  .free__inner {
    grid-template-columns: 1fr;
  }
  .feature__media {
    order: -1 !important;
  }
  .tcards,
  .trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .float-card--email {
    left: -2%;
    top: 2%;
  }
  .float-card--txn {
    right: -2%;
  }
  .hero__trust {
    flex-direction: column;
    gap: 8px;
  }
  .nav__inner {
    gap: 12px;
  }
}
