/* ============================================================
   SWISS AI WORKFLOWS — styles.css
   Premium design — clean, minimal, editorial
   ============================================================ */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  /* Colours — Apple-inspired palette */
  --color-bg:           #ffffff;
  --color-bg-alt:       #f5f5f7;
  --color-bg-dark:      #1d1d1f;
  --color-surface:      #ffffff;
  --color-surface-raised: #ffffff;

  --color-text:         #1d1d1f;
  --color-text-muted:   #6e6e73;
  --color-text-subtle:  #aeaeb2;
  --color-text-inv:     #f5f5f7;

  --color-accent:       #0071e3;
  --color-accent-hover: #0077ed;
  --color-accent-light: #e8f0fb;

  --color-success:      #1a8a4a;
  --color-danger:       #c0392b;

  --color-border:       #d2d2d7;
  --color-border-subtle:#e8e8ed;
  --color-border-focus: #0071e3;

  /* Typography — Inter via Google Fonts, with SF Pro fallback */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
          'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                  'Helvetica Neue', Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-tight:   1.05;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w:        1080px;
  --max-w-narrow: 680px;
  --max-w-wide:   1400px;
  --section-py:   6rem;

  /* Borders & shadows */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06), 0 0 1px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);

  /* Animation */
  --ease: 220ms cubic-bezier(.25,.46,.45,.94);
  --ease-spring: 300ms cubic-bezier(.34,1.56,.64,1);
}


/* ============================================================
   2. Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

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


/* ============================================================
   3. Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, var(--text-6xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
}

p {
  max-width: 62ch;
}

p + p {
  margin-top: var(--sp-5);
}


/* ============================================================
   4. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-8);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.container--wide {
  max-width: var(--max-w-wide);
}

.section {
  padding-block: var(--section-py);
}

.bg-alt {
  background-color: var(--color-bg-alt);
}


/* ============================================================
   5. Buttons — pill-shaped, confident
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition:
    background-color var(--ease),
    border-color var(--ease),
    color var(--ease),
    transform var(--ease-spring),
    box-shadow var(--ease),
    opacity var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--color-border-focus);
  outline-offset: 3px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

/* Primary: near-black fill — confident, premium */
.btn-primary {
  background-color: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.btn-primary:hover {
  background-color: #3a3a3c;
  border-color: #3a3a3c;
  color: #fff;
  transform: scale(1.02);
}

/* Secondary: transparent with subtle border */
.btn-secondary {
  background-color: rgba(0,0,0,.04);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(0,0,0,.07);
  color: var(--color-text);
  transform: scale(1.02);
}


/* ============================================================
   6. Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

/* Premium site-brand: letter-spaced wordmark */
.site-brand {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-brand em {
  font-style: normal;
  color: var(--color-accent);
}


/* ============================================================
   7. Skip link (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-accent);
  color: #fff;
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-full);
  z-index: 9999;
  transition: top var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}


/* ============================================================
   8. Hero
   ============================================================ */
.hero-section {
  padding-block: 10rem 9rem;
  background-color: var(--color-bg);
  /* Hero visual as full-bleed background with whitish tint */
  background-image:
    linear-gradient(rgba(255,255,255,.87), rgba(255,255,255,.84)),
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(0,113,227,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(0,113,227,.04) 0%, transparent 60%),
    url('../images/hero-visual.png');
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}

.hero-section h1 {
  margin-block: var(--sp-5) var(--sp-6);
}

.hero-sub {
  font-size: clamp(var(--text-xl), 2.2vw, var(--text-2xl));
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
  line-height: var(--leading-relaxed);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: center;
}


/* ============================================================
   9. Pain
   ============================================================ */
.section-headline {
  margin-bottom: var(--sp-12);
}

/* Clean editorial list — no card grid */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 580px;
  margin-inline: auto;
}

.pain-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-size: var(--text-lg);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.pain-list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background-color: var(--color-text-subtle);
}


