/* Foxspend site. Tokens copied from the app (Theme.swift, BrandMark.swift): keep identical. */
:root {
  --bg: #F6F5F1; --card: #FFFFFF; --card-alt: #EFEEE9;
  --ink: #141418; --on-ink: #FFFFFF; --secondary: #85858F;
  --accent: #FF6B57; --accent-soft: #FFE6E0; --cream: #FFF4EC;
  --brand-light: #FF9466; --brand-deep: #E8473F;
  --brand-gradient: linear-gradient(135deg, #FF9466, #FF6B57 50%, #E8473F);
  --income: #1DB57A; --expense: #F0533F; --warning: #F5A524; --teal: #13A3A8; --premium: #F5A524;
  --radius: 26px; --radius-sm: 18px;
  --shadow-card: 0 6px 14px rgba(0, 0, 0, .045);
  --glass-bg: rgba(255, 255, 255, .55); --glass-border: rgba(255, 255, 255, .65);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 24px rgba(20, 20, 24, .08);
  --glow: .85;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B0D; --card: #18181C; --card-alt: #242429;
    --ink: #F4F4F6; --on-ink: #141418; --secondary: #9C9CA6; --accent-soft: #3A201B; --cream: #1E1714;
    --shadow-card: 0 6px 14px rgba(0, 0, 0, .3);
    --glass-bg: rgba(28, 28, 32, .55); --glass-border: rgba(255, 255, 255, .12);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .4);
    --glow: .22;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* The app's AppBackground: a soft mesh glow at the top that fades into the page. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none;
  opacity: var(--glow);
  background:
    radial-gradient(60% 70% at 8% 0%, #FFC9B8, transparent 70%),
    radial-gradient(50% 60% at 50% 0%, #FFE3C2, transparent 70%),
    radial-gradient(55% 70% at 95% 5%, #D9DEFF, transparent 70%),
    radial-gradient(60% 60% at 30% 60%, #FFE9DC, transparent 70%),
    radial-gradient(50% 60% at 80% 60%, #E6E3FF, transparent 70%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Glass: controls only (like the app). Content cards stay solid. */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 26px;
  border-radius: 999px; font: 700 17px/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-glass { color: var(--ink); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

/* Navigation: a glass pill floating near the top. */
.nav { position: sticky; top: 12px; z-index: 10; margin-top: 12px; }
.nav-bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 14px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--secondary); }
.nav-links a:hover { color: var(--ink); }
/* The links sit directly on the nav pill on wide screens; the glass box is only the phone menu. */
@media (min-width: 761px) {
  .nav-links.glass { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 0; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 8px; border-radius: var(--radius); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 17px; color: var(--ink); }
  .nav-links.glass { background: var(--card); }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
}

/* Hero: centered text, App Store badge, three phones. */
.hero { text-align: center; padding: 64px 0 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px;
}
.chip .i { width: 16px; height: 16px; }
/* Solid coral (no gradient clip): clipped gradient text cut letters like the "g". */
h1 { font-size: clamp(42px, 7.4vw, 84px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 20px auto 18px; max-width: 14ch; padding-bottom: .06em; }
h1 .accent { color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--secondary); max-width: 40ch; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 32px 0 18px; }
.trust-line span { white-space: nowrap; }
.trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 14px; font-weight: 600; color: var(--secondary); }
.trust-line .i { width: 16px; height: 16px; color: var(--income); vertical-align: -3px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: 56px; height: 600px; }
.hero-phones .phone.main { z-index: 2; width: 290px; }
.hero-phones .phone.side { width: 250px; opacity: .96; }
.hero-phones .phone.left { transform: translateX(60px) rotate(-8deg) translateY(-20px); }
.hero-phones .phone.right { transform: translateX(-60px) rotate(8deg) translateY(-20px); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap; animation: float 2.4s ease-in-out infinite alternate;
}
.float-chip b { font-weight: 800; } .float-chip .income { color: var(--income); }
.fc1 { top: 14%; left: 6%; } .fc2 { top: 34%; right: 6%; animation-delay: .6s; }
.fc3 { bottom: 26%; left: 10%; animation-delay: 1.2s; } .fc4 { bottom: 12%; right: 9%; animation-delay: 1.8s; }
@keyframes float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@media (max-width: 760px) {
  .hero { padding-top: 44px; }
  .hero-phones { height: 520px; margin-top: 40px; }
  .hero-phones .phone.side { display: none; }
  .hero-phones .phone.main { width: 250px; }
  .fc1 { left: 0; } .fc2 { right: 0; } .fc3 { left: 0; } .fc4 { right: 0; }
}

/* App Store badge, built like Apple's: black, Apple logo, two lines. */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; border: 1px solid #A6A6A6; transition: transform .15s ease;
}
.store-badge:active { transform: scale(.97); }
.store-badge .apple { width: 26px; height: 26px; fill: #fff; }
.store-badge span { display: grid; text-align: left; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; font-family: -apple-system, system-ui, sans-serif; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.store-badge.big { height: 64px; padding: 0 26px 0 22px; }
.store-badge.big span { font-size: 25px; } .store-badge.big .apple { width: 30px; height: 30px; }

/* iPhone frame with a screenshot (placeholder until the owner's screenshots arrive). */
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: #0E0E10; box-shadow: 0 30px 60px rgba(20, 20, 24, .22), inset 0 0 0 2px #2A2A2E;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 24px; border-radius: 999px; background: #0E0E10; z-index: 1; }
.screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
  height: 100%; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px;
  background: radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 70%), var(--card);
  color: var(--secondary); font-weight: 700; font-size: 15px;
}
.shot-placeholder img { width: 56px; height: 56px; }

/* Sections */
section { padding: 72px 0; }
/* Room for the floating nav when a link scrolls here. */
section[id] { scroll-margin-top: 90px; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; }
.sub { color: var(--secondary); font-size: 18px; max-width: 46ch; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

/* Number strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 24px 0 0; text-align: center; }
.stats div { display: grid; gap: 2px; padding: 22px 12px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); }
.stats b { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.stats span { color: var(--secondary); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Features: big rows (phone + text), then a grid of equal cards. */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 72px; }
.showcase.flip .showcase-media { order: 2; }
.showcase-media { display: grid; place-items: center; padding: 36px 0; border-radius: 32px; background: var(--cream); }
.showcase-media .phone { width: 260px; }
.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Every row title sits on two balanced lines (owner: same shape for all four). */
.showcase-text h3 { font-size: clamp(30px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 16px 0 12px; max-width: 16ch; text-wrap: balance; }
.showcase-text .sub { font-size: 18px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.ticks .i { width: 20px; height: 20px; color: var(--income); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 19px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.feature p { color: var(--secondary); font-size: 16px; }
.icon-tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .showcase.flip .showcase-media { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .showcase-media .phone { width: 230px; } }

/* How it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.steps li { padding: 28px; }
.steps h3 { font-size: 20px; font-weight: 800; margin: 14px 0 6px; }
.steps p { color: var(--secondary); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 800; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Privacy panel: cream with the fox directly on it. */
.panel { padding: 44px; border-radius: 32px; background: var(--cream); display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
/* The living brand fox (privacy, final call, 404): moves gently and shows its second face every few
   seconds. All animation stops with Reduce Motion (the first face stays). */
.live-fox { position: relative; flex: none; transform-origin: 50% 90%; }
.live-fox img { position: absolute; inset: 0; width: 100%; height: 100%; }
.live-fox .alt { opacity: 0; }
.live-fox.sway { animation: fox-sway 4s ease-in-out infinite; }
.live-fox.sway .alt { animation: fox-wink 4s ease-in-out infinite; }
.live-fox.beat { animation: fox-beat 3.2s ease-in-out infinite; }
.live-fox.beat .alt { animation: fox-hearts 3.2s ease-in-out infinite; }
.live-fox.shake { animation: fox-shake 3s ease-in-out infinite; }
.live-fox.shake .alt { animation: fox-gasp 3s ease-in-out infinite; }
@keyframes fox-sway {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  25% { transform: translateY(-4px) rotate(-3deg) scale(1.02); }
  50% { transform: translateY(0) rotate(0) scale(1); }
  75% { transform: translateY(-3px) rotate(3deg) scale(1.02); }
}
@keyframes fox-wink { 0%, 58%, 72%, 100% { opacity: 0; } 61%, 69% { opacity: 1; } }
/* Heartbeat, then heart eyes that stay a moment. */
@keyframes fox-beat {
  0%, 30%, 100% { transform: scale(1); }
  8% { transform: scale(1.1); } 15% { transform: scale(1); } 22% { transform: scale(1.08); }
  60% { transform: translateY(-4px) scale(1.03); }
}
@keyframes fox-hearts { 0%, 25%, 85%, 100% { opacity: 0; } 32%, 78% { opacity: 1; } }
/* Worried, then a surprised little shake. */
@keyframes fox-shake {
  0%, 40%, 70%, 100% { transform: rotate(0) translateY(0); }
  44% { transform: rotate(-7deg) translateY(-6px); } 48% { transform: rotate(7deg) translateY(-6px); }
  52% { transform: rotate(-5deg) translateY(-3px); } 56% { transform: rotate(4deg); } 60% { transform: rotate(0); }
}
@keyframes fox-gasp { 0%, 40%, 80%, 100% { opacity: 0; } 44%, 74% { opacity: 1; } }
/* The logo in the menu tilts playfully on hover. */
.brand img { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.1); }
.checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 20px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.checks .i { color: var(--income); width: 20px; height: 20px; }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; } .live-fox { margin-inline: auto; } .checks { grid-template-columns: 1fr; text-align: left; } }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; margin-top: 26px; }
.toggle button { border: 0; background: none; font: 700 15px/1 var(--font); color: var(--secondary); padding: 12px 20px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; text-align: left; align-items: start; }
.plan { padding: 28px; position: relative; }
.plan.premium { outline: 2.5px solid var(--accent); }
.plan h3 { font-size: 22px; font-weight: 800; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.price small { font-size: 16px; color: var(--secondary); font-weight: 700; }
.plan .note { color: var(--secondary); font-size: 14px; min-height: 21px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-top: 20px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li .i { width: 19px; height: 19px; color: var(--income); margin-top: 2px; }
.badge { position: absolute; top: 22px; right: 22px; padding: 5px 11px; border-radius: 999px; background: var(--brand-gradient); color: #fff; font-size: 12px; font-weight: 800; }
.fine { color: var(--secondary); font-size: 13px; margin-top: 18px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 30px auto 0; display: grid; gap: 10px; }
.faq details { padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { margin-left: auto; transition: transform .2s ease; color: var(--secondary); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { color: var(--secondary); padding-bottom: 18px; }

/* Final call to action */
.cta { text-align: center; padding: 64px 24px; border-radius: 32px; background: var(--cream); }
.cta .live-fox { margin: 0 auto 10px; }
.cta .sub { margin: 0 auto 26px; }
.cta .store-badge { margin: 0 auto; }
.doc.center .live-fox { margin: 0 auto 10px; }
.doc.center .sub { margin: 0 auto 26px; }
.doc .faq { margin: 14px 0 0; }

/* Footer */
footer { padding: 40px 0 48px; color: var(--secondary); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; font-weight: 600; } .foot a:hover { color: var(--ink); }
.tm { margin-top: 18px; font-size: 12px; }

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 6px; }
.doc .updated { color: var(--secondary); font-weight: 600; margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink); opacity: .86; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.doc .card { padding: 22px 24px; margin-top: 18px; }

/* Gentle motion only; everything is visible without scripts. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
