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

:root {
  /* ── Core palette ── */
  --bg:           #0a0a0f;
  --green:        #1DB954;
  --purple:       #8B5CF6;
  --rose:         #f472b6;
  --violet:       #a78bfa;

  /* ── Text ── */
  --text:         rgba(255,255,255,0.62);
  --heading:      #f4f1ff;
  --muted:        rgba(255,255,255,0.35);
  --body-color:   rgba(255,255,255,0.70);
  --heading-color:#f4f1ff;

  /* ── Surfaces ── */
  --card-bg:      rgba(255,255,255,0.038);
  --card-border:  rgba(255,255,255,0.075);
  --card-surface: rgba(255,255,255,0.038);
  --surface-01:   #111118;
  --border:       rgba(255,255,255,0.08);
  --icon-color:   rgba(255,255,255,0.58);

  /* ── Brand (design library) ── */
  --brand-purple: #8565EE;
  --brand-green:  #00B25F;
  --accent-green: #1DB954;
  --accent-purple:#8B5CF6;

  /* ── Gradients ── */
  --grad-brand:   linear-gradient(135deg, #8565EE, #00B25F);
  --grad-ui:      linear-gradient(135deg, #1DB954, #8B5CF6);
  --grad-heading: linear-gradient(135deg, #ffffff 0%, #e0d8ff 40%, #8B5CF6 100%);
}

html { scroll-behavior: smooth; }

/* ── Base body ── */
body {
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Page-specific body overrides ── */
body.landing {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.app {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}
body.app::before {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,185,84,0.12), transparent 70%);
  top: -200px; left: -200px;
}
body.app::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  bottom: -150px; right: -150px;
}

body.design-library {
  color: var(--body-color);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  min-height: 100vh;
}
body.design-library::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ══════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════ */
/* ── Gradient text ── */
.gt {
  background: linear-gradient(135deg, var(--green) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Flat icon container ── */
.icon-box {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--icon-color);
}
.icon-box svg { width: 20px; height: 20px; }
.icon-box.lg { width: 52px; height: 52px; border-radius: 13px; }
.icon-box.lg svg { width: 24px; height: 24px; }

/* ── CTA button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: breath 3.5s ease-in-out infinite;
}
.btn:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 8px 40px rgba(29,185,84,0.4), 0 4px 20px rgba(139,92,246,0.25);
  animation: none;
}
@keyframes breath {
  0%,100% { box-shadow: 0 0 20px rgba(29,185,84,0.25), 0 0 40px rgba(139,92,246,0.1); }
  50%      { box-shadow: 0 0 32px rgba(29,185,84,0.42), 0 0 64px rgba(139,92,246,0.2); }
}

/* ── Ghost CTA button ── */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
/* ── Glass card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: rgba(139,92,246,0.22);
  transform: translateY(-2px);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Layout ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

section { padding: 108px 0; }

.section-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-h {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-hr.rule, hr.rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin: 0;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 28px; height: 28px;
}
.nav-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.nav-wordmark span {
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-left: 1px;
}
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.18);
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 28px 80px;
  position: relative; overflow: hidden;
}
body.landing { overflow-x: hidden; }
.hero-sub-hl {
  font-weight: 700;
  background: linear-gradient(135deg, #1DB954, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Green stage spotlight */
.hero-spot {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse 50% 55% at 50% 0%, rgba(29,185,84,0.18) 0%, transparent 65%);
  pointer-events: none;
}
/* Ambient purple bottom */
.hero-amb {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(139,92,246,0.09), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  width: 100%;
}
.hero-text { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(29,185,84,0.09);
  border: 1px solid rgba(29,185,84,0.22);
  border-radius: 100px;
  padding: 7px 16px 7px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
/* Serif italic accent line */
.hero-h1-accent {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 0 48px;
  line-height: 1.72;
}

.hero-actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.hero-fine {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.01em;
}
.hero-fine b { color: rgba(255,255,255,0.38); font-weight: 500; }

/* ══════════════════════════════
   HOW IT WORKS
══════════════════════════════ */
#how { padding-top: 108px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 20px;
  margin-top: 56px;
}
.step-card { position: relative; display: flex; flex-direction: column; }
.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step-icon-naked {
  display: block;
  width: 48px; height: 48px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.step-icon-naked svg { width: 48px; height: 48px; }
.step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-arrow { display: none; }

@keyframes icon-pop {
  0%   { opacity: 0; transform: scale(0.55); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.reveal.in .step-icon-naked,
.reveal.in .insight-icon {
  animation: icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}

.step-tip {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(29,185,84,0.7);
  font-style: italic;
  line-height: 1.5;
}

/* Step path guide */
.step-paths {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.step-path {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.step-path-icon {
  font-size: 13px;
  color: rgba(29,185,84,0.7);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'DM Sans', sans-serif;
}
.step-path-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.step-path-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}
.step-path-desc em {
  font-style: normal;
  color: rgba(29,185,84,0.7);
  font-weight: 600;
}

/* ══════════════════════════════
   WHAT YOU GET
══════════════════════════════ */
.insights-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-bottom: 48px;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.insight-card {
  display: flex; flex-direction: column; gap: 0;
  padding: 28px 24px;
}
.insight-icon {
  width: 48px; height: 48px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.insight-icon svg { width: 48px; height: 48px; }
.insight-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.insight-
/* ══════════════════════════════
   TESTIMONIALS
══════════════════════════════ */
.testi-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 20px;
  margin-top: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.testi-grid::-webkit-scrollbar { display: none; }
.testi-grid .testi-card {
  flex: 1 1 0 !important;
  min-width: 220px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-stars {
  display: flex; gap: 3px;
  color: #fbbf24;
}
.testi-stars svg { width: 14px; height: 14px; fill: #fbbf24; }
.testi-text {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  font-style: italic;
  flex: 1;
}
.testi-text::before { content: '\201C'; }
.testi-text::after  { content: '\201D'; }
.testi-person {
  display: flex; align-items: center; gap: 12px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29,185,84,0.18), rgba(139,92,246,0.22));
}
.testi-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.testi-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.testi-role { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ══════════════════════════════
   LEAD CAPTURE
══════════════════════════════ */
#lead { padding: 80px 0; }
.lead-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(29,185,84,0.05);
  border: 1px solid rgba(29,185,84,0.15);
  border-radius: 20px;
  padding: 40px 48px;
  flex-wrap: wrap;
}
.lead-text { flex: 1; min-width: 240px; }
.lead-h {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.lead-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 340px;
}
.lead-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.lead-input {
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.lead-input::placeholder { color: rgba(255,255,255,0.25); }
.lead-input:focus { border-color: rgba(29,185,84,0.5); }
.lead-btn {
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  background: var(--green);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.lead-btn:hover { opacity: 0.88; }
.lead-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lead-fine {
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}
@media (max-width: 680px) {
  .lead-box { flex-direction: column; padding: 28px 24px; }
  .lead-form { width: 100%; }
  .lead-input { flex: 1; width: auto; }
}

/* ══════════════════════════════
   FINAL CTA
══════════════════════════════ */
#final {
  text-align: center;
  position: relative; overflow: hidden;
}
.final-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(29,185,84,0.1), transparent 65%);
  pointer-events: none;
}
.final-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.final-compat {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 24px;
  margin-top: 28px;
}
.compat-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.compat-pill svg { width: 13px; height: 13px; color: rgba(255,255,255,0.2); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  border-top: 1px solid var(--card-border);
  padding: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.footer-logo-icon { width: 20px; height: 20px; opacity: 0.3; }
.footer-wordmark {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: -0.01em;
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  text-align: right;
}

/* ══════════════════════════════
   PHONE MOCKUP
══════════════════════════════ */
.hero-device {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ambient glow behind phone */
.hero-device::before {
  content: '';
  position: absolute;
  inset: -60px -80px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(29,185,84,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 90%, rgba(139,92,246,0.20) 0%, transparent 55%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: glow-breathe 5s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  0%   { opacity: 0.55; transform: scale(0.93); }
  100% { opacity: 1;    transform: scale(1.07); }
}

.phone-frame {
  width: 290px;
  height: 590px;
  background: linear-gradient(170deg, #14142a 0%, #08080f 60%);
  border-radius: 46px;
  /* Light-source border — brighter top-left, darker bottom-right */
  border-top:    1.5px solid rgba(255,255,255,0.18);
  border-left:   1.5px solid rgba(255,255,255,0.13);
  border-right:  1.5px solid rgba(255,255,255,0.05);
  border-bottom: 1.5px solid rgba(255,255,255,0.04);
  box-shadow:
    0 0 0 6px rgba(10,10,20,0.9),
    0 0 0 7.5px rgba(255,255,255,0.06),
    0 60px 100px rgba(0,0,0,0.75),
    0 24px 48px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Static 3D tilt — animation is on parent */
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
  z-index: 1;
}

/* Periodic shimmer sweep */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(108deg, transparent 25%, rgba(255,255,255,0.04) 50%, transparent 75%);
  animation: phone-shimmer 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
  border-radius: 46px;
}
@keyframes phone-shimmer {
  0%, 55%, 100% { left: -130%; }
  28%            { left: 170%;  }
}
.phone-notch {
  width: 90px; height: 26px;
  background: #080810;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative; z-index: 2;
}
.phone-screen {
  flex: 1; overflow: hidden; position: relative;
  /* Fill with atmospheric background so nothing looks empty */
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(29,185,84,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 90% 105%, rgba(139,92,246,0.10) 0%, transparent 55%);
}
.phone-report {
  padding: 14px 16px 0;
  animation: report-scroll 20s cubic-bezier(0.4, 0, 0.2, 1) 2s 1 forwards;
}
@keyframes report-scroll {
  0%   { transform: translateY(0px);    }
  100% { transform: translateY(-255px); }
}

.phone-brand {
  display: flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.phone-arch {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px; font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c8f0d8 45%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.phone-arch-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(29,185,84,0.65);
  margin-bottom: 16px;
}
.phone-sec-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  margin-bottom: 7px;
  position: relative;
  overflow: hidden;
}
.phone-sec-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, #1DB954, #8B5CF6);
  opacity: 0.45;
}
.phone-sec-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; font-weight: 800;
  color: rgba(29,185,84,0.65);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 16px;
}
.phone-sec-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.78);
  margin-bottom: 3px;
  line-height: 1.3;
}
.phone-sec-desc {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px; line-height: 1.5;
  color: rgba(255,255,255,0.35);
}
.phone-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(to bottom, #08080f 10%, transparent);
  pointer-events: none;
  z-index: 10;
}
.phone-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 100px;
  background: linear-gradient(to bottom, transparent, #08080f);
  pointer-events: none;
  z-index: 10;
}
.phone-home-bar {
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 10px auto;
  flex-shrink: 0;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 48px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin: 0 auto 48px; }
  .hero-actions { align-items: center; }
  .phone-frame { transform: none; }
  .hero-device::before { display: none; }
  .hero-device::after  { display: none; }
}
@media (max-width: 860px) {
  .steps-grid, .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .steps-grid, .insights-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
  /* Phone shows below text on mobile, scaled down */
  .hero-device { display: flex; }
  .phone-frame {
    width: 230px;
    height: 460px;
    border-radius: 36px;
    transform: none !important;
  }
  .phone-arch { font-size: 20px; }
  #hero { padding: 100px 20px 60px; overflow-x: hidden; }
  .hero-inner { gap: 36px; }
}


/* ══════════════════════════════════════
   APP PAGE (/app)
══════════════════════════════════════ */
/* ── Background orbs ── */
body::before, 
.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Header ── */
header { text-align: center; margin-bottom: 56px; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.logo-mark img { width: 32px; height: 32px; }
.logo-mark span {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #e8d8f0 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Upload zone ── */
.upload-section { margin-bottom: 32px; }

.drop-zone {
  border: 2px dashed rgba(139,92,246,0.4);
  border-radius: 20px;
  padding: 52px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(139,92,246,0.04);
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--purple);
  background: rgba(139,92,246,0.08);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

.upload-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(29,185,84,0.2), rgba(139,92,246,0.2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.drop-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.01em;
}
.drop-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
.drop-sub strong { color: var(--green); }

/* ── Thumbnails ── */
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.thumb {
  position: relative;
  width: 100px; height: 100px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  animation: fadeUp 0.3s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.7);
  border: none; border-radius: 50%;
  width: 22px; height: 22px;
  color: #fff; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.thumb-remove:hover { background: rgba(220,50,50,0.8); }

/* ── Generate button ── */
.btn-generate {
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.btn-generate:hover::after { background: rgba(255,255,255,0.08); }
.btn-generate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 32px;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}
.btn-example:hover {
  border-color: rgba(139,92,246,0.35);
  color: rgba(255,255,255,0.75);
  background: rgba(139,92,246,0.06);
}

/* ── Loading ── */
#loading {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 48px;
  gap: 28px;
}

.orb-wrapper {
  position: relative;
  width: 100px; height: 100px;
}
.orb {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1DB954, #8B5CF6);
  animation: pulse-orb 2s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(139,92,246,0.5);
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(139,92,246,0.5); }
  50% { transform: scale(1.12); box-shadow: 0 0 90px rgba(29,185,84,0.6); }
}
.orb-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--purple);
  border-right-color: var(--green);
  animation: spin 2.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #c8c4e0;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 1.4em;
}
.loading-text .typed-prefix {
  color: var(--muted);
  margin-right: 4px;
}
.loading-text .typed-name {
  background: linear-gradient(90deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.loading-text .type-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--purple);
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 0.7s step-end infinite;
}
.loading-sub {
  font-size: 13px; color: var(--muted); opacity: 0.6;
  animation: text-fade-in 0.6s ease 1.8s both;
}
@keyframes text-fade-in { from { opacity: 0; } to { opacity: 0.6; } }

/* ── Report ── */
#report { display: none; }

.report-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--card-border);
}
.report-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.report-header p { font-size: 14px; color: var(--muted); }