/* ============================================================
   10. Solution
   ============================================================ */
.solution-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
  align-items: start;
}

.solution-text h2 {
  margin-bottom: var(--sp-6);
}

.solution-text p {
  font-size: var(--text-lg);
  max-width: none;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.solution-deliverables {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
}

.solution-deliverables h3 {
  margin-bottom: var(--sp-6);
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
}

.deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deliverables-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.deliverables-list li::before {
  content: "↗";
  color: var(--color-accent);
  font-size: var(--text-base);
  flex-shrink: 0;
  font-weight: var(--weight-normal);
}


/* ============================================================
   11. Offer
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-12);
}

.offer-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-sm);
}

/* Main offer card — elevated, dark accent */
.offer-card--main {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inv);
  box-shadow: var(--shadow-lg);
}

.offer-card--main h3,
.offer-card--main .offer-price {
  color: var(--color-text-inv);
}

.offer-price {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-2);
}

.offer-price strong {
  display: block;
  font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: inherit;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-8);
}

.offer-card--main .offer-price strong {
  color: #fff;
}

.offer-card h3 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
  color: var(--color-text-muted);
}

.offer-card--main h3 {
  color: rgba(245, 245, 247, 0.5);
}

/* Shared check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--sp-10);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(245, 245, 247, 0.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  line-height: var(--leading-snug);
}

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

.check-list li::before {
  content: "✓";
  color: rgba(245, 245, 247, 0.5);
  font-size: var(--text-sm);
  flex-shrink: 0;
  font-weight: var(--weight-normal);
}

/* Good fit / not a fit */
.offer-fit-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.offer-card--fit,
.offer-card--nofit {
  padding: var(--sp-8);
}

.fit-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-5);
  color: var(--color-text-muted);
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fit-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-bottom: 1px solid var(--color-border-subtle);
  line-height: var(--leading-snug);
}

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

.fit-list--good li::before {
  content: "↗";
  color: var(--color-success);
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.fit-list--bad li::before {
  content: "—";
  color: var(--color-text-subtle);
  flex-shrink: 0;
  font-size: var(--text-sm);
}


/* ============================================================
   12. AI (Why not just use AI)
   ============================================================ */
.ai-section h2 {
  margin-bottom: var(--sp-8);
}

.ai-section p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.ai-callout {
  margin-top: var(--sp-10);
  padding: var(--sp-8) var(--sp-10);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-text);
  letter-spacing: -0.015em;
  max-width: none !important;
}


/* ============================================================
   13. Case study
   ============================================================ */
.casestudy-section h2 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* Side-by-side layout: image left (wider), cards right */
.casestudy-layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--sp-8);
  align-items: stretch;
  margin-top: var(--sp-8);
}

/* Image column fills the full row height */
.casestudy-visual-col {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0,113,227,.12),
              0 8px 16px rgba(0,0,0,.06);
}

.casestudy-visual-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.casestudy-cards-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Cards share the column height equally */
.casestudy-card {
  flex: 1;
  padding: var(--sp-10);
  border-radius: var(--radius-xl);
}

.casestudy-card h3 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
  margin-top: var(--sp-8);
}

.casestudy-card h3:first-child {
  margin-top: 0;
}

.casestudy-card p {
  font-size: var(--text-lg);
  max-width: none;
  line-height: var(--leading-relaxed);
}

.casestudy-card--before {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.casestudy-card--before h3 {
  color: var(--color-text-subtle);
}

.casestudy-card--before p {
  color: var(--color-text-muted);
}

.casestudy-card--after {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inv);
}

.casestudy-card--after h3 {
  color: rgba(245,245,247,.45);
}

.casestudy-card--after p {
  color: rgba(245,245,247,.85);
}

.casestudy-result {
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  color: #fff !important;
  letter-spacing: -0.015em;
}


/* ============================================================
   14. How it works
   ============================================================ */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--sp-12);
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color var(--ease);
}

