/* ===========================
   Base Reset & Globals
   =========================== */

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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050508;
  color: #e5e5ea;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ===========================
   Color Tokens
   =========================== */

:root {
  --bg-main: #050508;
  --bg-panel: #101018;
  --bg-panel-alt: #151520;
  --surface-primary: var(--bg-panel);
  --home-hero-h: 520px;
  --space-xl: 32px;
  --space-lg: 24px;
  --space-md: 18px;
  --space-sm: 12px;

  --border-subtle: #232334;
  --nav-bg-color: var(--bg-panel);

  --text-main: #f4f4ff;
  --text-muted: #9b9bb5;
  --text-secondary: #c0c0d0;
  --text-primary: var(--text-main);

  --brand-purple: #a49bff;
  --brand-purple-soft: rgba(164, 155, 255, 0.16);
  --brand-purple-border: rgba(164, 155, 255, 0.35);
  --brand-purple-glow: rgba(164, 155, 255, 0.45);

  --accent: var(--brand-purple);
  --accent-soft: var(--brand-purple-soft);
  --accent-strong: var(--brand-purple);

  --danger: #ff5c7a;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 10px 25px rgba(0, 0, 0, 0.38);

  --sidebar-width: 260px;
  --layout-max-width: 1200px;
}

/* ===========================
   Layout: App Shell
   =========================== */

.app-shell {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at top, #141426 0, #050508 55%);
}

/* Sidebar */

.sidebar {
  width: var(--sidebar-width);
  padding: 24px 22px;
  background: radial-gradient(circle at 18% 12%, rgba(123, 123, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #0b0b13 0%, #050508 100%);
  border-right: 1px solid rgba(123, 123, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(164, 155, 255, 0.12),
    0 16px 42px rgba(43, 43, 102, 0.2);
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-purple-soft);
  border: 1px solid var(--brand-purple-border);
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 24px var(--brand-purple-glow);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Navigation */

.nav {
  display: flex;
  flex-direction: column;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.nav-link:hover {
  background: #181824;
  color: var(--text-main);
  transform: translateX(2px);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--text-main);
}

body.nav-open {
  overflow: hidden;
}

/* Sidebar footer */

.sidebar-footer {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed #222238;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-note {
  opacity: 0.85;
}

.sidebar-meta {
  opacity: 0.6;
}

/* Main content */

.main {
  flex: 1;
  padding: 28px 32px;
  max-width: calc(var(--layout-max-width) + 40px);
  margin: 0 auto;
}

/* Pricing page: keep footer pinned to bottom when content is short */
.pricing-page .main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pricing-page .site-footer {
  margin-top: auto;
}

/* ===========================
   Page Header
   =========================== */

.page-header {
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(1.7rem, 2.1vw, 2.1rem);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 0.98rem;
}

/* ===========================
   Hero (Rotating Background)
   =========================== */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #2a2a44;
  background: #050508;
  min-height: 260px;
}

.hero-rotator {
  padding: 0;
}

/* Background images */

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease, transform 8s ease;
}

.hero-bg-image.is-active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(123, 123, 255, 0.30), transparent 55%),
    linear-gradient(to bottom right, rgba(5, 5, 8, 0.90), rgba(5, 5, 8, 0.98));
}

/* Per-hero background focal points */
.hero-bg.bg-1 { background-position: center 35%; }
.hero-bg.bg-2 { background-position: center center; }
.hero-bg.bg-3 { background-position: 60% center; }
.hero-bg.bg-4 { background-position: center 20%; }

/* Foreground content */

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 26px 44px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.9;
  margin-bottom: 6px;
}

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

@media (min-width: 900px) {
  .hero-content {
    padding: 64px 40px 72px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 32px 18px 36px;
  }
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease,
    box-shadow 0.15s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #050508;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.btn:active {
  transform: translateY(0);
}

/* IMPORTANT: Secondary is now readable on image backgrounds */
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn.secondary:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

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

.btn.tertiary:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.tertiary:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* ===========================
   Sections / Generic Blocks
   =========================== */

.section-title {
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e8e8ff;
  margin: 0;
  text-shadow: 0 0 18px rgba(123, 123, 255, 0.24);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 720px;
  line-height: 1.55;
}

/* Features */

