/* ============================================================
   SITE DESIGNER PAGE — designer.css
   Design system tokens inherited from index.css via shared
   components. All ds-* prefixed classes are local to this page.
   ============================================================ */

/* ── Font faces (shared with homepage) ── */
/* Nohemi (variable) is declared only once, in components/base.css */

/* ── Design tokens ──
   Colours, type and spacing come from components/base.css. Only the
   values specific to this page are declared here. */
:root {
  --border-dark: rgba(255,255,255,0.08);
  --gradient-hero: linear-gradient(135deg,#FF5A1F,#6366F1);
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(255, 90, 31,0.15);
  --nav-height: 58px;
}

/* ── Base (reset in components/base.css) ── */
body { background: var(--surface); }
video { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ── Shared section typography ── */
.eyebrow {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: var(--sp-2);
}
.eyebrow--light { color: var(--primary-on-dark); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
}
.section-title--light { color: var(--text-on-dark); }

.section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}
.section-sub--light { color: var(--text-muted-on-dark); }

.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* ── Shared buttons ── */
.ds-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .ds-btn-primary:hover {
    background: var(--primary-solid-hover);
    box-shadow: 0 0 60px rgba(255, 90, 31,0.28);
    transform: translateY(-1px);
  }
}
.ds-btn-primary--lg { padding: 16px 36px; font-size: 16px; }
.ds-btn-primary--inverted {
  background: #F5F5EC;
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.ds-btn-primary--inverted:hover {
  background: #E9E2D7;
  box-shadow: 0 8px 40px rgba(0,0,0,0.16);
}

.ds-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
.ds-btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
/* Press feedback: a quick dip on press that eases back on release */
.ds-btn-primary:active,
.ds-btn-ghost:active { transform: scale(0.98); transition-duration: 0.08s; }

/* ============================================================
   S1 — HERO
   Split: copy left, the official product video framed on the right.
   ============================================================ */
.ds-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100svh, 920px);
  padding: calc(var(--nav-height, 58px) + var(--sp-6)) 0 var(--sp-7);
  background: var(--dark-bg);
  color: var(--text-on-dark);
  isolation: isolate;
}

.ds-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-hero-glow {
  position: absolute;
  right: -10%;
  top: 50%;
  width: 1000px;
  height: 820px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 90, 31, 0.2) 0%, rgba(255, 90, 31, 0.05) 42%, transparent 68%);
}
.ds-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.ds-hero-inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: center;
  gap: var(--sp-5);
}

/* Copy: one entrance, staggered; static with reduced motion */
.ds-hero-copy > * { animation: ds-rise 0.8s var(--ease-out) both; }
.ds-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.ds-hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.ds-hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.ds-hero-copy > :nth-child(5) { animation-delay: 0.24s; }
@keyframes ds-rise { from { opacity: 0; transform: translateY(16px); } }

.ds-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--text-on-dark);
}
.ds-hero-brand img { width: 44px; height: 44px; object-fit: contain; }

.ds-hero-headline {
  font-size: clamp(40px, 4.4vw, 66px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}
/* Warm-only gradient: every stop is ≥ 4.5:1 on --dark-bg */
.ds-hero-headline-em {
  display: block;
  background: linear-gradient(118deg, #FFF3EC 0%, #FFB79D 50%, #FF8A5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (forced-colors: active) {
  .ds-hero-headline-em { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}

.ds-hero-sub {
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  text-wrap: pretty;
  margin-bottom: var(--sp-4);
}

.ds-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-4); }
.ds-hero-ctas a { min-height: 52px; }

.ds-hero-note { display: flex; flex-direction: column; gap: 8px; }
.ds-hero-note li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text-muted-on-dark); }
.ds-hero-note svg { color: var(--primary-on-dark); flex-shrink: 0; }

/* ── Video stage ── */
.ds-hero-stage { margin: 0; animation: ds-stage-in 1.1s var(--ease-out) 0.1s both; }
@keyframes ds-stage-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

.ds-hero-window {
  position: relative;
  aspect-ratio: 1280 / 1080;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
.ds-hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The official video sits on black: a vignette above it melts its
   edges into the page, so the app window seems to float (an overlay
   is reliable where blend modes and masks on <video> are not) */
.ds-hero-window::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 56% at 50% 50%, transparent 55%, var(--dark-bg) 100%),
    linear-gradient(90deg, var(--dark-bg) 0%, transparent 14%, transparent 86%, var(--dark-bg) 100%),
    linear-gradient(180deg, var(--dark-bg) 0%, transparent 14%, transparent 86%, var(--dark-bg) 100%);
}
.ds-hero-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: 14px;
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--text-muted-on-dark);
}
/* Pause button beside the caption: never on top of the product */
.ds-hero-cap .motion-toggle--inline { position: static; flex-shrink: 0; }

@media (max-width: 1023px) {
  .ds-hero { min-height: 0; padding: calc(var(--nav-height, 58px) + var(--sp-5)) 0 var(--sp-6); }
  .ds-hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .ds-hero-copy { max-width: 640px; }
  .ds-hero-stage { max-width: 720px; }
}