.steps-list li:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  color: var(--color-text-muted);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  padding-top: 0.15rem; /* optical alignment with step-title */
}

.step-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  letter-spacing: -0.01em;
}


/* ============================================================
   15. FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--sp-12);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: -0.01em;
}

/* Hide the default marker in all browsers */
.faq-question::-webkit-details-marker,
.faq-question::marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  color: var(--color-text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--ease), color var(--ease);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-answer {
  padding-bottom: var(--sp-6);
}

.faq-answer p {
  font-size: var(--text-lg);
  max-width: none;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}


/* ============================================================
   16. Final CTA
   ============================================================ */
.finalcta-section {
  background-color: var(--color-bg-dark);
  /* Subtle noise-inspired radial highlight */
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(0,113,227,.18) 0%, transparent 65%);
  color: var(--color-text-inv);
}

.finalcta-section h2 {
  color: #fff;
  margin-bottom: var(--sp-5);
}

.finalcta-section .hero-body {
  color: rgba(245, 245, 247, 0.7);
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

/* White pill button on dark */
.finalcta-section .btn-primary {
  background-color: #fff;
  color: var(--color-bg-dark);
  border-color: #fff;
}

.finalcta-section .btn-primary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-bg-dark);
}


/* ============================================================
   17. Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-subtle);
  padding-block: var(--sp-12);
}

.footer-top {
  margin-bottom: var(--sp-6);
}

.footer-top .site-brand {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--text-sm);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--sp-2);
  max-width: none;
}

.footer-link {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--sp-2);
  display: inline-block;
}

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  max-width: none;
}


/* ============================================================
   18. Utilities
   ============================================================ */
.text-center {
  text-align: center;
}

.text-center > p,
.text-center > .hero-sub,
.text-center > .hero-body {
  margin-inline: auto;
}

.mt-10 {
  margin-top: var(--sp-10);
}


/* ============================================================
   19. Responsive
   ============================================================ */

/* --- Tablet ≤ 860 px --- */
@media (max-width: 860px) {
  :root {
    --section-py: 5rem;
  }

  .solution-layout,
  .offer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .casestudy-layout {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }

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

  .offer-fit-grid {
    flex-direction: row;
    gap: var(--sp-4);
  }

  .offer-card--fit,
  .offer-card--nofit {
    flex: 1;
  }
}

/* --- Mobile ≤ 560 px --- */
@media (max-width: 560px) {
  :root {
    --section-py: 4rem;
  }

  .container {
    padding-inline: var(--sp-5);
  }

  .hero-section {
    padding-block: 5rem 4rem;
  }

  .offer-fit-grid {
    flex-direction: column;
  }

  .offer-card {
    padding: var(--sp-7, 1.75rem);
  }

  .offer-card--main {
    padding: var(--sp-8);
  }

  .solution-deliverables {
    padding: var(--sp-7, 1.75rem);
  }

  .casestudy-card {
    padding: var(--sp-7, 1.75rem);
  }

  .ai-callout {
    padding: var(--sp-6);
  }

  .faq-question {
    font-size: var(--text-base);
    padding: var(--sp-5) 0;
  }

  .step-text {
    font-size: var(--text-base);
  }

  .demo-shell {
    border-radius: var(--radius-lg);
  }
}


/* ============================================================
   20. Section visuals
   ============================================================ */

/* Solution section — no standalone image (section text stands alone) */

/* Responsive image baseline */
@media (max-width: 860px) {
  .casestudy-visual-col img {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 560px) {
  .casestudy-visual-col img {
    border-radius: var(--radius-md);
  }
}


/* ============================================================
   21. Video demo section
   ============================================================ */
.demo-section {
  background-color: var(--color-bg-dark);
  /* Subtle radial blue bloom from top-centre */
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(0,113,227,.22) 0%, transparent 65%);
  padding-block: var(--sp-24) var(--sp-20);
}

.demo-section .eyebrow {
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(245,245,247,.6);
}

