/* Knock — Aurora marketing stylesheet.
   Used on every unauthenticated marketing/auth page via knock_marketing_header().
   Authenticated app pages keep /css/style.css until Pass 2 ports those too. */

:root {
  --bg: #050714;
  --surface: #0d1230;
  --elevated: #161a3a;
  --text: #f5f6ff;
  --muted: #a7adcc;
  --quiet: #6e759b;
  --hairline: rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.14);
  --glass-bg: rgba(255,255,255,0.04);
  --accent: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --accent-soft: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(6,182,212,0.18) 100%);
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --green: #10d99b;
  --red: #ff6b8a;
  --shadow-elev: 0 30px 80px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Aurora background blobs */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.30) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: 30%;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ---------- NAV (unified with the homepage "Knock Social" design) ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
/* Filled gradient K — matches the homepage brand mark (overrides the outlined default below) */
.nav .brand-mark {
  width: 33px; height: 33px; border-radius: 9px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.nav .brand-mark::before { content: none; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand small { font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-left: 1px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-ghost { color: var(--text); }
/* hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: var(--glass-bg); border: 1px solid var(--hairline-strong);
  border-radius: 9px; width: 42px; height: 42px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0; backdrop-filter: blur(10px);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124,58,237,0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(124,58,237,0.8); color: #fff; }
.btn-secondary, .btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover, .btn-ghost:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero { padding: 100px 0 120px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--hairline-strong);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,217,155,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,217,155,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16,217,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,217,155,0); }
}
h1.hero-headline, .hero h1 {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
  color: var(--text);
}
.grad-text, .accent {
  background: var(--accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub, .hero .lede, .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-ctas, .hero-cta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-reassure, .hero-note {
  color: var(--quiet);
  font-size: 13px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.hero-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.hero-reassure svg { color: var(--cyan); }

/* Hero variant: centered (no iPhone column) */
.hero.hero-centered { padding: 96px 0 64px; text-align: center; }
.hero.hero-centered h1, .hero.hero-centered .hero-headline { max-width: 920px; margin-left: auto; margin-right: auto; }
.hero.hero-centered .hero-sub, .hero.hero-centered .lede { margin-left: auto; margin-right: auto; }
.hero.hero-centered .hero-ctas, .hero.hero-centered .hero-cta { justify-content: center; }
.hero.hero-centered .hero-reassure, .hero.hero-centered .hero-note { justify-content: center; }

/* iPhone mock */
.iphone {
  position: relative;
  width: 340px;
  height: 690px;
  margin: 0 auto;
  background: linear-gradient(160deg, #1a1f3d 0%, #0d1230 100%);
  border-radius: 52px;
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 80px -10px rgba(124,58,237,0.25);
  padding: 14px;
}
.iphone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}
.iphone-screen {
  width: 100%; height: 100%;
  background: #060814;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.imsg-header {
  padding: 56px 16px 14px;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  text-align: center;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.imsg-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef9b6e 0%, #d97757 100%);
  margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}
.imsg-name {
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
}
.imsg-name svg { vertical-align: middle; margin-left: 3px; color: var(--quiet); }
.imsg-body {
  flex: 1;
  padding: 18px 14px;
  display: flex; flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.imsg-day-label {
  text-align: center;
  color: var(--quiet);
  font-size: 10px;
  margin: 8px 0 12px;
  font-weight: 500;
}
.imsg-bubble {
  max-width: 80%;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
}
.imsg-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #1d8aff 0%, #0a6efd 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.imsg-bubble.received {
  align-self: flex-start;
  background: #2a2a2e;
  color: #fff;
  border-bottom-left-radius: 4px;
}
.imsg-timestamp {
  text-align: center;
  color: var(--quiet);
  font-size: 9px;
  margin: 2px 0;
}
.imsg-input {
  padding: 10px 14px 22px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.imsg-input-field {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  height: 28px;
  border: 0.5px solid rgba(255,255,255,0.1);
}

.iphone-tag {
  position: absolute;
  top: 80px; right: -50px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-elev);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.iphone-tag .iphone-tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.iphone-tag-2 {
  position: absolute;
  bottom: 120px; left: -80px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-elev);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.iphone-tag-2 .grad-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.iphone-tag-2 .tag-label { color: var(--quiet); font-size: 11px; }
.iphone-tag-2 .tag-value { color: var(--text); font-weight: 600; font-size: 13px; }

/* ---------- STATS STRIP ---------- */
.stats-strip {
  margin-top: 0;
  padding: 32px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: left; position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px; top: 10%;
  width: 1px; height: 80%;
  background: var(--hairline);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- SECTION HEADERS ---------- */
section { padding: 120px 0; position: relative; }
.section-eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
h2.section-title, .section-head h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 720px;
  color: var(--text);
}
.section-sub, .section-head p {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.55;
}
.section-head { margin-bottom: 64px; }

/* ---------- FEATURES ---------- */
.features { padding: 120px 0; }
.features-grid, .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card, .card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover, .card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
}
.feature-card::before, .card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before, .card:hover::before { opacity: 1; }
.feature-icon, .card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
  font-size: 20px;
}
.feature-title, .card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.feature-desc, .card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- HOW IT WORKS ---------- */
.how { padding: 120px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.step-num, .step .num, .step .big-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 24px;
}
.step-title, .step h3, .step h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.step-desc, .step p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.step-connector {
  position: absolute;
  top: 50%; right: -20px;
  width: 40px; height: 1px;
  background: linear-gradient(to right, var(--hairline-strong), transparent);
}

/* Big-steps variant (how-it-works.php uses an ol) */
.big-steps { list-style: none; max-width: 880px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 32px; }
.big-steps li {
  display: grid; grid-template-columns: 80px 1fr; gap: 28px; align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
}
.big-steps .big-num {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
}
.big-steps h3 { color: var(--text); font-size: 22px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.big-steps p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.big-steps code { background: rgba(255,255,255,0.08); color: var(--cyan); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

/* ---------- PRICING ---------- */
.pricing-wrap { padding: 0 0 80px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1040px; gap: 22px; }
.pricing-grid-3 .price-card { padding: 34px 28px; }
.pricing-grid-3 .price-amount .num { font-size: 56px; }
@media (max-width: 860px) { .pricing-grid-3 { grid-template-columns: 1fr; max-width: 460px; } }
.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); max-width: 1180px; gap: 20px; }
.pricing-grid-4 .price-card { padding: 30px 26px; }
.pricing-grid-4 .price-amount .num { font-size: 52px; }
@media (max-width: 1080px) { .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
.price-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}
.price-card.featured, .price-card.highlight {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--accent) border-box;
  box-shadow: 0 20px 60px -20px rgba(124,58,237,0.4);
}
.price-badge, .price-card .ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.price-card h3, .price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.price-card .price, .price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 8px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.price-card .price span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.price-amount .dollar { font-size: 24px; color: var(--muted); font-weight: 600; }
.price-amount .num { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-amount .per { font-size: 16px; color: var(--muted); }
.price-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.price-blurb {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.pricing-grid-4 .price-blurb { font-size: 13.5px; line-height: 1.58; }
.price-card ul, .price-features { list-style: none; margin: 24px 0 32px; padding: 0; }
.price-card ul li, .price-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 14px;
}
.price-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
}
.price-features li svg {
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 2px;
}
.price-features li.muted { color: var(--quiet); }
.price-features li.muted svg { color: var(--quiet); }
.price-cta { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--hairline-strong); }
.faq-q {
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  gap: 16px;
}
.faq-q svg {
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  padding: 0 28px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--cyan); }
.faq-a a:hover { color: var(--text); text-decoration: underline; }