.report-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn-action {
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-download {
  background: linear-gradient(135deg, var(--green), #16a34a);
  border: none;
  color: #fff;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-copy {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
}
.btn-copy:hover { border-color: var(--purple); background: rgba(139,92,246,0.1); }
.btn-new {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--muted);
}
.btn-new:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-share {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border: none;
  color: #fff;
}
.btn-share:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Story canvas (off-screen render target) ── */
#story-canvas-host {
  position: fixed;
  left: -9999px; top: -9999px;
  width: 540px; height: 960px;
  background: #0a0a0f;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
#story-canvas-host .story-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(29,185,84,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(139,92,246,0.3) 0%, transparent 60%),
    #0a0a0f;
}
#story-canvas-host .story-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; padding: 52px 44px;
  gap: 0;
}
#story-canvas-host .story-brand {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 36px;
}
#story-canvas-host .story-archetype-emoji {
  font-size: 64px; line-height: 1; margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(29,185,84,0.6)) drop-shadow(0 0 40px rgba(139,92,246,0.4));
}
#story-canvas-host .story-archetype-label {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #1DB954, #8B5CF6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
#story-canvas-host .story-archetype-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px; font-weight: 700; letter-spacing: -0.01em;
  color: #fff; text-align: center; line-height: 1.2;
  margin-bottom: 14px;
}
#story-canvas-host .story-archetype-#story-canvas-host .story-divider {
  width: 60px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #1DB954, #8B5CF6);
  margin-bottom: 36px;
}
#story-canvas-host .story-quote-emoji {
  font-size: 36px; line-height: 1; margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.7));
}
#story-canvas-host .story-open-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 72px; line-height: 0.5;
  background: linear-gradient(135deg, #1DB954, #8B5CF6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block; margin-bottom: 12px;
}
#story-canvas-host .story-quote-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-style: italic;
  color: #f0f0ff; text-align: center; line-height: 1.6;
  max-width: 400px;
}
#story-canvas-host .story-footer {
  position: absolute; bottom: 40px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── Section cards ── */
