@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #f2eee7;
  --card: #ffffff;
  --text: #111111;
  --muted: #6f6a63;
  --gold: #bd9364;
  --navy: #203754;
  --coral: #7657ff;
  --coral-soft: #ece7ff;
  --rose-ink: #303030;
  --border: #e4ddd2;
  --blush: #f0ece5;
  --ink-soft: #242424;
  --shadow: 0 22px 60px rgba(25, 20, 14, 0.08);
  --font-sans: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-display: 'Helios Extended', 'HeliosExt', 'Arial Black', 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --hero-purple: #A855F7;
  --hero-cyan: #7DD3FC;
  --hero-gradient: linear-gradient(135deg, var(--hero-purple) 0%, var(--hero-cyan) 100%);
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(249,247,242,0.96), rgba(242,238,231,0.88) 46%, rgba(231,222,209,0.52)),
    radial-gradient(circle at 78% 14%, rgba(189, 147, 100, 0.12), transparent 30%),
    radial-gradient(circle at 16% 20%, rgba(32, 55, 84, 0.07), transparent 26%),
    var(--bg);
}

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

.app { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(232, 222, 210, 0.72);
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark, .nav-links button, .ghost-btn, .icon-btn {
  border: 0;
  background: transparent;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon, .feature-card > span, .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
}

.logo-symbol {
  display: inline-block;
  width: 72%;
  aspect-ratio: 1;
  background: url('./marketeam-mark.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(109,40,255,0.45));
}

.brand-mark span:last-child {
  font-family: var(--font-sans);
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

.mobile-auth-links {
  display: none;
}

.nav-links button, .sidebar button {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links button.active, .nav-links button:hover {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(30, 30, 30, 0.06);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.user-pill {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  padding: 10px 13px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn, .secondary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--text), #3a2c27);
  color: #fff;
  box-shadow: 0 18px 34px rgba(30, 30, 30, 0.12);
}

.secondary-btn {
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border-color: var(--border);
}

.ghost-btn { border-color: transparent; color: var(--muted); }
.small { min-height: 38px; padding-inline: 15px; }
.full { width: 100%; margin-top: 18px; }
.centered { margin: 26px auto 0; display: flex; width: fit-content; }
.mobile-menu { display: none; }
.mobile-menu-mark,
.mobile-menu-label {
  display: none;
}
.glyph { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding: clamp(62px, 8vw, 112px) clamp(20px, 6vw, 88px) 46px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.accent-script {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0;
  padding: 0 0.05em 0 0.16em;
  isolation: isolate;
}

.accent-script::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.08em;
  bottom: 0.1em;
  width: 0.055em;
  z-index: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0.095em 0 0 rgba(30, 30, 30, 0.16),
    0.19em 0 0 rgba(176, 141, 87, 0.22);
}

.accent-script::after {
  content: '';
  position: absolute;
  left: 0.16em;
  right: 0.02em;
  bottom: 0.02em;
  height: 0.09em;
  z-index: -1;
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.18);
}

.soft-accent {
  color: var(--rose-ink);
}

mark {
  padding: 0 0.18em;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent 52%, rgba(243, 215, 202, 0.9) 52%);
  color: var(--text);
}

.hero h1,
.hero-title {
  max-width: 880px;
  font-weight: 800;
  font-size: clamp(3.55rem, 8vw, 7.8rem);
  line-height: 0.9;
}

.hero h1 .accent-script,
.hero-title .accent-script {
  display: inline-flex;
  font-size: 0.94em;
  line-height: 1;
  text-wrap: balance;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 610px;
  margin: 28px 0;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin-top: 34px;
}

.hero-stats div {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 12%, rgba(243, 215, 202, 0.86), transparent 36%),
    rgba(255,255,255,0.76);
  box-shadow: 0 18px 48px rgba(74, 55, 38, 0.08);
}

.hero-stats strong,
.stat-number {
  color: var(--rose-ink);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 900;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-stats span {
  max-width: 190px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-product { min-height: 530px; display: flex; align-items: center; }

.hero-stage {
  position: relative;
  width: 100%;
}

.glass-card, .card, .feature-card, .testimonial-card, .plan-card, .auth-card, .auth-aside, .library-card, .generated-card, .calendar-cell {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
}

.hero-console {
  width: 100%;
  border-radius: 28px;
  padding: 20px;
  transform: rotate(1.5deg);
}

.console-top, .library-card div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.content-preview {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 10%, rgba(243, 215, 202, 0.9), transparent 34%),
    linear-gradient(140deg, #fff, #fbf2e9);
  border: 1px solid var(--border);
}

.content-preview.large { min-height: 270px; display: flex; flex-direction: column; justify-content: end; }
.content-preview h3 { font-size: 2rem; line-height: 1.05; }
.content-preview p { color: var(--muted); line-height: 1.6; }
.label { color: var(--gold); text-transform: uppercase; font-size: 0.72rem; font-weight: 800; margin: 0 0 10px; }

.floating-note {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: min(250px, 56%);
  padding: 16px 18px;
  border: 1px solid rgba(232, 222, 210, 0.9);
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 50px rgba(74, 55, 38, 0.14);
  backdrop-filter: blur(14px);
}

.floating-note span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-note strong {
  line-height: 1.25;
}

.top-note {
  top: -28px;
  right: -12px;
}

.bottom-note {
  left: -22px;
  bottom: -34px;
}

.strategy-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.strategy-strip span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--rose-ink);
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-grid, .metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.metric {
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
}

.metric span { display: block; color: var(--muted); font-size: 0.84rem; }
.metric strong { display: block; margin-top: 8px; font-size: 1.7rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

.section {
  padding: 54px clamp(20px, 6vw, 88px);
}

.intro-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.intro-strip span, .pill-wrap span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  padding: 10px 15px;
}

.conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 28px;
  align-items: end;
  margin: 10px clamp(20px, 6vw, 88px);
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--text);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 120, 92, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(30, 30, 30, 0.96), rgba(62, 53, 45, 0.96)),
    var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

.conversion-band h2 {
  max-width: 900px;
  font-size: clamp(2.15rem, 4.6vw, 5rem);
  line-height: 0.96;
}

.conversion-band p:last-child {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}

.conversion-band .eyebrow {
  color: #f0b89f;
}

.conversion-band .accent-script,
.cta-section .accent-script {
  color: #fff;
}

.conversion-band .accent-script::before,
.cta-section .accent-script::before {
  background: currentColor;
  box-shadow:
    0.095em 0 0 rgba(255,255,255,0.2),
    0.19em 0 0 rgba(255,255,255,0.12);
}

.conversion-band .accent-script::after,
.cta-section .accent-script::after {
  background: rgba(255,255,255,0.18);
}

.section-header {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-header h2, .cta-section h2 {
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.98;
}

.section-header .accent-script,
.cta-section .accent-script {
  display: inline-block;
  font-size: 0.92em;
}

.section-copy {
  max-width: 530px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

.feature-grid, .testimonial-grid, .pricing-grid, .library-grid, .outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card, .testimonial-card, .plan-card, .library-card, .outcome-card {
  border-radius: 24px;
  padding: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 120, 92, 0.22), transparent 68%);
}

.outcome-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outcome-card {
  min-height: 260px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 215, 202, 0.76), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(244,236,227,0.72)),
    #fff;
  box-shadow: var(--shadow);
}

.outcome-card h3 {
  margin-top: 54px;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.outcome-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.feature-card h3, .library-card h3, .plan-card h3 { font-size: 1.65rem; margin-top: 18px; }
.feature-card p, .testimonial-card p, .plan-card p, .auth-aside p { color: var(--muted); line-height: 1.7; }

.split-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: center;
  gap: 34px;
}