@media (max-width: 560px) {
  .ds-hero-ctas { flex-direction: column; }
  .ds-hero-ctas a { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-hero-copy > *, .ds-hero-stage { animation: none; }
}

/* ============================================================
   S2 — AT A GLANCE
   Continues the hero on the same dark ground; one translucent
   strip split in four linked facts.
   ============================================================ */
.ds-facts {
  background: var(--dark-bg);
  color: var(--text-on-dark);
  padding: 0 0 var(--sp-7);
  margin-top: calc(var(--sp-5) * -1);
  position: relative;
}

.ds-facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ds-facts-list > li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left-width: 0;
  background: rgba(255, 255, 255, 0.03);
}
.ds-facts-list > li:first-child { border-left-width: 1px; border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.ds-facts-list > li:last-child { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }

.ds-fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  border-radius: inherit;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: background-color var(--transition);
}
.ds-facts-list > li { border-radius: 0; overflow: hidden; }
.ds-facts-list > li:first-child .ds-fact { border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.ds-facts-list > li:last-child .ds-fact { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; }
.ds-fact:hover { background: rgba(255, 255, 255, 0.04); }
.ds-fact:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

.ds-fact-value {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.05;
  color: var(--text-on-dark);
  white-space: nowrap;
}
.ds-fact-label { margin-top: 6px; font-size: 15px; font-weight: var(--fw-bold); color: var(--primary-on-dark); }
.ds-fact-text { font-size: var(--fs-small); line-height: 1.5; color: var(--text-muted-on-dark); padding-right: 24px; }
.ds-fact-arrow {
  position: absolute;
  right: var(--sp-3);
  bottom: var(--sp-4);
  color: var(--text-muted-on-dark);
  transition: transform var(--transition), color var(--transition);
}
@media (hover: hover) and (pointer: fine) { .ds-fact:hover .ds-fact-arrow { transform: translateY(2px); color: var(--primary-on-dark); } }

@media (max-width: 1023px) {
  .ds-facts { margin-top: 0; padding-top: var(--sp-2); }
  .ds-facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-facts-list > li { border-width: 1px 1px 0 0; border-radius: 0; }
  .ds-facts-list > li:nth-child(odd) { border-left-width: 1px; }
  .ds-facts-list > li:nth-child(n+3) { border-bottom-width: 1px; }
  .ds-facts-list > li:first-child,
  .ds-facts-list > li:first-child .ds-fact { border-radius: var(--radius-xl) 0 0 0; }
  .ds-facts-list > li:nth-child(2),
  .ds-facts-list > li:nth-child(2) .ds-fact { border-radius: 0 var(--radius-xl) 0 0; }
  .ds-facts-list > li:nth-child(3),
  .ds-facts-list > li:nth-child(3) .ds-fact { border-radius: 0 0 0 var(--radius-xl); }
  .ds-facts-list > li:last-child,
  .ds-facts-list > li:last-child .ds-fact { border-radius: 0 0 var(--radius-xl) 0; }
}

@media (max-width: 560px) {
  .ds-facts { padding-bottom: var(--sp-6); }
  .ds-fact { padding: var(--sp-3) var(--sp-2); }
  .ds-fact-value { font-size: 26px; }
  .ds-fact-text { padding-right: 0; }
  .ds-fact-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-fact, .ds-fact-arrow { transition: none; }
}

/* ============================================================
   S3 — BENTO OVERVIEW
   White cards on cream, each led by a real screenshot from the
   Site Designer Guide in a soft frame. One accent.
   Row 1: canvas · grid · symbols. Row 2: clean code (2) · publish.
   ============================================================ */
.ds-bento {
  padding: var(--sp-8) 0;
  background: var(--surface);
}
.ds-bento-header { margin-bottom: var(--sp-6); }

.ds-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.ds-bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 16px 48px rgba(33, 26, 20, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .ds-bento-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 1px 2px rgba(33, 26, 20, 0.04), 0 24px 56px rgba(33, 26, 20, 0.1);
  }
}

/* Screenshot frame: the app's own dark UI on a warm tint, rising
   from the bottom edge so every card reads the same way */
.ds-bento-shot {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-subtle), #DCD3C5);
}
.ds-bento-shot img {
  position: absolute;
  left: 24px;
  top: 24px;
  width: calc(100% - 24px);
  max-width: none;
  height: auto;
  border-radius: 10px 0 0 0;
  box-shadow: -12px 18px 40px rgba(33, 26, 20, 0.22);
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ds-bento-card:hover .ds-bento-shot img { transform: translate(-4px, -4px); } }

/* Looping clips from the guide videos: same frame as the screenshots */
.ds-bento-video {
  position: absolute;
  left: 24px;
  top: 24px;
  width: calc(100% - 24px);
  height: auto;
  border-radius: 16px;
  background: #1E1E1E;
  box-shadow: -12px 18px 40px rgba(33, 26, 20, 0.22);
}
.ds-bento-shot--video .motion-toggle--corner { right: 12px; bottom: 12px; }
/* The Symbols pane is tall: show its middle, where the symbols are */
.ds-bento-card--symbols .ds-bento-shot img { width: 78%; left: 50%; transform: translateX(-50%); top: -46%; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .ds-bento-card--symbols:hover .ds-bento-shot img { transform: translate(-50%, -4px); } }