/* Two-column FAQ grid (pricing.php fallback) */
.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1040px; margin: 0 auto;
}
.faq-grid > div {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 28px;
}
.faq-grid h4 { color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.faq-grid p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.faq-grid a { color: var(--cyan); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.15) 100%),
    var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 28px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 0 96px;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.15) 0%, transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .container { padding: 0; }
.cta-band h2 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.cta-band p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
}
.cta-band .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- FOOTER ---------- */
footer.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--hairline);
  margin-top: 80px;
  background: transparent;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-about p {
  color: var(--muted); font-size: 14px;
  margin-top: 16px; max-width: 320px; line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--quiet);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  color: var(--quiet);
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- AUTH PAGES (login / signup / forgot / reset) ---------- */
.auth-wrap {
  min-height: calc(100vh - 90px);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 96px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-elev);
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.auth-card .sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.auth-foot {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}
.auth-foot a { color: var(--cyan); }
.auth-foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- FORM FIELDS ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="search"],
.field textarea,
.field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--quiet); }
.field textarea { resize: vertical; min-height: 80px; }

/* ---------- ALERTS / FLASH ---------- */
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid var(--hairline-strong);
}
.alert-error {
  background: rgba(255,107,138,0.10);
  border-color: rgba(255,107,138,0.32);
  color: #ffc4d2;
}
.alert-success {
  background: rgba(16,217,155,0.10);
  border-color: rgba(16,217,155,0.32);
  color: #b4f5dd;
}