.dashboard-mini {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-sidebar { background: #f4ece3; border-right: 1px solid var(--border); }
.mini-main { padding: 28px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.mini-main span, .mini-main div { border-radius: 20px; background: linear-gradient(135deg, #faf7f2, #ead7cf); border: 1px solid var(--border); }
.mini-main span { grid-column: 1 / -1; }

.workflow-panel {
  display: grid;
  gap: 14px;
}

.workflow-panel article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 48px rgba(74, 55, 38, 0.08);
}

.workflow-panel article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--rose-ink));
  color: #fff;
  font-weight: 900;
}

.workflow-panel h3 {
  font-size: 1.45rem;
}

.workflow-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card strong { display: block; margin-top: 20px; }
.testimonial-card span { color: var(--muted); font-size: 0.9rem; }

.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card.featured { background: var(--text); color: #fff; border-color: var(--text); transform: translateY(-10px); }
.plan-card.featured p, .plan-card.featured .checkline { color: rgba(255,255,255,0.78); }
.price { font-family: var(--font-sans); font-size: 3.2rem; font-weight: 800; letter-spacing: 0; margin: 16px 0; }
.price span { font-family: var(--font-sans); color: var(--muted); font-size: 1rem; letter-spacing: 0; }
.featured .price span { color: rgba(255,255,255,0.64); }
.checkline { display: flex; align-items: center; gap: 8px; margin: 12px 0; }

.cta-section {
  margin: 50px clamp(20px, 6vw, 88px) 78px;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 30px;
  background: linear-gradient(135deg, #1e1e1e, #3a322a);
  color: #fff;
  text-align: center;
}
.cta-section .primary-btn { background: #fff; color: var(--text); margin-top: 26px; }
.compact { margin-top: 28px; }

.auth-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) 1.12fr;
  gap: 22px;
  padding: clamp(28px, 7vw, 86px);
}

.auth-card, .auth-aside { border-radius: 28px; padding: clamp(28px, 5vw, 54px); }
.auth-card h1, .auth-aside h2 { font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: 0.98; }
.auth-aside { display: flex; flex-direction: column; justify-content: end; min-height: 560px; background: linear-gradient(145deg, #fff, #f1e7dc); }

.auth-card .accent-script,
.auth-aside .accent-script {
  display: inline-block;
  font-size: 0.92em;
}

.form-stack { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}
textarea { min-height: 132px; resize: vertical; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-ghost {
  width: 100%;
  border-color: var(--border);
  background: rgba(255,255,255,0.56);
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-switch {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.auth-switch:hover {
  color: #fff;
}

.connection-pill, .form-message {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

.connection-pill.connected {
  color: #3d6b42;
  border-color: rgba(61, 107, 66, 0.24);
  background: rgba(61, 107, 66, 0.08);
}

.form-message {
  border-radius: 16px;
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 20px;
  padding: 22px clamp(16px, 3vw, 34px) 34px;
}

.sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 118px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255,255,255,0.74);
  padding: 16px;
  box-shadow: var(--shadow);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 20px;
}
.sidebar-profile small { display: block; color: var(--muted); margin-top: 3px; }
.sidebar button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  margin: 4px 0;
  border-radius: 16px;
}
.sidebar button.active, .sidebar button:hover { background: #fff; color: var(--text); box-shadow: 0 10px 24px rgba(30,30,30,0.06); }

.workspace-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255,255,255,0.52);
  padding: clamp(18px, 3vw, 34px);
}

.workspace-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.workspace-header h1 { font-size: clamp(2.2rem, 4.2vw, 4.3rem); line-height: 0.98; max-width: 850px; }
.metrics-row { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }

.workspace-header .accent-script,
.focus-banner .accent-script {
  display: inline-block;
  font-size: 0.92em;
}

.focus-banner, .prompt-guide {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(243, 215, 202, 0.8), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(235, 223, 211, 0.72)),
    #fff;
  box-shadow: 0 18px 48px rgba(74, 55, 38, 0.08);
}

.focus-banner h2 {
  max-width: 720px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.focus-banner > span, .prompt-guide strong {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.6;
}

.next-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.next-actions button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,0.84);
  color: var(--text);
  box-shadow: 0 14px 38px rgba(74, 55, 38, 0.07);
  transition: 0.2s ease;
}

.next-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(74, 55, 38, 0.1);
}

.next-actions span {
  width: fit-content;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
}

.next-actions strong {
  font-size: 1.12rem;
}

.next-actions small {
  color: var(--muted);
  line-height: 1.45;
}

.prompt-guide .accent-script {
  font-size: 0.92em;
}

.prompt-guide {
  align-items: center;
}

.prompt-guide > span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.dashboard-grid, .onboarding-grid, .generator-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}
.dashboard-grid .card:first-child { grid-row: span 2; }

.chat-workspace {
  display: grid;
  grid-template-rows: auto minmax(420px, 1fr) auto auto;
  gap: 16px;
  min-height: calc(100vh - 150px);
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chat-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(185,140,255,0.32);
  border-radius: 999px;
  background: rgba(185,140,255,0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  border: 1px solid rgba(185,140,255,0.18);
  border-radius: 26px;
  padding: clamp(16px, 3vw, 28px);
  background:
    radial-gradient(circle at 80% 0, rgba(185,140,255,0.13), transparent 28%),
    rgba(255,255,255,0.045);
}

.chat-bubble {
  max-width: min(760px, 92%);
  border: 1px solid rgba(185,140,255,0.16);
  border-radius: 22px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
}

.chat-bubble.user {
  align-self: flex-end;
  border-color: rgba(185,140,255,0.38);
  background: rgba(185,140,255,0.16);
}

.chat-bubble.assistant {
  align-self: flex-start;
}

.chat-bubble p {
  margin: 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.65;
  white-space: pre-wrap;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.chat-composer textarea {
  min-height: 76px;
  max-height: 180px;
  resize: vertical;
}
.card {
  border-radius: 24px;
  padding: 22px;
}
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-title h2 { font-size: 1.35rem; }

.chart-bars {
  height: 300px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
}
.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, var(--gold), #ead7cf);
}

.week-list { display: grid; gap: 10px; }
.week-list span {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
}
.week-list em { font-style: normal; color: var(--gold); font-weight: 800; }

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preview-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--coral);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.onboarding-grid { grid-template-columns: 1fr 1fr; }
.pill-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.generator-layout { align-items: start; }
.generated-stack { display: grid; gap: 14px; }
.generated-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  border-radius: 22px;
  padding: 20px;
}
.generated-card p:last-child { margin: 0; color: var(--text); line-height: 1.7; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* ── Calendar week view ── */
.cal-add-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cal-add-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.format-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.format-pill:hover { border-color: var(--gold); }
.format-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
}
.cal-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cal-add-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg, var(--bg));
  color: var(--text);
  font-size: 14px;
}
.cal-add-input:focus { outline: none; border-color: var(--gold); }

.cal-week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-week-label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.15s;
}
.icon-btn:hover { border-color: var(--gold); }

