/* ============================================================
   LoyalCard — Marketing Website
   Design system + components
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  --gold-400: #fbbf24;
  --gold-500: #f59e0b;

  --ink-900: #0f1020;
  --ink-800: #1a1c30;
  --ink-700: #2a2c45;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --success: #10b981;

  --bg: #ffffff;
  --bg-alt: #f7f7fb;
  --text: #1a1c30;
  --text-muted: #5c6378;

  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-primary-hover: linear-gradient(135deg, #6d28d9 0%, #4338ca 100%);
  --grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
               radial-gradient(900px 500px at 0% 0%, rgba(79, 70, 229, 0.14), transparent 55%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 16, 32, 0.06);
  --shadow: 0 10px 30px rgba(15, 16, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 16, 32, 0.14);
  --shadow-violet: 0 18px 40px rgba(124, 58, 237, 0.35);

  --container: 1180px;
  --header-h: 76px;

  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-700);
  background: var(--violet-100);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ink-900); }

.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: 18px; }

.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--grad-primary-hover); }
.btn-ghost {
  background: var(--white);
  color: var(--ink-900);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--violet-300); color: var(--violet-700); }
.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn-gold {
  background: var(--grad-gold);
  color: #3a2606;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.4);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-800);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--violet-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 15px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--slate-200); background: #fff; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink-900); border-radius: 2px; transition: 0.25s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.hero-badge b { color: var(--ink-900); }
.hero-badge .pill {
  background: var(--grad-gold);
  color: #3a2606;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 20px;
  color: var(--text-muted);
  max-width: 540px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
}
.hero-trust .dot { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--success); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 65%);
  filter: blur(20px);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  background: #0f1020;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.phone-screen {
  background: linear-gradient(180deg, #faf8ff 0%, #f1edfb 100%);
  border-radius: 32px;
  overflow: hidden;
  height: 600px;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #0f1020;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.app-top {
  background: var(--grad-primary);
  padding: 40px 22px 26px;
  color: #fff;
}
.app-top small { opacity: 0.8; font-size: 13px; font-weight: 600; }
.app-top h3 { color: #fff; font-size: 22px; margin-top: 4px; }
.app-top p { font-size: 13.5px; opacity: 0.85; margin-top: 6px; }
.app-body { padding: 20px 22px; flex: 1; }
.app-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(124,58,237,0.14);
}
.app-card h4 { font-size: 15px; }
.app-card .sub { font-size: 12.5px; color: var(--text-muted); margin: 4px 0 14px; }
.stamp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stamp {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px dashed var(--violet-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--violet-300);
  font-size: 15px;
}
.stamp.on {
  background: var(--grad-primary);
  border: 2px solid transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(124,58,237,0.35);
}
.app-reward {
  margin-top: 16px;
  display: flex; align-items: center; gap: 12px;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: 14px;
  padding: 12px 14px;
}
.app-reward .ic {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-gold); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.app-reward b { font-size: 13.5px; }
.app-reward span { display: block; font-size: 12px; color: var(--text-muted); }
.app-qr {
  margin-top: 16px;
  text-align: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 14px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
}

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

/* ---------- Logos / social proof strip ---------- */
.proof { padding: 38px 0; border-bottom: 1px solid var(--slate-200); }
.proof p { text-align: center; color: var(--slate-500); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--slate-600);
  background: var(--white); border: 1px solid var(--slate-200);
  padding: 10px 18px; border-radius: 999px; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.proof-chip svg { width: 18px; height: 18px; color: var(--violet-600); }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--violet-200); }
.feature-ic {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--violet-100);
  color: var(--violet-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; }
.feature-card p { margin-top: 10px; color: var(--text-muted); font-size: 15.5px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-primary);
  color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-violet);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; }
.step p { margin-top: 9px; color: var(--text-muted); font-size: 15px; }
.step:not(:last-child)::after {
  content: "→";
  position: absolute; top: 44px; right: -16px;
  color: var(--violet-300); font-size: 22px; font-weight: 800;
}

