/* ============================================================
   ReInvoicer — landing page
   Palette mirrors src/app/globals.css
   ============================================================ */

:root {
  --background: #0a0f1e;
  --background-2: #0d1426;
  --foreground: #e2e8f0;
  --card: #111827;
  --card-2: #141d35;
  --card-border: rgba(99, 102, 241, 0.15);
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-2: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --muted: #64748b;
  --muted-2: #94a3b8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --line: rgba(255, 255, 255, 0.06);
  --line-faint: rgba(255, 255, 255, 0.04);
  --line-strong: rgba(255, 255, 255, 0.1);
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 30px 80px -20px rgba(99, 102, 241, 0.45);

  --container: 1200px;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

::selection { background: var(--accent); color: white; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

/* ============================================================
   Background atmosphere
   ============================================================ */

.bg-noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  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='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.bg-glow--a {
  top: -200px; left: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 60%);
}
.bg-glow--b {
  top: 30%; right: -260px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, #4338ca 0%, transparent 60%);
  opacity: 0.4;
}

.bg-grid {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
}

main, header, footer { position: relative; z-index: 1; }

/* ============================================================
   Brand mark
   ============================================================ */

.brand { display: inline-flex; align-items: center; transition: opacity 0.2s ease; }
.brand:hover { opacity: 0.85; }

.brand__text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
}
.brand__text--sm { font-size: 1.1rem; }
.brand__under { color: var(--accent-2); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1;
}

.btn--solid {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn--solid:hover {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 16px 32px -10px var(--accent-glow);
}
.btn--solid:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface-1);
  color: var(--foreground);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(99, 102, 241, 0.4);
  color: white;
}

.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__links {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 1rem;
}
.nav__links a {
  font-size: 0.88rem;
  color: var(--muted-2);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.nav__links a:hover {
  color: var(--foreground);
  background: var(--surface-1);
}

.nav__cta { display: flex; gap: 0.6rem; }

/* ============================================================
   Layout containers / shared
   ============================================================ */

main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-hover);
  padding: 0.3rem 0.7rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.sub {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  color: var(--muted-2);
  margin: 0;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem !important;
  padding-bottom: 6rem !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-hover);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--accent-hover);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.display {
  font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 1.4rem;
}
.display__grad {
  background: linear-gradient(120deg, #818cf8 0%, #c4b5fd 35%, #6366f1 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem);
  color: var(--muted-2);
  margin: 0 0 2rem;
  max-width: 38rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted-2);
}
.check {
  color: var(--success);
  margin-right: 0.35rem;
  font-weight: 700;
}

/* Hero mock */
.hero__mock {
  position: relative;
  perspective: 1500px;
}
.mock {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-glow), var(--shadow-soft);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}
.mock__shadow {
  position: absolute;
  inset: auto 10% -40px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.pill--warn {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mock__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-faint);
}
.mock__row:last-of-type { border-bottom: none; }
.mock__label { color: var(--muted); font-size: 0.82rem; }
.mock__value { color: var(--foreground); font-weight: 500; }
.mono { font-family: var(--font-mono); }
.mock__amount {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: -0.02em;
}
.mock__pence { font-size: 0.85rem; opacity: 0.6; }

.mock__timeline {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}
.mock__timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--line) 80%, transparent 100%);
  opacity: 0.4;
}
.tl {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.84rem;
  position: relative;
  padding-left: 0.2rem;
}
.tl__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--card);
  border: 2px solid var(--muted);
  z-index: 1;
}
.tl strong {
  display: block;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.88rem;
}
.tl small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 1px;
}
.tl--sent .tl__dot { background: var(--success); border-color: var(--success); }
.tl--soft .tl__dot { background: var(--accent-hover); border-color: var(--accent-hover); }
.tl--firm .tl__dot { background: var(--warning); border-color: var(--warning); }
.tl--active .tl__dot {
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
.tl--ghost { opacity: 0.55; }
.tl--ghost .tl__dot { background: transparent; border-style: dashed; }

.mock__foot {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.mock__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: 600;
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.mock__foot-meta { color: var(--muted); }

/* ============================================================
   Setup steps
   ============================================================ */

.setup {
  border-top: 1px solid var(--line);
}
.setup__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
}
.setup__step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.6rem 1.5rem;
  background: linear-gradient(180deg, var(--card) 0%, var(--background-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.setup__step:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 40px -22px rgba(99, 102, 241, 0.4);
}
.setup__num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}
.setup__body h4 {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
}
.setup__body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted-2);
  line-height: 1.6;
}
.setup__body strong {
  color: var(--foreground);
  font-weight: 600;
}