.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.cal-day {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s;
}
.cal-day.today { border-color: var(--gold); }
.cal-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cal-day-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cal-day-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.cal-day-num.today-num { color: var(--gold); }
.cal-day-posts {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-post-chip {
  background: var(--chip-bg, rgba(200,160,80,0.12));
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cal-chip-format {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.cal-chip-idea {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.cal-add-day-btn {
  margin-top: auto;
  align-self: flex-end;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-add-day-btn:hover { border-color: var(--gold); color: var(--gold); }

.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.search input { border: 0; padding: 0; }
.library-grid { grid-template-columns: repeat(4, 1fr); }
.library-card div { margin-top: 26px; }
.library-card div span { color: var(--muted); }
.library-card div strong { color: var(--gold); }
.library-preview {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pricing-page { padding: clamp(38px, 7vw, 86px); }

/* Product-led UX refresh */
.topbar {
  padding: 18px clamp(20px, 3vw, 40px);
  background: rgba(246, 243, 237, 0.88);
}

.brand-icon, .feature-card > span, .avatar, .preview-logo {
  border-radius: 10px;
}

.brand-mark span:last-child {
  font-size: 1.15rem;
}

.nav-links button, .sidebar button {
  border-radius: 10px;
  font-size: 0.9rem;
}

.primary-btn, .secondary-btn, .ghost-btn {
  border-radius: 10px;
  min-height: 42px;
  font-size: 0.92rem;
}

.primary-btn {
  background: #111;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
}

.secondary-btn {
  background: rgba(255,255,255,0.72);
}

.hero {
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(360px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(58px, 7vw, 94px) clamp(20px, 3vw, 40px) 42px;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(3.1rem, 6.1vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 26px 0 24px;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.6;
}

mark {
  border-radius: 4px;
  background: rgba(118, 87, 255, 0.1);
}

.trusted-strip {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trusted-strip div {
  display: flex;
  align-items: center;
  gap: 0;
}

.trusted-strip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.trusted-strip strong {
  margin-left: 14px;
  color: var(--text);
}

.hero-product {
  min-height: 0;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow);
}

.dashboard-preview aside {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(251,250,247,0.78);
}

.preview-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  background: var(--text);
  color: #fff;
  font-weight: 900;
}

.dashboard-preview aside b {
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-preview aside b.active {
  background: #f0ece5;
  color: var(--text);
}

.dashboard-preview section {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.preview-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.preview-top h3 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-preview .metric {
  min-height: 104px;
  padding: 15px;
  border-radius: 14px;
}

.dashboard-preview .metric strong {
  font-size: 1.55rem;
}

.roadmap-card,
.preview-bottom > div,
.feature-strip article,
.ux-card,
.flow-section,
.responsive-section,
.device {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 14px 38px rgba(25,20,14,0.05);
}

.roadmap-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 16px;
}

.roadmap-card > div:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

.roadmap-card strong {
  color: var(--text);
}

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.roadmap-line span {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.roadmap-line i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: #fff;
}

.roadmap-tasks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.roadmap-tasks p,
.preview-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.preview-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-bottom > div {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border-radius: 16px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 42px;
}

.feature-strip article {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 176px;
  padding: 28px 20px;
  border-radius: 16px;
  text-align: center;
}

.feature-strip span {
  font-size: 1.35rem;
}

.feature-strip h3 {
  font-size: 1rem;
}

.feature-strip p,
.ux-copy p,
.ux-card p,
.impact-section p,
.impact-grid p,
.transformation-section p,
.flow-section p,
.responsive-section p,
.mobile-actions button {
  color: var(--muted);
  line-height: 1.55;
}

.impact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 22px;
  align-items: stretch;
  margin: 18px clamp(20px, 3vw, 40px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #111;
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(118, 87, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #111, #24211d);
  color: #fff;
  box-shadow: var(--shadow);
}

.impact-section .eyebrow,
.impact-section p {
  color: rgba(255,255,255,0.72);
}

.impact-section h2 {
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 5.8rem);
  line-height: 0.96;
}

.impact-section > div:first-child > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.02rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.impact-grid article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
}

.impact-grid h3 {
  color: #fff;
  font-size: 1.3rem;
}

.impact-grid p {
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.transformation-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.transformation-section article {
  min-height: 360px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(241,236,228,0.74)),
    #fff;
  box-shadow: 0 14px 38px rgba(25,20,14,0.05);
}

.transformation-section article:last-child {
  background:
    radial-gradient(circle at 84% 18%, rgba(111, 159, 140, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(236,247,242,0.72)),
    #fff;
}

.transformation-section h2 {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1;
}

.transformation-section p:last-child {
  max-width: 580px;
  margin-top: 24px;
  font-size: 1.02rem;
}

.ux-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.ux-copy h2,
.flow-section h2,
.responsive-section h2 {
  font-size: clamp(2rem, 3.8vw, 4.4rem);
  line-height: 1;
  max-width: 760px;
}

.ux-copy p:last-child {
  max-width: 390px;
}

.ux-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ux-card {
  display: grid;
  align-content: space-between;
  min-height: 245px;
  padding: 22px;
  border-radius: 16px;
}

.ux-card span,
.flow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.ux-card h3 {
  margin-top: 46px;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.flow-section,
.responsive-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 24px;
  margin: 20px clamp(20px, 3vw, 40px);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 18px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.flow-steps article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.flow-steps article:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 8px;
  right: -12px;
  color: var(--muted);
}

.flow-steps h3 {
  font-size: 0.95rem;
}

.device-preview {
  position: relative;
  min-height: 440px;
}

.device {
  border-radius: 18px;
}

.device.laptop {
  width: 78%;
  overflow: hidden;
  border: 10px solid #111;
  border-bottom-width: 18px;
  background: #fff;
}

.compact-preview {
  min-height: 360px;
  grid-template-columns: 118px 1fr;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  transform: scale(0.84);
  transform-origin: top left;
}

.compact-preview .preview-bottom,
.compact-preview .roadmap-tasks {
  display: none;
}

.device.phone {
  position: absolute;
  right: 3%;
  top: 34px;
  display: grid;
  gap: 14px;
  width: min(260px, 38%);
  min-height: 390px;
  padding: 18px;
  border: 8px solid #111;
  background: #fff;
}

.device.phone h3 {
  font-size: 1.25rem;
}

.mobile-actions {
  display: grid;
  gap: 8px;
}

.mobile-actions button {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  text-align: left;
  padding: 0 12px;
}

.glass-card, .card, .feature-card, .testimonial-card, .plan-card, .auth-card, .auth-aside, .library-card, .generated-card, .calendar-cell {
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .hero, .split-section, .auth-page, .workspace, .dashboard-grid, .generator-layout, .conversion-band, .impact-section, .transformation-section, .ux-section, .flow-section, .responsive-section {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-product { min-height: auto; }
  .feature-grid, .library-grid, .outcome-grid, .feature-strip, .ux-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
  .sidebar-profile { grid-column: 1 / -1; }
  .cal-week-grid { grid-template-columns: repeat(4, 1fr); }
  .top-note { right: 8px; }
  .bottom-note { left: 8px; }
}

@media (max-width: 760px) {
  .topbar { padding: 14px 16px; }
  .nav-links {
    display: none;
    position: absolute;
    inset: calc(100% + 10px) 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(185,140,255,0.32);
    border-radius: 24px;
    background:
      radial-gradient(circle at 86% 0, rgba(185,140,255,0.2), transparent 34%),
      rgba(5,5,7,0.98);
    box-shadow: 0 24px 80px rgba(0,0,0,0.52);
    backdrop-filter: blur(18px);
  }
  .nav-links.open { display: flex; }
  .topbar .nav-links.open,
  .dark-topbar .nav-links.open {
    display: flex;
  }
  .nav-links button {
    justify-content: flex-start;
    min-height: 50px;
    border: 1px solid rgba(185,140,255,0.2);
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.82);
    text-align: left;
  }
  .nav-links button.active,
  .nav-links button:hover {
    border-color: rgba(185,140,255,0.54);
    background: rgba(185,140,255,0.14);
    color: #fff;
    box-shadow: none;
  }
  .mobile-auth-links {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(185,140,255,0.22);
  }
  .mobile-auth-links button {
    width: 100%;
    justify-content: center;
    font-weight: 900;
  }
  .mobile-nav-cta {
    border-color: rgba(185,140,255,0.74) !important;
    background:
      radial-gradient(circle at 88% 50%, rgba(190,136,255,0.9), transparent 24%),
      linear-gradient(90deg, #12051f, #7b31ff) !important;
    color: #fff !important;
  }
  .mobile-nav-link {
    color: rgba(255,255,255,0.76) !important;
  }
  .nav-actions .ghost-btn, .nav-actions .primary-btn { display: none; }
  .mobile-menu { display: inline-flex; }
  .hero { padding: 42px 16px 28px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.75rem); }
  .hero-actions, .workspace-header, .library-toolbar { flex-direction: column; align-items: stretch; }
  .primary-btn, .secondary-btn { width: 100%; }
  .hero-stats, .mini-grid, .metrics-row, .feature-grid, .testimonial-grid, .pricing-grid, .onboarding-grid, .library-grid, .outcome-grid, .feature-strip, .ux-grid, .preview-metrics, .preview-bottom, .roadmap-tasks {
    grid-template-columns: 1fr;
  }
  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dashboard-preview aside {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .preview-logo { flex: 0 0 auto; margin: 0 10px 0 0; }
  .roadmap-line { grid-template-columns: repeat(4, minmax(92px, 1fr)); overflow-x: auto; }
  .impact-section, .flow-section, .responsive-section { margin: 16px; padding: 20px; }
  .flow-steps { grid-template-columns: 1fr; overflow: visible; }
  .flow-steps article:not(:last-child)::after { display: none; }
  .device-preview { min-height: auto; display: grid; gap: 16px; }
  .device.laptop { width: 100%; }
  .compact-preview { transform: none; min-height: auto; grid-template-columns: 1fr; }
  .device.phone { position: static; width: 100%; min-height: auto; }
  .next-actions { grid-template-columns: 1fr; }
  .hero-stats div { min-height: 118px; }
  .chat-header { display: grid; }
  .chat-panel {
    min-height: 200px;
    max-height: calc(100dvh - 64px - 68px - 220px);
    border-radius: 16px;
  }
  .chat-workspace {
    min-height: unset;
    grid-template-rows: auto minmax(160px, 1fr) auto auto;
  }
  .chat-composer { grid-template-columns: 1fr; }
  .chat-composer .primary-btn { width: 100%; }
  .chat-header h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .floating-note { position: static; width: 100%; margin: 12px 0; }
  .strategy-strip { grid-template-columns: repeat(2, 1fr); }
  .workflow-panel article { grid-template-columns: 1fr; }
  .focus-banner, .prompt-guide { flex-direction: column; align-items: stretch; }
  .dashboard-mini { grid-template-columns: 78px 1fr; }
  .hero-console { transform: none; }

  /* ── App workspace: bottom-nav layout ── */
  .sidebar { display: none; }
  .mobile-bottom-nav { display: flex; }

  .workspace {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    min-height: calc(100dvh - 64px);
  }
  .workspace-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 18px 16px 100px;
    min-height: calc(100dvh - 64px - 68px);
    overflow-y: auto;
  }
  .workspace-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
  }
  .workspace-header h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .workspace-header .primary-btn { width: 100%; }

  /* Calendar: horizontal scroll strip on mobile */
  .cal-week-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .cal-day {
    flex: 0 0 calc(100vw * 0.38);
    min-width: 130px;
    scroll-snap-align: start;
  }
  .cal-add-row { flex-direction: column; }
  .cal-add-input { min-width: 0; width: 100%; }

  /* Touch targets */
  .primary-btn, .secondary-btn, .ghost-btn { min-height: 48px; }
  .format-pill { min-height: 44px; padding: 10px 16px; }
  .cal-add-day-btn { width: 32px; height: 32px; font-size: 18px; }
  .icon-btn { width: 44px; height: 44px; }

  /* Library: single column on mobile */
  .library-grid { grid-template-columns: 1fr; }
  .library-card h3 { font-size: 1.1rem; margin-top: 10px; }

  /* Generator: single column */
  .generator-layout { grid-template-columns: 1fr; }
  .generated-stack { margin-top: 0; }

  /* Onboarding: single column */
  .onboarding-grid { grid-template-columns: 1fr; }

  /* ── iOS Safari: prevent auto-zoom on inputs (must be >= 16px) ── */
  input, textarea, select { font-size: 1rem; }

  /* ── Topbar on app pages: compact, hide email, simplify ── */
  header:has(+ .workspace) { padding: 8px 16px; }
  header:has(+ .workspace) .brand-mark span:last-child { display: none; }
  .nav-actions .user-pill { display: none; }

  /* ── Auth page on mobile ── */
  .auth-aside { display: none; }
  .auth-page { grid-template-columns: 1fr; padding: 20px 16px 100px; }
  .auth-field-grid { grid-template-columns: 1fr; }
  .auth-card h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  /* ── Calendar week label: prevent overflow on small screens ── */
  .cal-week-label { font-size: 11px; letter-spacing: 0; }
  .cal-week-nav { gap: 6px; }

  /* ── Pricing cards: smaller padding on mobile ── */
  .pricing-page { padding: 20px 16px 100px; }
  .plan-card { padding: 22px 18px; }
}

/* ── Mobile bottom nav (hidden on desktop) ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  gap: 0;
  align-items: stretch;
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  min-height: 56px;
}
.mobile-nav-item.active {
  color: var(--gold);
  background: rgba(200,160,60,0.08);
}
.mobile-nav-icon {
  font-size: 20px;
  line-height: 1;
}
.mobile-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* MarkeTeam OS product refresh */
.product-page {
  color: #171614;
}

.product-hero {
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(420px, 0.94fr) minmax(480px, 1.06fr);
  gap: clamp(42px, 6vw, 110px);
  padding: clamp(72px, 8vw, 122px) clamp(22px, 4.5vw, 86px) 64px;
}

.product-hero .hero-title {
  max-width: 980px;
  font-size: clamp(3.8rem, 7.2vw, 8.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-hero .hero-subtitle {
  max-width: 720px;
  margin-top: 30px;
  color: #68645d;
  font-size: clamp(1.08rem, 1.55vw, 1.55rem);
  line-height: 1.72;
}

.product-hero .hero-title span {
  color: var(--gold);
  font-style: italic;
  font-weight: 800;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0 0 52px;
  padding: 0 18px;
  border: 1px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 8px 20px rgba(25,20,14,0.05);
  color: #69645d;
  font-weight: 800;
}

.hero-pill .glyph {
  color: var(--gold);
}

.product-hero .hero-actions {
  margin-top: 36px;
  gap: 16px;
}

.product-hero .primary-btn {
  min-height: 58px;
  padding-inline: 30px;
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 16px 30px rgba(32,55,84,0.2);
  font-size: 1.03rem;
}

.product-hero .secondary-btn {
  min-height: 58px;
  padding-inline: 30px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 12px 24px rgba(25,20,14,0.07);
  font-size: 1.03rem;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 48px);
  margin-top: 64px;
  color: #77726b;
  font-size: 1rem;
  font-weight: 700;
}

.hero-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-bullets span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.strategy-visual {
  position: relative;
  width: min(100%, 780px);
  margin-left: auto;
  filter: drop-shadow(0 32px 54px rgba(39, 31, 22, 0.12));
}

.abstract-panel {
  position: relative;
  min-height: clamp(420px, 46vw, 760px);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0 45%, rgba(226,234,238,0.94) 45% 52%, #071624 52% 60%, rgba(230,221,205,0.92) 60% 100%),
    #f8f5ee;
}

.abstract-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55), transparent 42%),
    radial-gradient(circle at 82% 42%, rgba(255,255,255,0.45), transparent 28%);
}

.shape {
  position: absolute;
  z-index: 1;
  display: block;
}

.shape-arc {
  left: 28%;
  bottom: -8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, #f4a13d, #8b3c0e);
}

.shape-arc::after {
  content: '';
  position: absolute;
  left: 20%;
  top: 35%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffdf7;
}

.shape-line {
  top: 0;
  left: 49%;
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, rgba(120,143,160,0.72), rgba(216,226,230,0.68));
}

.shape-shadow {
  right: -18%;
  bottom: 8%;
  width: 44%;
  aspect-ratio: 0.7;
  border-radius: 50%;
  background: rgba(143, 60, 10, 0.62);
  filter: blur(0.2px);
}

.diagnosis-card {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 32px;
  z-index: 3;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(226, 218, 205, 0.9);
  border-radius: 28px;
  background: rgba(249,247,242,0.92);
  box-shadow: 0 16px 38px rgba(39,31,22,0.11);
  backdrop-filter: blur(14px);
}

.diagnosis-card h3 {
  max-width: 720px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.35;
}

.diagnosis-card p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: #5f5a52;
  line-height: 1.6;
}

.operating-strip,
.how-grid,
.paths-grid,
.feature-system-grid,
.proof-list {
  display: grid;
  gap: 16px;
}

.operating-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 28px;
}

.operating-strip article,
.how-grid article,
.path-card,
.feature-item,
.differentiation-section,
.pricing-preview .plan-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.76);
  box-shadow: 0 16px 42px rgba(25,20,14,0.055);
}

