/* ============================================================
   BudgetMinder — site.css
   Custom design system. No framework.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/Manrope-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0b10;
  --bg-soft: #0e1017;
  --surface: #12141d;
  --surface-2: #171a26;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);

  --text: #f4f5f9;
  --muted: #9ba1b5;
  --faint: #6b7186;

  --coral: #fe495d;
  --coral-soft: rgba(254, 73, 93, 0.14);
  --peach: #ff8a5f;
  --green: #5fd068;
  --green-soft: rgba(95, 208, 104, 0.13);

  --grad: linear-gradient(96deg, var(--coral) 8%, var(--peach) 100%);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'New York', ui-serif, Georgia, 'Times New Roman', serif;

  --shadow-card: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

::selection {
  background: var(--coral);
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.sec-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}

.sec-head.left {
  text-align: left;
  margin-left: 0;
}

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

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}

.sec-head.left .eyebrow::before {
  order: -1;
}

.sec-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.sec-sub {
  color: var(--muted);
  margin-top: 18px;
  font-size: 17px;
}

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(254, 73, 93, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(254, 73, 93, 0.65);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* App Store button */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0a0b10;
  border-radius: 14px;
  padding: 11px 22px 11px 18px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 16px 40px -16px rgba(255, 255, 255, 0.25);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(255, 255, 255, 0.35);
}

.btn-store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.btn-store .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn-store .txt small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.65;
}

.btn-store .txt strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-store.dark {
  background: #16181f;
  color: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-store.dark:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 11, 16, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 11px 24px;
  font-size: 14px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 130;
}

.burger span,
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: 0.3s var(--ease);
}

