/* diy.herihe.digital — Landing page stylesheet
   Brand system inherited from herihe.digital master:
   - Fonts: Space Grotesk (display) + Inter (body) + DM Mono (technical)
   - Palette: purple #7B2FA0, magenta #E6007E, deep bg #120E24
   - Signature: .accent idea-marker panel with pulsing signal dot */

:root {
  --purple: #7B2FA0;
  --purple-soft: #9B4DCA;
  --purple-dark: #4A1A60;
  --magenta: #E6007E;
  --magenta-deep: #C71681;
  --magenta-glow: rgba(230, 0, 126, 0.3);

  --bg-deep: #120E24;
  --bg-surface: #1D1640;
  --bg-elevated: #2E2360;
  --bg-card: #251C50;

  --text-primary: #F8F6FC;
  --text-secondary: #DCCFFA;
  --text-muted: #B5A6D4;

  --nav-bg: rgba(17, 13, 32, 0.92);
  --nav-border: rgba(123, 47, 160, 0.25);
  --card-border: rgba(123, 47, 160, 0.15);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);

  --accent-success: #00E676;

  --grad-hero: linear-gradient(160deg, #120E24 0%, #251855 40%, #170F2C 100%);
  --grad-cta: linear-gradient(135deg, #7B2FA0 0%, #E6007E 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --section-pad: clamp(4rem, 10vw, 8rem);
  --content-max: 1200px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg-deep: #FAF7F5;
  --bg-surface: #FFFFFF;
  --bg-elevated: #F5F0EB;
  --bg-card: #FFFFFF;
  --text-primary: #1A0E2E;
  --text-secondary: #4A3D5C;
  --text-muted: #7A6F8A;
  --card-border: rgba(26, 14, 46, 0.08);
  --card-shadow: 0 4px 24px rgba(26, 14, 46, 0.06);
  --grad-hero: linear-gradient(160deg, #FAF7F5 0%, #F9F5FC 45%, #FAF7F5 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { color: var(--magenta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta-deep); }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════ NAV ═══════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--nav-border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #F8F6FC !important;
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo .dot { color: var(--magenta) !important; }
.nav-logo .sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--magenta);
  background: rgba(230, 0, 126, 0.12);
  border: 1px solid rgba(230, 0, 126, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.3rem;
  font-family: var(--font-mono);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch {
  display: flex; gap: 0.2rem;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 0.2rem;
}
.lang-btn {
  padding: 0.25rem 0.6rem;
  border: none; background: transparent;
  color: var(--text-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.lang-btn.active { background: var(--purple); color: #fff !important; }
.lang-btn:hover:not(.active) { color: var(--text-secondary) !important; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--card-border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--magenta); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--grad-cta);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.92; transform: translateY(-1px); }

/* ═══════════════════════ SIGNATURE ACCENT ═══════════════════════ */
/* Inline-block gradient panel with pulsing magenta signal dot — brand motif */
.accent {
  position: relative;
  display: inline-block;
  padding: 0.06em 0.42em 0.14em;
  margin: 0.05em 0.04em;
  color: #FFF6FB;
  background: linear-gradient(135deg, #E6007E 0%, #C71681 35%, #9B4DCA 100%);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 140, 200, 0.35),
    0 20px 50px -14px rgba(230, 0, 126, 0.75),
    0 0 80px -10px rgba(230, 0, 126, 0.55);
  text-shadow: 0 1px 2px rgba(74, 6, 50, 0.6);
}
.accent::after {
  content: "";
  position: absolute;
  top: -5px; right: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E6007E;
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.2), 0 0 14px rgba(230, 0, 126, 0.9);
  animation: accent-pulse 2s ease-in-out infinite;
}
@keyframes accent-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.2), 0 0 14px rgba(230, 0, 126, 0.9); }
  50%      { box-shadow: 0 0 0 6px rgba(230, 0, 126, 0.05), 0 0 24px rgba(230, 0, 126, 1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .accent::after, .live-dot { animation: none !important; }
}

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  padding: clamp(8rem, 14vw, 12rem) 0 var(--section-pad);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(230, 0, 126, 0.15), transparent 50%),
    radial-gradient(ellipse at 15% 95%, rgba(123, 47, 160, 0.2), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy { text-align: left; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(123, 47, 160, 0.35);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  background: rgba(123, 47, 160, 0.08);
}
.hero-badge .live-dot {
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-secondary);
  margin: 0 0 2rem;
  line-height: 1.6;
  max-width: 560px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.hero-meta strong { color: var(--text-primary); font-weight: 600; }

/* ═══════════════════════ FORM ═══════════════════════ */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(230, 0, 126, 0.08);
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(230, 0, 126, 0.25), transparent 50%, rgba(123, 47, 160, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-field { margin-bottom: 0.9rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=url],
.form-field select {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.15);
}
.form-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
@media (max-width: 500px) { .form-field-row { grid-template-columns: 1fr; } }
.form-checkbox {
  display: flex; gap: 0.6rem;
  margin: 1.2rem 0;
  align-items: flex-start;
}
.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--magenta);
  width: 16px; height: 16px; flex-shrink: 0;
}
.form-checkbox label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  cursor: pointer;
  font-family: var(--font-body);
}
.form-checkbox label a { color: var(--magenta); text-decoration: underline; text-underline-offset: 2px; }
.form-submit {
  width: 100%;
  background: var(--grad-cta);
  color: #fff;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 0.3rem;
}
.form-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-footnote {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.9rem;
  letter-spacing: 0.04em;
}
.form-success, .form-error {
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
}
.form-success {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-success);
}
.form-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #FF8080;
}