.ds-bento-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.ds-bento-card-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  line-height: 1.2;
  color: var(--text-primary);
}
.ds-bento-card-desc { font-size: 15px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }

.ds-bento-tag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  color: var(--text-primary);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}

/* ── Row 2: clean code, wide (copy beside the screenshot) ── */
.ds-bento-card--code { grid-column: span 2; flex-direction: row; }
.ds-bento-card--code .ds-bento-card-body { flex: 0 0 36%; justify-content: center; padding: var(--sp-5) var(--sp-4); }
.ds-bento-card--code .ds-bento-shot { flex: 1; height: auto; min-height: 280px; }
.ds-bento-card--code .ds-bento-shot img { top: 32px; left: 32px; width: calc(100% - 32px); }

/* ── Row 2: publish, the dark card ── */
.ds-bento-card--publish {
  background: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.08);
  background-image: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 90, 31, 0.2), transparent);
}
.ds-bento-card--publish .ds-bento-card-title { color: var(--text-on-dark); }
.ds-bento-card--publish .ds-bento-card-desc { color: var(--text-muted-on-dark); }
.ds-bento-card--publish .ds-bento-shot { order: 2; flex: 1; min-height: 180px; background: none; }
.ds-bento-card--publish .ds-bento-shot img { box-shadow: -12px 18px 40px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); }

@media (max-width: 1023px) {
  .ds-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-bento-card--code { grid-column: 1 / -1; }
  .ds-bento-card--publish { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .ds-bento-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-bento-card--code { flex-direction: column; }
  .ds-bento-card--code .ds-bento-card-body { flex: none; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
  .ds-bento-card--code .ds-bento-shot { min-height: 220px; }
  .ds-bento-card-body { padding: var(--sp-3); }
  .ds-bento-shot { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-bento-card, .ds-bento-shot img { transition: none; }
  @media (hover: hover) and (pointer: fine) { .ds-bento-card:hover { transform: none; } }
}

/* ============================================================
   S4/S5/S6 — FEATURE SECTIONS
   Tabs + real product video: shared component
   (components/feature-tabs.css). Only the section shells here.
   ============================================================ */
.ds-feat-section { padding: var(--sp-8) 0; }
.ds-feat-section--light { background: var(--surface-subtle); }
.ds-feat-section--dark  { background: var(--dark-bg); color: var(--text-on-dark); }
.ds-feat-header { margin-bottom: var(--sp-6); }

/* ============================================================
   S7 — FRAMEWORKS
   ============================================================ */
.ds-frameworks {
  padding: var(--sp-8) 0;
  background: var(--surface-card);
}

.ds-frameworks-header {
  margin-bottom: var(--sp-6);
}

/* Frameworkless leads: a featured card beside the "how to choose"
   guide, then the comparison table with its column raised.
   Facts from the Site Designer guide (Frameworks → comparison). */
.ds-fw-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: stretch;
  margin-bottom: var(--sp-3);
}

/* ── Frameworkless ── */
.ds-fw-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  background: var(--dark-bg);
  color: var(--text-on-dark);
  box-shadow: 0 2px 4px rgba(33, 26, 20, 0.06), 0 30px 80px rgba(33, 26, 20, 0.22);
  isolation: isolate;
}
.ds-fw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255, 90, 31, 0.26), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 90, 31, 0.08), transparent 70%);
}
.ds-fw-hero-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.ds-fw-hero-logo {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ds-fw-hero-badge,
.ds-fwc-rec {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  color: #fff;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  white-space: nowrap;
}
.ds-fw-hero-title {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: 1.05;
  margin-bottom: 12px;
}
.ds-fw-hero-desc { max-width: 42ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted-on-dark); margin-bottom: var(--sp-4); }

/* Three facts, value above its label */
.ds-fw-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}
.ds-fw-hero-facts > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 16px; }
.ds-fw-hero-facts > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.ds-fw-hero-facts dt { font-size: var(--fs-meta); line-height: 1.3; color: var(--text-muted-on-dark); }
.ds-fw-hero-facts dd { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); color: var(--primary-on-dark); white-space: nowrap; }

.ds-fw-hero-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-muted-on-dark);
}
.ds-fw-hero-foot strong { font-weight: var(--fw-bold); color: var(--text-on-dark); }
.ds-fw-hero-foot svg { flex-shrink: 0; color: var(--primary-on-dark); }

