/* =========================================================
   Zentry — web v2
   Tokens mirror the iOS app (Subscriptly/Utilities/Theme.swift,
   Views/Dashboard/DashboardView.swift → DashboardDesign)
   ========================================================= */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;

  /* Backgrounds (AppStyle.backgroundGradient) */
  --bg-a: #121214;
  --bg-b: #0d0d14;
  --bar: #1a1a1f;

  /* Accents */
  --accent-a: #63bffc;
  --accent-b: #578ff7;
  --hero-a: #2f6bff;
  --hero-b: #5b3fe4;
  --hero-glow: #67e8f9;
  --pink: #ff7299;
  --orange: #ff9e5c;

  /* Status (DashboardDesign) */
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #34d399;
  --info: #7db4ff;
  --high: #fb923c;

  /* Chart palette */
  --c1: #4f8bff;
  --c2: #2dd4bf;
  --c3: #a78bfa;
  --c4: #f472b6;
  --c-other: #94a3b8;

  /* Text */
  --text: rgba(255, 255, 255, 0.95);
  --text-2: #b8c3da;
  --text-3: rgba(255, 255, 255, 0.5);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-2: rgba(255, 255, 255, 0.16);

  --rainbow: #ff6b9e, #ffad5c, #fcdb5c, #6bdb8c, #5cbdfc, #9e75fc, #ff6b9e;
  --brand-gradient: linear-gradient(95deg, #7db4ff 0%, #a78bfa 40%, #f472b6 70%, #ff9e5c 100%);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

main {
  overflow-x: clip;
}

.section {
  padding-block: clamp(72px, 10vw, 128px) 0;
}

/* ---------- Backdrop (BackgroundView port) ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
}

.glow {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  filter: blur(80px);
  will-change: transform;
}

.glow-a {
  width: 520px;
  height: 520px;
  top: -220px;
  left: 4%;
  opacity: 0.16;
  animation: drift-a 9s ease-in-out infinite alternate;
}

.glow-b {
  width: 440px;
  height: 440px;
  right: -60px;
  top: 38%;
  opacity: 0.1;
  background: linear-gradient(135deg, var(--hero-b), var(--c4));
  animation: drift-b 11s ease-in-out infinite alternate;
}

.glow-c {
  width: 380px;
  height: 380px;
  left: 30%;
  bottom: -160px;
  opacity: 0.08;
  background: linear-gradient(135deg, var(--c2), var(--accent-b));
  animation: drift-a 13s ease-in-out infinite alternate-reverse;
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  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% 50% at 50% 0%, #000, transparent 75%);
}

.backdrop-noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@keyframes drift-a {
  to {
    transform: translate3d(140px, 60px, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-120px, -80px, 0) scale(0.92);
  }
}

/* ---------- Shared type ---------- */

.gradient-text {
  background: var(--brand-gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--info);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.section-heading h2,
.privacy-copy h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.section-heading p {
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 580px;
}

/* ---------- Glass surface + pointer spotlight ---------- */

.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.glass::before,
.glass::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.glass::before {
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 180, 255, 0.1), transparent 45%);
}