.section-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 44px 48px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.section-card:hover {
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 48px rgba(139,92,246,0.08), 0 2px 16px rgba(0,0,0,0.3);
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  opacity: 0.7;
}
/* Subtle inner glow at bottom */
.section-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.25), transparent);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.section-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29,185,84,0.15), rgba(167,139,250,0.18));
  border: 1px solid rgba(167,139,250,0.2);
  padding: 10px;
  flex-shrink: 0;
}
.section-icon svg {
  width: 26px; height: 26px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: #c4c4d8;
  white-space: pre-wrap;
}

/* Quote card — pull quote treatment */
.card-quote {
  background: linear-gradient(160deg, rgba(29,185,84,0.06) 0%, rgba(167,139,250,0.11) 100%);
  border-color: rgba(167,139,250,0.25);
  padding: 60px 56px;
  text-align: center;
  box-shadow: 0 0 80px rgba(167,139,250,0.08), inset 0 0 60px rgba(29,185,84,0.03);
}
.card-quote .section-icon {
  margin: 0 auto 22px;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(29,185,84,0.18), rgba(167,139,250,0.22));
  border-color: rgba(167,139,250,0.3);
  padding: 12px;
}
.card-quote .section-icon svg { width: 30px; height: 30px; }
.card-quote .section-title {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}
.card-quote .section-content {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 400;
  font-style: italic;
  color: #ede8ff;
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.card-quote .section-content::before {
  content: '\201C';
  display: block;
  font-size: 88px;
  line-height: 0.7;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--green), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}