/* ── How to choose ── */
.ds-fw-choose {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-4);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(33, 26, 20, 0.07);
}
.ds-fw-choose-title {
  max-width: 24ch;
  margin-bottom: var(--sp-3);
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  line-height: 1.25;
  color: var(--text-primary);
}
.ds-fw-steps { counter-reset: fwstep; display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-3); }
.ds-fw-step {
  counter-increment: fwstep;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
  padding: 14px 16px 14px 52px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(33, 26, 20, 0.06);
}
.ds-fw-step::before {
  content: counter(fwstep);
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--surface-subtle);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  color: var(--text-secondary);
}
.ds-fw-step-q { flex: 1 1 200px; font-size: 15px; line-height: 1.4; color: var(--text-primary); }
.ds-fw-step-a { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--text-secondary); white-space: nowrap; }
/* The default answer, in the accent */
.ds-fw-step--go { background: rgba(255, 90, 31, 0.07); border-color: rgba(189, 50, 0, 0.3); }
.ds-fw-step--go::before { content: '✓'; background: var(--primary-solid); color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ds-fw-step--go .ds-fw-step-q { font-weight: var(--fw-medium); }
.ds-fw-step--go .ds-fw-step-a { color: var(--primary-on-light); }

.ds-fw-note {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--text-secondary);
}
.ds-fw-note svg { flex-shrink: 0; margin-top: 1px; }

/* ── Comparison ── */
.ds-fwc {
  padding: var(--sp-4);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(33, 26, 20, 0.07);
}
.ds-fwc-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.ds-fwc-title { font-size: 22px; font-weight: var(--fw-bold); letter-spacing: var(--tr-h3); color: var(--text-primary); }
/* Phones only: pick which framework sits beside Frameworkless */
.ds-fwc-switch,
.ds-fwc-switch-label { display: none; }

.ds-fwc-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ds-fwc-table th,
.ds-fwc-table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: var(--fs-small); line-height: 1.45; }
.ds-fwc-corner { width: 17%; }
.ds-fwc-table thead th { vertical-align: bottom; padding-bottom: 16px; }
.ds-fwc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: var(--fw-bold); color: var(--text-primary); }
.ds-fwc-head img { width: 36px; height: 36px; object-fit: contain; }
.ds-fwc-rec { padding: 3px 9px; }
.ds-fwc-table tbody th { font-weight: var(--fw-medium); color: var(--text-primary); }
.ds-fwc-table tbody td { color: var(--text-secondary); }
.ds-fwc-table tbody tr + tr > * { border-top: 1px solid rgba(33, 26, 20, 0.07); }
.ds-fwc-table code { font-family: var(--font-mono); font-size: 0.92em; padding: 1px 5px; border-radius: 5px; background: var(--surface-subtle); color: var(--text-primary); }

/* Frameworkless column: a raised white strip running the full height */
.ds-fwc-fl { position: relative; background: #fff; }
.ds-fwc-table .ds-fwc-fl { color: var(--text-primary); font-weight: var(--fw-medium); box-shadow: inset 1px 0 0 rgba(189, 50, 0, 0.22), inset -1px 0 0 rgba(189, 50, 0, 0.22); }
.ds-fwc-table thead .ds-fwc-fl { border-radius: 16px 16px 0 0; box-shadow: inset 0 3px 0 var(--primary-solid), inset 1px 0 0 rgba(189, 50, 0, 0.22), inset -1px 0 0 rgba(189, 50, 0, 0.22); padding-top: 20px; }
.ds-fwc-table tbody tr:last-child .ds-fwc-fl { border-radius: 0 0 16px 16px; box-shadow: inset 1px 0 0 rgba(189, 50, 0, 0.22), inset -1px 0 0 rgba(189, 50, 0, 0.22), inset 0 -1px 0 rgba(189, 50, 0, 0.22); }
.ds-fwc-check { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--primary-on-light); }

/* ============================================================
   S8 — TEMPLATES
   ============================================================ */
.ds-templates {
  padding: var(--sp-8) 0 var(--sp-7);
  background: var(--dark-bg);
  overflow: hidden;
  position: relative;
}

.ds-templates::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 90, 31,0.1) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Header */
.ds-tpl-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.ds-tpl-header-text { max-width: 560px; }
.ds-tpl-header-text .section-title { color: var(--text-on-dark); }
.ds-tpl-header-text .section-sub { color: var(--text-muted-on-dark); }
.ds-tpl-header-text .eyebrow { color: var(--primary-on-dark); }

.ds-tpl-header-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.ds-tpl-header-note {
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
  letter-spacing: 0.01em;
}

/* Category filter pills */
.ds-tpl-filters-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.ds-tpl-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.ds-tpl-filter {
  min-height: 44px;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted-on-dark);
  font-size: var(--fs-small);
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.ds-tpl-filter:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}
.ds-tpl-filter--active,
.ds-tpl-filter--active:hover {
  background: var(--primary-solid);
  border-color: var(--primary-solid);
  color: #fff;
}
.ds-tpl-filter--active:hover { background: var(--primary-solid-hover); }
.ds-tpl-filter:focus-visible { outline: 2px solid var(--primary-on-dark); outline-offset: 2px; }

/* Marquee rows */
.ds-tpl-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.ds-tpl-marquee-wrap::before,
.ds-tpl-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ds-tpl-marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-bg), transparent);
}
.ds-tpl-marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-bg), transparent);
}