.glass::after {
  inset: -1px;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(160, 190, 255, 0.55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.glass:hover::before,
.glass:hover::after {
  opacity: 1;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

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

.button {
  --bx: 0px;
  --by: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.button .icon {
  font-size: 18px;
}

.button:active {
  transform: translate(var(--bx), var(--by)) scale(0.97);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f8bff, var(--hero-b));
  box-shadow: 0 10px 30px -8px rgba(79, 110, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-primary:hover {
  box-shadow: 0 16px 44px -8px rgba(79, 110, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--stroke-2);
}

.button-ghost:hover {
  background: var(--surface-2);
}

.button-ghost .icon {
  transition: transform 0.25s var(--ease-out);
}

.button-ghost:hover .icon {
  transform: translateX(3px);
}

.button-light {
  color: #111;
  background: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.button-ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Rainbow ring — mirrors the iOS "+" tab button */
.ring-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bar), var(--bar)) padding-box,
    conic-gradient(from var(--angle), var(--rainbow)) border-box;
  animation: spin-angle 5s linear infinite;
  transition: transform 0.2s var(--ease-out);
}

.ring-button:hover {
  transform: scale(1.04);
}

@keyframes spin-angle {
  to {
    --angle: 360deg;
  }
}

.text-button {
  color: var(--info);
  font-weight: 600;
  font-size: 14px;
}

.text-button:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: 16px;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled .nav-capsule,
.site-header.is-open .nav-capsule {
  background: rgba(22, 22, 28, 0.72);
  border-color: var(--stroke);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: var(--surface);
}

.nav-links a.is-active {
  color: #fff;
  background: var(--surface-2);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  place-items: center;
  margin-left: auto;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -6px;
}

.menu-bars::after {
  top: 6px;
}

.menu-bars.is-open {
  background: transparent;
}

.menu-bars.is-open::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-bars.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  width: min(1100px, 100%);
  margin: 8px auto 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(22, 22, 28, 0.94);
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  display: grid;
  gap: 2px;
  animation: pop-in 0.3s var(--ease-out);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.button) {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
}

.mobile-nav a:not(.button):hover {
  background: var(--surface);
}

.mobile-nav .button {
  margin-top: 8px;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 40px;
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke-2);
  font-size: 13.5px;
  color: var(--text-2);
  transition: background-color 0.2s, border-color 0.2s;
}

.pill-badge:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
}

.pill-badge-new {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 .gradient-text {
  display: block;
  padding-bottom: 0.08em;
}

.lede {
  max-width: 540px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-2);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust .icon {
  color: var(--success);
  stroke-width: 2.6;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.phone-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
}

.phone-hint b {
  color: var(--text-2);
}

.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
}

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

.phone-stage {
  position: relative;
  perspective: 1400px;
  padding: 10px;
}

.phone-halo {
  position: absolute;
  inset: 8% -10%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(91, 63, 228, 0.55), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(103, 232, 249, 0.3), transparent);
  filter: blur(40px);
  animation: halo 6s ease-in-out infinite alternate;
}

@keyframes halo {
  to {
    transform: scale(1.08) rotate(8deg);
    opacity: 0.8;
  }
}

.phone {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: 322px;
  height: 680px;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #3a3a42, #121216 40%, #26262c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -30px rgba(47, 107, 255, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.phone.is-tilting {
  transition: transform 0.12s linear;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}

.phone-screen::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  left: -60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  opacity: 0.14;
  filter: blur(50px);
  pointer-events: none;
}

.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 34px;
  font-size: 14px;
  font-weight: 650;
  font-family: var(--font);
  background: linear-gradient(var(--bg-a) 55%, transparent);
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #000;
}

.status-icons {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}

.status-icons i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: #fff;
}

.status-icons i:nth-child(1) {
  height: 6px;
}

.status-icons i:nth-child(2) {
  height: 9px;
}

.status-icons i:nth-child(3) {
  width: 22px;
  height: 11px;
  margin-left: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff 75%, rgba(255, 255, 255, 0.3) 75%);
}

.app-views {
  position: absolute;
  inset: 0;
}

.app-view {
  position: absolute;
  inset: 0;
  padding: 52px 14px 120px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px) scale(0.99);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.45s var(--ease-out),
    visibility 0s linear 0.35s;
}

.app-view::-webkit-scrollbar {
  display: none;
}

.app-view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.app-view > * + * {
  margin-top: 14px;
}

.app-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92));
}

.app-tabbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  z-index: 6;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #1a1a1f;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.app-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  height: 46px;
  align-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.app-tab .icon {
  font-size: 19px;
  transition: transform 0.35s var(--ease-spring);
}

.app-tab span {
  font-size: 11px;
  font-weight: 650;
  max-height: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), max-height 0.25s ease;
}

.app-tab.is-active {
  color: #fff;
}

.app-tab.is-active span {
  max-height: 16px;
  opacity: 1;
  transform: none;
}

.app-tab:hover .icon {
  transform: translateY(-1px);
}

.app-add {
  position: relative;
  width: 52px;
  height: 52px;
  margin-inline: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#1a1a1f, #1a1a1f) padding-box,
    conic-gradient(from var(--angle), var(--rainbow)) border-box;
  animation: spin-angle 6s linear infinite;
  transition: transform 0.25s var(--ease-spring);
}

