/* Ascend — ascendapp.cc (2026 redesign) */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --blue: #4d5dfa;
  --blue-light: #6b78ff;
  --blue-soft: #eef0ff;
  --purple: #7c6cf0;
  --purple-soft: #f3f0ff;
  --green: #34d399;
  --green-soft: #ecfdf5;
  --orange: #fb923c;
  --orange-soft: #fff7ed;
  --sky: #38bdf8;
  --sky-soft: #f0f9ff;
  --gradient-brand: linear-gradient(135deg, #4d5dfa 0%, #7c6cf0 55%, #a855f7 100%);
  --gradient-text: linear-gradient(135deg, #4d5dfa 0%, #7c6cf0 100%);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 16px 40px rgba(77, 93, 250, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1140px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 4px 4px 0;
}

.logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(77, 93, 250, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(77, 93, 250, 0.34);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
}

/* ── Store badges ── */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge svg {
  display: block;
  height: 48px;
  width: auto;
}

/* ── Hero ── */

.hero {
  padding: 56px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(77, 93, 250, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 11ch;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 46ch;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  object-fit: cover;
  display: block;
  background: var(--bg-muted);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-proof strong {
  color: var(--text);
  font-weight: 600;
}

.stars {
  color: #fbbf24;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 300px);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  max-width: 220px;
}

.float-card h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.float-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.float-icon--purple { background: var(--purple-soft); color: var(--purple); }
.float-icon--green { background: var(--green-soft); color: var(--green); }
.float-icon--blue { background: var(--blue-soft); color: var(--blue); }

.float-icon svg {
  width: 18px;
  height: 18px;
}

.float-card--future { top: 8%; left: -4%; }
.float-card--habit { top: 42%; right: -6%; }
.float-card--identity { bottom: 10%; left: 0; }

/* ── Stats ── */

.stats {
  padding: 0 0 88px;
  margin-top: -24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon--blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon--purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon--green { background: var(--green-soft); color: var(--green); }

.stat-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Philosophy ── */

.philosophy {
  padding: 88px 0;
  background: var(--bg-soft);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 48px;
  align-items: start;
}

.philosophy h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.philosophy-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.philosophy-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.philosophy-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-icon--purple { background: var(--purple-soft); color: var(--purple); }
.step-icon--blue { background: var(--blue-soft); color: var(--blue); }
.step-icon--green { background: var(--green-soft); color: var(--green); }
.step-icon--orange { background: var(--orange-soft); color: var(--orange); }

.philosophy-step h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.philosophy-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Journey ── */

.journey {
  padding: 96px 0;
  background: var(--bg);
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.timeline-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.timeline-check.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.timeline-check svg {
  width: 14px;
  height: 14px;
}

.timeline-item strong {
  display: block;
  font-size: 0.875rem;
}

.timeline-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.journey-visual {
  display: flex;
  justify-content: center;
}

.journey-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.journey-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ── Features ── */

.features {
  padding: 96px 0;
  background: var(--bg-soft);
}

.features-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.features-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px 0;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 22ch;
}

.feature-card img {
  margin-top: auto;
  width: 72%;
  margin-inline: auto;
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-md);
}

.feature-card--sky { background: var(--sky-soft); }
.feature-card--green { background: var(--green-soft); }
.feature-card--purple { background: var(--purple-soft); }
.feature-card--orange { background: var(--orange-soft); }

/* ── Bottom CTA ── */

.cta-bottom {
  padding: 96px 0;
  background: var(--bg);
}

.cta-bottom-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.cta-quote {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cta-center {
  text-align: center;
}

.cta-center .phone-frame {
  width: 220px;
  margin-inline: auto;
}

.cta-right h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-right .store-badges {
  justify-content: flex-start;
}

/* ── Footer ── */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 18px;
  padding: 4px 0 2px;
}

.footer-brand .logo img {
  height: 24px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 28ch;
}

.footer-col h5 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: var(--blue);
  border-color: rgba(77, 93, 250, 0.3);
  background: var(--blue-soft);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Legal pages ── */

.page-legal {
  background: var(--bg-soft);
  min-height: 100vh;
}

.page-legal main.container {
  padding: 56px 0 80px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-content .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-legal .site-footer {
  margin-top: 0;
}

.legal-footer {
  margin-top: 0;
  padding-bottom: 40px;
}

.legal-footer-bottom {
  border-top: none;
  padding-top: 0;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* ── SEO landing pages ── */

.page-landing {
  background: var(--bg);
  min-height: 100vh;
}

.landing-hero {
  padding: 48px 0 64px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.landing-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.landing-hero-visual {
  display: flex;
  justify-content: center;
}

.landing-section {
  padding: 56px 0;
}

.landing-section--soft {
  background: var(--bg-soft);
}

.landing-cta {
  padding: 64px 0 80px;
  background: var(--bg-soft);
  text-align: center;
}

.landing-cta-inner h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .landing-hero-visual {
    order: -1;
  }
}

/* ── Blog ── */

.page-blog {
  background: var(--bg-soft);
  min-height: 100vh;
}

.blog-index-header {
  padding: 56px 0 32px;
  max-width: 640px;
}

.blog-index-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.blog-index-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  gap: 24px;
  padding-bottom: 80px;
  max-width: 720px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.blog-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.blog-card__title a {
  color: var(--text);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--blue);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.blog-post {
  max-width: 720px;
  padding: 48px 0 80px;
}

.blog-post__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 20px;
}

.blog-post__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-post__header h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-post__excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.blog-post__content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.related-links {
  margin: 48px 0;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.related-links h2 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li {
  margin-bottom: 8px;
}

.related-links a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.related-links a:hover {
  text-decoration: underline;
}

.blog-post__cta {
  text-align: center;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}

.blog-post__cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.blog-post__cta .store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-grid,
  .philosophy-grid,
  .journey-grid,
  .features-layout,
  .cta-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h1,
  .hero-sub {
    margin-inline: auto;
  }

  .hero-proof,
  .store-badges,
  .cta-right .store-badges {
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    margin-top: 24px;
  }

  .float-card--future { left: 0; top: 0; }
  .float-card--habit { right: 0; }
  .float-card--identity { left: 10%; }

  .philosophy-steps {
    max-width: 360px;
    margin-inline: auto;
  }

  .philosophy-step {
    text-align: left;
  }

  .journey-timeline,
  .journey-copy {
    max-width: 420px;
    margin-inline: auto;
  }

  .timeline-item {
    text-align: left;
  }

  .features-intro {
    text-align: left;
  }

  .feature-checklist li {
    justify-content: flex-start;
  }

  .cta-quote {
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .header-inner > .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-header.menu-open .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 101;
    background: var(--bg);
    padding: 32px 24px;
    gap: 20px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.menu-open .mobile-nav a {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
  }

  body.menu-open {
    overflow: hidden;
  }

  .stats-grid,
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .float-card {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── AI import funnel (/start, homepage teaser, /import) ── */

.import-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.import-funnel {
  max-width: 720px;
  margin: 0 auto;
}

.import-funnel--compact .import-title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
}

.import-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.import-title {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.import-sparkle {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.import-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

.import-input-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.import-textarea {
  width: 100%;
  min-height: 220px;
  border: 0;
  resize: vertical;
  padding: 20px 20px 12px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
}

.import-textarea:focus {
  outline: none;
}

.import-input-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
}

.import-example-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.import-char-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-import-analyze {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--gradient-brand);
  box-shadow: 0 8px 24px rgba(77, 93, 250, 0.28);
}

.btn-import-analyze:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.import-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.import-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.import-chip:hover,
.import-example-btn:hover {
  border-color: #c7d2fe;
  background: var(--blue-soft);
}

.import-trust {
  text-align: center;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.import-trust-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.import-error {
  margin-top: 14px;
  color: #dc2626;
  font-size: 0.95rem;
}

.import-error--prominent {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 1rem;
  line-height: 1.5;
}

.import-steps {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
}

.import-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
}

.import-step strong {
  display: block;
  margin-bottom: 2px;
}

.import-step span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.import-step-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.import-step-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.import-step-icon--pending {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  background: #fff;
}

.import-step-icon--done {
  border: 0;
  background: transparent;
}

.import-step-icon--active {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--purple);
  background: #fff;
  animation: import-spin 0.8s linear infinite;
}

.import-step--done {
  border-color: #d1fae5;
  background: #fafffe;
}

.import-step--active {
  border-color: #ddd6fe;
  background: #faf9ff;
}

@keyframes import-spin {
  to { transform: rotate(360deg); }
}

.import-wait-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  color: #5b4fc7;
  font-size: 0.95rem;
}

.import-results-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.import-link-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.import-results-grid {
  display: grid;
  gap: 14px;
}

.import-result-card {
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  border: 1px solid transparent;
}

.import-result-card h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.import-result-card--purple { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }
.import-result-card--green { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.import-result-card--blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.import-result-card--orange { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }

.import-card-list,
.import-routine-block ul {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--text);
}

.import-routine-block + .import-routine-block {
  margin-top: 12px;
}

.import-card-empty {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.import-results-actions {
  margin-top: 24px;
}

.btn-primary--large {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1rem;
}

.import-expiry-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.import-funnel--fallback {
  text-align: center;
}

.import-turnstile {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.import-continue-fallback {
  margin-top: 24px;
  text-align: center;
}

.import-continue-fallback[hidden] {
  display: none;
}

.import-continue-status {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
}

.import-continue-status[hidden] {
  display: none;
}

.import-copy-link {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.92rem;
}

.import-fallback-or {
  margin-top: 28px;
  margin-bottom: 12px;
}

.import-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.import-store-badges .store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 156px;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #0f0f0f;
  border: 1px solid #a6a6a6;
  color: #fff;
  text-decoration: none;
}

.import-store-badge-label {
  font-size: 0.65rem;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.import-store-badges .store-badge strong {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .import-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-funnel--compact .import-input-toolbar {
    flex-wrap: nowrap;
  }
}

/* ── Identity Quiz (/identity-quiz) ── */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 108, 240, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn-primary--arrow::after {
  content: "→";
  margin-left: 6px;
}

.page-quiz .hero h1 {
  max-width: 12ch;
}

.quiz-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 28px;
}

.quiz-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.quiz-meta-row svg {
  width: 16px;
  height: 16px;
  color: var(--purple);
  flex-shrink: 0;
}

.quiz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.quiz-float-card {
  animation: quiz-float 5s ease-in-out infinite;
}

.float-card--quiz-understand {
  top: 4%;
  left: -2%;
  animation-delay: 0s;
}

.float-card--quiz-action {
  top: 38%;
  right: -4%;
  animation-delay: 1.2s;
}

.float-card--quiz-insights {
  bottom: 8%;
  left: 2%;
  animation-delay: 2.4s;
}

@keyframes quiz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.quiz-phone-frame {
  width: min(100%, 280px);
}

.quiz-phone-screen {
  width: 100%;
  min-height: 520px;
  border-radius: 28px;
  background: #fff;
  padding: 22px 16px;
}

.quiz-phone-progress {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.quiz-phone-screen h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
}

.quiz-phone-options {
  display: grid;
  gap: 10px;
}

.quiz-phone-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-phone-option svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  color: var(--purple);
}

.quiz-phone-option.is-selected {
  border-color: rgba(124, 108, 240, 0.45);
  background: var(--purple-soft);
  color: var(--text);
}

.quiz-phone-option.is-selected svg {
  opacity: 1;
}

.quiz-section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.quiz-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.quiz-section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.quiz-flow {
  padding: 88px 0;
  background: var(--bg-soft);
}

.quiz-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quiz-flow-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quiz-flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 108, 240, 0.25);
}

.quiz-flow-card__step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.quiz-flow-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-flow-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.quiz-flow-preview {
  display: grid;
  gap: 8px;
}

.quiz-flow-chip {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.quiz-flow-chip.is-selected {
  border-color: rgba(124, 108, 240, 0.4);
  background: var(--purple-soft);
  color: var(--text);
}

.quiz-flow-chip.is-muted {
  background: #fff;
}

.quiz-flow-preview--slider span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.quiz-flow-slider {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  position: relative;
}

.quiz-flow-slider span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 68%;
  border-radius: inherit;
  background: var(--gradient-brand);
}

.quiz-flow-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.quiz-flow-preview--textarea {
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-results-section {
  padding: 96px 0;
  background: var(--bg);
}

.quiz-results-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.quiz-results-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.quiz-results-copy > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.quiz-results-visual {
  position: relative;
}

.quiz-results-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quiz-results-card__main,
.quiz-results-card__aside {
  padding: 24px;
}

.quiz-results-card__main {
  border-right: 1px solid var(--border);
}

.quiz-results-card h3,
.quiz-results-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.quiz-results-card__aside p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.quiz-result-rows {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.quiz-result-row__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.quiz-result-row__label strong {
  color: var(--purple);
}

.quiz-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.quiz-progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-brand);
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-neglected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fff7f8;
  border: 1px solid #fecdd3;
}

.quiz-neglected__icon {
  color: #fb7185;
  font-size: 1.1rem;
}

.quiz-neglected__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.quiz-insight-highlight {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  color: #5b21b6;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.quiz-habits {
  display: grid;
  gap: 10px;
}

.quiz-habits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.quiz-habit-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quiz-habit-icon svg {
  width: 12px;
  height: 12px;
}

.quiz-share-card {
  width: min(100%, 220px);
  margin-top: 18px;
  margin-left: auto;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.quiz-share-card--preview {
  position: absolute;
  right: -8px;
  bottom: -18px;
  margin: 0;
  transform: rotate(4deg);
}

.quiz-share-card__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.quiz-share-card__scores p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 2px;
}

.quiz-share-card__question {
  margin-top: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.quiz-share-card__url {
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.quiz-conversion {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(124, 108, 240, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef0ff 100%);
}

.quiz-conversion-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.quiz-conversion-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.quiz-conversion-copy > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 42ch;
}

.quiz-conversion-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Narrative results & share studio ── */

.quiz-narrative {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #faf9ff 0%, #ffffff 100%);
  border: 1px solid #e9e5ff;
  box-shadow: var(--shadow-md);
}

.quiz-narrative--preview {
  margin-bottom: 20px;
}

.quiz-narrative__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.quiz-narrative__headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.quiz-narrative__body,
.quiz-narrative__turn {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.quiz-narrative__chapter {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5b21b6;
  line-height: 1.5;
  margin-bottom: 8px;
}

.quiz-narrative__also {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.quiz-breakdown {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  overflow: hidden;
}

.quiz-breakdown summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.quiz-breakdown .quiz-results-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.quiz-share-studio {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.quiz-share-studio h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.quiz-share-studio__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.quiz-share-format-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-share-format-item {
  position: relative;
}

.quiz-share-format-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.quiz-share-format-btn.is-active {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

.quiz-share-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.quiz-share-popover[hidden] {
  display: none;
}

.quiz-share-popover button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  min-height: 44px;
}

.quiz-share-popover button:hover {
  background: var(--bg-soft);
}

.quiz-share-preview-main {
  width: 100%;
}

.quiz-share-preview__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f7f7fa;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  width: min(100%, 320px);
  margin-inline: auto;
}

.quiz-share-preview__frame--story,
.quiz-share-preview__frame--square {
  width: min(100%, 320px);
}

.quiz-share-preview__frame--landscape {
  width: min(100%, 420px);
}

.quiz-share-card-v2--export {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  box-sizing: border-box;
  overflow: hidden;
}

.quiz-share-card-v2--export.quiz-share-card-v2--story {
  padding: 64px;
  font-size: 28px;
  gap: 28px;
}

.quiz-share-card-v2--export.quiz-share-card-v2--square {
  padding: 56px;
  font-size: 26px;
  gap: 22px;
}

.quiz-share-card-v2--export.quiz-share-card-v2--landscape {
  padding: 48px;
  font-size: 22px;
  gap: 18px;
}

.quiz-share-card-v2--export .quiz-share-card-v2__neglected {
  grid-template-columns: 1fr;
}

.quiz-share-card-v2--export .quiz-share-card-v2__cta-copy {
  min-width: 0;
}

.quiz-share-card-v2--export .quiz-share-card-v2__opportunity,
.quiz-share-card-v2--export .quiz-share-card-v2__body,
.quiz-share-card-v2--export .quiz-share-card-v2__insight p {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.quiz-share-card-v2--export .quiz-share-card-v2__identity-head span:not(.quiz-share-card-v2__identity-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.quiz-share-card-v2 {
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f7fa;
  color: #0f172a;
  font-size: 0.52rem;
  line-height: 1.45;
  overflow: hidden;
}

.quiz-share-card-v2--square,
.quiz-share-card-v2--landscape {
  font-size: 0.46rem;
  gap: 8px;
}

.quiz-share-card-v2--preview {
  max-width: 320px;
  min-height: 420px;
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  font-size: 0.58rem;
}

.quiz-share-card-v2__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-share-card-v2__logo {
  width: 72px;
  height: auto;
}

.quiz-share-card-v2__brand {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7e62ff;
  margin: 0;
}

.quiz-share-card-v2__hero {
  display: grid;
  gap: 8px;
}

.quiz-share-card-v2__headline {
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.quiz-share-card-v2__gradient {
  background: linear-gradient(90deg, #7c3aed 0%, #4d5dfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiz-share-card-v2__body {
  color: #475569;
  margin: 0 0 8px;
}

.quiz-share-card-v2__insight {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(126, 98, 255, 0.08);
}

.quiz-share-card-v2__insight-icon {
  color: #7e62ff;
  font-size: 1.1em;
  line-height: 1;
  margin-top: 1px;
}

.quiz-share-card-v2__insight p {
  margin: 0;
  color: #334155;
}

.quiz-share-card-v2__insight strong {
  color: #5b21b6;
}

.quiz-share-card-v2__top {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.quiz-share-card-v2__top h3 {
  font-size: 0.95em;
  font-weight: 700;
  margin: 0 0 8px;
}

.quiz-share-card-v2__identity-list {
  display: grid;
  gap: 8px;
}

.quiz-share-card-v2__identity {
  padding: 0;
  border: 0;
  background: transparent;
}

.quiz-share-card-v2__identity-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 6px;
}

.quiz-share-card-v2__identity-head strong {
  margin-left: auto;
  color: #64748b;
  font-size: 0.92em;
}

.quiz-share-card-v2__identity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quiz-share-card-v2__identity-bar {
  height: 5px;
  border-radius: 999px;
  background: #e8eaf0;
  overflow: hidden;
}

.quiz-share-card-v2__identity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.quiz-share-card-v2__neglected {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(126, 98, 255, 0.08);
}

.quiz-share-card-v2__neglected-score {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quiz-share-card-v2__neglected-score span {
  display: block;
  font-size: 0.75em;
  color: #64748b;
  font-weight: 600;
}

.quiz-share-card-v2__neglected-score strong {
  display: block;
  color: #0f172a;
  font-size: 1em;
}

.quiz-share-card-v2__neglected-score em {
  font-style: normal;
  font-size: 1.35em;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.quiz-share-card-v2__opportunity {
  margin: 0;
  color: #475569;
  font-size: 0.88em;
}

.quiz-share-card-v2__opportunity strong {
  color: #0f172a;
}

.quiz-share-card-v2__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.quiz-share-card-v2__cta-title {
  margin: 0;
  font-weight: 700;
  font-size: 1em;
}

.quiz-share-card-v2__cta-url {
  margin: 2px 0 0;
  color: #7e62ff;
  font-weight: 600;
  font-size: 0.82em;
}

.quiz-share-card-v2__cta-sub {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 0.75em;
}

.quiz-share-card-v2__qr {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.quiz-share-card-v2__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quiz-share-card-v2__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.72em;
  font-weight: 500;
  margin-top: auto;
}

.quiz-share-card-v2__pills span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: #cbd5e1;
}

.quiz-results-actions--stacked {
  flex-direction: column;
  align-items: stretch;
  margin-top: 20px;
}

.quiz-results-actions--stacked .btn-primary,
.quiz-results-actions--stacked .btn-secondary {
  width: 100%;
  justify-content: center;
}

.btn-secondary--small {
  padding: 8px 14px;
  font-size: 0.8125rem;
  width: 100%;
}

.quiz-who-banner {
  padding: 16px 0;
  background: linear-gradient(90deg, #eef0ff 0%, #faf5ff 100%);
  border-bottom: 1px solid var(--border);
}

.quiz-who-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.quiz-who-banner__inner p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.quiz-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: quiz-reveal 400ms ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes quiz-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

.quiz-root[hidden] {
  display: none;
}

body.quiz-open {
  overflow: hidden;
}

.quiz-panel {
  width: min(100%, 720px);
  max-height: min(94vh, 920px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.quiz-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

.quiz-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.quiz-progress-meta {
  flex: 1;
  display: grid;
  gap: 8px;
}

.quiz-progress-meta span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-progress--header {
  height: 6px;
}

.quiz-panel__body {
  padding: 20px 20px 8px;
}

.quiz-step-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.quiz-step-hint {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.quiz-option svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  color: var(--purple);
  flex-shrink: 0;
}

.quiz-option.is-selected {
  border-color: rgba(124, 108, 240, 0.45);
  background: var(--purple-soft);
}

.quiz-option.is-selected svg {
  opacity: 1;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 108, 240, 0.3);
}

.quiz-sliders {
  display: grid;
  gap: 18px;
}

.quiz-sliders--full {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 4px;
}

.quiz-panel__body:has(.quiz-sliders--full) {
  padding-bottom: 8px;
}

.quiz-slider__text {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.quiz-slider input[type="range"] {
  width: 100%;
  accent-color: var(--purple);
}

.quiz-slider__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quiz-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 140px;
}

.quiz-textarea:focus {
  outline: none;
  border-color: rgba(124, 108, 240, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 108, 240, 0.12);
}

.quiz-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.quiz-complete__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.quiz-results-card--live {
  grid-template-columns: 1fr;
}

.quiz-results-card--live .quiz-results-card__main {
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.quiz-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.quiz-open-error {
  width: 100%;
  margin: 0;
}

.quiz-continue-status {
  width: 100%;
  margin: 12px 0 0;
  text-align: left;
}

.quiz-continue-fallback {
  margin-top: 16px;
  text-align: left;
}

.quiz-expiry-note {
  margin-top: 14px;
  text-align: left;
}

.quiz-plan-banner {
  padding: 16px 0;
  background: linear-gradient(180deg, #eef0ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.quiz-plan-banner__inner {
  display: grid;
  gap: 12px;
}

.quiz-plan-banner__inner > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.quiz-conversion-copy .quiz-continue-fallback,
.quiz-conversion-copy .quiz-continue-status,
.quiz-conversion-copy .quiz-expiry-note {
  max-width: 42ch;
}

@media (max-width: 1024px) {
  .quiz-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-results-grid,
  .quiz-conversion-grid {
    grid-template-columns: 1fr;
  }

  .quiz-results-copy {
    text-align: center;
  }

  .quiz-results-copy .feature-checklist {
    max-width: 360px;
    margin-inline: auto;
    text-align: left;
  }

  .quiz-share-card--preview {
    position: static;
    transform: none;
    margin: 18px auto 0;
  }

  .quiz-conversion-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .quiz-conversion-copy {
    text-align: center;
  }

  .quiz-conversion-copy > p,
  .quiz-hero-actions {
    margin-inline: auto;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .quiz-flow-grid {
    grid-template-columns: 1fr;
  }

  .quiz-results-card {
    grid-template-columns: 1fr;
  }

  .quiz-results-card__main {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .quiz-meta-row {
    flex-direction: column;
    gap: 10px;
  }

  .quiz-float-card {
    display: none;
  }

  .page-quiz .header-inner > .btn-primary {
    display: none;
  }

  .quiz-share-preview__frame--story,
  .quiz-share-preview__frame--square {
    width: min(100%, 280px);
  }

  .quiz-share-preview__frame--landscape {
    width: min(100%, 340px);
  }

  .quiz-share-card-v2__neglected {
    grid-template-columns: 1fr;
  }

  .quiz-share-popover {
    left: 50%;
    transform: translateX(-50%);
  }

  .quiz-root {
    padding: 12px 10px;
  }

  .quiz-panel {
    border-radius: var(--radius-lg);
  }

  .quiz-narrative {
    padding: 20px 18px;
  }
}

/* ── Identity SEO pages ── */

.page-identity .identity-hero .landing-hero-grid,
.page-combination .identity-hero .landing-hero-grid,
.page-guide .landing-hero-grid {
  grid-template-columns: 1fr;
}

.identity-content h2 {
  margin-top: 2rem;
}

.identity-content h2:first-child {
  margin-top: 0;
}

.identity-neglected-heading {
  color: var(--text);
  padding-top: 0.5rem;
  border-top: 2px solid rgba(124, 108, 240, 0.2);
}

.identity-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.identity-comparison__col h2 a {
  color: inherit;
  text-decoration: none;
}

.identity-comparison__col h2 a:hover {
  color: var(--accent);
}

.identity-also-watch {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft, #fafafa);
}

.identity-also-watch summary {
  cursor: pointer;
  font-weight: 600;
}

.identity-cta .landing-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.quiz-identity-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(124, 108, 240, 0.45);
  text-underline-offset: 2px;
}

.quiz-identity-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .identity-comparison {
    grid-template-columns: 1fr;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-badges--secondary {
  margin-top: 16px;
}

.landing-cta-actions {
  justify-content: center;
}

.landing-inline-cta {
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.08), rgba(124, 108, 240, 0.02));
  border-top: 1px solid rgba(124, 108, 240, 0.12);
  border-bottom: 1px solid rgba(124, 108, 240, 0.12);
}

.landing-inline-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-inline-cta-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  max-width: 36ch;
}

.landing-disclaimer {
  padding-top: 0;
}

.landing-disclaimer-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin: 0;
}

.page-landing--longform .landing-section .legal-content p {
  line-height: 1.7;
}

.page-landing--longform .landing-section .legal-content h2 {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .landing-inline-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero-proof-list {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.hero-proof-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.timeline-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pack-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pack-preview-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.pack-preview-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.schedule-table th {
  background: var(--bg-soft);
  font-weight: 600;
}

.pack-preview-card ul {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--text-secondary);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.challenge-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.challenge-card:hover {
  border-color: var(--accent);
}

.challenge-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.challenge-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.challenges .section-intro {
  color: var(--text-secondary);
  max-width: 42rem;
  margin-top: 8px;
}