.ds-tpl-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ds-tpl-scroll var(--tpl-dur, 40s) linear infinite;
}

.ds-tpl-track--1 { --tpl-dur: 44s; }
.ds-tpl-track--2 { --tpl-dur: 52s; animation-direction: reverse; }

@keyframes ds-tpl-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ds-tpl-marquee-wrap:hover .ds-tpl-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ds-tpl-track { animation: none; }
  .ds-tpl-marquee-wrap::before,
  .ds-tpl-marquee-wrap::after { display: none; }
  .ds-tpl-marquee-wrap { overflow-x: auto; scrollbar-width: thin; }
}

/* Template card: the screenshot leads, a quiet caption under it */
.ds-tpl-card {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 300px;
  padding: 8px 8px 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform var(--transition-smooth), border-color var(--transition), background-color var(--transition), box-shadow var(--transition-smooth);
}
.ds-tpl-card:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 169, 138, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .ds-tpl-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 169, 138, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}
.ds-tpl-card:focus-visible { outline: 2px solid var(--primary-on-dark); outline-offset: 3px; }

.ds-tpl-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dark-elevated);
}
.ds-tpl-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-out);
}
.ds-tpl-card:focus-visible .ds-tpl-card-img img { transform: scale(1.04); }
@media (hover: hover) and (pointer: fine) { .ds-tpl-card:hover .ds-tpl-card-img img { transform: scale(1.04); } }

/* "Preview" pill: shows on hover and on keyboard focus */
.ds-tpl-card-img::after {
  content: 'Preview \2197';
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(22, 18, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: var(--fw-medium);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.ds-tpl-card:focus-visible .ds-tpl-card-img::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .ds-tpl-card:hover .ds-tpl-card-img::after { opacity: 1; transform: none; } }

.ds-tpl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 12px 6px 14px;
}
.ds-tpl-card-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--text-on-dark);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ds-tpl-card-cat {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  white-space: nowrap;
}

/* Keyboard users also stop the loop while moving through the cards */
.ds-tpl-marquee-wrap:focus-within .ds-tpl-track { animation-play-state: paused; }

/* Bottom CTA strip */
.ds-tpl-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-5);
}

.ds-tpl-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.ds-tpl-footer-text {
  font-size: 15px;
  color: var(--text-muted-on-dark);
  line-height: 1.5;
}
.ds-tpl-footer-text strong {
  color: var(--text-on-dark);
  font-size: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  margin-right: 4px;
}

.ds-tpl-footer-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.ds-tpl-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 0 28px rgba(255, 90, 31,0.3);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .ds-tpl-browse-btn:hover {
    background: var(--primary-solid-hover);
    box-shadow: 0 0 48px rgba(255, 90, 31,0.45);
    transform: translateY(-1px);
  }
}
/* Secondary: the section's primary CTA is in the header */
.ds-tpl-browse-btn--ghost,
.ds-tpl-browse-btn--ghost:hover {
  min-height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.ds-tpl-browse-btn--ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.36); }
.ds-tpl-browse-btn svg { transition: transform var(--transition); }
@media (hover: hover) and (pointer: fine) { .ds-tpl-browse-btn:hover svg { transform: translateX(3px); } }

/* ============================================================
   S9 — COMPONENTS LIBRARY
   Copy left; on the right a real frame of the official teaser,
   melted into the page (vignette), tilted slightly.
   ============================================================ */
.ds-components {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  color: var(--text-on-dark);
}
.ds-components-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 78% 50%, rgba(255, 90, 31, 0.14) 0%, transparent 70%);
}
.ds-components-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--sp-6);
}

.ds-components-badge {
  display: inline-flex;
  margin-bottom: var(--sp-3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 169, 138, 0.28);
  color: var(--primary-on-dark);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}
.ds-components-headline {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: var(--fw-book);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-3);
}
/* Warm-only gradient: every stop is ≥ 4.5:1 on --dark-bg */
.ds-components-em {
  display: block;
  background: linear-gradient(118deg, #FFF3EC 0%, #FFB79D 50%, #FF8A5C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (forced-colors: active) {
  .ds-components-em { background: none; -webkit-text-fill-color: CanvasText; color: CanvasText; }
}
.ds-components-sub {
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  text-wrap: pretty;
  margin-bottom: var(--sp-4);
}

/* Kinds of components: quiet chips */
.ds-comp-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-3); }
.ds-comp-kinds li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-small);
  color: var(--text-on-dark);
}
.ds-comp-fw { margin-bottom: var(--sp-4); font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted-on-dark); }
.ds-comp-fw span { margin-right: 4px; }
.ds-comp-fw strong { font-weight: var(--fw-medium); color: var(--text-on-dark); }

.ds-comp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.ds-comp-actions .ds-btn-primary { min-height: 52px; }
.ds-comp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(242, 240, 237, 0.35);
  text-underline-offset: 4px;
}
.ds-comp-link:hover { text-decoration-color: currentColor; }
.ds-comp-link svg { transform: rotate(-90deg); transition: transform var(--transition); }
@media (hover: hover) and (pointer: fine) { .ds-comp-link:hover svg { transform: rotate(-90deg) translateX(-2px); } }