.operating-strip article {
  min-height: 170px;
  border-radius: 16px;
  padding: 22px;
}

.operating-strip span,
.how-grid span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
}

.operating-strip strong {
  display: block;
  margin: 28px 0 8px;
  font-size: 1.08rem;
}

.operating-strip p,
.how-grid p,
.path-card dd,
.feature-item p,
.differentiation-section p,
.pricing-intro,
.plan-audience,
.final-cta p {
  color: var(--muted);
  line-height: 1.62;
}

.how-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.how-grid article {
  min-height: 250px;
  border-radius: 18px;
  padding: 24px;
}

.how-grid h3 {
  margin-top: 64px;
  font-size: 1.25rem;
}

.paths-section .section-header,
.features-section .section-header,
.pricing-preview .section-header {
  max-width: 980px;
}

.paths-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-card {
  display: grid;
  align-content: space-between;
  min-height: 520px;
  border-radius: 18px;
  padding: 24px;
}

.path-card h3 {
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1;
}

.path-card dl {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.path-card dt {
  color: #171614;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-card dd {
  margin: 0 0 8px;
}

.feature-system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-item {
  min-height: 220px;
  border-radius: 16px;
  padding: 22px;
}

.feature-item span {
  display: inline-flex;
  margin-bottom: 34px;
}

.feature-item h3 {
  font-size: 1.08rem;
}

.pricing-preview .pricing-grid,
.pricing-page .pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-preview .plan-card,
.pricing-page .plan-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  min-height: 760px;
  transform: none;
  cursor: pointer;
}