/* ---------- Highlight / admin access ---------- */
.highlight {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.highlight::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(124,58,237,0.4), transparent 60%);
}
.highlight > * { position: relative; z-index: 1; }
.highlight .eyebrow { background: rgba(167,139,250,0.18); color: var(--violet-300); }
.highlight h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.highlight p { color: rgba(255,255,255,0.78); margin-top: 16px; font-size: 17px; }
.highlight .flow {
  display: flex; flex-direction: column; gap: 14px;
}
.flow-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.flow-item .n {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-gold); color: #3a2606;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.flow-item b { color: #fff; font-size: 16px; }
.flow-item span { display: block; color: rgba(255,255,255,0.7); font-size: 14.5px; margin-top: 2px; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 6px;
  border-radius: 999px;
  margin: 0 auto 14px;
}
.billing-toggle button {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-500);
  transition: 0.2s;
}
.billing-toggle button.active {
  background: var(--white);
  color: var(--violet-700);
  box-shadow: var(--shadow-sm);
}
.save-note { text-align: center; color: var(--success); font-weight: 700; font-size: 14px; margin-bottom: 40px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad-primary) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-lg);
}
.price-tag-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: var(--shadow-violet);
}
.price-name { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-700); }
.price-desc { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; min-height: 42px; }
.price-amount { margin: 18px 0 6px; display: flex; align-items: flex-end; gap: 4px; }
.price-amount .cur { font-size: 22px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.price-amount .val { font-size: 52px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1; }
.price-amount .per { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.price-second { color: var(--text-muted); font-size: 14px; min-height: 20px; }
.price-card .btn { margin: 24px 0; }
.price-features { display: flex; flex-direction: column; gap: 13px; margin-top: 4px; }
.price-features li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-800); }
.price-features li svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.price-features li.muted { color: var(--text-muted); font-weight: 600; }
.price-features li.muted svg { color: var(--violet-500); }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--slate-100); }
table.compare thead th { background: var(--slate-50); font-size: 14px; }
table.compare tbody td:first-child, table.compare thead th:first-child { text-align: left; font-weight: 600; color: var(--ink-800); }
table.compare th.hl { color: var(--violet-700); }
table.compare td svg { width: 20px; height: 20px; color: var(--success); margin: 0 auto; }
table.compare td .no { color: var(--slate-300); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex; flex-direction: column;
}
.testi .stars { display: flex; gap: 3px; color: var(--gold-500); margin-bottom: 16px; }
.testi .stars svg { width: 18px; height: 18px; }
.testi p { color: var(--ink-800); font-size: 16px; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testi .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.testi .who b { display: block; font-size: 15px; }
.testi .who span { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat .big { font-size: clamp(36px, 4vw, 52px); font-weight: 800; }
.stat .lbl { color: var(--text-muted); font-weight: 600; font-size: 15px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.open { border-color: var(--violet-300); box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  font-weight: 700; font-size: 17px; text-align: left; color: var(--ink-900);
}
.faq-q .chev {
  flex-shrink: 0; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--violet-100); color: var(--violet-700);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 24px; color: var(--text-muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 15% 120%, rgba(251,191,36,0.3), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); }
.cta-band p { color: rgba(255,255,255,0.86); margin: 16px auto 32px; font-size: 19px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; font-size: 15px; padding: 7px 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--violet-300); }
.footer-bottom {
  margin-top: 50px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom .social { display: flex; gap: 12px; }
.footer-bottom .social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-bottom .social a:hover { background: var(--violet-600); }
.footer-bottom .social svg { width: 18px; height: 18px; color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SIGNUP PAGE
   ============================================================ */
.signup-page { background: var(--bg-alt); min-height: 100vh; }
.signup-hero {
  padding: calc(var(--header-h) + 50px) 0 50px;
  background: var(--grad-hero);
  text-align: center;
}
.signup-hero .eyebrow { margin-inline: auto; }
.signup-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.signup-hero p { color: var(--text-muted); font-size: 18px; margin-top: 14px; }

.signup-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  padding-bottom: 90px;
  align-items: start;
}

.signup-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.signup-card h2 { font-size: 24px; }
.signup-card > p.hint { color: var(--text-muted); font-size: 15px; margin-top: 6px; margin-bottom: 26px; }

.step-section { margin-bottom: 34px; }
.step-label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-label .b {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.step-label h3 { font-size: 18px; }

/* plan selector */
.plan-options { display: grid; gap: 12px; }
.plan-opt {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.plan-opt:hover { border-color: var(--violet-300); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--slate-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: 0.18s;
}
.plan-opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: 0.18s; }
.plan-opt input:checked ~ .radio { border-color: var(--violet-600); background: var(--violet-600); }
.plan-opt input:checked ~ .radio::after { transform: scale(1); }
.plan-opt input:checked ~ * { }
.plan-opt:has(input:checked) {
  border-color: var(--violet-600);
  background: var(--violet-50);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.plan-opt .info { flex: 1; }
.plan-opt .info b { font-size: 16px; }
.plan-opt .info span { display: block; font-size: 13.5px; color: var(--text-muted); }
.plan-opt .cost { text-align: right; }
.plan-opt .cost .amt { font-weight: 800; font-size: 20px; }
.plan-opt .cost .cyc { font-size: 13px; color: var(--text-muted); }
.plan-opt .tag {
  position: absolute; top: -10px; right: 16px;
  background: var(--grad-gold); color: #3a2606;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}

/* form fields */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-800); }
.field label .req { color: var(--violet-600); }
.field input, .field select {
  padding: 13px 15px;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  background: var(--slate-50);
  transition: 0.18s;
  color: var(--ink-900);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--violet-500);
  background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.field .help { font-size: 13px; color: var(--text-muted); }
.field.error input { border-color: var(--error); background: #fef2f2; }
.field .err-msg { font-size: 12.5px; color: var(--error); font-weight: 600; display: none; }
.field.error .err-msg { display: block; }

.admin-callout {
  display: flex; gap: 14px;
  background: var(--violet-50);
  border: 1px solid var(--violet-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 4px;
}
.admin-callout svg { width: 22px; height: 22px; color: var(--violet-700); flex-shrink: 0; margin-top: 2px; }
.admin-callout p { font-size: 14px; color: var(--ink-800); margin: 0; }
.admin-callout b { color: var(--violet-700); }

.billing-switch {
  display: inline-flex; gap: 4px; background: var(--slate-100);
  border: 1px solid var(--slate-200); border-radius: 999px; padding: 5px; margin-bottom: 18px;
}
.billing-switch button { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--slate-500); }
.billing-switch button.active { background: #fff; color: var(--violet-700); box-shadow: var(--shadow-sm); }

.terms-row { display: flex; align-items: flex-start; gap: 11px; margin: 8px 0 24px; }
.terms-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--violet-600); }
.terms-row label { font-size: 14px; color: var(--text-muted); }
.terms-row a { color: var(--violet-700); font-weight: 600; }

/* order summary */
.summary {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.summary h3 { font-size: 19px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--slate-100); }
.summary-row span { color: var(--text-muted); }
.summary-row b { color: var(--ink-900); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; margin-top: 6px; }
.summary-total span { font-weight: 700; font-size: 16px; }
.summary-total .total-val { font-size: 30px; font-weight: 800; color: var(--violet-700); }
.summary-total .total-val small { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.summary ul { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.summary ul li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-800); }
.summary ul li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.summary .guarantee {
  margin-top: 22px; display: flex; gap: 10px; align-items: center;
  background: var(--slate-50); border-radius: 12px; padding: 13px 15px;
  font-size: 13.5px; color: var(--text-muted);
}
.summary .guarantee svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }

/* success state */
.success-screen { display: none; text-align: center; padding: 20px 10px; }
.success-screen.show { display: block; animation: pop 0.4s ease; }
.success-icon {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { width: 44px; height: 44px; }
.success-screen h2 { font-size: 28px; }
.success-screen > p { color: var(--text-muted); font-size: 17px; margin: 12px auto 28px; max-width: 460px; }
.signup-error {
  margin-top: 16px;
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
}
.success-detail {
  text-align: left; background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 22px 24px; max-width: 480px; margin: 0 auto 28px;
}
.success-detail .line { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; }
.success-detail .line span { color: var(--text-muted); }
.success-detail .line b { color: var(--ink-900); }
.success-detail .admin-line {
  margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--slate-300);
  font-size: 14.5px; color: var(--ink-800);
}
.success-detail .admin-line b { color: var(--violet-700); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.back-link:hover { color: var(--violet-700); }
.back-link svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .feature-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .highlight { grid-template-columns: 1fr; padding: 44px; gap: 34px; }
  .signup-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .nav { gap: 12px; }

  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    display: none; flex-direction: column; padding: 18px 24px 24px; gap: 4px; z-index: 99;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 6px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--slate-100); }
  .mobile-menu .btn { margin-top: 14px; }

  .feature-grid, .testi-grid, .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .highlight, .cta-band { padding: 36px 26px; }
  .field-row { grid-template-columns: 1fr; }
  .signup-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 721px) { .mobile-menu { display: none !important; } }