.app-add .icon {
  font-size: 22px;
  stroke-width: 2.4;
}

.app-add:hover {
  transform: scale(1.07);
}

.app-add:active {
  transform: scale(0.94);
}

/* --- In-app components --- */

.logo {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  object-fit: contain;
  padding: 5px;
  background: #fff;
}

.logo-fallback {
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  background: linear-gradient(135deg, var(--c1), var(--hero-b));
}

.app-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.app-caption {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.app-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.app-actions {
  display: flex;
  gap: 4px;
}

.app-icon-btn {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  transition: background-color 0.2s, transform 0.2s var(--ease-spring);
}

.app-icon-btn .icon {
  font-size: 15px;
}

.app-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.app-icon-btn:active {
  transform: scale(0.92);
}

.app-icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  border: 2px solid var(--bg-a);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.5), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.28), transparent 60%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px -6px rgba(47, 107, 255, 0.4);
}

.hc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

.hc-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.16);
}

.hc-amount {
  display: block;
  margin-top: 6px;
  font-family: var(--font-round);
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hc-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(52, 211, 153, 0.22);
  color: #bbf7d0;
}

.hc-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 8px;
  height: 74px;
  margin-top: 14px;
}

.hc-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 100%;
  font-size: 9.5px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.6);
}

.hc-bar i {
  display: block;
  width: 100%;
  height: calc(var(--h) * 54px);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: bottom;
  animation: grow-bar 0.9s var(--ease-out) both;
  animation-delay: calc(var(--n) * 70ms);
}

.hc-bar.is-current i {
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.hc-bar.is-current {
  color: #fff;
}

@keyframes grow-bar {
  from {
    transform: scaleY(0);
  }
}

.hc-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: rgba(255, 255, 255, 0.18);
}

.hc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hc-stat + .hc-stat {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hc-stat span {
  display: block;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}

.hc-stat b {
  font-family: var(--font-round);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.tiles-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.att-tile {
  display: grid;
  gap: 2px;
  padding: 12px;
  text-align: left;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  transition: transform 0.2s var(--ease-spring), background-color 0.2s;
}

.att-tile:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.att-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 9px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 18%, transparent);
}

.att-value {
  font-family: var(--font-round);
  font-size: 22px;
  font-weight: 750;
}

.att-title {
  font-weight: 650;
  font-size: 12px;
}

.att-detail {
  font-size: 11px;
  color: var(--text-2);
}

.app-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-inline: 2px;
}

.app-section-head h4 {
  font-size: 15px;
  font-weight: 700;
}

.app-section-head .link {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-a);
}

.app-section-head .muted {
  font-size: 12px;
  color: var(--text-2);
}

.app-section-head + * {
  margin-top: 8px !important;
}

.app-list {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
}

.pay-row + .pay-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pay-main {
  flex: 1;
  min-width: 0;
}

.pay-main strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-main span {
  font-size: 11px;
  color: var(--text-2);
}

.pay-main span.is-urgent {
  color: var(--warning);
}

.pay-main span.is-critical {
  color: var(--danger);
}

.pay-amt {
  font-family: var(--font-round);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

/* Donut chart (shared with calculator) */
.donut {
  --size: 150px;
  --hole: 22px;
  position: relative;
  flex: none;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--donut, conic-gradient(rgba(255, 255, 255, 0.08) 0 100%));
  transition: background 0.4s ease;
}

.donut::before {
  content: "";
  position: absolute;
  inset: var(--hole);
  border-radius: 50%;
  background: #16161d;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.donut > span {
  position: relative;
  display: grid;
  justify-items: center;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.2;
}

.donut > span b {
  font-family: var(--font-round);
  font-size: 26px;
  color: #fff;
}

.donut.sm {
  --size: 96px;
  --hole: 14px;
}

.donut.sm > span {
  font-size: 9.5px;
}

.donut.sm > span b {
  font-size: 13px;
}

.legend {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  animation: pop-in 0.35s var(--ease-out) both;
}

.legend li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-2);
}

.legend li b {
  font-family: var(--font-round);
  font-variant-numeric: tabular-nums;
}

.legend .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--sw);
}

.legend.sm li {
  font-size: 11px;
  gap: 6px;
}