.burger span {
  top: 50%;
  margin-top: -1px;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger.open span {
  background: transparent;
}

.burger.open span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.burger.open span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 11, 16, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 800;
  padding: 10px 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.mobile-menu .btn {
  margin-top: 22px;
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg .glow {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 780px;
  background:
    radial-gradient(42% 48% at 62% 38%, rgba(255, 138, 95, 0.16) 0%, transparent 100%),
    radial-gradient(46% 52% at 40% 40%, rgba(254, 73, 93, 0.2) 0%, transparent 100%);
  filter: blur(20px);
}

.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 32%, #000 0%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 32%, #000 0%, transparent 100%);
}

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px 8px 9px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge .pill {
  background: var(--coral-soft);
  color: var(--coral);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.display {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display .rotator-wrap {
  display: block;
  min-height: 1.08em;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 480px;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.link-arrow {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-arrow svg {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  object-fit: cover;
}

.avatars img + img {
  margin-left: -12px;
}

.proof-text {
  font-size: 14px;
  color: var(--muted);
}

.proof-text strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.stars {
  color: #ffb648;
  letter-spacing: 2px;
  font-size: 13px;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  width: min(410px, 86vw);
  border-radius: 56px;
  padding: 13px;
  background: linear-gradient(160deg, #262a38, #101218 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px -30px rgba(254, 73, 93, 0.22);
}

.device::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 28px;
  background: #0a0b10;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.device .scr {
  border-radius: 44px;
  overflow: hidden;
  background: #0a0b10;
  aspect-ratio: 43 / 78;
}

.device .scr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.float-card {
  position: absolute;
  z-index: 5;
  background: rgba(20, 23, 33, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 13px 17px;
  box-shadow: var(--shadow-card);
  animation: floaty 5.5s ease-in-out infinite;
}

.float-card .row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.float-card .dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: none;
}

.float-card .lbl {
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
  line-height: 1.3;
}

.float-card .amt {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.fc-income {
  top: 14%;
  right: -8%;
  animation-delay: 0.8s;
}

.fc-income .dot {
  background: var(--green-soft);
}

.fc-income .amt {
  color: var(--green);
}

.fc-expense {
  bottom: 24%;
  left: -14%;
}

.fc-expense .dot {
  background: var(--coral-soft);
}

.fc-expense .amt {
  color: var(--coral);
}

.fc-budget {
  bottom: -4%;
  right: -4%;
  animation-delay: 1.6s;
  min-width: 172px;
}

.fc-budget .lbl {
  margin-bottom: 8px;
}

.fc-budget .bar {
  height: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.fc-budget .bar i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 10px;
  background: var(--grad);
}

.fc-budget .pct {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 7px;
}

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

/* ---------- Stats band ---------- */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

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

.stat {
  padding: 44px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat .num {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .num em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat .cap {
  color: var(--faint);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 40% at 50% 0%, rgba(254, 73, 93, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
}

.card .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral);
  margin-bottom: 22px;
}

.card .chip.green {
  background: var(--green-soft);
  color: var(--green);
}

.card .chip svg {
  width: 22px;
  height: 22px;
}

.card-lg {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.card-lg .shot {
  margin: 34px -8px -140px;
  display: flex;
  justify-content: center;
}

.card-lg .shot img {
  width: min(400px, 94%);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.6s var(--ease);
}

.card-lg:hover .shot img {
  transform: translateY(-12px);
}

.card-sm {
  grid-column: span 3;
  padding: 30px 28px;
}

/* mini bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 74px;
  margin-top: 26px;
}

.mini-chart i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: rgba(255, 255, 255, 0.1);
  height: var(--h, 40%);
  transition: background 0.3s;
}

.mini-chart i.hot {
  background: var(--grad);
}

.card:hover .mini-chart i {
  background: rgba(255, 255, 255, 0.16);
}

.card:hover .mini-chart i.hot {
  background: var(--grad);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-size: 19px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee span::after {
  content: '✦';
  color: var(--coral);
  font-size: 13px;
}

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

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
}

.step .n {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 26px;
}

.step h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

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

.step .tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 13px;
  border-radius: 100px;
}

/* ---------- Reviews ---------- */
.reviews-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.rating-card {
  position: sticky;
  top: 120px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px;
}

.rating-card .big {
  font-size: 74px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating-card .stars {
  font-size: 19px;
  margin: 14px 0 8px;
}

.rating-card p {
  color: var(--muted);
  font-size: 15px;
}

.rating-card .rc-meta {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.rating-card .rc-meta b {
  color: var(--text);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}

.review:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.review .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.review .who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review .who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.review .who h4 {
  font-size: 16.5px;
  font-weight: 800;
}

.review .who span {
  font-size: 13.5px;
  color: var(--faint);
}

.review > p {
  color: var(--muted);
  font-size: 15.5px;
}

.review > p::before {
  content: '“';
  font-family: var(--serif);
  color: var(--coral);
  font-size: 1.4em;
  line-height: 0;
  margin-right: 2px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}

.plan:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
}

.plan .name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan .price {
  margin: 22px 0 4px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan .price small {
  font-size: 17px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0;
}

.plan .billed {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 26px;
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.plan ul li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14.5px;
}

.plan ul li svg {
  flex: none;
  margin-top: 4px;
  color: var(--green);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan.featured {
  background:
    linear-gradient(var(--surface-2), var(--surface)) padding-box,
    linear-gradient(150deg, var(--coral), rgba(255, 138, 95, 0.4) 45%, rgba(255, 255, 255, 0.1)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(254, 73, 93, 0.4);
}

.plan .flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-note {
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  margin-top: 34px;
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding: 90px 48px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(254, 73, 93, 0.28), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-soft));
  border: 1px solid var(--line-strong);
}

.cta-panel .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  position: relative;
}

.cta-panel p {
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
  margin: 20px auto 40px;
  position: relative;
}

.cta-panel .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
}

.cta-panel .fine {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--faint);
  position: relative;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 72px 0 0;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.ft-brand p {
  color: var(--faint);
  font-size: 14.5px;
  max-width: 280px;
  margin: 18px 0 24px;
}

.ft-col h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-col a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.25s;
}

.ft-col a:hover {
  color: var(--text);
}

.ft-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.ft-bottom .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}

.ft-bottom a {
  color: var(--muted);
  font-weight: 700;
}

.ft-bottom a:hover {
  color: var(--text);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Article (legal pages) ---------- */
.article-hero {
  padding: 170px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.article-hero .glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(254, 73, 93, 0.14), transparent);
  filter: blur(10px);
  pointer-events: none;
}

.article-hero .meta {
  color: var(--faint);
  font-size: 14px;
  margin-top: 18px;
}

.article-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 760px;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 110px;
}

.article h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 46px 0 14px;
}

.article h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 12px;
}

.article p {
  color: var(--muted);
  margin-bottom: 14px;
}

.article a {
  color: var(--coral);
  font-weight: 600;
}

.article ul {
  margin: 14px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article ul li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.article ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

/* Contact cards (support page) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px;
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-card .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--coral-soft);
  color: var(--coral);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.contact-card a,
.contact-card .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.contact-card a:hover {
  color: var(--coral);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 90px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

  .fc-expense {
    left: 0;
  }

  .fc-income {
    right: 0;
  }

  .fc-budget {
    right: 2%;
  }

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

  .card-lg {
    grid-column: span 2;
    min-height: auto;
  }

  .card-lg .shot {
    margin-bottom: -120px;
  }

  .card-sm {
    grid-column: span 1;
    padding: 34px;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .rating-card {
    position: static;
  }

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

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

  .burger {
    display: block;
  }

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

  .plan.featured {
    order: -1;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .card-lg,
  .card-sm {
    grid-column: span 1;
  }

  .card-lg .shot {
    margin-bottom: -100px;
  }

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

  .hero {
    padding-top: 150px;
  }

  .float-card {
    transform: scale(0.88);
  }

  .fc-expense {
    left: -8px;
  }

  .fc-income {
    right: -8px;
  }

  .cta-panel {
    padding: 64px 24px;
  }

  .ft-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

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