/**
 * Marketing Site v2 CSS
 * Visual Polish Pass - Less templated, more human
 */

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand Colors - Warmer, more distinctive palette */
  --brand-primary: #6366f1;      /* Indigo - less generic than blue */
  --brand-primary-dark: #4f46e5;
  --brand-primary-light: #a5b4fc;
  --brand-secondary: #ec4899;    /* Pink accent */
  --brand-dark: #1e1b4b;         /* Deep indigo-black */
  --brand-light: #faf5ff;        /* Warm light purple tint */
  --brand-accent: #10b981;       /* Emerald green */
  --brand-accent-warm: #f59e0b;  /* Amber */
  --brand-warning: #f97316;
  --brand-error: #ef4444;

  /* Text Colors */
  --text-body: #1e1b4b;
  --text-muted: #6b7280;
  --text-light: rgba(255, 255, 255, 0.92);

  /* Surfaces */
  --surface-white: #ffffff;
  --surface-light: #fafafa;
  --surface-warm: #fef7ff;
  --surface-dark: #0f0a1f;

  /* Borders */
  --border-soft: #e5e7eb;
  --border-medium: #d1d5db;
  --border-accent: rgba(99, 102, 241, 0.2);

  /* Shadows - Softer, more natural */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow-screenshot: 0 24px 48px -12px rgba(0, 0, 0, 0.18);

  /* Layout */
  --max-width: clamp(960px, 90vw, 1140px);
  --max-width-narrow: 760px;
  --max-width-wide: 1320px;

  /* Typography */
  --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Radii - Slightly larger for softer feel */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-white);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--brand-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand-dark);
  color: var(--surface-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Masthead / Navigation
   ========================================================================== */

.masthead {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.masthead__inner {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0.9rem clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.masthead__brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.masthead__brand a:hover {
  color: var(--brand-dark);
}

.brand-mark {
  font-size: 1.4rem;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.masthead__nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
  color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.08);
}

.masthead__cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ==========================================================================
   Buttons - More distinctive, less generic
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--brand-primary);
  color: var(--surface-white);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.button:hover, .button:focus {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  text-decoration: none;
  color: var(--surface-white);
}

.button:hover::before {
  opacity: 1;
}

.button:active {
  transform: translateY(0);
}

.button--ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--border-accent);
}

.button--ghost::before {
  display: none;
}

.button--ghost:hover, .button--ghost:focus {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--brand-primary);
  box-shadow: none;
  color: var(--brand-primary-dark);
}

.button--large {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(236, 72, 153, 0.06), transparent),
    var(--surface-light);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.hero__inner {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero__subhead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 55ch;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.hero__read-time::before {
  content: '⏱';
  font-size: 0.9em;
}

/* Hero with Screenshot (Solutions) */
.hero--with-screenshot {
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(236, 72, 153, 0.08), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
}

.hero--with-screenshot .hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width-wide);
}

@media (min-width: 1024px) {
  .hero--with-screenshot .hero__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  content: '';
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12), transparent 40%);
  z-index: -1;
  filter: blur(50px);
}

.hero__media .screenshot-frame {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: transform var(--transition-slow);
}

.hero__media:hover .screenshot-frame {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Integration Hero */
.hero--integration {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(16, 185, 129, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(99, 102, 241, 0.08), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
}

.hero__logos {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: 50%;
  color: var(--surface-white);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hero__partner-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}

.hero__brand-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}

/* Use Case Hero */
.hero--use-case {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245, 158, 11, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(99, 102, 241, 0.08), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
}

/* Compact Hero (fallback) */
.hero--compact {
  padding: clamp(3rem, 5vw, 4rem) 0;
}

/* When Section (Use Cases) */
.section--when {
  background: var(--surface-light);
}

.when-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .when-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}

.when-grid__content h2 {
  margin-bottom: 1.25rem;
}

.when-grid__content .lead {
  color: var(--text-muted);
  line-height: 1.75;
}

/* Section Intro Text */
.section__intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 65ch;
}

/* Comparison Hero */
.hero--comparison {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99, 102, 241, 0.1), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
  text-align: center;
}