.legend.sm .swatch {
  width: 8px;
  height: 8px;
}

/* Subscriptions screen */
.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filter-pills button {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  transition: all 0.2s ease;
}

.filter-pills button.is-active {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.filter-pills button .count {
  margin-left: 4px;
  opacity: 0.6;
}

.group-title {
  padding-inline: 2px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.group-title + * {
  margin-top: 8px !important;
}

.sub-list {
  display: grid;
  gap: 8px;
}

.sub-row {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  overflow: hidden;
  animation: pop-in 0.35s var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 40ms);
}

.sub-row.risk-critical {
  background: linear-gradient(rgba(183, 28, 28, 0.16), rgba(211, 47, 47, 0.08)), rgba(255, 255, 255, 0.05);
}

.sub-row.risk-high {
  background: linear-gradient(rgba(230, 81, 0, 0.16), rgba(239, 108, 0, 0.08)), rgba(255, 255, 255, 0.05);
}

.sub-row.is-new {
  box-shadow: 0 0 0 1.5px var(--success), 0 0 24px rgba(52, 211, 153, 0.35);
}

.sub-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sub-main strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-meta {
  font-size: 11px;
  color: var(--text-2);
}

.sub-trial {
  font-size: 11px;
  color: var(--success);
}

.sub-side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 6px;
}

.sub-amt {
  font-family: var(--font-round);
  font-weight: 750;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.sub-shared {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-3);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 16%, transparent);
}

.risk-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.risk-critical {
  --tone: var(--danger);
}

.risk-high {
  --tone: var(--high);
}

.risk-watch {
  --tone: var(--warning);
}

.risk-safe {
  --tone: var(--success);
}

.empty-note {
  padding: 22px 12px;
  text-align: center;
  color: var(--text-2);
  font-size: 12px;
}

.sub-hit {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.sub-actions {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-row.is-expanded .sub-actions {
  display: flex;
  animation: pop-in 0.25s var(--ease-out);
}

.sub-actions-note {
  flex: 1;
  font-size: 10.5px;
  color: var(--text-3);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--stroke);
  transition: background-color 0.2s, transform 0.2s var(--ease-spring);
}

.mini-btn:active {
  transform: scale(0.95);
}

.mini-btn .icon {
  font-size: 12px;
  stroke-width: 2.6;
}

.mini-btn.success {
  flex: 1;
  color: #062e1f;
  background: var(--success);
}

.mini-btn.danger {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
}

.mini-btn.primary {
  background: linear-gradient(135deg, #4f8bff, var(--hero-b));
  border-color: transparent;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.24);
  color: var(--text-3);
  animation: pop-in 0.25s var(--ease-out);
}

.app-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13px;
  color: #fff;
}

.app-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 14px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.app-empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  color: var(--info);
  background: rgba(125, 180, 255, 0.14);
}

.app-empty p {
  font-size: 12px;
  color: var(--text-2);
}

.app-empty-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.app-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 90px;
  z-index: 7;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  background: rgba(40, 40, 50, 0.92);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-spring);
}

.app-toast.is-visible {
  opacity: 1;
  transform: none;
}

/* Calendar screen */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-month {
  font-size: 16px;
  font-weight: 700;
}

.cal-nav {
  display: flex;
  gap: 6px;
}

.cal-nav .app-icon-btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}

.cal-total {
  font-size: 12px;
  color: var(--text-2);
}

.cal-total b {
  color: #fff;
  font-family: var(--font-round);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}

.cal-dow {
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  padding-bottom: 4px;
}

.cal-day {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  height: 44px;
  padding-top: 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cal-day.is-today > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-b);
}

.cal-day.is-selected {
  border-color: var(--accent-a);
  background: rgba(99, 191, 252, 0.08);
}

.cal-day.is-past {
  color: var(--text-3);
}

.cal-icons {
  display: flex;
  align-items: center;
}

.cal-icons .logo {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 5px;
  box-shadow: 0 0 0 1.5px #1c1c22;
}

.cal-icons .logo + .logo {
  margin-left: -5px;
}

.cal-icons .logo-fallback {
  font-size: 7px;
}

.cal-more {
  font-size: 8.5px;
  font-weight: 750;
  margin-left: 2px;
  color: var(--text-2);
}