/* ═══════════════════════ SECTIONS ═══════════════════════ */
section { padding: var(--section-pad) 0; position: relative; }
section.alt { background: var(--bg-surface); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 720px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* ═══════════════════════ DEMO PREVIEW ═══════════════════════ */
.preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(230, 0, 126, 0.1);
}
.preview-browser-bar {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.4rem 0.75rem 0.9rem;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 0.75rem;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.preview-url {
  flex: 1;
  background: var(--bg-deep);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.preview-iframe {
  width: 100%;
  height: 640px;
  border: none;
  border-radius: 8px;
  background: #0B1220;
}
.preview-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.preview-note a { font-weight: 600; }

/* ═══════════════════════ STEPS ═══════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: rgba(230, 0, 126, 0.35); transform: translateY(-2px); }
.step-num {
  position: absolute;
  top: 0.75rem; right: 1.1rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--purple);
  opacity: 0.28;
  line-height: 1;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  position: relative; z-index: 1;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative; z-index: 1;
}
.step-time {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.2rem 0.7rem;
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-success);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ═══════════════════════ BRIEF CONTENTS ═══════════════════════ */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .brief-grid { grid-template-columns: 1fr; } }
.brief-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--magenta);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.brief-item-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--magenta);
  margin-bottom: 0.6rem;
}
.brief-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.brief-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════ PILLARS ═══════════════════════ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}
.pillar-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  background: var(--grad-cta);
  display: grid; place-items: center;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════ PRICING ═══════════════════════ */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing { grid-template-columns: 1fr; } }
.tier {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.tier:hover { transform: translateY(-3px); border-color: rgba(230, 0, 126, 0.35); }
.tier.featured {
  border-color: rgba(230, 0, 126, 0.5);
  background: linear-gradient(180deg, rgba(230, 0, 126, 0.08), var(--bg-card) 40%);
  box-shadow: 0 20px 50px rgba(230, 0, 126, 0.12);
}
.tier-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}
.tier-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.tier-for {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.tier-price {
  display: flex; align-items: baseline; gap: 0.2rem;
  margin-bottom: 0.3rem;
}
.tier-price .curr { font-size: 1.1rem; color: var(--text-muted); }
.tier-price .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tier-price .per { font-size: 0.85rem; color: var(--text-muted); margin-left: 0.15rem; }
.tier-yearly {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-success);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.tier-features {
  list-style: none;
  padding: 0; margin: 0 0 1.5rem 0;
  flex: 1;
}
.tier-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--card-border);
  display: flex; gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.45;
}
.tier-features li::before {
  content: '✓';
  color: var(--accent-success);
  flex-shrink: 0; font-weight: 700;
}
.tier-features li.dim { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.tier-features li.dim::before { content: '—'; color: var(--text-muted); text-decoration: none; }
.tier-cta {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--card-border);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
  display: block;
}
.tier-cta:hover { background: var(--grad-cta); border-color: transparent; color: #fff !important; }
.tier.featured .tier-cta { background: var(--grad-cta); border-color: transparent; color: #fff !important; }
.tier.featured .tier-cta:hover { opacity: 0.92; }

/* ═══════════════════════ FAQ ═══════════════════════ */
.faq-list {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 760px;
}
details.faq {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.15s;
}
details.faq[open] { border-color: rgba(230, 0, 126, 0.4); }
details.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.01em;
}
details.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--magenta);
  font-weight: 400;
  transition: transform 0.2s;
  line-height: 1;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