.hero--comparison .hero__subhead,
.hero--comparison .hero__ctas {
  margin-left: auto;
  margin-right: auto;
}

.hero--comparison .hero__ctas {
  justify-content: center;
}

.comparison-badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.comparison-badge__vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 50%;
  color: var(--surface-white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

/* Comparison Table Section */
.section--comparison-table {
  background: var(--surface-white);
}

/* Industry Hero */
.hero--industry {
  background:
    radial-gradient(ellipse 70% 60% at 30% 0%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 40% 50% at 90% 60%, rgba(99, 102, 241, 0.1), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
}

/* Challenges Section (Industry pages) */
.section--challenges {
  background: var(--surface-light);
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
  .challenges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.challenges-box {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
}

.challenges-box--problems {
  border-left: 4px solid var(--brand-error);
}

.challenges-box--solutions {
  border-left: 4px solid var(--brand-accent);
}

.challenges-box h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.challenges-box--problems h2 {
  color: #b91c1c;
}

.challenges-box--solutions h2 {
  color: #047857;
}

.challenges-box .list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.challenges-box .list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Learn Hero */
.hero--learn {
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(147, 51, 234, 0.15), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
  text-align: center;
}

.hero--learn .hero__subhead {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Product Tour Hero */
.hero--tour {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(16, 185, 129, 0.08), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
  text-align: center;
  padding-bottom: 4rem;
}

.hero--tour .hero__subhead {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Tour Step Layout */
.tour-step {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) var(--page-gutter);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.tour-step--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.tour-step--reverse .tour-step__content {
  order: 2;
}

.tour-step--reverse .tour-step__media {
  order: 1;
}

.tour-step__content {
  position: relative;
}

.tour-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.tour-step__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tour-step__content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.tour-step__media {
  position: relative;
}

.tour-step__media picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 10px 30px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-soft);
}

.tour-step__media img {
  display: block;
  width: 100%;
  height: auto;
}

.tour-step__media figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Alternate background for every other step */
.tour-step:nth-of-type(even) {
  background: var(--surface-light);
  max-width: none;
  padding-left: calc((100% - var(--content-max-width)) / 2 + var(--page-gutter));
  padding-right: calc((100% - var(--content-max-width)) / 2 + var(--page-gutter));
}

@media (max-width: 900px) {
  .tour-step,
  .tour-step--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tour-step--reverse .tour-step__content,
  .tour-step--reverse .tour-step__media {
    order: unset;
  }

  .tour-step__content {
    text-align: center;
  }

  .tour-step__content .list {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Why LollipopWMS Page */
.hero--why {
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(236, 72, 153, 0.08), transparent),
    linear-gradient(180deg, var(--surface-light) 0%, var(--surface-white) 100%);
  text-align: center;
  padding-bottom: 4rem;
}

.hero--why .hero__subhead {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.mission-statement {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.mission-statement blockquote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  border-left: 4px solid var(--brand-primary);
  padding-left: 1.5rem;
  margin: 0 0 1.5rem 0;
}

.mission-statement p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.two-col-grid__item h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.two-col-grid__item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.list--principles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list--principles li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.list--principles li:last-child {
  border-bottom: none;
}

.list--principles strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.list--principles span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero__meta .tag-list {
  margin: 0;
}

/* Article Layout (Learn pages) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 220px 1fr;
  }
}

.article-toc {
  background: var(--surface-light);
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-soft);
  display: none;
}

@media (min-width: 1024px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }
}

.article-toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc li {
  margin-bottom: 0.35rem;
}

.article-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.05);
}

.article-main {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 760px;
}

.article-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
}

.article-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.article-section h2 {
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.article-section p {
  color: var(--text-body);
  line-height: 1.75;
}

.article-section--draft {
  /* Draft content styling */
}

/* Doc Hero */
.hero--doc {
  background: var(--surface-light);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Hub Hero */
.hero--hub {
  background:
    radial-gradient(ellipse 80% 70% at 50% -30%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(16, 185, 129, 0.08), transparent),
    var(--surface-light);
  text-align: center;
}

.hero--hub .hero__subhead,
.hero--hub .hero__ctas {
  margin-left: auto;
  margin-right: auto;
}

.hero--hub .hero__ctas {
  justify-content: center;
}

/* ==========================================================================
   Screenshot Frame Component
   ========================================================================== */

.screenshot-frame {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-screenshot);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.screenshot-frame__chrome {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.screenshot-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.screenshot-frame__dot:nth-child(1) { background: #feb2b2; }
.screenshot-frame__dot:nth-child(2) { background: #fcd977; }
.screenshot-frame__dot:nth-child(3) { background: #9ae6b4; }

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-frame figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-light);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Screenshot Sizes */
.screenshot-frame--sm { max-width: 480px; }
.screenshot-frame--md { max-width: 720px; }
.screenshot-frame--lg { max-width: 920px; margin: 0 auto; }
.screenshot-frame--hero { max-width: 100%; }

/* Screenshot Gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section:nth-of-type(even) {
  background: var(--surface-light);
}

.section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-width);
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.section h2 {
  margin-bottom: 1.75rem;
}

/* Two-Column Section */
.section--two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .section--two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.section--two-col > * {
  padding: 0;
}

/* Summary Section */
.section--summary {
  background: var(--surface-warm);
  padding: clamp(1.75rem, 3vw, 2.25rem) 0;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.section--summary .lead {
  margin: 0;
  font-weight: 500;
  color: var(--brand-dark);
  text-align: center;
}

/* Setup Grid (Integration pages) */
.section--setup {
  background: var(--surface-light);
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 900px) {
  .setup-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.setup-grid__content h2 {
  margin-bottom: 1rem;
}

.setup-grid__content .lead {
  margin-bottom: 2rem;
}

.requirements-box {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 4px solid var(--brand-accent);
}

.requirements-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.requirements-box .list {
  margin: 0;
}

.requirements-box .list li {
  margin-bottom: 0.6rem;
}

.requirements-box .list li:last-child {
  margin-bottom: 0;
}

/* Technical Specs List */
.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.specs-list__item {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.specs-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.specs-list dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.section--technical {
  background: var(--surface-light);
}

/* Highlight Section */
.section--highlight {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(99, 102, 241, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(16, 185, 129, 0.05), transparent),
    var(--surface-light);
}

/* Screenshot Hero Section */
.section--screenshot-hero {
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
}

/* CTA Section */
.section--cta {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e1b4b 100%);
  color: var(--surface-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent 40%);
  pointer-events: none;
}

.section--cta h2 {
  color: var(--surface-white);
}

.cta-panel {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.75rem;
}

/* Related Section */
.section--related {
  background: var(--surface-light);
}

/* ==========================================================================
   Feature Grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 900px) {
  .feature-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 1024px) {
  .feature-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card .feature-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--brand-primary);
  color: var(--surface-white);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--brand-dark);
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */

.comparison-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-white);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.comparison-table thead {
  background: var(--surface-light);
}

.comparison-table thead th {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table tbody tr {
  transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table__us {
  background: rgba(16, 185, 129, 0.08);
  color: var(--brand-dark);
  font-weight: 600;
}

thead .comparison-table__us {
  background: rgba(16, 185, 129, 0.15);
}

.comparison-table__them {
  color: var(--text-muted);
}

/* ==========================================================================
   Workflow Steps
   ========================================================================== */

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.workflow-step:last-child {
  margin-bottom: 0;
}

.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary-light), rgba(99, 102, 241, 0.1));
}

.workflow-step__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: var(--surface-white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.workflow-step__content {
  padding-top: 0.5rem;
}

.workflow-step__content p {
  margin: 0;
  font-size: 1rem;
}

/* ==========================================================================
   Do / Don't Columns
   ========================================================================== */

.do-dont {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .do-dont {
    grid-template-columns: 1fr 1fr;
  }
}

.do-dont__column {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
}

.do-dont__do {
  border-left: 4px solid var(--brand-accent);
}

.do-dont__dont {
  border-left: 4px solid var(--brand-error);
}

.do-dont h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.do-dont__do h3::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.do-dont__dont h3::before {
  content: '✗';
  width: 24px;
  height: 24px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--brand-error);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.do-dont__do h3 { color: #047857; }
.do-dont__dont h3 { color: var(--brand-error); }

.do-dont ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.do-dont li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-soft);
}

.do-dont li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   Logo Wall
   ========================================================================== */

.logo-wall {
  padding: 2rem 0;
}

.logo-wall__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.logo-wall__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.logo-wall__item {
  width: 72px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.logo-wall__item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-wall__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Metric Cards
   ========================================================================== */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.metric-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card__value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.metric-card__icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.metric-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-item[open] {
  border-color: var(--brand-primary);
}

.faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 24px;
  height: 24px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236366f1' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Lists
   ========================================================================== */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.list--check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

.list--x li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--brand-error);
  font-weight: 700;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-grid--hub {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition-base);
}

.card:hover, .card:focus-within {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card h2, .card h3 {
  font-size: 1.1rem;
}

.card h2 a, .card h3 a {
  color: var(--brand-dark);
  text-decoration: none;
}

.card h2 a:hover, .card h3 a:hover {
  color: var(--brand-primary);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs__separator {
  color: var(--border-medium);
}

/* Breadcrumb (singular) - used on signup and other pages */
.breadcrumb ol {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.breadcrumb ol li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb ol li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.breadcrumb ol li a {
  text-decoration: none;
}

.breadcrumb ol li a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Tags
   ========================================================================== */

.tag-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0 0;
  flex-wrap: wrap;
}

.tag-list li {
  background: var(--surface-white);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.toc {
  background: var(--surface-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.6rem;
}

.toc a {
  color: var(--brand-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   Doc Layout
   ========================================================================== */

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 240px 1fr;
  }
}

.doc-toc {
  background: var(--surface-light);
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-soft);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.doc-toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-toc li {
  margin-bottom: 0.4rem;
}

.doc-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.doc-toc a:hover,
.doc-toc a.is-active {
  color: var(--brand-primary);
  border-left-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.05);
}

.doc-main {
  padding: 0;
}

.doc-section {
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-soft);
}

.doc-section h2 {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.site-footer__inner {
  margin: 0 auto 3rem;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.site-footer__inner strong {
  font-size: 1.1rem;
  color: var(--surface-white);
}

.site-footer__inner > div:first-child p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.site-footer__inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer__inner a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.site-footer__inner a:hover {
  color: var(--surface-white);
}

.footer-label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-contact a {
  color: var(--surface-white);
  font-weight: 500;
}

.site-footer__bottom {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-hosting a {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .masthead__nav {
    display: none;
  }

  .masthead__cta .button--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .button {
    width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-toc {
    display: none;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

/* ==========================================================================
   Signup Page
   ========================================================================== */

.hero--signup {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--text-light);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.hero--signup .breadcrumb a,
.hero--signup .breadcrumb span {
  color: rgba(255, 255, 255, 0.8);
}

.hero--signup .hero__eyebrow {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
}

.hero--signup h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.hero--signup .hero__subhead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section--signup-form {
  padding: 3rem 1.5rem 5rem;
  background: var(--surface-light);
}

.signup-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.signup-card__inner {
  padding: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}

.form-group--checkbox .form-label {
  font-weight: 400;
  line-height: 1.4;
}

.form-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  color: var(--text-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.subdomain-preview {
  background: var(--surface-light);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 0.35rem;
}

.subdomain-preview #preview {
  font-weight: 600;
  color: var(--brand-primary);
}

.button--full {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.signup-card__footer {
  text-align: center;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signup-card__footer a {
  color: var(--brand-primary);
  font-weight: 500;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

@media (max-width: 480px) {
  .signup-card__inner {
    padding: 1.5rem;
  }
}

@media print {
  .masthead,
  .hero__ctas,
  .section--cta,
  .site-footer {
    display: none;
  }

  .hero {
    background: none;
    padding: 1rem 0;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .screenshot-frame {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