/* The official components video: its black backdrop melts into the
   page through a vignette overlay, so the components seem to float */
.ds-components-visual { margin: 0; }
.ds-comp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}
.ds-comp-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-comp-stage::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 60% at 50% 50%, transparent 50%, var(--dark-bg) 100%),
    linear-gradient(90deg, var(--dark-bg) 0%, rgba(22, 18, 13, 0.6) 6%, transparent 16%, transparent 86%, rgba(22, 18, 13, 0.6) 95%, var(--dark-bg) 100%),
    linear-gradient(180deg, var(--dark-bg) 0%, rgba(22, 18, 13, 0.6) 6%, transparent 16%, transparent 84%, rgba(22, 18, 13, 0.6) 94%, var(--dark-bg) 100%);
}
/* Lift the video's pure black toward the page colour */
.ds-comp-video { filter: brightness(1.04) contrast(0.97); }
.ds-comp-cap {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* only the pause button now */
  gap: var(--sp-2);
  margin-top: 6px;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}
.ds-comp-cap .motion-toggle--inline { position: static; flex-shrink: 0; }

@media (max-width: 1023px) {
  .ds-components-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
}
@media (max-width: 560px) {
  .ds-comp-actions { flex-direction: column; align-items: stretch; }
  .ds-comp-actions .ds-btn-primary { justify-content: center; }
  .ds-comp-link { justify-content: center; }
}

/* ============================================================
   S11 — SITE DESIGNER GUIDE
   Light band between the testimonials and the dark pricing.
   1 · Centered header with the section's only link.
   2 · Stage: a dark, glowing canvas holding real guide captures —
       an article in a browser window and the search in front,
       which rises in once when the stage enters the viewport.
   3 · The guide's three-step start path on a connecting rule.
   4 · Its table of contents as plain text (deliberately no links).
   ============================================================ */
.ds-guide {
  padding: var(--sp-8) 0;
  background: var(--surface-subtle);
  overflow: hidden;
}

/* ── 1 · Header ── */
.ds-guide-header {
  max-width: 760px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}
.ds-guide-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: var(--fw-book, 450);
  letter-spacing: var(--tr-display);
  line-height: 1.02;
  color: var(--text-primary);
  text-wrap: balance;
}
.ds-guide-title-em { color: var(--primary-on-light); }
.ds-guide-lead {
  max-width: 620px;
  margin: 0 auto var(--sp-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
}
.ds-guide-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ds-guide-cta .ds-btn-primary { min-height: 56px; }
.ds-guide-cta-note {
  margin: 0;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
}

/* ── 2 · Stage ── */
.ds-guide-stage { margin: 0 0 var(--sp-7); }
.ds-guide-canvas {
  position: relative;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 6vw, 88px) 0;
  border-radius: 24px;
  background:
    radial-gradient(60% 70% at 70% 100%, rgba(255, 90, 31, 0.22), transparent 70%),
    radial-gradient(50% 60% at 15% 0%, rgba(124, 72, 240, 0.16), transparent 70%),
    var(--dark-bg);
  overflow: hidden;
  isolation: isolate;
}

/* Browser window: cut at the bottom edge of the stage, like a laptop lid */
.ds-guide-window {
  position: relative;
  width: 78%;
  border-radius: 12px 12px 0 0;
  background: #FDFDFB;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ds-guide-window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #ECE9E2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ds-guide-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
}
.ds-guide-article {
  display: block;
  width: 100%;
  height: auto;
}

/* Search, floating in front on the right */
.ds-guide-search {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 5vw, 72px);
  top: clamp(72px, 9vw, 120px);
  width: min(46%, 520px);
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 10px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* Entrance: the stage reveals, then the search rises into place (once) */
.ds-guide-stage.reveal .ds-guide-search {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.7s var(--ease-out) 0.35s,
              transform 0.9s var(--ease-out) 0.35s;
}
.ds-guide-stage.reveal.visible .ds-guide-search { opacity: 1; transform: none; }

.ds-guide-stage-cap {
  margin-top: var(--sp-2);
  font-size: var(--fs-meta);
  text-align: center;
  color: var(--text-secondary);
}