details.faq code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-deep);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--magenta);
}

/* ═══════════════════════ FINAL CTA ═══════════════════════ */
.final-cta {
  background: var(--grad-hero);
  padding: var(--section-pad) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(230, 0, 126, 0.15), transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.final-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.final-cta .nav-cta { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
footer.foot {
  background: #0A0718;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid var(--nav-border);
}
[data-theme="light"] footer.foot { background: #F5F0EB; border-top-color: rgba(26, 14, 46, 0.1); }
.foot-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; gap: 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.foot-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.foot-copy .dot { color: var(--magenta); }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  font-size: 0.82rem;
}
.foot-links a { color: var(--text-muted); }
.foot-links a:hover { color: var(--text-primary); }
.foot-sep { color: var(--text-muted); opacity: 0.4; }

/* Hero right column: media container (for PT/EN waitlist use simpler) */
.hero-standalone {
  max-width: 640px; margin: 0 auto;
  text-align: center;
}
.hero-standalone h1 { max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-standalone .hero-sub { margin-left: auto; margin-right: auto; }

/* ═══════════════════════ SMALL UTILITIES ═══════════════════════ */
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ═══════════════════════ PROGRESSIVE LEAD FLOW ═══════════════════════ */
.lead-flow { position: relative; min-height: 520px; }
.lead-step[hidden] { display: none !important; }
.lead-step { opacity: 1; }

/* Step 1: URL-only hero form */
.step-urlonly-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 0, 126, 0.08);
}
.step-urlonly-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.step-urlonly-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}
@media (max-width: 520px) { .step-urlonly-input-row { grid-template-columns: 1fr; } }
.step-urlonly-input {
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
}
.step-urlonly-input:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.15);
}
.step-urlonly-submit {
  background: var(--grad-cta);
  color: #fff;
  border: none;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.step-urlonly-submit:hover { opacity: 0.92; }
.step-urlonly-hint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Step 2: Progress bar */
.step-analyzing {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.progress-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.progress-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-cta);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(230, 0, 126, 0.45);
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 1.5em;
}
.analysis-error {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  color: #FF9090;
  font-size: 0.88rem;
  text-align: left;
}
.btn-retry {
  margin-top: 1rem;
  background: transparent;
  color: var(--magenta);
  border: 1px solid var(--magenta);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-retry:hover { background: var(--magenta); color: #fff; }

/* Step 3: Found card */
.step-found {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.found-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.found-favicon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.found-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.found-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.found-meta-row {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.found-meta-item {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.found-meta-item[hidden] { display: none; }
.found-color-chip {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.found-meta-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.found-meta-value { font-weight: 500; color: var(--text-primary); }

.found-socials-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.5rem 0 0.9rem;
}
.found-socials {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.social-chip {
  display: inline-flex; align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  font-size: 0.83rem;
  color: var(--text-primary);
}
.social-chip--detected { border-color: rgba(230, 0, 126, 0.3); }
.chip-emoji { font-size: 0.95rem; }
.chip-name { font-weight: 500; }
.chip-tier {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.chip-tier--starter { background: rgba(0, 230, 118, 0.12); color: var(--accent-success); }
.chip-tier--growth  { background: rgba(230, 0, 126, 0.12); color: var(--magenta); }
.chip-tier--agency  { background: rgba(255, 179, 0, 0.15); color: #FFD24D; }

.found-upsell {
  padding: 0.9rem 1.1rem;
  background: rgba(230, 0, 126, 0.06);
  border: 1px solid rgba(230, 0, 126, 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.found-upsell strong { color: var(--magenta); }
.found-upsell[hidden] { display: none; }

.found-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  gap: 1rem;
  flex-wrap: wrap;
}
.found-footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.btn-continue {
  background: var(--grad-cta);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-continue:hover { opacity: 0.92; transform: translateY(-1px); }

/* Step 4: Final form */
.step-final .form-sub {
  margin-bottom: 0.5rem;
}
.reassurance-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-success);
  margin: 0.5rem 0 1.25rem;
  letter-spacing: 0.02em;
}
.reassurance-note::before { content: '✓ '; }

.form-success-inline {
  padding: 1.25rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 10px;
  color: var(--accent-success);
  font-size: 0.92rem;
  line-height: 1.55;
}
.form-success-inline strong { color: #fff; }