.cal-detail {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
}

.cal-detail h5 {
  margin: 0;
  font-size: 14px;
}

.cal-detail > p {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.cal-detail .pay-row {
  padding-inline: 0;
}

/* Settings screen */
.set-group-title {
  padding-inline: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.set-group-title + * {
  margin-top: 8px !important;
}

.set-group {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
}

.set-row + .set-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

button.set-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.set-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--tint);
}

.set-icon .icon {
  font-size: 14px;
}

.set-main {
  flex: 1;
  min-width: 0;
}

.set-main strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.set-main span {
  font-size: 10.5px;
  color: var(--text-3);
}

.set-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-2);
}

.set-value .icon {
  font-size: 12px;
  opacity: 0.6;
}

.set-row.danger strong {
  color: var(--danger);
}

.toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.36);
  transition: background-color 0.25s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease-spring);
}

.toggle[aria-checked="true"] {
  background: var(--success);
}

.toggle[aria-checked="true"]::after {
  transform: translateX(18px);
}

/* Add sheet */
.app-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.app-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.app-sheet-panel {
  width: 100%;
  padding: 8px 14px 22px;
  border-radius: 28px 28px 0 0;
  background: #1b1b22;
  border-top: 1px solid var(--stroke-2);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}

.app-sheet.is-open .app-sheet-panel {
  transform: none;
}

.sheet-grabber {
  width: 36px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.sheet-sub {
  margin: 2px 0 12px;
  font-size: 11.5px;
  color: var(--text-2);
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sheet-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  font-size: 11px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s;
}

.sheet-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.sheet-item small {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
}

.sheet-empty {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  text-align: left;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  font-size: 13px;
  background: rgba(30, 30, 38, 0.74);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  animation: bob 6s ease-in-out infinite;
  pointer-events: none;
}

.float-card strong {
  display: block;
  font-weight: 650;
  white-space: nowrap;
}

.float-card span {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.float-card em {
  align-self: flex-start;
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
}

.float-card .logo {
  width: 34px;
  height: 34px;
}

.float-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 17px;
}

.float-icon.success {
  color: var(--success);
  background: rgba(52, 211, 153, 0.16);
}

.float-icon.info {
  color: var(--info);
  background: rgba(125, 180, 255, 0.16);
}

.float-notif {
  top: 10%;
  left: -170px;
}

.float-trial {
  top: 46%;
  right: -150px;
  animation-delay: -2s;
}

.float-saved {
  bottom: 20%;
  left: -150px;
  animation-delay: -4s;
}

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

/* ---------- Marquee ---------- */

.marquee-section {
  padding-top: 28px;
}

.marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.marquee-item:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.marquee-item .logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

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

/* ---------- Stats ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 22px 8px;
  text-align: center;
  border-top: 1px solid var(--stroke-2);
}

.stat strong {
  font-family: var(--font-round);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #9fb2d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--text-2);
  font-size: 14.5px;
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  grid-column: span 2;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-2);
}

.tile h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tile p {
  color: var(--text-2);
  font-size: 15px;
}

.tile-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 21px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 24%, transparent);
}

.tile-import {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 280px;
}

.tile-remind {
  grid-row: span 2;
}

.tile-lang {
  grid-column: span 4;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--stroke);
  transition: all 0.25s var(--ease-out);
}

.chip:hover {
  color: #fff;
  border-color: var(--stroke-2);
}

.chip.is-active {
  color: #fff;
  background: rgba(79, 139, 255, 0.2);
  border-color: rgba(125, 180, 255, 0.55);
}

.source-chips,
.remind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* Import demo */
.import-demo {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.receipt {
  position: relative;
  flex: 1;
  min-height: 210px;
  padding: 16px 14px;
  border-radius: 14px;
  background: #f4f1ea;
  color: #2a2a2a;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--ease-out);
}

.tile-import:hover .receipt {
  transform: rotate(0deg);
}

.receipt.is-camera {
  background: #2a2a30;
  color: #ddd;
  padding: 22px;
}

.receipt.is-camera::before,
.receipt.is-camera::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid var(--warning);
  border-radius: 10px;
  clip-path: polygon(0 0, 22% 0, 22% 3px, 3px 3px, 3px 22%, 0 22%, 0 0, 100% 0, 100% 22%, calc(100% - 3px) 22%, calc(100% - 3px) 3px, 78% 3px, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 78%, 100% 78%, 100% 100%, 0 100%, 0 78%, 3px 78%, 3px calc(100% - 3px), 22% calc(100% - 3px), 22% 100%, 0 100%);
}

.receipt.is-camera::after {
  display: none;
}

.receipt.is-csv {
  background: #0f1a14;
  color: #b7f3cf;
  transform: rotate(1.5deg);
}

.receipt-body .rline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.receipt-body .rhead {
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.receipt-body .rsep {
  border-top: 1px dashed currentColor;
  opacity: 0.35;
  margin: 6px 0;
}

.receipt-body mark {
  color: inherit;
  background: rgba(79, 139, 255, 0.25);
  border-radius: 3px;
  padding: 0 2px;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 36px;
  background: linear-gradient(transparent, rgba(79, 139, 255, 0.35), transparent);
  border-bottom: 2px solid rgba(79, 139, 255, 0.9);
  animation: scan 2.6s ease-in-out infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-40px);
  }
  100% {
    transform: translateY(240px);
  }
}