.demo-section h2 {
  color: #fff;
  margin-top: var(--sp-5);
}

.demo-section .hero-sub {
  color: rgba(245,245,247,.65);
  margin-bottom: var(--sp-12);
}

/* Video container — premium rounded frame with layered shadow */
.demo-shell {
  position: relative;
  margin-top: var(--sp-4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Layered box-shadow: inner border-glow + outer depth */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 32px 80px rgba(0,0,0,.55),
    0 8px 24px  rgba(0,0,0,.35);
  background-color: #111;
  aspect-ratio: 16 / 9;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Placeholder shown when video file is missing */
.demo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: inherit;
}

.demo-placeholder-inner {
  text-align: center;
  padding: var(--sp-8);
}

.demo-play-icon {
  display: block;
  margin-bottom: var(--sp-5);
}

.demo-placeholder-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: rgba(245,245,247,.85);
  max-width: none;
  margin-bottom: var(--sp-3);
}

.demo-placeholder-hint {
  font-size: var(--text-sm);
  color: rgba(245,245,247,.4);
  max-width: none;
}

.demo-placeholder-hint code {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: var(--text-xs);
  background: rgba(255,255,255,.08);
  padding: 0.15em 0.5em;
  border-radius: 4px;
  color: rgba(245,245,247,.6);
}


/* ============================================================
   22. Premium detail polish
   ============================================================ */

/* Thin decorative rule above standalone section eyebrows */
.section-eyebrow-rule {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
  margin: 0 auto var(--sp-5);
  border-radius: 2px;
}


/* ============================================================
   23. New sections — Who this is for, Trust, Steps, Offer, Casestudy
   ============================================================ */

/* --- Who this is for --- */
.whofor-intro {
  color: var(--color-text-muted);
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-10);
  line-height: var(--leading-relaxed);
}

.whofor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-8);
}

.whofor-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* --- Trust / About --- */
.trust-section h2 {
  margin-bottom: var(--sp-6);
}

.trust-section p {
  max-width: var(--max-w-narrow);
  margin-bottom: var(--sp-4);
  line-height: var(--leading-relaxed);
}

.trust-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--color-border-subtle);
  letter-spacing: 0.01em;
}

/* --- Pricing note (offer section) --- */
.pricing-note {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: var(--leading-relaxed);
}

/* --- Risk reversal callout (inside offer card) --- */
.risk-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: var(--sp-5);
  line-height: var(--leading-relaxed);
}

/* --- How it works — intro text --- */
.howitworks-intro {
  color: var(--color-text-muted);
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  line-height: var(--leading-relaxed);
}

/* --- How it works — rich step format --- */
.steps-list li {
  align-items: flex-start;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.step-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.step-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --- Case study CTA --- */
.casestudy-cta {
  margin-top: var(--sp-12);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--color-border-subtle);
}

.casestudy-cta-label {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
}

/* --- Final CTA secondary button (on dark background) --- */
.finalcta-section .finalcta-btn-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.finalcta-section .finalcta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Hero — stronger headline gradient on supported browsers */
@supports (-webkit-background-clip: text) {
  .hero-gradient-text {
    background: linear-gradient(135deg, var(--color-text) 0%, #3a3a3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Offer card — subtle inner top-edge highlight (glass rim) */
.offer-card--main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.offer-card--main {
  position: relative;
}

/* Section transition: very faint horizontal rule */
.section-rule {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: 0;
}

/* Smooth link underline animation for inline text links */
a.inline-link {
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size var(--ease);
}
a.inline-link:hover {
  background-size: 100% 1px;
}

/* Demo section mobile */
@media (max-width: 860px) {
  .demo-section {
    padding-block: var(--sp-16) var(--sp-12);
  }
}

@media (max-width: 560px) {
  .demo-section {
    padding-block: var(--sp-12) var(--sp-10);
  }
  .demo-shell {
    border-radius: var(--radius-md);
  }
}