.tip {
  max-width: 980px;
  margin: 2rem auto 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%),
    var(--card);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  position: relative;
}
.tip__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-hover);
  margin-top: 2px;
}
.tip__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-hover);
  margin-bottom: 0.35rem;
}
.tip__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted-2);
}
.tip__body strong { color: var(--foreground); font-weight: 600; }

/* ============================================================
   Features
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--background-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.3);
}
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--accent-hover);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--a { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25); }
.card__icon--b { background: rgba(34, 197, 94, 0.12);  border: 1px solid rgba(34, 197, 94, 0.25);  color: var(--success); }
.card__icon--c { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3);  color: var(--warning); }

.card--hero {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--card) 60%);
  border-color: rgba(99, 102, 241, 0.3);
}
.card__badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.55rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
}

/* ============================================================
   How it works — reminder timeline
   ============================================================ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--success) 0%,
    var(--accent) 33%,
    var(--warning) 66%,
    var(--danger) 100%);
  opacity: 0.35;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-3px); }
.step__when {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
}
.step h4 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.step p {
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
  color: var(--muted-2);
  line-height: 1.55;
}
.step__tone {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.tone--mint  { color: var(--success); background: rgba(34, 197, 94, 0.08); }
.tone--amber { color: var(--warning); background: rgba(245, 158, 11, 0.08); }
.tone--red   { color: var(--danger);  background: rgba(239, 68, 68, 0.08); }

.step--1 { border-color: rgba(34, 197, 94, 0.25); }
.step--2 { border-color: rgba(99, 102, 241, 0.25); }
.step--3 { border-color: rgba(245, 158, 11, 0.28); }
.step--4 { border-color: rgba(239, 68, 68, 0.3); }

/* ============================================================
   Pricing
   ============================================================ */

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.price-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--background-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card--alt {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--card) 70%);
  border-color: rgba(99, 102, 241, 0.25);
}
.price-card__head h3 {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.8rem);
  margin: 0.6rem 0 0;
  letter-spacing: -0.02em;
}
.price-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.price-card__tag--alt {
  color: var(--accent-hover);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}
.price-card p {
  color: var(--muted-2);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  flex: 1;
}
.price-card .btn { align-self: flex-start; }

/* ============================================================
   FAQ
   ============================================================ */

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
details {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details:hover { border-color: rgba(99, 102, 241, 0.3); }
details[open] {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, var(--card) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--foreground);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent-hover);
  transition: transform 0.25s ease;
  line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 0.8rem 0 0;
  color: var(--muted-2);
  font-size: 0.93rem;
  line-height: 1.65;
}
details a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Finale
   ============================================================ */

.finale {
  text-align: center;
}
.finale__inner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(79, 70, 229, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 4vw, 4.5rem) 1.5rem;
  position: relative;
  overflow: hidden;
}
.finale__inner::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.finale h2 { position: relative; }
.finale p {
  color: var(--muted-2);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  position: relative;
}
.finale__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
}

/* ============================================================
   Footer
   ============================================================ */