.import-arrow {
  color: var(--text-3);
  font-size: 22px;
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateX(4px);
    color: var(--info);
  }
}

.extracted {
  flex: 1;
  display: grid;
  gap: 6px;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.field.is-in {
  opacity: 1;
  transform: none;
}

.field span {
  color: var(--text-3);
}

.field b {
  font-weight: 650;
  text-align: right;
}

.field.dup {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Reminders */
.notif-stack {
  position: relative;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
  margin-top: 6px;
  padding: 16px 12px 12px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 139, 255, 0.4), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.28), transparent 55%),
    #11131f;
  border: 1px solid var(--stroke);
}

.notif-stack::before {
  content: attr(data-time);
  display: block;
  text-align: center;
  font-family: var(--font-round);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 10px;
}

.notif-stack .notif {
  background: rgba(40, 40, 52, 0.66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  font-size: 13px;
  animation: notif-in 0.45s var(--ease-spring) both;
  animation-delay: calc(var(--n, 0) * 70ms);
}

.notif .logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 4px;
}

.notif div {
  flex: 1;
  min-width: 0;
}

.notif strong {
  display: block;
  font-weight: 650;
  font-size: 12.5px;
}

.notif span {
  font-size: 12px;
  color: var(--text-2);
}

.notif em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  align-self: flex-start;
}

@keyframes notif-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}

.notif-empty {
  font-size: 13px;
  color: var(--text-3);
  padding: 12px;
  border: 1px dashed var(--stroke-2);
  border-radius: 14px;
  text-align: center;
}

/* Split */
.segmented {
  --idx: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.24);
}

.segmented button {
  position: relative;
  z-index: 1;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}

.segmented button.is-active {
  color: #fff;
}

.segmented-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transform: translateX(calc(var(--idx) * 100%));
  transition: transform 0.35s var(--ease-spring);
}

.split-viz {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--stroke);
}

.split-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
}

.split-total b {
  color: #fff;
  font-family: var(--font-round);
}

.split-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c2), #5eead4);
  overflow: hidden;
}

.split-bar i {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c3), var(--c1));
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
  transition: width 0.45s var(--ease-out);
}

.split-legend {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-2);
}

.split-legend b {
  color: #fff;
  font-family: var(--font-round);
  margin-left: 4px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.mine {
  background: var(--c3);
}

.dot.theirs {
  background: var(--c2);
}

.split-range input {
  width: 100%;
  accent-color: var(--c3);
}

/* Mini calendar */
.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: auto;
}

.mini-cal span {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s, transform 0.2s var(--ease-spring);
}

.mini-cal span.dow {
  background: none;
  font-weight: 700;
  font-size: 10px;
  aspect-ratio: auto;
  padding-bottom: 2px;
}

.mini-cal span.has {
  background: rgba(45, 212, 191, 0.1);
}

.mini-cal span.has img {
  position: absolute;
  inset: 22%;
  width: 56%;
  height: 56%;
  border-radius: 5px;
  background: #fff;
  padding: 1.5px;
  object-fit: contain;
}