.features {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid rgba(164, 155, 255, 0.16);
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 18px 38px rgba(43, 43, 102, 0.18);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.feature-item {
  background: var(--bg-panel-alt);
  border-radius: var(--radius-md);
  padding: 14px 14px 13px;
  border: 1px solid #1f1f30;
}

.feature-item h3,
.feature-item h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Template preview */

.template-preview {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid rgba(164, 155, 255, 0.16);
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 18px 38px rgba(43, 43, 102, 0.18);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.template-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, #20203a 0, #121221 60%);
  border: 1px solid rgba(164, 155, 255, 0.16);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 18px 34px rgba(43, 43, 102, 0.16);
  transition: transform 0.12s ease, box-shadow 0.14s ease, border-color 0.16s ease,
    background 0.16s ease;
}

.template-card--preview {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #19192a, #0f0f18 60%);
}

.template-card-image-wrap {
  width: 100%;
  background: #050508;
  overflow: hidden;
}

.template-card-image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.template-card-body {
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-card-body h3 {
  font-size: 0.96rem;
  margin: 0;
}

.template-card-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.template-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.template-lede {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.template-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

.template-lede-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.template-choice-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.template-choice-item {
  padding: 12px 12px 11px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(164, 155, 255, 0.14);
}

.template-choice-item h2,
.template-choice-item h3 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 0.94rem;
}

.template-choice-item p,
.template-demo-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.template-demo-note {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(164, 155, 255, 0.07);
  border: 1px solid rgba(164, 155, 255, 0.14);
}

.template-card-details {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.template-card-details p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.template-card-details strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.badge-vibe {
  border: 1px solid #1f1f33;
}

/* Tier badges (still used on portfolio cards) */
.badge-tier {
  border: 1px solid #2f2f52;
  color: var(--text-main);
  background: linear-gradient(
    120deg,
    rgba(110, 108, 255, 0.12),
    rgba(110, 108, 255, 0.04)
  );
}

.badge-tier-starter {
  border-color: #3c4d7a;
}

.badge-tier-pro {
  border-color: #4c3f7d;
}

.badge-tier-elite {
  border-color: #6c2f8a;
}

.template-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
  border-color: var(--accent-strong);
}

.template-card:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft), 0 14px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.section-actions {
  margin-top: 16px;
}

.template-help {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-cta-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.feature-stack {
  background: var(--bg-panel-alt);
  border: 1px solid rgba(164, 155, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.feature-stack--facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.feature-grid--about .feature-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-grid--about .value-item {
  display: flex;
  align-items: center;
  min-height: 88px;
}

.final-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.final-cta-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
}

.final-cta-link:hover {
  text-decoration: underline;
}

/* How it works layout */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0f0f1c;
  border: 1px solid rgba(164, 155, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 16px 32px rgba(43, 43, 102, 0.16);
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b0b16;
  border: 1px solid #24243a;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.step-card h3,
.step-card h4 {
  margin: 2px 0 4px;
  font-size: 1rem;
  color: var(--text-main);
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title {
  margin: 0;
  line-height: 1.2;
  font-size: 1rem;
  color: var(--text-main);
}

.step-desc {
  margin-top: 10px;
}

.step-num-badge {
  flex: 0 0 auto;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.need-card {
  background: #0f0f1c;
  border: 1px solid rgba(164, 155, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 16px 32px rgba(43, 43, 102, 0.16);
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.timeline-card {
  background: #0f0f1c;
  border: 1px solid rgba(164, 155, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 16px 32px rgba(43, 43, 102, 0.16);
}

.timeline-card h4 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 0.98rem;
}

.timeline-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.faq-list details {
  background: #0f0f1c;
  border: 1px solid #27273a;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
}

.faq-answer {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Portfolio feature */
.portfolio-feature {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.portfolio-card {
  width: 100%;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(164, 155, 255, 0.16);
  background: linear-gradient(145deg, #19192a, #0f0f18 60%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 18px 38px rgba(43, 43, 102, 0.18);
  overflow: hidden;
}

.portfolio-card-body {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a44;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}

.portfolio-title {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-main);
}

.portfolio-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.portfolio-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

/* Portfolio single feature + testimonial */
.portfolio-featured {
  margin-top: 6px;
}

.portfolio-featured-card {
  background: radial-gradient(circle at 20% 20%, rgba(164, 155, 255, 0.12), transparent 38%),
    linear-gradient(145deg, #141422, #0d0d18 55%, #0b0b14);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(164, 155, 255, 0.16);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 18px 38px rgba(43, 43, 102, 0.18);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portfolio-featured-title {
  font-size: 1.32rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.portfolio-featured-desc {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.portfolio-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.portfolio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a44;
  background: rgba(123, 123, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.portfolio-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.portfolio-meta-item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
}

.portfolio-meta-item .meta-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.portfolio-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-testimonial .testimonial-card {
  background: #0f0f1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.testimonial-quote {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

.portfolio-note {
  color: var(--text-muted);
  margin: 10px 0 18px;
  font-size: 0.95rem;
}

/* Tiers preview */

.tiers-preview {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  border: 1px solid rgba(164, 155, 255, 0.16);
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 18px 38px rgba(43, 43, 102, 0.18);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 16px 32px rgba(43, 43, 102, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.tier-card:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
  transform: translateY(-2px);
}

.tier-grid--pricing {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tier-card--pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
  min-height: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.tier-card--pricing:not(.tier-card--featured) {
  opacity: 0.9;
}

.tier-card--pricing:not(.tier-card--featured):hover {
  opacity: 1;
  transform: translateY(-4px);
}

.tier-card--featured {
  transform: scale(1.04);
  border: 1px solid rgba(155, 135, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(155, 135, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(155, 135, 255, 0.08), rgba(255, 255, 255, 0.03));
  z-index: 2;
}

.tier-card-title {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-main);
}

.tier-card-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.tier-card-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 4px 0 6px;
}

.tier-card-price-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-card-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

.tier-card-cta {
  margin-top: auto;
  padding-top: 6px;
  width: 100%;
}

.tier-card-cta .btn {
  width: 100%;
  justify-content: center;
}

.tier-card--featured .btn,
.tier-card--featured button {
  background: linear-gradient(135deg, #9b87ff, #7f6bff);
  color: #0c0c14;
  font-weight: 700;
}

.tier-purpose {
  margin: 2px 0 4px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.tier-boundary {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tier-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #9b87ff, #7f6bff);
  color: #0c0c14;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(155, 135, 255, 0.35);
}

@media (max-width: 900px) {
  .tier-card--featured {
    transform: none;
  }
}

/* Tier Breakdown inside cards */
.tier-breakdown {
  margin-top: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--panel, rgba(255,255,255,0.03));
  border-radius: 12px;
  overflow: hidden;
}

.tier-break-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.10));
}

.tier-break-row:first-child {
  border-top: none;
}

.tier-break-label {
  color: var(--text-muted, rgba(255,255,255,0.78));
  font-weight: 600;
  font-size: 0.92rem;
}

.tier-break-value {
  color: var(--text, #fff);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: right;
}

.tier-break-value.yes {
  /* keep neutral if theme is monochrome; otherwise allow subtle green */
  color: var(--success, #7CFFB2);
}

.tier-break-value.no {
  color: var(--danger, #FF7C7C);
  opacity: 0.9;
}

/* Make sure cards don't feel cramped on small screens */
@media (max-width: 720px) {
  .tier-break-row {
    padding: 10px 10px;
  }
}

/* Pricing Differences (secondary section) */
.pricing-differences {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--panel, rgba(255,255,255,0.03));
  border-radius: 14px;
}

.pricing-differences .pd-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.pricing-differences .pd-head p {
  margin: 6px 0 14px;
  color: var(--text-muted, rgba(255,255,255,0.72));
  font-size: 0.95rem;
}

.pd-details {
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.pd-summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text, #fff);
  background: rgba(255,255,255,0.03);
}

.pd-summary::-webkit-details-marker { display: none; }

.pd-table {
  border-top: 1px solid var(--border, rgba(255,255,255,0.10));
}

.pd-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.pd-cell {
  padding: 10px 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  font-size: 0.95rem;
}

.pd-row-head .pd-cell {
  border-top: none;
  font-weight: 800;
  color: var(--text, #fff);
}

.pd-label {
  color: var(--text-muted, rgba(255,255,255,0.78));
  font-weight: 700;
}

/* Trust block */
.pd-trust {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
}

.pd-trust h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.pd-trust p {
  margin: 0;
  color: var(--text-muted, rgba(255,255,255,0.74));
  line-height: 1.5;
}

.comparison-mobile {
  display: none;
}

@media (max-width: 720px) {
  .comparison-desktop {
    display: none;
  }
  .comparison-mobile {
    display: block;
  }
}

.comparison-tier {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.comparison-tier h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.comparison-tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-tier li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}

.comparison-tier li:last-child {
  border-bottom: none;
}

.comparison-tier--featured {
  border-color: rgba(155,135,255,0.6);
  background: linear-gradient(
    180deg,
    rgba(155,135,255,0.08),
    rgba(255,255,255,0.03)
  );
}

/* Comparison card + table */
.comparison-card {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  overflow: hidden;
}

.comparison-card__header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.comparison-card__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.comparison-card__header p {
  margin: 6px 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.comparison-table-wrap {
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.comparison-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: middle;
}

.comparison-table thead th:first-child,
.comparison-table tbody td:first-child {
  width: auto;
  font-weight: 600;
  opacity: 0.9;
}
.comparison-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.015);
}

.comparison-table tbody tr:hover td {
  background: rgba(155,135,255,0.06);
}

.comparison-table .is-featured-col {
  background: rgba(155,135,255,0.06);
}

.comparison-table thead .is-featured-col {
  background: rgba(155,135,255,0.14);
  border-bottom: 1px solid rgba(155,135,255,0.30);
}

.comparison-table tbody td.is-featured-col,
.comparison-table thead th.is-featured-col {
  box-shadow: inset 1px 0 0 rgba(155,135,255,0.25), inset -1px 0 0 rgba(155,135,255,0.25);
}

.comparison-table td {
  line-height: 1.2;
}

.comparison-table td:has(.check),
.comparison-table td:has(.dash) {
  font-weight: 600;
}

.tier-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tier-table col.col-capability { width: 26%; }
.tier-table col.col-tier { width: 24.666%; }

.tier-table th,
.tier-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
}

.tier-table th + th,
.tier-table td + td {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.tier-table th:first-child,
.tier-table td:first-child {
  text-align: left;
  padding-left: 14px;
}

.tier-table th:not(:first-child),
.tier-table td:not(:first-child) {
  text-align: center;
}

/* Final column spacing/alignment overrides */
.tier-table th:first-child,
.tier-table td:first-child {
  padding-left: 12px;
  padding-right: 10px;
  text-align: left;
  font-weight: 600;
}

.tier-table th:not(:first-child),
.tier-table td:not(:first-child) {
  text-align: center;
}
/* --- COMPARISON TABLE GRID FIX (override broken layout) --- */
.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

/* Force real table cells */
.comparison-table th,
.comparison-table td {
  display: table-cell !important;
  float: none !important;
  position: static;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: normal;
  word-break: break-word;
}

.comparison-table thead tr,
.comparison-table tbody tr {
  display: table-row !important;
}

.comparison-table thead th:first-child,
.comparison-table tbody td:first-child {
  width: 34%;
}

.comparison-table thead th:nth-child(2),
.comparison-table tbody td:nth-child(2),
.comparison-table thead th:nth-child(3),
.comparison-table tbody td:nth-child(3),
.comparison-table thead th:nth-child(4),
.comparison-table tbody td:nth-child(4) {
  width: 22%;
}

.comparison-table thead th,
.comparison-table tbody td {
  padding: 12px 14px;
}

.comparison-table thead th {
  text-align: left;
}

.comparison-table thead th:nth-child(n+2),
.comparison-table tbody td:nth-child(n+2) {
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.comparison-table thead th:first-child,
.comparison-table tbody td:first-child {
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.comparison-table thead th:nth-child(2),
.comparison-table tbody td:nth-child(2) {
  border-left: 1px solid rgba(255,255,255,0.10);
}

.col-capability {
  width: 28%;
}

.col-tier {
  width: 24%;
}

.comparison-table,
.comparison-table * {
  justify-content: initial !important;
  gap: 0 !important;
}

@media (max-width: 980px) {
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 10px;
    font-size: 0.9rem;
  }
}

/* Final CTA */
.pricing-final-cta {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}

.pricing-final-cta .pfc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pricing-final-cta h2 {
  margin: 0;
  font-size: 1.05rem;
}

.pricing-final-cta p {
  margin: 6px 0 0;
  color: var(--text-muted, rgba(255,255,255,0.72));
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .pd-row {
    grid-template-columns: 1fr;
  }
  .pd-row-head {
    display: none;
  }
  .pd-cell {
    border-top: none;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  }
  .pricing-final-cta .pfc-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* How it works preview */

.how-it-works-preview {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  border: 1px solid rgba(164, 155, 255, 0.16);
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 18px 38px rgba(43, 43, 102, 0.18);
}

.steps {
  margin-top: 10px;
  margin-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps li + li {
  margin-top: 4px;
}

/* Contact Funnel */

.contact-form {
  background: var(--bg-panel);
  border: 1px solid rgba(164, 155, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.1), 0 16px 32px rgba(43, 43, 102, 0.16);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.92rem;
  color: var(--text-main);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid #2a2a44;
  background: #05050b;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field select {
  cursor: pointer;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(164, 155, 255, 0.35);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: #0a0a14;
}

.required-indicator {
  color: var(--accent-strong);
  margin-left: 4px;
  font-weight: 600;
  font-size: 0.85em;
}

.form-privacy-note {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ===========================
   Phase 4 — Polish
   =========================== */

.page-header {
  margin-bottom: 24px;
}

.page-title {
  margin-bottom: 10px;
}

.main p,
.main li {
  line-height: 1.6;
}

.main ul,
.main ol {
  margin: 0 0 14px 18px;
  padding: 0;
}

.btn {
  border-color: var(--border-subtle);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 10px 22px rgba(0, 0, 0, 0.35);
}

.template-card,
.tier-card {
  border: 1px solid var(--border-subtle);
  padding: 16px;
}

.template-card--preview {
  padding: 0;
}

.template-card-body {
  padding: 14px 14px 15px;
}

@media (max-width: 640px) {
  .main {
    padding: 22px 18px;
  }

  body.home-page .main {
    padding: 0;
  }

  .template-grid,
  .tier-grid {
    gap: 14px;
  }

  .page-header {
    margin-bottom: 20px;
  }
}

/* Brand home link */

.brand-link {
  display: flex;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}

.brand-link:visited {
  color: inherit;
}

.brand-link:hover {
  text-decoration: none;
  cursor: pointer;
}

.brand-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.25);
  outline-offset: 4px;
  border-radius: 12px;
}

.brand-link:hover .logo-mark,
.brand-link:focus-visible .logo-mark {
  box-shadow: 0 0 32px var(--brand-purple-glow);
}

/* Final CTA */

.final-cta {
  margin-top: 10px;
  padding: 24px 24px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(122, 122, 255, 0.28), rgba(5, 5, 10, 0.94));
  border: 1px solid rgba(164, 155, 255, 0.2);
  text-align: left;
  box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(164, 155, 255, 0.16), 0 18px 38px rgba(43, 43, 102, 0.18);
}

.final-cta h2,
.final-cta h3 {
  font-size: 1.28rem;
  margin: 0;
  color: var(--text-main);
}

/* ===========================
   Utility
   =========================== */

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

.features--pricing {
  margin-top: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
}

/* Full-width section modifiers to align homepage blocks */
.features--full,
.template-preview--full,
.tiers-preview--full,
.how-it-works-preview--full,
.final-cta--full {
  padding: 28px 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0f0f1c, #0a0a14 55%, #08080f);
  border: 1px solid rgba(164, 155, 255, 0.14);
  margin-top: 22px;
  box-shadow: var(--shadow-subtle);
}

/* Legal pages */

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-block h2,
.legal-block h3,
.legal-block h4 {
  color: var(--text-main);
}

.legal-block p {
  color: var(--text-muted);
}

/* What You Get */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.value-item {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 10% 10%, rgba(164, 155, 255, 0.08), transparent 42%),
    linear-gradient(145deg, #121222, #0e0e19);
  border: 1px solid rgba(164, 155, 255, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(164, 155, 255, 0.1),
    0 16px 32px rgba(43, 43, 102, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 168px;
}

.value-item h4 {
  font-size: 1.04rem;
  margin: 0;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.value-grid--about {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Featured templates */
.template-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.template-card--featured {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  background: radial-gradient(circle at top, #1a1a2c 0, #0f0f1a 60%);
  border-color: #2f2f4c;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(164, 155, 255, 0.1);
  height: 100%;
  overflow: hidden;
}

.template-card--featured .template-card-image {
  height: 200px;
  transition: transform 0.3s ease;
}

.template-card--featured .template-card-body {
  padding: 14px 16px;
  gap: 10px;
}

.template-card--featured .template-card-body h3 {
  font-size: 1.02rem;
  color: var(--text-main);
}

.template-card--featured .template-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.template-tags {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.template-card--featured:hover {
  transform: translateY(-2px);
  border-color: var(--accent-strong);
}

.template-card--featured:hover .template-card-image {
  transform: scale(1.02);
}

.template-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.template-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(164, 155, 255, 0.16);
  border: 1px solid rgba(164, 155, 255, 0.35);
  color: #f1f1ff;
}

.template-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* Tiers */
.tier-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tier-card--rich {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 18px 18px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid #2f2f4c;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(164, 155, 255, 0.1);
  border-radius: var(--radius-md);
  min-height: 170px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease, background 0.18s ease;
}

.tier-card--rich h3,
.tier-card--rich h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.tier-card--rich p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tier-card--rich:hover {
  background: linear-gradient(160deg, rgba(164, 155, 255, 0.08), rgba(5, 5, 8, 0.6));
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
}

.tier-card-link {
  color: var(--accent-strong);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* How it works */
.steps--numbers {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  color: var(--text-muted);
}

.steps--numbers li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 0.94rem;
  padding: 12px 12px 10px;
  background: #0f0f1c;
  border: 1px solid #202034;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(164, 155, 255, 0.18), rgba(9, 9, 18, 0.9));
  border: 1px solid #2a2a44;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step-copy h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.step-copy p {
  margin: 4px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Final CTA */
.final-cta--full {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(145deg, rgba(122, 122, 255, 0.28), rgba(5, 5, 10, 0.94));
  border: 1px solid rgba(164, 155, 255, 0.2);
  text-align: left;
}

.final-cta-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.final-cta-sub {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 540px;
  line-height: 1.55;
}

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

  .final-cta-body {
    align-items: flex-start;
  }

  .final-cta-actions {
    width: 100%;
  }

  .template-card--featured .template-card-image {
    height: 180px;
  }
}

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

  .template-choice-guide {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .template-choice-item {
    padding: 11px;
  }

  .template-card-details {
    gap: 3px;
  }

  .template-card-details p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .template-card-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .final-cta-actions,
  .section-actions,
  .about-cta-row,
  .portfolio-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .final-cta-actions .btn,
  .section-actions .btn,
  .about-cta-row .btn,
  .portfolio-cta-row .btn {
    width: 100%;
  }

  .template-card--featured .template-card-image {
    height: 160px;
  }
}

/* ===========================
   Responsive Styles
   =========================== */

@media (min-width: 769px) and (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid #181825;
  }

  .logo {
    margin-bottom: 0;
  }

  .nav {
    width: 100%;
    font-size: 0.86rem;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-link {
    padding: 6px 9px;
  }

  .sidebar-footer {
    display: none;
  }

  .main {
    padding: 20px 16px 28px;
  }

  .hero {
    margin-bottom: 22px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .final-cta {
    text-align: left;
  }
}

/* =========================================
   TEMPLATE CARDS (Templates Page Only)
   ========================================= */

.template-card-has-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
}

.template-thumb {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.template-card-body h3 {
  margin: 6px 0 4px;
  font-size: 1rem;
}

.template-card-body p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.35;
}

/* ===========================
   Combined header (global + template)
   =========================== */

.combined-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.combined-header .global-nav-wrapper,
.combined-header .template-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  justify-content: space-between;
}

.combined-header .global-nav-wrapper {
  justify-content: flex-start;
}

.combined-header .template-nav-wrapper {
  justify-content: flex-end;
}

.combined-header .global-nav-wrapper .logo {
  margin: 0;
}

.combined-header .global-nav-wrapper .nav-links {
  flex-direction: row;
  gap: 10px;
}

.combined-header .global-nav-wrapper .nav-link {
  padding: 8px 10px;
}

/* ===========================
   Template mode global nav (horizontal)
   =========================== */

body.template-mode .global-nav-wrapper {
  width: 100%;
  background: var(--surface-primary);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 200;
}

body.template-mode .global-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

body.template-mode .global-nav a {
  font-weight: 600;
  padding: 6px 10px;
}

/* ===========================
   Template mode: top header using sidebar styles
   =========================== */

body.template-mode .template-global-header {
  width: 100%;
  background: linear-gradient(180deg, #0b0b13 0%, #050508 100%);
  border-bottom: 1px solid #181825;
}

body.template-mode .template-header-sidebar {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: none;
  border-right: none;
  flex-wrap: wrap;
  gap: 12px 18px;
}

body.template-mode .template-header-sidebar .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

body.template-mode .template-header-sidebar .nav {
  display: flex;
  flex-direction: column;
}

body.template-mode .template-header-sidebar .nav-links {
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  body.template-mode .template-header-sidebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px 14px;
  }

  body.template-mode .template-header-sidebar .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ===========================
   Template pages footer
   =========================== */

.site-footer {
  margin-top: 48px;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 55%);
}

.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .footer-note {
  margin: 0 0 4px 0;
  color: var(--text-secondary);
}

.site-footer .footer-meta {
  margin: 0 0 8px 0;
  color: var(--text-muted);
}

.site-footer .footer-legal {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer .footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer .footer-legal a:hover {
  text-decoration: underline;
}

/* ===============================
   ROTATING HERO (EchoWebVision)
   =============================== */

.hero-rotating {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #2d2d4a;
  background: #0d0d14;
  box-shadow: var(--shadow-soft);
}

/* Top-left label (made more readable) */
/* Background images container */
.hero-rotating-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Background readability overlay (stronger so text doesn't disappear) */
.hero-rotating::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  background: radial-gradient(circle at 25% 30%, rgba(123, 123, 255, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: none;
  transition: opacity 600ms ease, transform 1400ms ease;
  filter: brightness(0.45) contrast(1.05);
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
}

body.home-page .hero-image {
  transform: none;
  filter: brightness(0.45) contrast(1.05);
}

body.home-page .hero-image.active {
  transform: none;
}

/* Foreground Content (SHRUNK + GLASS PANEL) */
.hero-rotating-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 30;
  max-width: 340px;
  padding: 12px 12px 12px;
  border-radius: 14px;
  background: rgba(5, 5, 8, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-main-title {
  font-size: 1.55rem;
  font-weight: 650;
  margin-bottom: 6px;
  line-height: 1.15;
  color: var(--text-main);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.60);
}

.hero-main-sub {
  color: rgba(244, 244, 255, 0.78);
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.60);
}

body.home-page .hero-main-sub,
body.home-page .hero-main-sub p {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home-page .hero-main-sub::before,
body.home-page .hero-main-sub::after {
  content: none !important;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===========================
   HOME - HERO UNIFICATION + SIDEBAR OVERLAY
   =========================== */

body.home-page .app-shell {
  position: relative;
  overflow: visible;
}

body.home-page .hero-canvas {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: var(--radius-lg);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.home-page .hero-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
  z-index: 1;
  pointer-events: none;
}

body.home-page .hero-rotating-images {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
}

body.home-page .hero-rotating {
  background: transparent;
  border: none;
  box-shadow: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  z-index: 2;
  overflow: visible;
}

body.home-page .hero-canvas-overlay,
body.home-page .hero-rotating::after {
  display: block;
}

body.home-page .hero-rotating::after {
  background: linear-gradient(120deg, rgba(5, 5, 10, 0.55), rgba(5, 5, 10, 0.28) 55%, rgba(5, 5, 10, 0) 100%),
    radial-gradient(circle at 20% 40%, rgba(10, 10, 18, 0.38), transparent 52%);
  pointer-events: none;
}

body.home-page .hero-body {
  position: relative;
  min-height: 0;
  height: auto;
  z-index: 20;
  width: 100%;
  max-width: none;
  padding: clamp(22px, 6vw, 46px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 6, 14, 0.45), rgba(6, 8, 18, 0.28));
  pointer-events: none;
  z-index: 5;
}

body.home-page .hero-headline {
  color: var(--text-main);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  max-width: 880px;
  text-align: center;
  position: static;
  transform: none;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

body.home-page .hero-main-title {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 6px;
}

body.home-page .hero-main-sub {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-content,
.hero-body,
.hero-headline {
  text-align: center;
}

/* Hero glass strips */
.hero-glass-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin: 6px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(150, 120, 255, 0.18);
}

.hero-glass-line--title {
  padding: 8px 14px;
  border-radius: 16px;
}

.glass-pill,
.hero-pill {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(125, 100, 255, 0.08),
    0 0 28px rgba(125, 100, 255, 0.10);
}

.hero-pills {
  max-width: 900px;
  width: 100%;
  justify-content: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: var(--text-main);
  text-align: center;
  line-height: 1.4;
  min-height: 36px;
}

.hero-pill--muted {
  background: rgba(10, 12, 20, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.hero-content,
.hero-copy,
.hero-body,
.hero-headline {
  text-align: center;
}

.hero-cta-card {
  margin: 18px auto 0;
  width: min(720px, 92%);
  text-align: center;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38), 0 0 52px rgba(125, 100, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: visible;
}

.hero-cta-card * {
  text-align: center;
}

.hero-panel-text {
  max-width: 46ch;
  margin: 8px auto 0;
  line-height: 1.5;
  opacity: 0.95;
}

.hero-cta-sub {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-content,
.hero-copy,
.hero-cta-card {
  position: relative;
  z-index: 5;
}

body.home-page .hero-rotating-content,
body.home-page .hero-cta-card {
  position: static;
  z-index: 25;
  max-width: 720px;
  width: min(720px, 92vw);
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.40), 0 0 42px rgba(125, 100, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 18px auto 0;
}

body.home-page .hero-rotating-content {
  right: auto;
  top: auto;
}

body.home-page .hero-cta-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  position: relative;
}

body.home-page .hero-cta-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 35%, rgba(125, 100, 255, 0.22), transparent 60%);
  filter: blur(14px);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: min(1100px, 92vw);
  position: relative;
  z-index: 6;
}

.hero-sublede {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.hero-cta-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-eyebrow--lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  letter-spacing: 0.2em;
}

.hero-eyebrow {
  width: fit-content;
}

body.home-page .hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

body.home-page .hero-cta-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 auto;
  text-align: center;
  max-width: 46ch;
  display: block;
}

body.home-page .hero-buttons {
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

body.home-page .hero-buttons .btn:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(125, 100, 255, 0.22);
}

@media (min-width: 1025px) {
  body.home-page .hero-cta-card {
    width: fit-content;
    max-width: 600px;
  }

  /* Limit copy line length so the sentence ends snugly */
  body.home-page .hero-cta-card p {
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Keep CTA layout snug and wrapping naturally on desktop */
  body.home-page .hero-cta-card .hero-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.home-page .hero-cta-card .hero-buttons .btn {
    width: auto;
  }
}

body.home-page .main {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.home-page .features,
body.home-page .template-preview,
body.home-page .tiers-preview,
body.home-page .how-it-works-preview,
body.home-page .final-cta,
body.home-page .site-footer {
  width: 100%;
  padding: 30px 32px 28px;
  margin: 0;
}

body.home-page .features {
  margin-top: 0;
}

body.home-page .hero-overlay-label {
  display: none;
}

body.home-page .sidebar {
  z-index: 10;
  background: rgba(11, 11, 19, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-subtle);
}

/* Smaller buttons inside this hero so the card stays compact */
.hero-rotating .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  body.home-page .hero-rotating {
    height: auto;
    min-height: 0;
    padding: 26px 0 30px;
  }

  body.home-page .hero-body {
    padding: clamp(22px, 7vw, 44px);
    min-height: 0;
  }

  .hero-pill {
    padding: 7px 10px;
  }
}

@media (max-width: 768px) {
  body.home-page .hero-rotating {
    height: auto;
    min-height: 0;
    padding: 22px 0 26px;
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  body.home-page .hero-canvas {
    height: 100%;
    min-height: 0;
  }

  body.home-page .hero-headline {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 10px;
    align-items: center;
  }

  body.home-page .hero-body {
    margin: 0 auto;
    max-width: 92%;
    padding: clamp(18px, 7vw, 42px);
    padding-top: clamp(26px, 8vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 0;
  }

  body.home-page .hero-main-title {
    font-size: clamp(1.9rem, 6vw, 2.2rem);
    margin-bottom: 8px;
  }

  body.home-page .hero-main-sub {
    margin-bottom: 12px;
  }

  body.home-page .hero-rotating-content {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    transform: none;
    width: min(100%, 520px);
    max-width: 520px;
    margin: 6px auto 0;
  }

  body.home-page .hero-cta-card {
    padding: 14px 16px 12px;
  }

  body.home-page .hero-cta-sub {
    line-height: 1.4;
  }

  body.home-page .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.home-page .hero-buttons .btn.secondary {
    background: rgba(123, 123, 255, 0.12);
    border: 1px solid rgba(123, 123, 255, 0.35);
    color: var(--accent-strong);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 520px) {
  body.home-page .hero-rotating {
    height: auto;
    min-height: 0;
    padding: 18px 0 22px;
  }

  body.home-page .hero-body {
    gap: 14px;
    padding: 18px 18px 22px;
  }

  body.home-page .hero-main-title {
    font-size: clamp(1.8rem, 7vw, 2rem);
  }

  body.home-page .hero-rotating-content {
    max-width: 100%;
    width: 100%;
  }

  .hero-glass-line {
    padding: 5px 10px;
    margin: 4px 0;
  }

  .hero-glass-line--title {
    padding: 7px 12px;
  }

  .hero-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .glass-pill,
  .hero-pill,
  .hero-main-tagline,
  .hero-main-subline {
    padding: 9px 12px;
  }

  .hero-cta-card {
    padding: 16px 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Responsive */
@media (max-width: 720px) {
  body:not(.home-page) .hero-rotating {
    height: 320px;
  }

  body:not(.home-page) .hero-rotating-content {
    left: 16px;
    bottom: 18px;
    max-width: 300px;
    padding: 11px 11px 11px;
  }

  body:not(.home-page) .hero-main-title {
    font-size: 1.35rem;
  }

  body:not(.home-page) .hero-buttons {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  body:not(.home-page) .hero-rotating-content {
    max-width: 92%;
  }

  body:not(.home-page) .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Phase 4E - Mobile Comfort Pass */
@media (max-width: 520px) {
  .main {
    padding: 22px 22px;
  }

  body.home-page .main {
    padding: 0;
  }

  .page-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 8px;
  }

  .page-header {
    margin-bottom: 18px;
  }

  .template-grid,
  .tier-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .template-card,
  .tier-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .template-card--preview,
  .template-card--featured {
    padding: 0;
  }

  .template-card-body {
    padding: 12px 12px 13px;
  }

  .template-card-image {
    height: 170px;
  }

  .features,
  .tiers-preview,
  .template-preview,
  .how-it-works-preview,
  .final-cta,
  .pricing-final-cta,
  .page-section {
    padding: 18px;
  }

  .contact-form {
    padding: 16px;
    gap: 14px;
  }

  .contact-form .form-field {
    gap: 8px;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .main {
    padding: 20px 18px;
  }

  body.home-page .main {
    padding: 0;
  }

  .template-card-image {
    height: 150px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   Phase 4F - Mobile Nav
   =========================== */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #0f0f1a;
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle .icon {
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle .icon-open {
  display: inline-flex;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: inline-flex;
}


@media (max-width: 768px) {
  .app-shell {
    display: block;
    padding-top: 96px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #181825;
    padding: 18px 18px;
  }

  .sidebar .logo {
    margin-bottom: 0;
  }

  .sidebar-navbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .sidebar-navbox .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    order: 0;
    flex-shrink: 0;
  }

  .sidebar-navbox .nav-toggle {
    position: static;
    margin: 0;
    transform: none;
  }

  .sidebar-navbox .brand-link {
    order: 1;
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .main {
    width: 100%;
    margin: 0;
    padding-top: 6px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    padding: 14px;
    background: rgba(11, 11, 19, 0.96);
    border: 1px solid #181825;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 60;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .sidebar-footer {
    display: none;
  }
}

@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  body:not(.home-page) .hero-rotating {
    height: auto;
    min-height: 420px;
    padding: 14px 14px 18px;
  }

  body:not(.home-page) .hero-rotating-images {
    height: 300px;
  }

  body:not(.home-page) .hero-image {
    object-fit: cover;
  }

  body:not(.home-page) .hero-rotating-content {
    left: 12px;
    right: 12px;
    bottom: 14px;
    padding: 12px;
    max-width: 92%;
  }

  body:not(.home-page) .hero-main-title {
    font-size: 1.32rem;
  }

  body:not(.home-page) .hero-main-sub {
    font-size: 0.94rem;
    margin-bottom: 10px;
  }

  body:not(.home-page) .hero-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* --- Narrow desktop / split-screen hero refinements (700px–1100px) --- */
@media (max-width: 1100px) and (min-width: 701px) {
  /* Home hero tweaks */
  body.home-page .hero-body {
    max-width: 960px;
    margin: 0 auto;
    padding-inline: 24px;
    gap: 18px;
  }

  body.home-page .hero-main-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    line-height: 1.08;
  }

  body.home-page .hero-main-sub {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  body.home-page .hero-main-sub .hero-glass-line {
    margin: 2px 6px;
    padding: 6px 10px;
  }

  body.home-page .hero-cta-card {
    padding: 14px 16px 12px;
    gap: 10px;
    max-width: 520px;
  }

  body.home-page .hero-cta-card .hero-buttons {
    gap: 8px;
    flex-wrap: wrap;
  }

  body.home-page .hero-cta-card .btn {
    padding: 10px 14px;
  }

  body.home-page .hero-rotating::after {
    background: linear-gradient(120deg, rgba(5, 5, 10, 0.62), rgba(5, 5, 10, 0.36) 55%, rgba(5, 5, 10, 0.1) 100%),
      radial-gradient(circle at 20% 40%, rgba(10, 10, 18, 0.44), transparent 52%);
  }

  /* Template hero tweaks */
  body:not(.home-page) .hero-rotating {
    min-height: 380px;
    padding: 16px 18px 20px;
  }

  body:not(.home-page) .hero-rotating-content {
    max-width: 340px;
    padding: 12px;
  }

  body:not(.home-page) .hero-main-title {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    line-height: 1.15;
  }

  body:not(.home-page) .hero-main-sub {
    margin-bottom: 10px;
  }

  body:not(.home-page) .hero-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Slightly stronger scrim for readability */
  body:not(.home-page) .hero-rotating::after {
    background: linear-gradient(135deg, rgba(8, 8, 16, 0.58), rgba(10, 12, 22, 0.32), rgba(12, 14, 22, 0.12));
  }
}

/* --- Mobile hero refinements (keep desktop/tablet unchanged) --- */
@media (max-width: 520px) {
  body.home-page .hero-rotating {
    padding: 14px 0 18px;
  }

  body.home-page .hero-body {
    padding: 16px;
    gap: 12px;
  }

  body.home-page .hero-main-sub {
    text-align: center;
    gap: 4px;
  }

  body.home-page .hero-main-sub .hero-glass-line {
    display: inline-block;
    margin: 2px 6px 4px 0;
    padding: 5px 9px;
  }

  body.home-page .hero-cta-card {
    padding: 12px 14px 10px;
    gap: 10px;
  }

  body.home-page .hero-cta-card .hero-buttons {
    gap: 8px;
  }

  body.home-page .hero-cta-card .btn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  body.home-page .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  /* Quiet the small label on mobile to reduce clutter */
  body.home-page .hero-cta-card .hero-eyebrow {
    display: none;
  }

  /* Subtle scrim behind hero text on mobile */
  .hero-rotating.hero-unified {
    position: relative;
  }

  .hero-rotating.hero-unified::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 15;
    background: linear-gradient(160deg, rgba(5, 6, 14, 0.55), rgba(8, 10, 18, 0.35), rgba(10, 12, 20, 0.2));
    pointer-events: none;
  }

  /* Keep hero text above scrim */
  .hero-body,
  .hero-headline,
  .hero-cta-card {
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 420px) {
  body.home-page .hero-rotating {
    padding: 12px 0 16px;
  }

  body.home-page .hero-cta-card .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===========================
   HOME HERO — CENTER + GLOW FIX
   =========================== */

.home-page .hero-stack {
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.home-page .hero-headline,
.home-page .hero-copy {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Ensure the two main pills always center nicely */
.home-page .hero-main-sub {
  width: 100%;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: none !important;   /* kills any accidental “group pill” */
  border: 0 !important;
  padding: 0 !important;
}

/* Make sure individual pills don’t drift left */
.home-page .hero-pill,
.home-page .hero-pill--muted,
.home-page .hero-glass-line {
  margin-inline: auto;
  text-align: center;
}

/* The muted pill line should stay centered even when it wraps */
.home-page .hero-pill--muted {
  display: inline-flex;
  justify-content: center;
  max-width: min(720px, 92vw);
}

/* Center the CTA card and its text properly */
.home-page .hero-rotating-content {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  margin: 18px auto 0;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-page .hero-cta-card {
  width: min(560px, 92vw);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-page .hero-cta-top,
.home-page .hero-cta-sub {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.home-page .hero-cta-sub {
  max-width: 52ch;
  line-height: 1.4;
}

.home-page .hero-main-title {
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.22);
}

/* Subtle purple glow (tasteful) */
.home-page .hero-glass-line--title {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.26),
    0 0 42px rgba(167, 139, 250, 0.16);
}

.home-page .hero-pill,
.home-page .hero-pill--muted {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.18),
    0 0 26px rgba(167, 139, 250, 0.10);
}

.home-page .hero-cta-card {
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.20),
    0 18px 60px rgba(0, 0, 0, 0.35),
    0 0 34px rgba(167, 139, 250, 0.12);
}

.home-page .btn.primary:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(167, 139, 250, 0.24);
}

/* ===========================
   HOME HERO — HARD CENTER OVERRIDE
   =========================== */
body.home-page .hero-body{
  align-items: center;
  text-align: center;
}

body.home-page .hero-stack{
  align-items: center;
  text-align: center;
}

/* Center the “pill” subtitle lines */
body.home-page .hero-main-sub{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 10px auto 0;
  text-align: center;
}

/* Make each line behave like a pill and stay centered */
body.home-page .hero-main-sub .hero-glass-line{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Force the long muted line onto its own centered row */
body.home-page .hero-main-sub .hero-pill--muted{
  flex: 1 1 100%;
  max-width: 720px;
}

/* IMPORTANT: Put the CTA card back into normal document flow */
body.home-page .hero-rotating-content,
body.home-page .hero-cta-card{
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  margin: 18px auto 0;
  max-width: min(560px, 92vw);
}

/* Center CTA card contents */
body.home-page .hero-cta-card{
  text-align: center;
}

body.home-page .hero-buttons{
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================
   HOME HERO — CENTERED PILL CLEANUP
   ===================================== */

.home-page .hero-body,
.home-page .hero-stack {
  align-items: center;
  text-align: center;
}

/* Pill container stays centered */
.home-page .hero-main-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 0;
  text-align: center;
}

/* Pills hug text instead of stretching */
.home-page .hero-glass-line,
.home-page .hero-pill,
.home-page .hero-pill--muted {
  width: fit-content;
  max-width: 92%;
  padding: 8px 14px;
  white-space: normal;
}

/* Long subtitle pill should not span full width */
.home-page .hero-pill--muted {
  flex: 0 0 auto;
  max-width: 720px;
}

/* Keep CTA card perfectly centered and in-flow */
.home-page .hero-rotating-content {
  position: static;
  margin: 18px auto 0;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =====================================
   HOME HERO — HEADLINE ONE LINE + PILL STYLE FIX
   ===================================== */

/* Headline: keep on one line on desktop/tablet */
.home-page .hero-title,
.home-page .hero-title * {
  white-space: nowrap;
}

/* Give headline room so it doesn’t wrap */
.home-page .hero-title {
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* On small screens allow wrapping again (so it doesn’t overflow) */
@media (max-width: 640px) {
  .home-page .hero-title,
  .home-page .hero-title * {
    white-space: normal;
  }
}

/* 3rd line pill should look like the main glass pill (no side caps/effects) */
.home-page .hero-pill--muted {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Kill any pseudo-elements that create side “caps” */
.home-page .hero-pill--muted::before,
.home-page .hero-pill--muted::after,
.home-page .hero-glass-line::before,
.home-page .hero-glass-line::after {
  content: none !important;
  display: none !important;
}

/* Ensure the muted pill hugs text like the others */
.home-page .hero-pill--muted {
  width: fit-content !important;
  padding: 8px 14px !important;
}

/* =====================================
   HOME HERO — HEADLINE + 3RD PILL FIX (FINAL)
   ===================================== */

/* Force the title pill to stay one line on desktop/tablet */
@media (min-width: 641px) {
  body.home-page .hero-main-title {
    white-space: nowrap;
    max-width: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.home-page .hero-glass-line--title {
    white-space: nowrap;
  }
}

/* Allow wrapping again on small screens so it doesn't overflow */
@media (max-width: 640px) {
  body.home-page .hero-main-title,
  body.home-page .hero-glass-line--title {
    white-space: normal;
  }
}

/* Make the “muted” pill look like the standard glass pill */
body.home-page .hero-glass-line.hero-pill--muted {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: var(--text-main) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset,
              0 10px 30px rgba(0, 0, 0, 0.35),
              0 0 22px rgba(150, 120, 255, 0.18) !important;

  /* Hug the text instead of stretching */
  width: fit-content !important;
  max-width: min(720px, 92vw) !important; /* wraps only when needed */
  padding: 8px 14px !important;
  white-space: normal !important;
}

/* =====================================
   HOME HERO — FIX 3RD PILL SIDE BARS
   ===================================== */

/* The muted pill must shrink to content */
body.home-page .hero-glass-line.hero-pill--muted{
  display: inline-flex !important;
  width: fit-content !important;
  flex: 0 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Kill the decorative side bars/caps (pseudo-elements) ONLY on the muted pill */
body.home-page .hero-glass-line.hero-pill--muted::before,
body.home-page .hero-glass-line.hero-pill--muted::after{
  content: none !important;
  display: none !important;
}

/* If the bars are coming from an inner span, kill those too */
body.home-page .hero-glass-line.hero-pill--muted > *::before,
body.home-page .hero-glass-line.hero-pill--muted > *::after{
  content: none !important;
  display: none !important;
}

/* In case the bars are coming from a "muted" modifier class */
body.home-page .hero-pill--muted::before,
body.home-page .hero-pill--muted::after{
  content: none !important;
  display: none !important;
}

/* ===========================
   HOME HERO — IMAGE CENTER + EYEBROW PILL
   =========================== */

/* Force ALL rotating hero images to a consistent focal point */
body.home-page .hero-rotating-images .hero-image {
  object-fit: cover;
  object-position: 50% 0% !important;
  background-position: 50% 0% !important;
}

/* Kill any remaining per-slide focal overrides */
body.home-page .hero-rotating-images .hero-image:nth-child(n) {
  object-position: 50% 0% !important;
  background-position: 50% 0% !important;
}

/* Pill styling for the “Creator-owned websites” label */
body.home-page .hero-eyebrow--lead.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ensure it stays centered in the hero */
body.home-page .hero-headline {
  text-align: center;
}

/* --- HOME HERO: force consistent centered crops for all rotating backgrounds --- */
body.home-page .hero-rotating-images .hero-image {
  object-position: 50% 0% !important;
  background-position: 50% 0% !important;
}