/* Streaming cursor */
.cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--purple);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Error ── */
.error-box {
  background: rgba(220,50,50,0.08);
  border: 1px solid rgba(220,50,50,0.25);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #ff8080;
  font-size: 15px;
  display: none;
}

/* ── Back link ── */
.back-link {
  position: fixed;
  top: 20px; left: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
  z-index: 100;
  letter-spacing: 0.01em;
}
.back-link:hover { color: rgba(255,255,255,0.7); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .section-card { padding: 24px 20px; }
  .drop-zone { padding: 36px 20px; }
  .section-icon { width: 40px; height: 40px; padding: 8px; }
}


/* ══════════════════════════════════════
   DESIGN LIBRARY
══════════════════════════════════════ */
/* ─── Reset & Base ─────────────────────────────────────────────── */




/* ─── Noise texture overlay ─────────────────────────────────────── */

/* ─── Sticky Nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
}

.nav-back {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-back:hover { color: var(--heading-color); }

.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.nav-brand img { width: 24px; height: 24px; }

.nav-spacer { width: 120px; }

/* ─── Page Layout ───────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.page-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.page-hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: var(--body-color);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── Section Anatomy ───────────────────────────────────────────── */
.ds-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ds-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.ds-section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading-color);
  margin-bottom: 40px;
  line-height: 1.1;
}