.pricing-preview .plan-card .full,
.pricing-page .plan-card .full {
  margin-top: auto;
}

.plan-audience {
  min-height: 48px;
  margin: 12px 0 0;
}

.plan-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.plan-badge,
.plan-stage {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.plan-badge {
  padding: 7px 10px;
  border: 1px solid rgba(185,140,255,0.45);
  background: rgba(185,140,255,0.16);
  color: #fff;
}

.plan-stage {
  margin: 10px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.58);
}

.plan-restrictions {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.plan-restrictions p {
  margin: 0;
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.84rem;
  line-height: 1.45;
}

.plan-card.has-badge:not(.featured) {
  border-color: rgba(133,255,244,0.22);
  background:
    radial-gradient(circle at 80% 0, rgba(133,255,244,0.1), transparent 30%),
    rgba(255,255,255,0.06);
}

.pricing-intro {
  max-width: 760px;
  margin: -8px 0 28px;
}

.differentiation-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  margin: 24px clamp(20px, 6vw, 88px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 24px;
}

.differentiation-section h2 {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.proof-list {
  margin-top: 22px;
  grid-template-columns: 1fr 1fr;
}

.proof-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 12px 14px;
  font-weight: 800;
}

.guided-onboarding {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.final-cta p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.76);
}

.roadmap-card.in-app {
  box-shadow: none;
}

@media (max-width: 1180px) {
  .product-hero,
  .operating-strip,
  .how-grid,
  .paths-grid,
  .feature-system-grid,
  .pricing-preview .pricing-grid,
  .pricing-page .pricing-grid,
  .differentiation-section {
    grid-template-columns: 1fr 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .strategy-visual {
    margin: 0;
  }
}

@media (max-width: 760px) {
  .product-hero,
  .operating-strip,
  .how-grid,
  .paths-grid,
  .feature-system-grid,
  .pricing-preview .pricing-grid,
  .pricing-page .pricing-grid,
  .differentiation-section,
  .proof-list,
  .guided-onboarding {
    grid-template-columns: 1fr;
  }

  .product-hero .hero-title {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
    letter-spacing: -0.035em;
  }

  .path-card {
    min-height: auto;
  }

  .hero-pill {
    margin-bottom: 32px;
  }

  .hero-bullets {
    gap: 14px;
    margin-top: 34px;
  }

  .hero-bullets span {
    width: 100%;
  }

  .abstract-panel {
    min-height: 430px;
    border-radius: 24px;
  }

  .diagnosis-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 20px;
  }
}

/* PDF landing conversion */
.dark-topbar {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.dark-topbar .brand-mark,
.dark-topbar .nav-links button,
.dark-topbar .ghost-btn,
.dark-topbar .icon-btn {
  color: rgba(255,255,255,0.78);
}

.dark-topbar .brand-icon {
  background: #fff;
  color: #070707;
}

.dark-topbar .primary-btn {
  border-color: #8b54ff;
  background: linear-gradient(90deg, #050505 0 54%, #8c43ff 100%);
  color: #fff;
}

.pdf-landing {
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
}

.pdf-hero {
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(96px, 10vw, 150px) clamp(20px, 5vw, 90px) 54px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 23%, rgba(155, 81, 255, 0.22), transparent 18%),
    radial-gradient(circle at 38% 32%, rgba(151, 241, 245, 0.16), transparent 15%),
    #000;
}

.pdf-kicker {
  margin: 0 0 clamp(32px, 4vw, 54px);
  color: rgba(255,255,255,0.92);
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdf-art-wrap {
  width: min(520px, 72vw);
  height: clamp(210px, 24vw, 330px);
  display: grid;
  place-items: center;
  margin-bottom: clamp(30px, 4vw, 58px);
}

.pdf-hero-art {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 30px 22px rgba(0,0,0,0.5));
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  box-shadow:
    inset -18px -18px 28px rgba(17,17,17,0.22),
    inset 20px 18px 32px rgba(255,255,255,0.36),
    0 22px 28px rgba(0,0,0,0.42);
}

.orb-a {
  left: 18%;
  top: 16%;
  width: 31%;
  aspect-ratio: 0.82;
  transform: rotate(38deg);
  background: linear-gradient(135deg, #c6f5ee, #47c7dc);
}

.orb-b {
  left: 38%;
  top: 44%;
  width: 31%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #cbeaff, #8730ff 78%);
}

.orb-c {
  left: 34%;
  top: 34%;
  width: 30%;
  aspect-ratio: 0.9;
  transform: rotate(28deg);
  background: linear-gradient(135deg, #c8fbf2, #be84ff 82%);
}

.star-shape {
  position: absolute;
  right: 14%;
  top: 4%;
  width: 34%;
  aspect-ratio: 1;
  filter: drop-shadow(0 22px 16px rgba(90,0,150,0.42));
}

.star-shape i {
  position: absolute;
  left: 38%;
  top: 5%;
  width: 28%;
  height: 90%;
  border-radius: 999px;
  transform-origin: 50% 50%;
  background: linear-gradient(180deg, #baf2ee, #a9b6ff 52%, #b22cff);
  box-shadow: inset -10px -10px 20px rgba(25,18,32,0.24), inset 12px 10px 20px rgba(255,255,255,0.35);
}

.star-shape i:nth-child(2) { transform: rotate(60deg); }
.star-shape i:nth-child(3) { transform: rotate(120deg); }
.star-shape i:nth-child(4) { transform: rotate(180deg); }
.star-shape i:nth-child(5) { transform: rotate(240deg); }
.star-shape i:nth-child(6) { transform: rotate(300deg); }

.pdf-title {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(5rem, 12vw, 13rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.pdf-title span {
  color: #fff;
}

.pdf-title strong {
  color: #b98cff;
  font-weight: 800;
}

.pdf-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: clamp(60px, 7vw, 92px);
}

.pdf-btn {
  position: relative;
  min-width: 278px;
  min-height: 62px;
  justify-content: space-between;
  padding: 0 16px 0 28px;
  border: 1px solid #7c3fff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 88% 50%, rgba(182, 126, 255, 0.94), transparent 19%),
    linear-gradient(90deg, #020202 0 62%, rgba(120, 40, 255, 0.82));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 16px 28px rgba(81, 24, 166, 0.26);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.pdf-btn .glyph {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 1rem;
}

.secondary-pdf-btn {
  border-color: rgba(185,140,255,0.34);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.9);
}

.business-hero {
  display: grid;
  place-items: center;
  min-height: min(760px, 92vh);
  padding: clamp(120px, 13vw, 190px) clamp(20px, 5.5vw, 92px) clamp(72px, 8vw, 120px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(185,140,255,0.2), transparent 28%),
    radial-gradient(circle at 18% 62%, rgba(133,255,244,0.08), transparent 23%),
    linear-gradient(180deg, #000 0%, #050308 100%);
}

.business-hero-copy {
  display: grid;
  justify-items: center;
}

.business-hero .pdf-kicker {
  margin-bottom: 24px;
  color: #b98cff;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 900;
}

.business-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 7.8vw, 9.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.business-subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255,255,255,0.66);
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  line-height: 1.55;
}

.business-hero .pdf-actions {
  justify-content: center;
  margin-top: 38px;
  gap: 14px;
}

/* Animated hero — floating glow shapes, gradient wordmark, live counters */
.animated-hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 13vw, 190px) clamp(20px, 5.5vw, 92px) clamp(72px, 8vw, 120px);
  background: #000;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-radial-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  max-width: 220vw;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(125,211,252,0.08) 30%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: heroPulseGlow 8s ease-in-out infinite;
}

@keyframes heroPulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  border-radius: 63% 37% 41% 59% / 55% 45% 55% 45%;
  filter: blur(2px) drop-shadow(0 30px 60px rgba(168,85,247,0.35));
}

.hero-shape-a {
  width: 380px;
  height: 380px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.85) 0%, transparent 26%),
    radial-gradient(circle at 68% 72%, var(--hero-cyan) 0%, var(--hero-purple) 62%, #4c1d95 100%);
  top: 8%;
  left: -8%;
  animation: heroFloatA 9s ease-in-out infinite;
}