.foot {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}
.foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.foot__brand p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.foot__cols h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.foot__cols a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}
.foot__cols a:hover { color: var(--accent-hover); }
.foot__bottom {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   Reveal animation
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mock { animation: none; transform: none; }
  .live-dot, .eyebrow__dot, .tl--active .tl__dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .mock { transform: rotateY(0) rotateX(0); }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card--hero { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  main > section { padding: 4rem 1.2rem; }
  .nav__inner { padding: 0.85rem 1.2rem; }
  .hero { padding-top: 3rem !important; padding-bottom: 4rem !important; gap: 3rem; }
  .display { font-size: clamp(2.2rem, 7vw, 3rem); }
  .setup__list { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; gap: 2rem; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .mock { padding: 1.3rem; }
  .mock__amount { font-size: 1.2rem; }
  .section__head { margin-bottom: 2.2rem; }
}

@media (max-width: 640px) {
  /* Layout — squeeze padding so content actually fits */
  main > section { padding: 3rem 1rem; }
  .nav__inner { padding: 0.7rem 1rem; gap: 0.8rem; }

  /* Nav — drop links on phone, keep brand + single CTA */
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__cta .btn { padding: 0.5rem 0.85rem; font-size: 0.82rem; }
  .brand__text { font-size: 1.15rem; }

  /* Hero */
  .hero { padding-top: 2rem !important; padding-bottom: 3rem !important; gap: 2.4rem; }
  .display { font-size: clamp(1.9rem, 9vw, 2.5rem); letter-spacing: -0.025em; }
  .lede { font-size: 0.98rem; margin-bottom: 1.6rem; }
  .eyebrow { font-size: 0.7rem; padding: 0.3rem 0.65rem; margin-bottom: 1.1rem; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .hero__bullets { gap: 0.45rem; flex-direction: column; font-size: 0.85rem; }
  .hero__bullets li { width: 100%; }

  /* Mock invoice card — keep readable, no overflow */
  .mock { padding: 1.1rem; border-radius: 16px; }
  .mock__head { padding-bottom: 0.8rem; margin-bottom: 0.9rem; }
  .pill { font-size: 0.65rem; padding: 0.25rem 0.55rem; }
  .mock__row { font-size: 0.85rem; padding: 0.45rem 0; }
  .mock__label { font-size: 0.75rem; }
  .mock__amount { font-size: 1.1rem; }
  .mock__timeline { margin-top: 0.9rem; padding-top: 0.9rem; gap: 0.7rem; }
  .tl { font-size: 0.78rem; gap: 0.6rem; }
  .tl strong { font-size: 0.82rem; }
  .tl small { font-size: 0.7rem; }
  .mock__foot { font-size: 0.7rem; padding-top: 0.8rem; margin-top: 0.9rem; }

  /* Sections — shared head */
  .kicker { font-size: 0.7rem; padding: 0.25rem 0.6rem; margin-bottom: 0.8rem; }
  .h2 { font-size: clamp(1.55rem, 6.5vw, 1.95rem); }
  .sub { font-size: 0.95rem; }
  .section__head { margin-bottom: 1.8rem; }

  /* Features */
  .cards { grid-template-columns: 1fr; gap: 1rem; }
  .cards .card--hero { grid-column: auto; }
  .card { padding: 1.4rem 1.2rem; border-radius: 16px; }
  .card__icon { width: 40px; height: 40px; margin-bottom: 0.9rem; }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.9rem; }
  .card__badge { top: 0.9rem; right: 0.9rem; font-size: 0.6rem; }

  /* Reminder timeline cards */
  .steps { grid-template-columns: 1fr; gap: 0.9rem; }
  .step { padding: 1.2rem 1.1rem; border-radius: 16px; }
  .step h4 { font-size: 1rem; }
  .step p { font-size: 0.86rem; margin-bottom: 1rem; }

  /* Setup steps — keep horizontal but tighter */
  .setup__step { padding: 1.2rem 1.1rem; gap: 0.9rem; border-radius: 16px; }
  .setup__num { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 10px; }
  .setup__body h4 { font-size: 1rem; }
  .setup__body p { font-size: 0.88rem; }

  /* Tip callout */
  .tip { padding: 1rem 1.1rem; gap: 0.8rem; margin-top: 1.5rem; }
  .tip__icon { width: 32px; height: 32px; }
  .tip__body p { font-size: 0.86rem; }

  /* Pricing */
  .price-card { padding: 1.6rem 1.3rem; border-radius: 16px; }
  .price-card__head h3 { font-size: 1.3rem; }
  .price-card p { font-size: 0.9rem; }
  .price-card .btn { width: 100%; align-self: stretch; }

  /* FAQ */
  details { padding: 0.95rem 1.05rem; }
  summary { font-size: 0.94rem; gap: 0.7rem; }
  summary::after { font-size: 1.15rem; }
  details p { font-size: 0.88rem; margin-top: 0.7rem; }

  /* Finale */
  .finale__inner { padding: 2.2rem 1.1rem; border-radius: 20px; }
  .finale p { font-size: 1rem; margin-bottom: 1.4rem; }
  .finale__cta { flex-direction: column; }
  .finale__cta .btn { width: 100%; }

  /* Footer */
  .foot { padding: 2.2rem 1rem 1.2rem; margin-top: 2rem; }
  .foot__inner { gap: 1.6rem; padding-bottom: 1.5rem; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .foot__bottom { flex-direction: column; gap: 0.4rem; text-align: center; font-size: 0.78rem; }

  /* Atmosphere — calmer on tiny screens */
  .bg-glow--a, .bg-glow--b { filter: blur(80px); opacity: 0.35; }
  .bg-grid { background-size: 48px 48px; }
}

@media (max-width: 400px) {
  main > section { padding: 2.5rem 0.85rem; }
  .nav__inner { padding: 0.6rem 0.85rem; }
  .brand__text { font-size: 1.05rem; }
  .nav__cta .btn { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .display { font-size: clamp(1.7rem, 8.5vw, 2.1rem); }
  .h2 { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .foot__cols { grid-template-columns: 1fr; }

  /* Setup step — stack number on top so text breathes */
  .setup__step { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}