/* ── 3 · Start path ── */
.ds-guide-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: 0 0 var(--sp-7);
  padding: 0;
  list-style: none;
}
/* The rule that ties the three steps together */
.ds-guide-path::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(209, 64, 0, 0.35) 60%, rgba(0, 0, 0, 0.12) 100%);
}
.ds-guide-step { position: relative; }
.ds-guide-step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-3);
  padding-right: 12px;
  background: var(--surface-subtle);   /* masks the rule behind the label */
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ds-guide-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-solid);
  color: #fff;
  font-size: var(--fs-label);
  letter-spacing: 0;
}
.ds-guide-step-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  line-height: 1.25;
  color: var(--text-primary);
}
.ds-guide-step-desc {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── 4 · Table of contents (plain text) ── */
.ds-guide-index {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-strong);
}
.ds-guide-index-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px var(--sp-3);
  margin-bottom: var(--sp-3);
}
.ds-guide-index-title {
  margin: 0;
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h3);
  color: var(--text-primary);
}
.ds-guide-index-meta {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.ds-guide-topics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-guide-topics li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ds-guide-topic {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.ds-guide-count {
  font-size: var(--fs-meta);
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .ds-guide-stage.reveal .ds-guide-search { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
  .ds-guide-topics { grid-template-columns: repeat(3, 1fr); }
  .ds-guide-window { width: 88%; }
  .ds-guide-search { width: min(56%, 460px); }
}

@media (max-width: 768px) {
  /* Path stacks; the rule turns vertical and runs through the numbers */
  .ds-guide-path { grid-template-columns: 1fr; gap: var(--sp-4); }
  .ds-guide-path::before {
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(209, 64, 0, 0.35) 60%, rgba(0, 0, 0, 0.12) 100%);
  }
  .ds-guide-step { padding-left: 48px; }
  .ds-guide-step-kicker { margin: 0 0 var(--sp-1) -48px; padding-right: 0; background: none; }
  .ds-guide-step-num { margin-right: 6px; box-shadow: 0 0 0 6px var(--surface-subtle); }
}

@media (max-width: 640px) {
  .ds-guide-stage { margin-bottom: var(--sp-6); }
  .ds-guide-canvas { padding: 24px 16px 0; border-radius: 16px; }
  .ds-guide-window { width: 100%; border-radius: 8px 8px 0 0; }
  .ds-guide-window-bar { padding: 8px 10px; gap: 5px; }
  .ds-guide-window-bar span { width: 7px; height: 7px; }
  .ds-guide-search { position: relative; right: auto; top: auto; width: 92%; margin: -38% auto 0; display: block; }
  .ds-guide-topics { grid-template-columns: repeat(2, 1fr); }
  .ds-guide-cta .ds-btn-primary { width: 100%; justify-content: center; }
}

/* ============================================================
   S10 — PRICING
   ============================================================ */
.ds-pricing {
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 90, 31,0.12), transparent),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

.ds-pricing-header {
  margin-bottom: var(--sp-6);
}

/* Main action of the Site Designer card */

/* ============================================================
   S11 — FAQ
   ============================================================ */
.ds-faq {
  padding: var(--sp-8) 0;
  background: var(--surface);
}

.ds-faq-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-7);
  align-items: start;
}

.ds-faq-header {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-4));
}
.ds-faq-header .section-title { font-size: 36px; }

.ds-faq-list {
  flex: 1;
}

/* FAQ accordion — inherits from global .faq-item styles */

/* ============================================================
   S12 — FINAL CTA
   ============================================================ */
.ds-cta {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-8);
  background: var(--dark-bg);
  overflow: hidden;
  text-align: center;
}

.ds-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255, 90, 31,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ds-cta-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.ds-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  max-width: 640px;
  margin: 0 auto;
}

.ds-cta-eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-on-dark);
  margin-bottom: var(--sp-1);
}

.ds-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-on-dark);
  margin: 0;
}

.ds-cta-sub {
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

.ds-cta-btns {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-2);
}