/* ─── Preview Cards ─────────────────────────────────────────────── */
.preview-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.preview-card-label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SECTION 1: LOGO ───────────────────────────────────────────── */
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.logo-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 40px 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
  min-height: 160px;
}

.logo-card-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0 24px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wordmark-gradient {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #8565EE, #00B25F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-wordmark-dark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: #0a0a0f;
}

.logo-wordmark-white {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.logo-rules {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.logo-rules strong { color: var(--body-color); }

.logo-assets {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-assets code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  background: rgba(133,101,238,0.12);
  color: var(--violet);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ─── SECTION 2: COLORS ─────────────────────────────────────────── */
.color-group { margin-bottom: 40px; }
.color-group:last-child { margin-bottom: 0; }

.color-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.swatch-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.swatch-box:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.swatch-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.3;
}

.swatch-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { color: var(--heading-color); background: rgba(255,255,255,0.09); }
.copy-btn.copied { color: var(--brand-green); border-color: rgba(0,178,95,0.3); }

.gradient-bars { display: flex; flex-direction: column; gap: 16px; }

.gradient-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gradient-strip {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.gradient-bar-info {
  min-width: 220px;
}

.gradient-bar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.gradient-bar-desc {
  font-size: 11px;
  color: var(--muted);
}

.text-swatch-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-swatch {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.text-swatch-sample {
  font-size: 16px;
  font-weight: 600;
  min-width: 180px;
}

.text-swatch-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* ─── SECTION 3: TYPOGRAPHY ─────────────────────────────────────── */
.type-family {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.type-family-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.type-family-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.type-family-desc {
  font-size: 13px;
  color: var(--muted);
}

.type-specimen { margin-bottom: 20px; }
.type-specimen:last-child { margin-bottom: 0; }

.type-specimen-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.type-scale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 40px;
}

.type-scale-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.type-scale-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.type-scale-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.type-scale-table tbody td {
  padding: 12px 16px;
  color: var(--body-color);
  vertical-align: middle;
}

.type-scale-table tbody td:first-child {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--violet);
}

.type-scale-table tbody td:nth-child(3) {
  color: var(--brand-purple);
  font-weight: 600;
}

/* ─── SECTION 4: COMPONENTS ─────────────────────────────────────── */
.component-group {
  margin-bottom: 48px;
}

.component-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #1DB954, #8B5CF6);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(29,185,84,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  color: var(--heading-color);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--heading-color);
  border-color: rgba(255,255,255,0.2);
}

/* Pills & Tags */
.pill-active {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  background: linear-gradient(135deg, #8565EE, #1DB954);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-inactive {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.pill-inactive:hover {
  background: rgba(255,255,255,0.11);
  color: var(--body-color);
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--body-color);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.stat-chip-icon {
  width: 20px;
  height: 20px;
  background: var(--grad-ui);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Report Card */
.report-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 560px;
}

.report-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.report-card-meta {
  flex: 1;
}

.report-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.report-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.report-card-
.report-card-callout {
  background: rgba(0,178,95,0.06);
  border-left: 3px solid var(--brand-green);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5bf0a0;
  font-style: italic;
}

.report-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--body-color);
  line-height: 1.65;
}

/* Callout block standalone */
.callout-block {
  background: rgba(0,178,95,0.06);
  border-left: 3px solid var(--brand-green);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #5bf0a0;
  font-style: italic;
  line-height: 1.5;
  max-width: 600px;
}

/* Quote block */
.quote-block {
  text-align: center;
  padding: 40px 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 560px;
  position: relative;
}

.quote-mark {
  font-size: 64px;
  line-height: 0.5;
  color: rgba(133,101,238,0.25);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 20px;
}

.quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--body-color);
  line-height: 1.75;
}

