/* ==========================================================================
   Wis AI — The Enterprise AI Agent Blueprint
   Dark canvas + apricot accent. Components are appended in page order below.
   ========================================================================== */

:root {
  /* Wisam Damouny Apricot Signature Colors */
  --accent: #D97757;
  --accent-hover: #E58A6C;
  --accent-light: #FFA88B;
  --accent-dark: #B55B3C;
  --accent-glow: rgba(217, 119, 87, 0.25);
  --accent-glow-strong: rgba(217, 119, 87, 0.55);
  --accent-tint: rgba(217, 119, 87, 0.09);
  --accent-tint-hover: rgba(217, 119, 87, 0.16);

  /* Scalemont-inspired Deep Obsidian Canvas */
  --bg: #07080c;
  --bg-surface: #0e1017;
  --bg-card: #11141c;
  --bg-card-hover: #151822;

  --card-border: rgba(255, 255, 255, 0.07);
  --card-hover-border: rgba(217, 119, 87, 0.42);
  --card-glow-border: rgba(217, 119, 87, 0.65);

  /* Typography Colors */
  --fg: #ffffff;
  --fg-body: #e4e7ec;
  --fg-muted: #9499a8;
  --fg-subtle: #5f6575;

  /* Accents & Status */
  --green: #22c48e;
  --green-glow: rgba(34, 196, 142, 0.25);

  /* Layout & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
  --shadow-btn: 0 4px 20px rgba(217, 119, 87, 0.45);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--fg-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Ambient Radial Glows (Wisam Damouny Signature) */
.bg-glow-top {
  position: fixed;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.16) 0%, rgba(7, 8, 12, 0) 70%);
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-bottom {
  position: fixed;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.1) 0%, rgba(7, 8, 12, 0) 70%);
  bottom: -250px;
  right: -180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .brand-title {
  font-family: 'Syne', sans-serif;
  color: var(--fg);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.accent-text {
  color: var(--accent);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 55%, #E58A6C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Minimalist Sticky Header (Scalemont Style) */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(7, 8, 12, 0.85);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--fg);
}

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

.btn-sm {
  padding: 9px 20px;
  font-size: 13.5px;
}

/* Hero */
.hero {
  padding: 100px 0 76px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  border: 1px solid rgba(217, 119, 87, 0.3);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 800;
  max-width: 960px;
  margin: 0 auto 24px;
  letter-spacing: -0.03em;
}

.hero .lede {
  color: var(--fg-muted);
  font-size: clamp(16.5px, 2.2vw, 20px);
  max-width: 720px;
  margin: 0 auto 38px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow-strong);
  color: #ffffff;
}

.btn-outline {
  background: rgba(14, 16, 23, 0.7);
  border-color: var(--card-border);
  color: var(--fg-body);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-tint);
}

/* Split hero: copy left, file tree right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Grid children with <pre> inside must be allowed to shrink below content width */
.hero-grid > *,
.inside-grid > * {
  min-width: 0;
}

.hero.hero-split {
  text-align: left;
  padding: 84px 0 72px;
}

.hero.hero-split h1,
.hero.hero-split .lede {
  margin-left: 0;
  margin-right: 0;
}

.hero.hero-split h1 {
  font-size: clamp(38px, 5.2vw, 60px);
}

.hero.hero-split .lede {
  margin-bottom: 32px;
}

.hero.hero-split .hero-cta-group {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--fg-subtle);
  margin-bottom: 26px;
}

.hero-compat {
  font-size: 13px;
  color: var(--fg-subtle);
  line-height: 1.7;
}

.hero-compat span {
  color: var(--fg-muted);
  font-weight: 500;
}

/* Code / file-tree card */
.code-card {
  background: #080a0f;
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-subtle);
}

.code-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.code-bar .code-title {
  margin-left: 8px;
}

.code-card pre {
  margin: 0;
  padding: 20px 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-body);
  overflow-x: auto;
}