.hero-shape-b {
  width: 280px;
  height: 280px;
  border-radius: 41% 59% 63% 37% / 45% 55% 45% 55%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.8) 0%, transparent 24%),
    radial-gradient(circle at 66% 70%, var(--hero-purple) 0%, var(--hero-cyan) 68%, #0e7490 100%);
  bottom: 12%;
  right: -4%;
  animation: heroFloatB 10s ease-in-out infinite;
}

.hero-shape-c {
  width: 230px;
  height: 230px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.75) 0%, transparent 22%),
    radial-gradient(circle at 64% 68%, #d9c4ff 0%, var(--hero-purple) 55%, #3b0764 100%);
  top: 62%;
  right: 2%;
  animation: heroFloatC 8s ease-in-out infinite;
}

@keyframes heroFloatA {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -50px) scale(1.1) rotate(120deg); }
  66% { transform: translate(-20px, 30px) scale(0.9) rotate(240deg); }
}

@keyframes heroFloatB {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(-40px, 40px) scale(1.15) rotate(-120deg); }
  66% { transform: translate(30px, -20px) scale(0.95) rotate(-240deg); }
}

@keyframes heroFloatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.2); }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: heroFadeInUp 1s ease-out;
}

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo-text {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.hero-gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(0.75rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: -0.5rem 0 0;
}

.hero-stats-row {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 3.75rem 0 2rem;
  padding: 1.75rem 3rem;
  border-radius: 28px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-stat-value {
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-family: 'Space Grotesk', var(--font-sans);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.1);
}

.hero-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.hero-btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.hero-btn.small {
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.hero-btn-primary {
  background: var(--hero-gradient);
  color: #000;
  box-shadow: 0 0 30px rgba(168,85,247,0.4), 0 8px 24px rgba(0,0,0,0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(168,85,247,0.6), 0 12px 32px rgba(0,0,0,0.5);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(125,211,252,0.2), 0 8px 24px rgba(0,0,0,0.4);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 30px rgba(168,85,247,0.4), 0 12px 32px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-stats-row { gap: 2rem; }
  .hero-divider { display: none; }
  .hero-stat-item { flex: 1 1 40%; }
  .hero-shape-a { width: 250px; height: 250px; }
  .hero-shape-b { width: 200px; height: 200px; }
  .hero-shape-c { width: 150px; height: 150px; }
  .hero-cta-buttons { flex-direction: column; width: 100%; max-width: 320px; margin-inline: auto; }
  .hero-btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-stats-row { gap: 1.5rem; }
  .hero-stat-item { flex: 1 1 100%; }
  .hero-logo-text { font-size: 3rem; }
}

/* Why-band — persuasive glow cards replacing the plain feature list */
.why-band {
  position: relative;
  isolation: isolate;
  background: #000;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5.5vw, 92px) clamp(80px, 9vw, 130px);
  text-align: center;
  overflow: hidden;
}

.why-orb {
  position: absolute;
  top: 6%;
  right: clamp(6%, 12vw, 18%);
  width: 130px;
  height: 130px;
  z-index: -1;
  border-radius: 58% 42% 63% 37% / 46% 55% 45% 54%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.8) 0%, transparent 24%),
    radial-gradient(circle at 66% 70%, #7DD3FC 0%, #A855F7 60%, #4c1d95 100%);
  filter: blur(1px) drop-shadow(0 20px 40px rgba(168,85,247,0.35));
  animation: heroFloatC 9s ease-in-out infinite;
}

@media (max-width: 640px) {
  .why-orb { width: 90px; height: 90px; top: 2%; }
}

.why-kicker {
  margin: 0 0 14px;
  color: #A855F7;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.why-headline {
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: 720px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(168,85,247,0.22);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
  border-color: rgba(168,85,247,0.55);
  transform: translateY(-4px);
}

.why-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.why-card p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.why-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.35) 0%, rgba(125,211,252,0.18) 45%, transparent 75%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.why-cta {
  margin-top: clamp(40px, 5vw, 56px);
}

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

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

.business-example-section {
  padding: 0 clamp(18px, 5.5vw, 92px) clamp(52px, 6vw, 86px);
  background: #000;
}

.business-example-section .business-demo {
  max-width: 1080px;
  margin: 0 auto;
}

.founder-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
}

.founder-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.founder-proof span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #b98cff;
}

.business-demo {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid rgba(185,140,255,0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 0, rgba(185,140,255,0.2), transparent 32%),
    rgba(255,255,255,0.055);
  box-shadow: 0 28px 90px rgba(0,0,0,0.46);
  backdrop-filter: blur(20px);
}

.idea-input,
.strategy-output {
  border: 1px solid rgba(185,140,255,0.18);
  border-radius: 22px;
  background: rgba(0,0,0,0.42);
}

.idea-input {
  padding: 22px;
}

.idea-input h3 {
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  line-height: 1.35;
}

.strategy-output {
  padding: 18px;
}

.demo-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -4px auto;
  border: 1px solid rgba(185,140,255,0.32);
  border-radius: 999px;
  background: rgba(185,140,255,0.1);
  color: #b98cff;
  font-family: var(--font-sans);
  font-weight: 900;
}

.strategy-output-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.strategy-output-header span {
  color: rgba(255,255,255,0.48);
  font-size: 0.84rem;
  font-weight: 800;
}

.strategy-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-output-grid article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid rgba(185,140,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
}

.strategy-output-grid .glyph {
  color: #b98cff;
  font-family: var(--font-sans);
  font-weight: 900;
}

.strategy-output-grid strong,
.strategy-output-grid span {
  display: block;
}

.strategy-output-grid strong {
  color: #fff;
  font-size: 0.98rem;
}