/* ---------- LEGAL / LONG-FORM ---------- */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 0 96px;
}
.legal-doc h1 {
  font-size: 44px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 12px; color: var(--text);
}
.legal-doc h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.015em;
  margin: 40px 0 14px; color: var(--text);
}
.legal-doc h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin: 24px 0 8px; color: var(--text);
}
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-doc ul, .legal-doc ol { padding-left: 24px; margin-bottom: 16px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc a { color: var(--cyan); }
.legal-doc a:hover { color: var(--text); text-decoration: underline; }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc em { color: var(--text); font-style: italic; }
.legal-doc .updated {
  color: var(--quiet);
  font-size: 13px;
  margin-bottom: 24px;
}
.legal-doc .lede {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}
.legal-doc code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--text);
}

/* ---------- SIGNUP PLAN CHIP + AGREE CHECKBOX ---------- */
.plan-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(124,58,237,0.32);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text);
}
.plan-chip strong { font-weight: 700; }
.plan-chip a { color: var(--cyan); white-space: nowrap; }
.plan-chip a:hover { color: var(--text); text-decoration: underline; }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check-line input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.check-line a { color: var(--cyan); }
.check-line a:hover { color: var(--text); text-decoration: underline; }

/* ---------- UTILITIES ---------- */
.muted { color: var(--muted); }
.quiet { color: var(--quiet); }
.small { font-size: 13px; }
.hide-sm { display: inline; }

/* Backwards-compat: old marketing pages used a generic <header class="container"> with .nav inside */
header.container { padding-top: 18px; padding-bottom: 18px; }
header.container .nav {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 18px;
}
header.container .nav .brand { color: var(--text); }
header.container .nav .nav-links { display: flex; gap: 18px; align-items: center; }
header.container .nav .nav-links a { color: var(--muted); font-size: 14px; }
header.container .nav .nav-links a.btn { color: #fff; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1.5px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* ===== MOBILE ===== */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 6px;
    margin-top: 14px; padding: 12px;
    background: linear-gradient(180deg, #0e1436, #0a0f28);
    border: 1px solid var(--hairline-strong); border-radius: 14px;
    box-shadow: var(--shadow-elev);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 9px; font-size: 15px; }
  .nav-links a:not(.btn):hover { background: var(--glass-bg); color: var(--text); }
  .nav-links .btn { width: 100%; padding: 13px; }
  .btn-lg { padding: 12px 18px; font-size: 14px; }
  .hide-sm { display: none; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline, .hero h1 { font-size: clamp(34px, 9vw, 52px) !important; line-height: 1.05; }
  .hero-sub, .hero .lede { font-size: 17px; max-width: 100%; }
  .hero-ctas, .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn, .hero-cta .btn { width: 100%; justify-content: center; }
  .iphone { transform: scale(0.95); transform-origin: top center; margin: 0 auto; }
  .iphone-tag, .iphone-tag-2 { display: none; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 28px 22px; }
  .stat-num { font-size: 32px; }
  .stat-item:not(:last-child)::after { display: none; }

  section { padding: 64px 0; }
  .features, .how { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2, h2.section-title { font-size: clamp(28px, 7vw, 40px) !important; line-height: 1.15; }
  .section-sub { font-size: 16px; }

  .features-grid, .grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card, .card { padding: 28px 24px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step-connector { display: none; }

  .big-steps li { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .big-steps .big-num { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .big-steps h3 { font-size: 19px; }

  .pricing-grid, .pricing-grid-2, .pricing-grid-3, .pricing-grid-4 { grid-template-columns: 1fr; gap: 18px; max-width: 100%; }
  .price-card { padding: 28px 24px; }
  .price-card .price, .price-amount { font-size: 44px; }

  .faq-grid { grid-template-columns: 1fr; gap: 14px; }

  .cta-band { padding: 48px 28px; margin-bottom: 64px; }
  .cta-band h2 { font-size: clamp(28px, 7vw, 40px) !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .auth-card { padding: 32px 24px; }
  .auth-card h1 { font-size: 26px; }

  .legal-doc h1 { font-size: 32px; }
  .legal-doc { padding: 40px 0 64px; }
}

@media (max-width: 400px) {
  .stats-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