.code-card .k { color: var(--accent); }
.code-card .c { color: var(--fg-subtle); }

/* Section Common */
section {
  padding: 88px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.16;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.6;
}

/* Scalemont Concept: 3 Numbered Bento Feature Cards (1/, 2/, 3/) */
.numbered-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.numbered-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.numbered-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.card-num {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.numbered-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.numbered-card p {
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(217, 119, 87, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* Architecture Showcase (Protected Enterprise Topology) */
.architecture-showcase {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 22px;
}

.arch-title-group h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.arch-title-group p {
  color: var(--fg-muted);
  font-size: 14px;
}

.arch-tabs {
  display: flex;
  gap: 8px;
  background: rgba(7, 8, 12, 0.75);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--card-border);
  overflow-x: auto;
}

.arch-tab {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.arch-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 12px var(--accent-glow-strong);
}

.arch-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.arch-pane {
  display: none;
}

.arch-pane.active {
  display: contents;
}

.arch-explainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arch-explainer h4 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #ffffff;
}

.arch-explainer p {
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.arch-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.arch-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-body);
}

.arch-features li i {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Protected Spec & Topology Card */
.arch-spec-card {
  background: #080a0f;
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md), inset 0 0 30px rgba(217, 119, 87, 0.04);
  position: relative;
  overflow: hidden;
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(217, 119, 87, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.spec-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.spec-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.spec-label {
  color: var(--fg-subtle);
}

.spec-val {
  color: var(--fg);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.spec-val.accent {
  color: var(--accent);
}

.spec-val.green {
  color: var(--green);
}

.spec-lock-box {
  background: rgba(14, 16, 23, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.lock-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.lock-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.spec-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.spec-cta:hover {
  transform: translateX(3px);
  color: var(--accent-hover);
}

/* Deliverables Grid (6 Cards) */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.deliverable-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.deliverable-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  border: 1px solid rgba(217, 119, 87, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 20px;
}

.deliverable-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.deliverable-card p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.deliverable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  font-size: 12px;
  color: var(--fg-subtle);
}

.deliverable-format {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--fg-muted);
}

/* Author Spotlight */
.author-spotlight {
  background: linear-gradient(135deg, rgba(17, 20, 28, 0.9) 0%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.author-portrait-wrap {
  text-align: center;
}

.author-portrait {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(217, 119, 87, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 24px var(--accent-glow);
  background-color: #161822;
}

.author-bio-content h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.author-role {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.author-bio-content p {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.author-credentials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.cred-pill i {
  color: var(--accent);
  font-size: 16px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 45px -10px var(--accent-glow-strong);
  background: linear-gradient(180deg, rgba(28, 20, 20, 0.9) 0%, rgba(17, 20, 28, 0.9) 100%);
}

.featured-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--accent-glow-strong);
  white-space: nowrap;
}

.tier-name {
  font-size: 20px;
  margin-bottom: 6px;
}

.tier-desc {
  color: var(--fg-muted);
  font-size: 13.5px;
  min-height: 40px;
  margin-bottom: 18px;
}

.tier-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.tier-price {
  font-family: 'Syne', sans-serif;
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.tier-cadence {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 6px;
}

.tier-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
}

.tier-features li i {
  color: var(--green);
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-features li.dimmed {
  color: var(--fg-subtle);
}

.tier-features li.dimmed i {
  color: var(--fg-subtle);
}

.btn-buy {
  display: inline-block;
  box-sizing: border-box;
  text-decoration: none;
  width: 100%;
  padding: 14px 0;
  text-align: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.btn-buy.featured-btn {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-buy.featured-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow-strong);
}

.pricing-notes {
  margin-top: 36px;
  text-align: center;
}

.session-callout {
  font-size: 15px;
  margin-bottom: 12px;
}

.session-callout a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.security-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--fg-muted);
  font-size: 13.5px;
  margin-top: 20px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item i {
  color: var(--accent);
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover, .faq-item.open {
  border-color: var(--card-hover-border);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 24px;
  color: var(--fg);
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-trigger i {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-trigger i {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 24px 22px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-content {
  display: block;
}

/* Footer */
footer {
  background: #050608;
  border-top: 1px solid var(--card-border);
  padding: 56px 0 36px;
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--fg-muted);
  font-size: 13.5px;
  margin-top: 8px;
  max-width: 420px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  color: var(--fg-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--fg-muted);
}

.footer-bottom a:hover {
  color: var(--fg);
}

/* Look inside: TOC + excerpt */
.inside-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.toc {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--fg-subtle);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}

.toc-title i { color: var(--accent); font-size: 16px; }

.toc-list {
  list-style: none;
}

.toc-list li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--fg-body);
  line-height: 1.45;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list .n {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-size: 12.5px;
  min-width: 26px;
  padding-top: 2px;
}

.section-cta {
  text-align: center;
  margin-top: 36px;
}

/* Fit */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.fit-col {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.fit-col h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.fit-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-col li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--fg-body);
  line-height: 1.55;
}

.fit-col li i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 17px;
}

.fit-yes li i { color: var(--green); }
.fit-no li i { color: var(--fg-subtle); }
.fit-no li { color: var(--fg-muted); }

/* Author links */
.author-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.author-links a:hover { color: var(--accent-hover); }

/* Pricing: two tiers + add-ons + guarantee */
.pricing-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}

.guarantee {
  max-width: 880px;
  margin: 28px auto 0;
  border: 1px solid rgba(34, 196, 142, 0.35);
  background: rgba(34, 196, 142, 0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guarantee i {
  color: var(--green);
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee strong {
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.guarantee p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.guarantee a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.addon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin: 20px auto 0;
}

.addon {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.addon h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.addon p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.addon a {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.addon a:hover { color: var(--accent-hover); }

.security-trust-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Free sample band */
#sample { padding-top: 0; }

.sample-band {
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.14) 0%, rgba(17, 20, 28, 0.9) 60%);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}

.sample-band h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}

.sample-band p {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.sample-band .section-tag { margin-bottom: 8px; }

/* Testimonials (used once real quotes are enabled) */
.quote-card p {
  font-size: 15.5px;
  color: var(--fg-body);
  font-style: italic;
}

.quote-card footer {
  font-size: 13px;
  color: var(--fg-muted);
}

/* Legal Pages */
.legal-container {
  max-width: 820px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.legal-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.legal-card .last-updated {
  color: var(--fg-muted);
  font-size: 13.5px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
}

.legal-card h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card p, .legal-card ul, .legal-card ol {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-card ul, .legal-card ol {
  padding-left: 24px;
}

.legal-card strong {
  color: var(--fg);
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero.hero-split { text-align: center; }
  .hero.hero-split h1,
  .hero.hero-split .lede { margin-left: auto; margin-right: auto; }
  .hero.hero-split .hero-cta-group { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .numbered-cards-grid { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid.two { grid-template-columns: 1fr; }
  .addon-row { grid-template-columns: 1fr; }
  .sample-band { grid-template-columns: 1fr; text-align: center; }
  .author-spotlight { grid-template-columns: 1fr; text-align: center; }
  .author-portrait-wrap { margin: 0 auto; }
  .author-links { justify-content: center; }
  .nav-menu { display: none; }
}

@media (max-width: 640px) {
  .hero.hero-split { padding: 56px 0 44px; }
  .btn { width: 100%; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .nav-actions .btn-sm { width: auto; }
  .author-spotlight { padding: 28px 20px; }
  .legal-card { padding: 28px 20px; }
  .sample-band { padding: 28px 22px; }
  .addon { flex-direction: column; align-items: flex-start; }
  .code-card pre { font-size: 12px; padding: 16px; }
}