.compact-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compact-plan-card {
  position: relative;
  min-height: 282px;
  border: 1px solid rgba(185,140,255,0.18);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.compact-plan-card .plan-badge {
  display: inline-flex;
  max-width: none;
  margin: 0 0 14px;
  justify-content: center;
  text-align: center;
}

.compact-plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185,140,255,0.44);
  background: rgba(255,255,255,0.075);
}

.compact-plan-card.featured {
  border-color: rgba(185,140,255,0.62);
  background:
    radial-gradient(circle at 85% 0, rgba(185,140,255,0.24), transparent 34%),
    rgba(255,255,255,0.075);
}

.compact-plan-card p {
  margin: 0 0 20px;
  color: #b98cff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-plan-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.compact-plan-card strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 2rem;
}

.compact-plan-card strong span {
  color: rgba(255,255,255,0.46);
  font-size: 0.9rem;
}

.compact-plan-bullets {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.compact-plan-bullets span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255,255,255,0.64);
  font-size: 0.9rem;
  line-height: 1.35;
}

.compact-plan-bullets .glyph {
  color: #b98cff;
  font-size: 0.82rem;
}

.strategy-output-grid span {
  margin-top: 10px;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pdf-metrics,
.pdf-visual-grid,
.pdf-feature-band,
.pdf-pricing {
  background: #000;
}

.pdf-metrics {
  padding: 48px clamp(20px, 5.5vw, 90px) 26px;
}

.pdf-rule {
  height: 1px;
  background: linear-gradient(90deg, #b98cff, rgba(185, 140, 255, 0.05));
}

.pdf-metrics > p {
  font-family: var(--font-display);
  max-width: 1280px;
  margin: 26px auto 44px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.42;
}

.pdf-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  max-width: 1120px;
  margin: 0 auto 50px;
}

.pdf-stat-grid article {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 230px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(185,140,255,0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 0, rgba(185,140,255,0.18), transparent 34%),
    rgba(255,255,255,0.045);
  box-shadow: 0 22px 64px rgba(0,0,0,0.28);
}

.pdf-stat-grid strong {
  display: block;
  font-family: var(--font-display);
  color: #b98cff;
  font-size: clamp(5.4rem, 9vw, 9rem);
  line-height: 0.78;
  letter-spacing: -0.08em;
  text-shadow: 0 0 28px rgba(185,140,255,0.28);
}

.pdf-stat-grid span {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.pdf-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5.5vw, 86px);
  padding: 44px clamp(20px, 5.5vw, 90px) 70px;
}

.required-visuals {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: clamp(46px, 6vw, 84px);
}

.pdf-visual-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.95 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: #050505;
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
}

.pdf-visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(20px, 5.5vw, 90px) 70px;
}

.pdf-feature-band article {
  border-top: 1px solid rgba(185,140,255,0.55);
  border-bottom: 1px solid rgba(185,140,255,0.28);
  padding: 26px 20px;
}

.pdf-feature-band p {
  font-family: var(--font-display);
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.pdf-feature-band span {
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
}

.pdf-pricing {
  color: #fff;
}

.pdf-pricing .section-header h2,
.pdf-pricing .eyebrow {
  color: #fff;
}

.pdf-pricing .plan-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(185,140,255,0.25);
}

.pdf-pricing .plan-card.featured {
  background: linear-gradient(180deg, rgba(185,140,255,0.22), rgba(255,255,255,0.06));
}

@media (max-width: 980px) {
  .pdf-stat-grid,
  .pdf-visual-grid,
  .pdf-feature-band {
    grid-template-columns: 1fr;
  }

  .pdf-actions {
    flex-direction: column;
    width: min(100%, 360px);
  }

  .pdf-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .dark-topbar .nav-actions .ghost-btn,
  .dark-topbar .nav-actions .primary-btn {
    display: none;
  }

  .business-hero {
    min-height: 680px;
    padding: 112px 18px 62px;
  }

  .business-hero h1 {
    font-size: clamp(3.5rem, 16vw, 5.8rem);
    line-height: 0.92;
  }

  .business-subtitle {
    margin-top: 20px;
    font-size: 1rem;
  }

  .business-hero .pdf-actions {
    width: 100%;
    margin-top: 30px;
  }

  .business-example-section {
    padding: 0 18px 48px;
  }

  .business-hero .pdf-btn {
    width: 100%;
  }

  .founder-proof {
    gap: 10px 16px;
  }

  .business-demo {
    border-radius: 24px;
    padding: 12px;
  }

  .compact-pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compact-plan-card {
    min-height: 230px;
    padding: 16px;
  }

  .compact-plan-card strong {
    font-size: 1.65rem;
  }

  .compact-plan-card .plan-badge {
    position: static;
    margin-bottom: 12px;
  }

  .strategy-output-header {
    display: grid;
  }

  .strategy-output-grid {
    grid-template-columns: 1fr;
  }

  .strategy-output-grid article {
    min-height: 0;
  }

  .pdf-title {
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow-wrap: normal;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(3.45rem, 15vw, 5.65rem);
    letter-spacing: -0.085em;
  }

  .pdf-art-wrap {
    width: min(82vw, 360px);
    height: 250px;
  }

  .pdf-stat-grid article {
    min-height: 150px;
    gap: 10px;
    padding: 22px;
  }

  .pdf-stat-grid strong {
    font-size: clamp(4.5rem, 22vw, 6.5rem);
  }

  .pdf-stat-grid span {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .pdf-feature-band {
    gap: 12px;
    padding: 10px 18px 56px;
  }

  .pdf-feature-band article {
    position: relative;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(185,140,255,0.18);
    border-radius: 20px;
    padding: 20px 20px 20px 58px;
    background:
      radial-gradient(circle at 92% 0, rgba(185,140,255,0.16), transparent 34%),
      rgba(255,255,255,0.045);
    box-shadow: 0 16px 42px rgba(0,0,0,0.28);
  }

  .pdf-feature-band article::before {
    content: counter(feature);
    counter-increment: feature;
    position: absolute;
    left: 18px;
    top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(185,140,255,0.42);
    border-radius: 999px;
    background: rgba(185,140,255,0.12);
    color: #b98cff;
    font-size: 0.78rem;
    font-weight: 900;
  }

  .pdf-feature-band {
    counter-reset: feature;
  }

  .pdf-feature-band p {
    margin: 0;
    font-size: 1.12rem;
  }

  .pdf-feature-band span {
    color: rgba(255,255,255,0.58);
    font-size: 0.98rem;
  }
}

/* Global dark premium system */
:root {
  --bg: #000;
  --card: rgba(255,255,255,0.07);
  --text: #f7f2ff;
  --muted: rgba(255,255,255,0.64);
  --border: rgba(185,140,255,0.24);
  --shadow: 0 24px 70px rgba(0,0,0,0.42);
}

html,
body {
  background: #000;
}

body {
  color: var(--text);
}

.topbar {
  border-bottom: 1px solid rgba(185,140,255,0.18);
  background: rgba(0,0,0,0.78);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links button,
.ghost-btn,
.icon-btn {
  color: rgba(255,255,255,0.76);
}

.brand-mark span:last-child {
  color: #fff;
}

.brand-icon,
.avatar,
.preview-logo {
  background: linear-gradient(135deg, #fff, #b98cff);
  color: #050505;
}

.nav-links button.active,
.nav-links button:hover,
.sidebar button.active,
.sidebar button:hover {
  background: rgba(185,140,255,0.14);
  color: #fff;
  box-shadow: 0 12px 28px rgba(110,50,255,0.14);
}

.user-pill,
.connection-pill,
.form-message {
  border-color: rgba(185,140,255,0.25);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.72);
}

.primary-btn {
  border-color: #8b54ff;
  background:
    radial-gradient(circle at 88% 50%, rgba(182,126,255,0.88), transparent 22%),
    linear-gradient(90deg, #050505 0 60%, #8c43ff 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(105,42,255,0.24);
}

.secondary-btn,
.auth-ghost,
.ghost-btn {
  border-color: rgba(185,140,255,0.28);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.82);
}

.secondary-btn:hover,
.auth-ghost:hover,
.ghost-btn:hover {
  border-color: rgba(185,140,255,0.62);
  background: rgba(185,140,255,0.14);
  color: #fff;
}

.auth-page,
.pricing-page,
.workspace {
  min-height: calc(100vh - 82px);
  background:
    radial-gradient(circle at 50% 0, rgba(157,76,255,0.18), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(133,255,244,0.08), transparent 22%),
    #000;
  color: #fff;
}

.auth-card,
.auth-aside,
.workspace-panel,
.sidebar,
.card,
.feature-card,
.testimonial-card,
.plan-card,
.library-card,
.generated-card,
.calendar-cell,
.metric,
.focus-banner,
.prompt-guide,
.next-actions button,
.roadmap-card,
.preview-bottom > div,
.content-preview,
.search {
  border-color: rgba(185,140,255,0.24);
  background: rgba(255,255,255,0.065);
  color: #fff;
  box-shadow: 0 20px 54px rgba(0,0,0,0.34);
}

.auth-page {
  grid-template-columns: minmax(320px, 0.78fr) 1.22fr;
  padding-top: clamp(46px, 7vw, 92px);
}

.auth-card {
  background:
    radial-gradient(circle at 84% 0, rgba(185,140,255,0.14), transparent 36%),
    rgba(255,255,255,0.055);
}

.auth-aside {
  justify-content: end;
  background:
    radial-gradient(circle at 58% 42%, rgba(185,140,255,0.26), transparent 16%),
    radial-gradient(circle at 48% 48%, rgba(255,255,255,0.16), transparent 4%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(185,140,255,0.09)),
    #050505;
}

.auth-card h1,
.auth-aside h2,
.workspace-header h1,
.section-header h2,
.cta-section h2 {
  color: #fff;
}

.auth-card h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 5.2vw, 6.7rem);
  letter-spacing: -0.055em;
}