.ds-cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted-on-dark);
  text-decoration: none;
  transition: color var(--transition);
}
.ds-cta-link:hover { color: #fff; }

.ds-cta-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
  margin-top: var(--sp-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Mobile spacing tokens ── */
@media (max-width: 768px) {
  :root { --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; }
}
@media (max-width: 480px) {
  :root { --sp-4: 24px; --sp-5: 24px; --sp-6: 36px; --sp-7: 48px; --sp-8: 64px; }
}

@media (max-width: 1024px) {
  .ds-fw-top { grid-template-columns: minmax(0, 1fr); }
  .ds-tpl-header { flex-direction: column; align-items: flex-start; }
  .ds-tpl-header-cta { align-items: flex-start; }
  .ds-components-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  
  .ds-faq-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .ds-faq-header { position: static; }
}

@media (max-width: 768px) {
  .ds-btn-primary, .ds-btn-ghost { justify-content: center; }

  /* 7. Template filters wrap (a sideways strip cut the last one at the
     screen edge); the pause button stays at the top right */
  .ds-tpl-filters-wrap { align-items: flex-start; }
  .ds-tpl-filters { flex: 1; gap: 8px 6px; }
  .ds-tpl-filter { padding: 8px 14px; }
  .ds-tpl-filters-wrap .motion-toggle { flex-shrink: 0; }

  .ds-cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .ds-fw-hero { padding: var(--sp-4) var(--sp-3); }
  .ds-fw-choose { padding: var(--sp-4) var(--sp-3); }
  .ds-fw-hero-facts > div { padding: 12px 10px; }
  .ds-fw-hero-facts dd { font-size: 18px; }
  .ds-tpl-footer-inner { flex-direction: column; align-items: flex-start; }
  .ds-tpl-card { width: 240px; }
}

/* Super Pack icon: a 2×2 mosaic of the real app icons (packs-assets/superpack-icon).
   It carries its own color, so the box drops its tint, border and padding. */

/* Phones and small tablets: Frameworkless beside one framework at a
   time. The switch picks the framework; the column names stay pinned
   under the nav while the rows scroll; each row is two cells. */
@media (max-width: 860px) {
  .ds-fwc { padding: var(--sp-3) var(--sp-2); }
  .ds-fwc-bar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: var(--sp-2); }
  .ds-fwc-switch-label { display: block; font-size: var(--fs-meta); color: var(--text-secondary); }
  .ds-fwc-switch {
    display: flex;
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface-subtle);
  }
  .ds-fwc-switch-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    border-radius: var(--radius-pill);
    background: none;
    font: inherit;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
  }
  .ds-fwc-switch-btn[aria-pressed="true"] { background: #fff; color: var(--text-primary); font-weight: var(--fw-bold); box-shadow: 0 2px 8px rgba(33, 26, 20, 0.12); }
  .ds-fwc-switch-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

  .ds-fwc-table, .ds-fwc-table thead, .ds-fwc-table tbody { display: block; }
  .ds-fwc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

  /* Column names: pinned under the fixed nav while the rows scroll */
  .ds-fwc-table thead {
    position: sticky;
    top: var(--nav-height, 58px);
    z-index: 2;
    margin: 0 calc(var(--sp-2) * -1);
    padding: 10px var(--sp-2);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(33, 26, 20, 0.08);
  }
  .ds-fwc-corner { display: none; }
  .ds-fwc-table thead th { padding: 0; }
  .ds-fwc-table thead tr { align-items: center; }
  .ds-fwc-table thead .ds-fwc-fl,
  .ds-fwc-table thead .ds-fwc-col { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .ds-fwc-head { flex-direction: row; align-items: center; gap: 8px; font-size: var(--fs-small); }
  .ds-fwc-head img { width: 24px; height: 24px; }
  .ds-fwc-rec { display: none; }
  .ds-fwc-table thead .ds-fwc-fl .ds-fwc-head { color: var(--primary-on-light); }

  .ds-fwc-table tbody tr { padding: 14px 0; }
  .ds-fwc-table tbody tr + tr > * { border-top: 0; }
  .ds-fwc-table tbody tr + tr { border-top: 1px solid rgba(33, 26, 20, 0.08); }
  .ds-fwc-table tbody th { grid-column: 1 / -1; padding: 0; font-size: var(--fs-label); font-weight: var(--fw-bold); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--text-secondary); }
  .ds-fwc-table tbody td { padding: 12px; border-radius: var(--radius-md); background: rgba(33, 26, 20, 0.035); overflow-wrap: anywhere; }
  .ds-fwc-table tbody .ds-fwc-fl,
  .ds-fwc-table tbody tr:last-child .ds-fwc-fl { border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px rgba(189, 50, 0, 0.28); background: #fff; }
  .ds-fwc-table code { overflow-wrap: normal; white-space: nowrap; }

  /* Only the framework picked in the switch is shown */
  .ds-fwc-table .ds-fwc-col { display: none; }
  [data-compare="foundation"] .ds-fwc-col[data-fw="foundation"],
  [data-compare="bootstrap"] .ds-fwc-col[data-fw="bootstrap"],
  [data-compare="materialize"] .ds-fwc-col[data-fw="materialize"] { display: block; }
  /* The new column fades in so the change is noticed */
  [data-compare] .ds-fwc-col { animation: ds-fwc-in 0.28s ease; }
}

@keyframes ds-fwc-in { from { opacity: 0; } }

/* Narrow phones: stacked facts, short switch labels, no forced break */
@media (max-width: 480px) {
  .ds-frameworks .section-title br { display: none; }
  .ds-frameworks .section-title { text-wrap: balance; }
  .ds-fw-hero-facts { grid-template-columns: minmax(0, 1fr); }
  .ds-fw-hero-facts > div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .ds-fw-hero-facts > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .ds-fw-hero-facts dt { font-size: var(--fs-small); }
  .ds-fw-hero-facts dd { font-size: 18px; }
  .ds-fw-hero-foot { align-items: flex-start; }
  .ds-fw-hero-foot svg { margin-top: 2px; }
  .ds-fw-step { padding-left: 50px; }
}
@media (max-width: 400px) {
  .ds-fwc-ver { display: none; }
  .ds-fwc-switch { padding: 3px; gap: 2px; }
  .ds-fwc-switch-btn { padding: 0 2px; font-size: var(--fs-meta); }
  .ds-fwc-table thead th { min-width: 0; }
  .ds-fwc-head { gap: 6px; font-size: var(--fs-meta); }
  .ds-fwc-head img { width: 20px; height: 20px; }
  .ds-fwc-head > span:not(.ds-fwc-rec) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-fwc-switch-btn { transition: none; }
  [data-compare] .ds-fwc-col { animation: none; }
}

/* Smallest phones: column names without logos, so they never truncate */
@media (max-width: 360px) {
  .ds-fwc-head img { display: none; }
}