.mini-cal span.is-today {
  outline: 1.5px solid var(--accent-a);
  color: #fff;
}

.mini-cal span:hover:not(.dow) {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.1);
}

/* Risk list */
.risk-list {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.risk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
  transition: transform 0.25s var(--ease-out);
}

.risk-list li:hover {
  transform: translateX(4px);
}

.risk-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--tone);
}

.risk-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.risk-list em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: right;
}

/* Currency */
.currency-ticker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--stroke);
}

.currency-code {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  background: rgba(52, 211, 153, 0.16);
  color: var(--success);
}

.currency-amount {
  font-family: var(--font-round);
  font-size: 30px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.flip {
  animation: flip-in 0.5s var(--ease-out);
}

@keyframes flip-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
}

/* Face ID */
.faceid {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 40px;
  color: var(--success);
}

.faceid .icon {
  stroke-width: 1.6;
  animation: faceid 3.2s ease-in-out infinite;
}

.faceid-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 2px solid rgba(52, 211, 153, 0.4);
  animation: faceid-ring 3.2s ease-in-out infinite;
}

@keyframes faceid {
  0%,
  100% {
    color: var(--text-2);
  }
  40%,
  80% {
    color: var(--success);
  }
}

@keyframes faceid-ring {
  0%,
  30% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

/* Widget mock */
.widget-mock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  width: 170px;
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.35), transparent 60%),
    linear-gradient(135deg, #1f2a4a, #231a4a);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-spring);
}

.tile-widget:hover .widget-mock {
  transform: scale(1.05) rotate(-2deg);
}

.widget-label {
  grid-column: 1 / -1;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.widget-mock .logo {
  grid-row: span 2;
}

.widget-mock strong {
  font-size: 15px;
}

.widget-date {
  font-size: 12px;
  color: var(--warning);
}

.widget-mock b {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-family: var(--font-round);
  font-size: 24px;
}

/* Languages */
.tile-lang {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
}

.tile-lang h3 {
  align-self: center;
}

.lang-cycle {
  grid-column: 1 / -1;
  font-size: clamp(2rem, 4.5vw, 3rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff !important;
  min-height: 1.2em;
}

.lang-cycle span {
  display: inline-block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tile-foot {
  grid-column: 1 / -1;
  font-size: 13.5px !important;
  color: var(--text-3) !important;
}

/* ---------- Playground ---------- */

.playground {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.pg-picker {
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.pg-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.pg-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 28px 10px 10px;
  border-radius: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--stroke);
  transition: all 0.25s var(--ease-out);
}

.pg-item:hover {
  border-color: var(--stroke-2);
  transform: translateY(-2px);
}

.pg-item .logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.pg-item div {
  min-width: 0;
}

.pg-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-item small {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.pg-item::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-2);
  transition: all 0.25s var(--ease-spring);
}

.pg-item[aria-pressed="true"] {
  background: rgba(79, 139, 255, 0.14);
  border-color: rgba(125, 180, 255, 0.55);
}

.pg-item[aria-pressed="true"]::after {
  border-color: var(--c1);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 10px no-repeat,
    var(--c1);
}

.pg-note {
  font-size: 12.5px;
  color: var(--text-3);
}

.pg-result {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(47, 107, 255, 0.18), rgba(91, 63, 228, 0.12));
  border-left: 1px solid var(--stroke);
}

.pg-hero {
  display: grid;
  gap: 4px;
}

.pg-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pg-total {
  font-family: var(--font-round);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pg-yearly {
  color: var(--text-2);
}

.pg-yearly b {
  color: #fff;
  font-family: var(--font-round);
}

.pg-breakdown {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pg-insight {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--stroke);
}

.pg-insight b {
  color: #fff;
}

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

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
}

.step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-round);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}

.step h3 {
  font-size: 20px;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
}

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