/* ─── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,178,95,0.92);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Paywall ───────────────────────────────────────────────────── */
body.app #paywall {
  margin-top: 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(139,92,246,0.25);
}

body.app .paywall-locked-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(139,92,246,0.06);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
}

body.app .paywall-locked-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.app .paywall-locked-item:last-child { border-bottom: none; }

body.app .paywall-dim {
  opacity: 0.4;
}

body.app .paywall-cta {
  background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(29,185,84,0.08) 100%);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body.app .paywall-lock-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

body.app .paywall-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

body.app .paywall-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
}

body.app .btn-unlock {
  margin-top: 8px;
  background: linear-gradient(135deg, #1DB954 0%, #17a349 100%);
  color: #000;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

body.app .btn-unlock:hover { opacity: 0.9; transform: translateY(-1px); }
body.app .btn-unlock:active { transform: translateY(0); }
body.app .btn-unlock:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

body.app .paywall-fine {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0;
}

body.app .btn-start-over {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.6;
  margin-top: 4px;
  text-decoration: underline;
  padding: 4px;
}

body.app .btn-start-over:hover { opacity: 1; }

/* ─── Payment success banner ─────────────────────────────────────── */
body.app .payment-success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.35);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1DB954;
  line-height: 1.4;
}

body.app .payment-success-banner svg {
  flex-shrink: 0;
  color: #1DB954;
}

body.app .payment-success-banner span { color: var(--text-secondary); }
body.app .payment-success-banner strong { color: #1DB954; }

/* ─── Landing checkout button ────────────────────────────────────── */
body.landing .btn-checkout {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-wrap { padding: 0 20px 80px; }
  .site-nav { padding: 0 20px; }
  .nav-brand { display: none; }
  .nav-spacer { display: none; }
  .logo-grid { grid-template-columns: 1fr; }
  .swatch-row { gap: 12px; }
  .swatch-box { width: 52px; height: 52px; }
  .gradient-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gradient-strip { width: 100%; }
  .gradient-bar-info { min-width: unset; }
  .page-hero { padding: 48px 0 52px; }
}

@media (max-width: 480px) {
  .swatch-row { gap: 8px; }
  .swatch-box { width: 44px; height: 44px; border-radius: 8px; }
  .type-scale-table { font-size: 11px; }
  .type-scale-table thead th,
  .type-scale-table tbody td { padding: 9px 10px; }
}