.auth-aside h2 {
  max-width: 820px;
  font-size: clamp(3.4rem, 5.8vw, 7.4rem);
  letter-spacing: -0.06em;
}

.auth-aside p,
.feature-card p,
.testimonial-card p,
.plan-card p,
.workspace-header p,
.focus-banner > span,
.prompt-guide strong,
.next-actions small,
.content-preview p,
.generated-card p:last-child,
.calendar-cell p,
.library-card div span,
.pricing-intro,
.form-stack label,
label {
  color: rgba(255,255,255,0.66);
}

input,
textarea,
select {
  border-color: rgba(185,140,255,0.24);
  background: rgba(255,255,255,0.06);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(185,140,255,0.74);
  box-shadow: 0 0 0 4px rgba(185,140,255,0.16) !important;
}

.connection-pill {
  border-radius: 999px;
}

.connection-pill.connected {
  color: #b8fff8;
  border-color: rgba(133,255,244,0.28);
  background: rgba(133,255,244,0.08);
}

.workspace {
  padding-top: 24px;
}

.workspace-panel {
  background:
    radial-gradient(circle at 80% 0, rgba(185,140,255,0.11), transparent 26%),
    rgba(255,255,255,0.045);
}

.sidebar {
  background: rgba(255,255,255,0.05);
}

.sidebar-profile small,
.metric span,
.week-list span,
.roadmap-card > div:first-child,
.roadmap-tasks p,
.preview-bottom p {
  color: rgba(255,255,255,0.56);
}

.metric strong,
.feature-card h3,
.library-card h3,
.plan-card h3,
.card-title h2,
.content-preview h3,
.next-actions strong,
.calendar-cell strong,
.roadmap-card strong,
.week-list strong {
  color: #fff;
}

.label,
.eyebrow,
.calendar-cell span,
.library-card div strong,
.next-actions span,
.preview-tags span {
  color: #b98cff;
}

.focus-banner,
.prompt-guide,
.content-preview {
  background:
    radial-gradient(circle at 86% 12%, rgba(185,140,255,0.18), transparent 30%),
    rgba(255,255,255,0.06);
}

.week-list span,
.preview-tags span,
.strategy-strip span,
.pill-wrap span,
.intro-strip span,
.library-card div,
.search {
  border-color: rgba(185,140,255,0.22);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.7);
}

.pricing-page .plan-card,
.pricing-preview .plan-card {
  background: rgba(255,255,255,0.06);
}

.plan-card.featured {
  border-color: rgba(185,140,255,0.68);
  background:
    radial-gradient(circle at 80% 0, rgba(185,140,255,0.28), transparent 35%),
    rgba(255,255,255,0.08);
  color: #fff;
}

.pricing-page .plan-card.has-badge:not(.featured),
.pricing-preview .plan-card.has-badge:not(.featured) {
  border-color: rgba(133,255,244,0.24);
  background:
    radial-gradient(circle at 80% 0, rgba(133,255,244,0.12), transparent 32%),
    rgba(255,255,255,0.06);
}

.price,
.price span {
  color: #fff;
}

.cta-section {
  background:
    radial-gradient(circle at 50% 0, rgba(185,140,255,0.28), transparent 34%),
    linear-gradient(135deg, #050505, #12051f);
  border: 1px solid rgba(185,140,255,0.22);
}

.cta-section .primary-btn {
  background: #fff;
  color: #050505;
}

.cal-week-grid,
.library-grid,
.dashboard-grid,
.onboarding-grid,
.generator-layout {
  color: #fff;
}

@media (max-width: 760px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-field-grid {
    grid-template-columns: 1fr;
  }

  .auth-card h1,
  .auth-aside h2 {
    font-size: clamp(2.9rem, 13vw, 4.9rem);
  }
}

.brand-icon,
.avatar {
  background: #000;
  border: 1px solid rgba(109,40,255,0.48);
  color: #6d28ff;
  box-shadow: 0 0 22px rgba(109,40,255,0.2);
}

.brand-icon .logo-symbol,
.avatar .logo-symbol {
  width: 76%;
}

.dark-topbar .brand-icon {
  background: #000;
  color: #6d28ff;
}

.auth-card .create-account-btn {
  border-color: rgba(185,140,255,0.9);
  background:
    radial-gradient(circle at 86% 50%, rgba(190,136,255,0.95), transparent 24%),
    linear-gradient(90deg, #1a0631 0, #7b31ff 100%);
  color: #fff;
  box-shadow: 0 20px 46px rgba(109,40,255,0.32);
}

.auth-card .create-account-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 54px rgba(109,40,255,0.42);
}

.reset-bridge {
  min-height: 38px;
  opacity: 0.78;
}

.topbar .mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  .topbar .mobile-menu {
    display: inline-flex;
    width: auto;
    min-width: 98px;
    height: 48px;
    gap: 8px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    border-color: rgba(185,140,255,0.42);
    background: rgba(255,255,255,0.055);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  }

  .mobile-menu-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(109,40,255,0.54);
    border-radius: 10px;
    background: #000;
  }

  .mobile-menu-mark .logo-symbol {
    width: 78%;
  }

  .mobile-menu-label {
    display: inline;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
  }
}

@media (max-width: 760px) {
  .dark-topbar .mobile-menu {
    display: inline-flex;
  }

  .dark-topbar {
    padding-inline: 26px;
  }

  .dark-topbar .brand-mark span:last-child {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .dark-topbar .brand-icon {
    width: 48px;
    height: 48px;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

.plan-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.inline-link {
  background: none;
  border: none;
  color: var(--coral);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px clamp(20px, 6vw, 64px);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-link {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: none;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-page {
  padding: clamp(38px, 7vw, 86px);
  max-width: 860px;
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 32px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.legal-disclaimer {
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
  padding: 14px 18px;
}

.legal-block {
  margin-bottom: 26px;
}

.legal-block h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.legal-block p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.legal-block a {
  color: var(--coral);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