.privacy {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.privacy-copy {
  display: grid;
  gap: 18px;
}

.privacy-copy > p {
  color: var(--text-2);
  font-size: 1.1rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check-list strong {
  display: block;
  font-weight: 650;
}

.check-list span:not(.tile-icon) {
  color: var(--text-2);
  font-size: 14.5px;
}

.privacy-visual {
  display: grid;
  place-items: center;
}

.orb {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 180, 255, 0.25);
  animation: orb-pulse 4s ease-in-out infinite;
}

.orb-ring.r1 {
  inset: 0;
}

.orb-ring.r2 {
  inset: 14%;
  border-color: rgba(167, 139, 250, 0.3);
  animation-delay: -1.3s;
}

.orb-ring.r3 {
  inset: 28%;
  border-color: rgba(52, 211, 153, 0.35);
  animation-delay: -2.6s;
}

.orb-ring.r1::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 16px var(--info);
}

.orb-ring.r1 {
  animation: spin 18s linear infinite;
}

.orb-core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32%;
  font-size: clamp(40px, 8vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.5), transparent 60%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  box-shadow: 0 30px 80px -20px rgba(91, 63, 228, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.orb-core .icon {
  stroke-width: 1.8;
}

@keyframes orb-pulse {
  50% {
    transform: scale(1.04);
    opacity: 0.6;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Pricing ---------- */

.price-card {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
}

.price-card::before {
  opacity: 1;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(79, 139, 255, 0.14), transparent 50%),
    radial-gradient(500px circle at 100% 100%, rgba(244, 114, 182, 0.08), transparent 50%);
}

.price-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.price-main img {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.price-main > div {
  flex: 1 1 260px;
}

.price-main h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.price-main p {
  color: var(--text-2);
}

.price-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--stroke);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.price-features .icon {
  color: var(--success);
  stroke-width: 2.6;
}

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

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--radius-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 650;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform 0.35s var(--ease-spring), background-color 0.2s;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: #fff;
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
  background: rgba(79, 139, 255, 0.3);
}

.faq details p {
  padding: 0 22px 22px;
  color: var(--text-2);
  animation: pop-in 0.35s var(--ease-out);
}

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

.final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(48px, 8vw, 88px) 24px;
  text-align: center;
  border-radius: 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 232, 249, 0.45), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.3), transparent 55%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 100px -30px rgba(91, 63, 228, 0.7);
}

.final-cta-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from var(--angle), transparent, rgba(255, 255, 255, 0.12), transparent 30%);
  animation: spin-angle 10s linear infinite;
  pointer-events: none;
}

.final-cta > * {
  position: relative;
}

.final-cta img {
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: bob 5s ease-in-out infinite;
}

.final-cta h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-top: 8px;
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 96px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--stroke);
}

.footer-brand p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14.5px;
  color: var(--text-2);
}

.footer-links a:hover {
  color: #fff;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--text-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .float-notif {
    top: 6%;
    left: -90px;
  }

  .float-saved,
  .float-trial {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    gap: 56px;
    text-align: center;
  }

  .hero-copy {
    justify-items: center;
  }

  .lede {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile,
  .tile-remind {
    grid-column: span 1;
    grid-row: auto;
  }

  .tile-import,
  .tile-lang {
    grid-column: span 2;
  }

  .playground {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-result {
    border-left: 0;
    border-top: 1px solid var(--stroke);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .privacy {
    grid-template-columns: 1fr;
  }

  .privacy-visual {
    order: -1;
  }

  .orb {
    width: min(260px, 70vw);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    top: 10px;
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .float-saved,
  .float-trial {
    display: none;
  }

  .float-notif {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    animation: none;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .tile-import,
  .tile-lang,
  .tile-remind {
    grid-column: auto;
  }

  .tile {
    padding: 22px;
  }

  .tile-import {
    flex-direction: column;
    align-items: stretch;
  }

  .import-demo {
    flex-basis: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .import-arrow {
    align-self: center;
    transform: rotate(90deg);
    animation: none;
  }

  .pg-picker,
  .pg-result {
    padding: 20px;
  }

  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pg-item {
    padding: 8px;
    gap: 8px;
  }

  .pg-item .logo {
    width: 28px;
    height: 28px;
  }

  .pg-item::after {
    top: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
  }

  .pg-breakdown {
    flex-direction: column;
    align-items: stretch;
  }

  .pg-breakdown .donut {
    align-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .price-main .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .phone {
    zoom: 0.88;
  }
}

@media (hover: none) {
  .tile:hover {
    transform: none;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}
