/* ===========================================================
   Bluehouse base: the layout layer of the site pages.
   The page markup uses the sw-* primitives (sections, editorial
   blocks, product blocks, forms, nav, language switch); this file
   gives them their layout. The Bluehouse look comes on top of it:
   css/newdesign.css (the bh-* system) and css/bluehouse-site.css
   (sw-* onto Bluehouse). Load order: this file, newdesign.css,
   bluehouse-site.css.

   History: merged from the four sheets of the earlier v2 design
   (tokens.css, base.css, editorial.css, product.css), 2026-11-12,
   with its colours and fonts mapped onto the Bluehouse tokens.
   =========================================================== */


/* ----------------------------------------------------------- */
/* Tokens: the sw-* names the layout uses, Bluehouse values     */
/* (the bh-* tokens live in css/newdesign.css)                  */
/* ----------------------------------------------------------- */
:root {
  /* ---------- Colour ---------- */
  --sw-bg:          var(--bh-white);
  --sw-surface:     var(--bh-white);
  --sw-surface-2:   var(--bh-linnen);
  --sw-text:        var(--bh-petrol);
  --sw-text-2:      var(--bh-petrol);
  --sw-text-3:      var(--bh-muted);
  --sw-text-4:      var(--bh-muted);
  --sw-accent:      var(--bh-ruby);
  --sw-accent-2:    #93301F;
  --sw-accent-soft: rgba(171, 58, 46, 0.1);
  --sw-system:      var(--bh-petrol);    /* one register (OP-01): no second accent */
  --sw-system-2:    var(--bh-petrol);
  --sw-system-soft: rgba(0, 72, 103, 0.08);
  --sw-rule:        var(--bh-rule);
  --sw-rule-strong: var(--bh-petrol);

  /* ---------- Typography ---------- */
  --sw-font-display: var(--bh-font-display);
  --sw-font-body:    var(--bh-font-text);
  --sw-font-mono:    var(--bh-font-text);   /* no mono in the design (OP-10) */

  --sw-t0: var(--bh-t-hero);
  --sw-t1: var(--bh-t-h2);
  --sw-t2: var(--bh-t-card);
  --sw-t3: 1.375rem;
  --sw-t4: var(--bh-t-body);
  --sw-t4-lede: var(--bh-t-lead);
  --sw-t5: var(--bh-t-kicker-small);
  --sw-t6: var(--bh-t-card);
  --sw-t7: 0.9375rem;
  --sw-t8: 0.875rem;

  /* ---------- Spacing (8px base) ---------- */
  --sw-s-1:  0.5rem;
  --sw-s-2:  1rem;
  --sw-s-3:  1.5rem;
  --sw-s-4:  2rem;
  --sw-s-5:  2.5rem;
  --sw-s-6:  4rem;
  --sw-s-7:  6rem;
  --sw-s-8:  7.5rem;   /* section padding */
  --sw-s-9:  10rem;    /* large section padding */

  /* ---------- Geometry ----------
     One rounded corner, top right, on every frame: components set
     border-radius: 0 var(--...) 0 0. The radius tokens stay for the few
     places that use them as a size. */
  --sw-radius-sm:   8px;
  --sw-radius-md:   12px;
  --sw-radius-lg:   var(--bh-r-step);
  --sw-radius-pill: 999px;

  --sw-container:        calc(var(--bh-content) + 2 * var(--bh-gutter));
  --sw-container-narrow: calc(var(--bh-content) + 2 * var(--bh-gutter));
  --sw-gutter:           var(--bh-gutter);

  /* ---------- Motion ---------- */
  --sw-ease:        cubic-bezier(0.22, 1, 0.36, 1);  /* expo out */
  --sw-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --sw-dur-fast:    200ms;
  --sw-dur:         400ms;
  --sw-dur-slow:    700ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --sw-dur-fast: 0ms;
    --sw-dur: 0ms;
    --sw-dur-slow: 0ms;
  }
}

/* ----------------------------------------------------------- */
/* base (was css/base.css, v2)                                          */
/* ----------------------------------------------------------- */
/* ===========================================================
   Bluehouse base: Base layer
   Reset, layout primitives, nav, footer, sections, motion.
   Shared across editorial and product modes.
   Depends on: the tokens above
   =========================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sw-bg);
  color: var(--sw-text);
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* ---------- Container ---------- */
.sw-container {
  width: 100%;
  max-width: var(--sw-container);
  margin: 0 auto;
  padding-left: var(--sw-gutter);
  padding-right: var(--sw-gutter);
}

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

/* ---------- Utilities ---------- */
.sw-small {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t7);
  color: var(--sw-text-3);
}

.sw-mono {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.06em;
  color: var(--sw-text-3);
}

/* ---------- Rule ---------- */
.sw-rule {
  border: 0;
  border-top: 1px solid var(--sw-rule);
  margin: 0;
}

/* ---------- Buttons ---------- */
.sw-cta-primary,
.sw-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sw-font-body);
  font-size: var(--sw-t8);
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 13px 22px;
  border-radius: var(--sw-radius-pill);
  text-decoration: none;
  transition: background var(--sw-dur-fast) var(--sw-ease),
              color var(--sw-dur-fast) var(--sw-ease),
              border-color var(--sw-dur-fast) var(--sw-ease),
              box-shadow var(--sw-dur-fast) var(--sw-ease),
              transform var(--sw-dur-fast) var(--sw-ease);
  white-space: nowrap;
}

.sw-cta-primary {
  background: var(--sw-accent);
  color: #fff;
  border: 1px solid var(--sw-accent);
}

.sw-cta-primary:hover {
  background: var(--sw-accent-2);
  border-color: var(--sw-accent-2);
  transform: translateY(-1px);
  box-shadow: none;
}

.sw-cta-ghost {
  background: transparent;
  color: var(--sw-text);
  border: 1px solid var(--sw-rule-strong);
}

.sw-cta-ghost:hover {
  border-color: var(--sw-text);
  background: rgba(11, 11, 11, 0.03);
}

.sw-cta-arrow {
  transition: transform var(--sw-dur-fast) var(--sw-ease);
  display: inline-block;
}

.sw-cta-primary:hover .sw-cta-arrow,
.sw-cta-ghost:hover .sw-cta-arrow {
  transform: translateX(3px);
}

.sw-cta-group {
  display: flex;
  gap: var(--sw-s-2);
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Link with animated underline ---------- */
.sw-link {
  position: relative;
  text-decoration: none;
  color: var(--sw-text);
  font-weight: 500;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--sw-accent), var(--sw-accent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-link:hover {
  color: var(--sw-accent-2);
}

/* ---------- Nav ---------- */
.sw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sw-rule);
}

.sw-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sw-s-3);
  padding-top: var(--sw-s-2);
  padding-bottom: var(--sw-s-2);
}

.sw-nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--sw-text);
}

.sw-nav__brand-art {
  height: 36px;
  width: auto;
}

.sw-nav__brand-name {
  height: 24px;
  width: auto;
  /* SVG bounding box has more space above the cap-line than below the
     descender, so flex centering lands the cap-baseline above the nav-link
     baseline. Nudge down to align the bottom of the S/W caps with the
     nav-link baseline. */
  transform: translateY(2px);
}

.sw-nav__links {
  display: flex;
  gap: var(--sw-s-3);
  align-items: center;
}

.sw-nav__link {
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sw-text-2);
  text-decoration: none;
  padding: 6px 2px;
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-nav__link:hover {
  color: var(--sw-accent-2);
}

.sw-nav__link.is-active {
  color: var(--sw-text);
}

.sw-nav__right {
  display: flex;
  align-items: center;
  gap: var(--sw-s-2);
}

.sw-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sw-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--sw-text-3);
}

.sw-lang__btn {
  padding: 4px 6px;
  color: var(--sw-text-3);
  cursor: pointer;
  transition: color var(--sw-dur-fast) var(--sw-ease);
  background: none;
  border: 0;
  font: inherit;
}

.sw-lang__btn:hover {
  color: var(--sw-text);
}

.sw-lang__btn.is-active {
  color: var(--sw-accent);
}

.sw-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  width: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}

.sw-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sw-text);
  border-radius: 1px;
  transition: transform var(--sw-dur-fast) var(--sw-ease),
              opacity var(--sw-dur-fast) var(--sw-ease);
}

@media (max-width: 720px) {
  .sw-nav__hamburger {
    display: flex;
  }

  /* Hamburger → X animation when the parent nav is open */
  .sw-nav.is-open .sw-nav__hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .sw-nav.is-open .sw-nav__hamburger span:nth-child(2) {
    opacity: 0;
  }
  .sw-nav.is-open .sw-nav__hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Mobile dropdown — hidden by default, shown when nav is open */
  .sw-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sw-s-2) var(--sw-gutter) var(--sw-s-3);
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sw-rule);
  }

  .sw-nav.is-open .sw-nav__links {
    display: flex;
  }

  .sw-nav.is-open .sw-nav__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--sw-rule);
  }

  .sw-nav.is-open .sw-nav__link:last-child {
    border-bottom: 0;
  }
}

/* ---------- Sections ---------- */
.sw-section {
  padding-top: var(--sw-s-8);
  padding-bottom: var(--sw-s-8);
}

.sw-section--lg {
  padding-top: var(--sw-s-9);
  padding-bottom: var(--sw-s-9);
}

.sw-section--sm {
  padding-top: var(--sw-s-6);
  padding-bottom: var(--sw-s-6);
}

@media (max-width: 720px) {
  .sw-section {
    padding-top: var(--sw-s-6);     /* 64px */
    padding-bottom: var(--sw-s-6);
  }
  .sw-section--lg {
    padding-top: var(--sw-s-7);     /* 96px */
    padding-bottom: var(--sw-s-7);
  }
  .sw-section--sm {
    padding-top: var(--sw-s-5);     /* 40px */
    padding-bottom: var(--sw-s-5);
  }
}

/* ---------- Forms (signup, contact) ---------- */
.sw-form {
  max-width: 480px;
}

.sw-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sw-s-3);
}

.sw-form__label {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-text-3);
}

.sw-form__input {
  font-family: var(--sw-font-body);
  font-size: 1.0625rem;
  color: var(--sw-text);
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule-strong);
  border-radius: var(--sw-radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--sw-dur-fast) var(--sw-ease),
              box-shadow var(--sw-dur-fast) var(--sw-ease);
}

.sw-form__input:focus {
  outline: 0;
  border-color: var(--sw-accent);
  box-shadow: 0 0 0 3px var(--sw-accent-soft);
}

.sw-form__field-error {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t7);
  color: #B33A3A;
  margin: 0;
}

.sw-form__submit {
  margin-top: var(--sw-s-2);
}

.sw-form__trust {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.06em;
  color: var(--sw-text-3);
  margin: var(--sw-s-3) 0 0;
  text-transform: none;
}

.sw-form__success,
.sw-form__error {
  padding: var(--sw-s-3);
  border-radius: var(--sw-radius-md);
  background: var(--sw-surface-2);
  margin-top: var(--sw-s-3);
}

.sw-form__success p,
.sw-form__error p {
  margin: 0;
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  color: var(--sw-text);
}

.sw-form__error {
  background: rgba(179, 58, 58, 0.06);
}

/* Two-column layout: portrait/quote + form. Used on /signup/. */
.sw-form-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: var(--sw-s-6);
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .sw-form-layout {
    grid-template-columns: 1fr;
    gap: var(--sw-s-4);
  }
}

/* ---------- Share icons (small circular social links) ---------- */
.sw-share {
  display: flex;
  gap: var(--sw-s-2);
}

.sw-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sw-rule);
  border-radius: 50%;
  color: var(--sw-text-3);
  text-decoration: none;
  transition: color var(--sw-dur-fast) var(--sw-ease),
              border-color var(--sw-dur-fast) var(--sw-ease);
}

.sw-share__icon:hover {
  color: var(--sw-text);
  border-color: var(--sw-text);
}

.sw-share__icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- QR code (closing CTA, desktop-only) ---------- */
.sw-qr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sw-s-3);
  align-items: flex-start;
}

.sw-qr__img {
  width: 96px;
  height: 96px;
  border-radius: var(--sw-radius-sm);
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule);
  padding: 6px;
}

.sw-qr__caption {
  font-family: var(--sw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-text-3);
  margin: 0;
}

@media (max-width: 720px) {
  .sw-qr {
    display: none;
  }
}

/* ---------- Footer ---------- */
.sw-footer {
  border-top: 1px solid var(--sw-rule);
  padding-top: var(--sw-s-5);
  padding-bottom: var(--sw-s-5);
  margin-top: var(--sw-s-6);
}

.sw-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sw-s-3);
  flex-wrap: wrap;
}

.sw-footer__legal {
  font-family: var(--sw-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--sw-text-3);
}

.sw-footer__legal a {
  color: var(--sw-text-3);
  text-decoration: none;
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-footer__legal a:hover {
  color: var(--sw-text);
}

/* ---------- Onepager header (mini brand + lang, no full nav) ----------
   For standalone brief pages like /onepager/. Replaces the full sticky nav. */
.sw-onepager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sw-s-3);
  padding: var(--sw-s-3) var(--sw-gutter);
  max-width: var(--sw-container);
  margin: 0 auto;
  flex-wrap: wrap;
}

.sw-onepager-header__right {
  display: flex;
  align-items: center;
  gap: var(--sw-s-3);
}

.sw-onepager-bh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sw-text);
}

.sw-onepager-bh__text {
  font-family: var(--sw-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--sw-text-2);
}

.sw-onepager-bh__logo {
  height: 22px;
  width: auto;
  border-radius: 4px;
  display: block;
}

/* ---------- Print ---------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  html, body {
    background: #fff !important;
    color: #111 !important;
  }

  .sw-nav,
  .sw-onepager-header .sw-lang,
  .sw-share,
  .sw-reveal {
    transform: none !important;
    opacity: 1 !important;
  }

  .sw-nav,
  .sw-onepager-header .sw-lang,
  .sw-share {
    display: none !important;
  }

  .sw-rule,
  .sw-reveal--line {
    display: none !important;
  }

  .sw-section,
  .sw-section--sm,
  .sw-section--lg,
  .sw-hero {
    padding-top: var(--sw-s-3) !important;
    padding-bottom: var(--sw-s-3) !important;
    break-inside: avoid;
  }

  .sw-cta-primary {
    background: var(--sw-accent) !important;
    color: #fff !important;
    border-color: var(--sw-accent) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- Bilingual ---------- */
[data-lang] {
  display: none;
}

html.lang-en [data-lang="en"],
html.lang-nl [data-lang="nl"] {
  display: revert;
}

/* Inline-element specificity */
span[data-lang],
p[data-lang],
div[data-lang],
li[data-lang] {
  display: none;
}

html.lang-en span[data-lang="en"],
html.lang-en p[data-lang="en"],
html.lang-en div[data-lang="en"],
html.lang-en li[data-lang="en"] {
  display: revert;
}

html.lang-nl span[data-lang="nl"],
html.lang-nl p[data-lang="nl"],
html.lang-nl div[data-lang="nl"],
html.lang-nl li[data-lang="nl"] {
  display: revert;
}

/* Images and pictures with data-lang switch on language too — `img { display: block }`
   in the reset would otherwise win against the generic [data-lang] hide rule. */
img[data-lang],
picture[data-lang] {
  display: none;
}

html.lang-en img[data-lang="en"],
html.lang-nl img[data-lang="nl"],
html.lang-en picture[data-lang="en"],
html.lang-nl picture[data-lang="nl"] {
  display: block;
}

/* ---------- Scroll reveal ----------
   .sw-js gate so no-JS users see content in default state, not hidden. */
html.sw-js .sw-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--sw-dur-slow) var(--sw-ease),
              transform var(--sw-dur-slow) var(--sw-ease);
  will-change: opacity, transform;
}

html.sw-js .sw-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Same specificity as the .sw-reveal rule above: that one sets `transition`
   as a shorthand, which resets transition-delay to 0. Without matching its
   specificity these modifiers are silently ignored and every staged reveal
   arrives at once. */
html.sw-js .sw-reveal.sw-reveal--delay-1 { transition-delay: 80ms; }
html.sw-js .sw-reveal.sw-reveal--delay-2 { transition-delay: 160ms; }
html.sw-js .sw-reveal.sw-reveal--delay-3 { transition-delay: 240ms; }
html.sw-js .sw-reveal.sw-reveal--delay-4 { transition-delay: 320ms; }

/* Build-up variant — revealed from the bottom up while scaling into place,
   so a line-drawn mark assembles itself instead of sliding in.

   The reveal uses a mask, not clip-path: clip-path shrinks the element to
   zero visible area, and IntersectionObserver then never reports it as
   visible, so .is-revealed is never added and the element stays hidden
   forever. A mask only affects painting, not the geometry the observer
   measures. */
html.sw-js .sw-reveal--build {
  opacity: 0;
  transform: scale(0.94);
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  mask-position: bottom;
  -webkit-mask-size: 100% 0%;
  mask-size: 100% 0%;
  transition: opacity 900ms var(--sw-ease),
              transform 900ms var(--sw-ease),
              -webkit-mask-size 900ms var(--sw-ease),
              mask-size 900ms var(--sw-ease);
}

html.sw-js .sw-reveal--build.is-revealed {
  opacity: 1;
  transform: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Line-draw variant — overrides opacity/translate with width 0→100% draw.
   Use on <hr> elements so dividers compose themselves on scroll-in. */
html.sw-js .sw-reveal--line {
  opacity: 1;
  transform: none;
  width: 0;
  margin-left: 0;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.sw-js .sw-reveal--line.is-revealed {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html.sw-js .sw-reveal {
    opacity: 1;
    transform: none;
  }
  html.sw-js .sw-reveal--line {
    width: 100%;
  }
  html.sw-js .sw-reveal--build {
    opacity: 1;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ----------------------------------------------------------- */
/* editorial (was css/editorial.css, v2)                                          */
/* ----------------------------------------------------------- */
/* ===========================================================
   Bluehouse base: Editorial mode primitives
   Typography, hero, editorial sections, quote, founders,
   contact, deployment bridge slot.
   Depends on: the tokens and base sections above
   =========================================================== */

/* ---------- Typography primitives ---------- */

.sw-eyebrow {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-text-3);
  margin: 0 0 var(--sw-s-3);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
}

.sw-eyebrow__num {
  color: var(--sw-accent);
  font-size: 1.7em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Editorial ampersand — accent italic for "&" in names */
.sw-amp {
  color: var(--sw-accent);
  font-style: italic;
  font-weight: 400;
}

.sw-display {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t0);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-4);
}

.sw-h1 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t1);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-3);
}

.sw-h2 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-3);
}

.sw-h3 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-2);
}

.sw-lede {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4-lede);
  line-height: 1.55;
  color: var(--sw-text-2);
  max-width: 60ch;
  margin: 0 0 var(--sw-s-5);
  font-weight: 400;
}

.sw-body {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.65;
  color: var(--sw-text-2);
  max-width: 65ch;
  margin: 0 0 var(--sw-s-3);
}

.sw-body--narrow {
  max-width: 56ch;
}

/* ---------- Hero ---------- */
.sw-hero {
  padding-top: var(--sw-s-7);
  padding-bottom: var(--sw-s-8);
}

.sw-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-s-6);
  align-items: center;
}

@media (max-width: 920px) {
  .sw-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sw-s-5);
  }
}

@media (max-width: 720px) {
  .sw-hero {
    padding-top: var(--sw-s-5);     /* 40px */
    padding-bottom: var(--sw-s-6);  /* 64px */
  }
}

.sw-hero__text {
  max-width: 36rem;
}

.sw-hero__visual {
  position: relative;
  border-radius: var(--sw-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sw-surface-2);
  box-shadow: none;
}

.sw-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sw-hero__visual-meta {
  position: absolute;
  left: var(--sw-s-3);
  bottom: var(--sw-s-3);
  font-family: var(--sw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: var(--sw-radius-sm);
}

/* ---------- Editorial section (sticky aside + body) ---------- */
.sw-editorial {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sw-s-6);
  align-items: start;
}

.sw-editorial__aside {
  position: sticky;
  top: 100px;
}

@media (max-width: 720px) {
  .sw-editorial {
    grid-template-columns: 1fr;
    gap: var(--sw-s-3);
  }
  .sw-editorial__aside {
    position: static;
    top: auto;
  }
}

.sw-editorial__body p {
  margin: 0 0 var(--sw-s-3);
  font-size: var(--sw-t4);
  line-height: 1.65;
  color: var(--sw-text-2);
  max-width: 56ch;
}

.sw-editorial__title {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-3);
}

/* ---------- Quote ---------- */
.sw-quote {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.sw-quote__mark {
  font-family: var(--sw-font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--sw-accent);
  margin-bottom: var(--sw-s-2);
  display: block;
}

.sw-quote__text {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t6);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-3);
  letter-spacing: -0.01em;
}

.sw-quote__by {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sw-text-3);
}

/* ---------- Founders block ---------- */
.sw-founders {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sw-s-5);
  align-items: center;
}

@media (max-width: 720px) {
  .sw-founders {
    grid-template-columns: 1fr;
  }
}

.sw-founders__photo {
  margin: 0;
  border-radius: var(--sw-radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}

.sw-founders__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* When the photo sits inline in an editorial body */
.sw-founders__photo--inline {
  max-width: 420px;
  margin: var(--sw-s-4) 0 var(--sw-s-3);
}

/* ---------- Contact strip ---------- */
.sw-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-s-5);
  align-items: start;
}

@media (max-width: 720px) {
  .sw-contact {
    grid-template-columns: 1fr;
  }
}

.sw-contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--sw-s-2);
}

.sw-contact__channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-contact__channel-label {
  font-family: var(--sw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-text-3);
}

.sw-contact__channel-value {
  font-family: var(--sw-font-body);
  font-size: 1.125rem;
  color: var(--sw-text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-contact__channel-value:hover {
  color: var(--sw-accent-2);
}

/* ---------- Checklist (editorial body list with accent checks) ---------- */
.sw-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 56ch;
}

.sw-checklist li {
  position: relative;
  padding-left: 1.8em;
  margin: 0 0 var(--sw-s-2);
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.55;
  color: var(--sw-text-2);
}

.sw-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sw-accent);
  font-weight: 500;
  font-size: 1.05em;
}

.sw-checklist li strong {
  color: var(--sw-text);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.sw-checklist li > span:not([data-lang]) {
  display: block;
  font-size: 0.9375rem;
  color: var(--sw-text-3);
  line-height: 1.45;
}

/* Two-column variant — for feature lists under product sections */
.sw-checklist--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-s-3) var(--sw-s-5);
  max-width: none;
  margin-top: var(--sw-s-5);
}

@media (max-width: 720px) {
  .sw-checklist--two-col {
    grid-template-columns: 1fr;
    gap: var(--sw-s-3);
  }
}

.sw-checklist--two-col li {
  margin: 0;
}

/* ---------- Steps strip (three-column numbered progression) ---------- */
.sw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-s-5);
  margin-top: var(--sw-s-3);
}

@media (max-width: 720px) {
  .sw-steps {
    grid-template-columns: 1fr;
    gap: var(--sw-s-3);
  }
}

.sw-step {
  padding-top: var(--sw-s-3);
  border-top: 1px solid var(--sw-rule);
}

.sw-step__num {
  font-family: var(--sw-font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--sw-accent);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sw-s-2);
}

.sw-step__title {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t2);
  font-weight: 500;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-2);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.sw-step__body {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.55;
  color: var(--sw-text-2);
  margin: 0;
  max-width: 32ch;
}

/* ---------- Stat (contrast metric moment) ---------- */
.sw-stat {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: var(--sw-s-5) 0;
}

.sw-stat__label {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-text-3);
  margin: 0 0 var(--sw-s-4);
}

.sw-stat__contrast {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sw-s-3);
  margin: 0 0 var(--sw-s-3);
  font-family: var(--sw-font-display);
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1;
}

.sw-stat__from {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sw-text-3);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sw-text-4);
  letter-spacing: -0.02em;
}

.sw-stat__arrow {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--sw-accent);
}

.sw-stat__to {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--sw-text);
  letter-spacing: -0.025em;
}

.sw-stat__caption {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.55;
  color: var(--sw-text-2);
  max-width: 50ch;
  margin: 0 auto;
}

/* ---------- Quotes grid (two side-by-side pull quotes) ---------- */
.sw-quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-s-6);
}

@media (max-width: 720px) {
  .sw-quotes-grid {
    grid-template-columns: 1fr;
    gap: var(--sw-s-5);
  }
}

.sw-quotes-grid .sw-quote {
  max-width: none;
  margin: 0;
}

/* ---------- Quote carousel (swipeable; ~2 per view desktop, 1 on mobile) ---------- */
.sw-quote-carousel { position: relative; }

.sw-quote-carousel__track {
  display: flex;
  gap: var(--sw-s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;               /* Firefox */
}
.sw-quote-carousel__track::-webkit-scrollbar { display: none; }  /* WebKit */

.sw-quote-carousel__track > .sw-quote {
  flex: 0 0 calc((100% - var(--sw-s-6)) / 2);
  min-width: 0;
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  .sw-quote-carousel__track { gap: var(--sw-s-4); }
  .sw-quote-carousel__track > .sw-quote { flex-basis: 100%; }
}

.sw-quote-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sw-s-3);
  margin-top: var(--sw-s-4);
}

.sw-quote-carousel__btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sw-rule-strong);
  border-radius: var(--sw-radius-pill);
  background: transparent;
  color: var(--sw-text);
  cursor: pointer;
  transition: border-color var(--sw-dur-fast) var(--sw-ease),
              background var(--sw-dur-fast) var(--sw-ease),
              opacity var(--sw-dur-fast) var(--sw-ease);
}
.sw-quote-carousel__btn:hover { border-color: var(--sw-text); background: rgba(11, 11, 11, 0.03); }
.sw-quote-carousel__btn:disabled { opacity: 0.3; cursor: default; }
.sw-quote-carousel__btn svg { width: 18px; height: 18px; }

.sw-quote-carousel__dots { display: flex; align-items: center; gap: 8px; }
.sw-quote-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--sw-rule-strong);
  cursor: pointer;
  transition: background var(--sw-dur-fast) var(--sw-ease),
              transform var(--sw-dur-fast) var(--sw-ease);
}
.sw-quote-carousel__dot.is-active { background: var(--sw-accent); transform: scale(1.25); }

/* ---------- Blog: index post list ---------- */
.sw-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sw-post-item {
  border-top: 1px solid var(--sw-rule);
}

.sw-post-item:last-child {
  border-bottom: 1px solid var(--sw-rule);
}

.sw-post-item__link {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: var(--sw-s-4);
  align-items: baseline;
  padding: var(--sw-s-4) 0;
  text-decoration: none;
  color: var(--sw-text);
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-post-item__link:hover {
  color: var(--sw-accent-2);
}

@media (max-width: 720px) {
  .sw-post-item__link {
    grid-template-columns: 1fr;
    gap: var(--sw-s-1);
    padding: var(--sw-s-3) 0;
  }
}

.sw-post-item__date {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.08em;
  color: var(--sw-text-3);
  align-self: start;
  padding-top: 4px;
}

.sw-post-item__title {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 var(--sw-s-2);
  color: inherit;
}

.sw-post-item__excerpt {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.55;
  color: var(--sw-text-2);
  margin: 0;
  max-width: 56ch;
}

.sw-post-item__more {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-accent);
  align-self: start;
  padding-top: 4px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .sw-post-item__more {
    margin-top: var(--sw-s-2);
  }
}

/* ---------- Blog: single post page body ----------
   Styles the HTML emitted by Python-Markdown inside .sw-post-page__body. */
.sw-post-page__body {
  margin-top: var(--sw-s-4);
}

.sw-post-page__body p {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.7;
  color: var(--sw-text-2);
  margin: 0 0 var(--sw-s-3);
}

.sw-post-page__body > div > p:first-child,
.sw-post-page__body p:first-of-type {
  font-size: var(--sw-t4-lede);
  line-height: 1.55;
  color: var(--sw-text);
}

.sw-post-page__body h2 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t2);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--sw-text);
  margin: var(--sw-s-5) 0 var(--sw-s-3);
}

.sw-post-page__body h3 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--sw-text);
  margin: var(--sw-s-4) 0 var(--sw-s-2);
}

.sw-post-page__body blockquote {
  border-left: 2px solid var(--sw-accent);
  padding-left: var(--sw-s-3);
  margin: var(--sw-s-4) 0;
  font-style: italic;
  color: var(--sw-text);
}

.sw-post-page__body blockquote p {
  font-size: var(--sw-t4-lede);
  color: var(--sw-text);
}

.sw-post-page__body a {
  color: var(--sw-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--sw-accent);
  transition: color var(--sw-dur-fast) var(--sw-ease);
}

.sw-post-page__body a:hover {
  color: var(--sw-accent-2);
  text-decoration-color: var(--sw-accent-2);
}

.sw-post-page__body strong {
  color: var(--sw-text);
  font-weight: 500;
}

.sw-post-page__body em {
  font-style: italic;
}

.sw-post-page__body code {
  font-family: var(--sw-font-mono);
  font-size: 0.875em;
  background: var(--sw-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.sw-post-page__body pre {
  background: var(--sw-surface-2);
  padding: var(--sw-s-3);
  border-radius: var(--sw-radius-md);
  overflow-x: auto;
  margin: var(--sw-s-3) 0;
}

.sw-post-page__body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

.sw-post-page__body ul,
.sw-post-page__body ol {
  margin: var(--sw-s-3) 0;
  padding-left: 1.5em;
}

.sw-post-page__body li {
  margin: var(--sw-s-1) 0;
  color: var(--sw-text-2);
  line-height: 1.65;
}

.sw-post-page__body hr {
  border: 0;
  border-top: 1px solid var(--sw-rule);
  margin: var(--sw-s-5) 0;
}

/* Multi-part documents (the legal pages) use H1 per part. */
.sw-post-page__body h1 {
  font-family: var(--sw-font-display);
  font-size: var(--sw-t1);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sw-text);
  margin: var(--sw-s-6) 0 var(--sw-s-3);
}

/* Anchor targets (/privacy/#dpa) clear the sticky nav. */
.sw-post-page__body [id] {
  scroll-margin-top: 96px;
}

/* Tables scroll sideways on narrow screens instead of widening the page. */
.sw-post-page__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: var(--sw-s-3) 0 var(--sw-s-4);
  font-size: var(--sw-t8);
  line-height: 1.5;
}

.sw-post-page__body th,
.sw-post-page__body td {
  text-align: left;
  vertical-align: top;
  padding: var(--sw-s-1) var(--sw-s-2) var(--sw-s-1) 0;
  border-bottom: 1px solid var(--sw-rule);
  min-width: 9rem;
}

.sw-post-page__body th {
  font-weight: 500;
  color: var(--sw-text);
  border-bottom-color: var(--sw-rule-strong);
}

.sw-post-page__body td {
  color: var(--sw-text-2);
}

/* Figure inside a post body. The generic case: full column width, soft
   corners, optional mono caption underneath. Per-post CSS is for layouts that
   belong to one article; a plain illustration is not one of those. */
.sw-post-figure {
  margin: var(--sw-s-5) 0;
}
.sw-post-figure img {
  display: block;
  width: 100%;
  /* Keeps the intrinsic ratio. Post figures carry no width/height attributes
     precisely so the image stays undistorted even for a visitor holding a
     cached stylesheet from before this rule existed. */
  height: auto;
  border-radius: var(--sw-radius-md);
}
.sw-post-figure figcaption {
  margin-top: var(--sw-s-2);
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sw-text-3);
}

/* Quiet note above the lede: translation credit, editorial disclaimer.
   Must beat two rules that would otherwise render it at lede size and steal
   the emphasis from the opening line: .sw-post-page__body p:first-of-type,
   and .sw-post-page__body > div > p:first-child. The second one only bites in
   a bilingual post, where build_blog.py wraps each language in its own
   <div data-lang>, making the note a first child. That selector carries one
   more pseudo-class than the plain note rule, so the note needs the matching
   long-form selector to win rather than relying on source order. */
.sw-post-page__body p.sw-post-note,
.sw-post-page__body > div > p.sw-post-note:first-child {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sw-text-3);
  margin: 0 0 var(--sw-s-3);
}

/* The note takes the :first-of-type slot, so hand the lede treatment to the
   paragraph after it. Without this, a translated post opens a size smaller
   than the same post in its original language. */
.sw-post-page__body p.sw-post-note + p,
.sw-post-page__body > div > p.sw-post-note:first-child + p {
  font-size: var(--sw-t4-lede);
  line-height: 1.55;
  color: var(--sw-text);
}

.sw-post-page__back {
  margin: var(--sw-s-6) 0 0;
  padding-top: var(--sw-s-4);
  border-top: 1px solid var(--sw-rule);
}

/* ---------- Inline timeline (e.g. 9:48 → 10:03) ---------- */
.sw-timeline {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sw-s-2);
  font-family: var(--sw-font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--sw-text);
  margin: var(--sw-s-3) 0;
  padding: var(--sw-s-2) var(--sw-s-3);
  background: var(--sw-surface-2);
  border-radius: var(--sw-radius-md);
}

.sw-timeline__arrow {
  color: var(--sw-accent);
  font-family: var(--sw-font-body);
  font-size: 1.1em;
}

/* ---------- Verified callout (small badge + body line) ---------- */
.sw-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-s-2);
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  font-weight: 500;
  color: var(--sw-text);
  margin: var(--sw-s-3) 0 var(--sw-s-1);
}

.sw-verified__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sw-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---------- Image grid (3-column gallery with captions) ---------- */
.sw-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-s-4);
  margin-top: var(--sw-s-4);
}

@media (max-width: 920px) {
  .sw-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sw-image-grid {
    grid-template-columns: 1fr;
  }
}

.sw-image-grid__item {
  display: flex;
  flex-direction: column;
  gap: var(--sw-s-2);
}

.sw-image-grid__img {
  width: 100%;
  height: auto;
  border-radius: var(--sw-radius-md);
  box-shadow:
    0 1px 0 rgba(11, 11, 11, 0.04),
    0 8px 24px -8px rgba(11, 11, 11, 0.10);
}

.sw-image-grid__caption {
  font-family: var(--sw-font-mono);
  font-size: var(--sw-t5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-text-3);
  margin: 0;
  text-align: center;
}

/* Two-column variant — for fewer / wider images side-by-side */
.sw-image-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .sw-image-grid--two-col {
    grid-template-columns: 1fr;
  }
}

/* ---------- Flow (vertical step diagram with arrows) ----------
   For describing a sequence (e.g. an email handling flow). Steps live
   in soft surface cards with mono arrows between them, and an optional
   blocked-state below a divider. */
.sw-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sw-s-1);
}

.sw-flow__step {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.45;
  color: var(--sw-text);
  padding: var(--sw-s-2) var(--sw-s-3);
  background: var(--sw-surface);
  border-radius: var(--sw-radius-sm);
  margin: 0;
}

.sw-flow__arrow {
  text-align: center;
  font-family: var(--sw-font-mono);
  font-size: 1.1rem;
  color: var(--sw-system);
  margin: 0;
  line-height: 1;
}

.sw-flow__divider {
  border: 0;
  border-top: 1px solid var(--sw-rule);
  margin: var(--sw-s-2) 0;
}

.sw-flow__blocked {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  color: var(--sw-text-3);
  font-style: italic;
  padding: var(--sw-s-1) var(--sw-s-3);
  margin: 0;
}

/* ---------- Portrait quote (small portrait + italic caption) ----------
   For testimonial photo with quote underneath (e.g. Dennis in a hero). */
.sw-portrait-quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sw-s-2);
}

.sw-portrait-quote img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--sw-radius-md);
  box-shadow:
    0 1px 0 rgba(11, 11, 11, 0.04),
    0 8px 24px -8px rgba(11, 11, 11, 0.10);
}

.sw-portrait-quote figcaption {
  font-family: var(--sw-font-body);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sw-text-3);
  max-width: 340px;
  text-align: center;
}

/* ---------- 3-column strip ----------
   Shared layout: top-border, name + desc per item.
   - .sw-deployment-strip  — the named deployment-bridge slot (about, platform)
   - .sw-strip             — generic alias for any 3-feature strip */
.sw-deployment-strip,
.sw-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-s-4);
  margin-top: var(--sw-s-3);
}

@media (max-width: 720px) {
  .sw-deployment-strip,
  .sw-strip {
    grid-template-columns: 1fr;
    gap: var(--sw-s-3);
  }
}

.sw-deployment-tile,
.sw-strip__item {
  padding-top: var(--sw-s-3);
  border-top: 1px solid var(--sw-rule);
}

.sw-deployment-tile__name,
.sw-strip__name {
  font-family: var(--sw-font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--sw-text);
  margin: 0 0 0.4em;
}

.sw-deployment-tile__desc,
.sw-strip__desc {
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sw-text-2);
  margin: 0;
  max-width: 36ch;
}

.sw-deployment-strip__more {
  margin: var(--sw-s-4) 0 0;
}

/* ----------------------------------------------------------- */
/* product (was css/product.css, v2)                                          */
/* ----------------------------------------------------------- */
/* ===========================================================
   Bluehouse base: Product mode primitives
   Cards, depth, glass, stats, UI frames, integration logos.
   Activated on product-mode pages (platform, signup, deployment-modes,
   integrations) and as embedded product moments on mixed pages.

   See MAY-DESIGN.md §4 Product mode and §5 Product primitives.

   Depends on: the tokens and base sections above
   =========================================================== */

/* ---------- Card primitive ----------
   The base product card. Soft shadow, 1px outline on white surface.
   Used in feature grids and capability moments on product pages and
   embedded product moments on mixed pages.
   No glass blur, no gradient — that's a heavier variant. */
.sw-card {
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-s-3);
  box-shadow:
    0 1px 0 rgba(11, 11, 11, 0.02),
    0 8px 24px -8px rgba(11, 11, 11, 0.06);
  transition: box-shadow var(--sw-dur) var(--sw-ease),
              transform var(--sw-dur) var(--sw-ease);
}

.sw-card:hover {
  box-shadow:
    0 1px 0 rgba(11, 11, 11, 0.02),
    0 12px 32px -8px rgba(11, 11, 11, 0.10);
  transform: translateY(-2px);
}

.sw-card__title {
  font-family: var(--sw-font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--sw-text);
  margin: 0 0 var(--sw-s-2);
}

.sw-card__body {
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sw-text-2);
  margin: 0;
}

/* ---------- Features grid ----------
   Three-column responsive grid of `sw-card`s. Used on /platform/ and
   as the BlueHouse-features moment on the homepage. */
.sw-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-s-3);
  margin-top: var(--sw-s-3);
}

@media (max-width: 920px) {
  .sw-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sw-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero: centered variant (product pages) ----------
   For pages where the product (not the team) is the subject of the hero.
   Single-column, centered text, optional mark above title. */
.sw-hero--centered .sw-hero__centered {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.sw-hero__mark {
  width: 92px;
  height: auto;
  margin: 0 auto var(--sw-s-3);
  opacity: 0.9;
}

/* Product mark introducing a section (homepage 03). Same asset as the
   platform hero mark, smaller: it signs the section without competing
   with the heading. Height stays auto so the artwork is never squashed. */
/* Section opening with the product mark beside it: eyebrow and heading
   stacked on the left, mark on the right, vertically centred across both.
   The mark spans the full height of that block, so it reads as the section's
   signature rather than as an icon glued to one line. */
.sw-heading-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sw-s-4);
  flex-wrap: wrap;
  margin: 0 0 var(--sw-s-3);
}

.sw-heading-mark__text {
  flex: 1 1 auto;
}

.sw-heading-mark .sw-eyebrow,
.sw-heading-mark .sw-h2 {
  margin-bottom: 0;
}

.sw-heading-mark .sw-h2 {
  margin-top: var(--sw-s-2);
}

.sw-section-mark {
  display: block;
  width: 92px;
  height: auto;
  flex: none;
  opacity: 0.9;
}

/* The reveal ends at opacity 1, which would override the muted 0.9 the mark
   shares with the platform hero mark. Land it on 0.9 instead. */
html.sw-js .sw-section-mark.sw-reveal.is-revealed,
html.sw-js .sw-section-mark.sw-reveal--build.is-revealed,
html.sw-js .sw-hero__mark.sw-reveal.is-revealed,
html.sw-js .sw-hero__mark.sw-reveal--build.is-revealed {
  opacity: 0.9;
}

/* On a phone the column is ~350 px: at 92 px the mark no longer fits beside
   the heading and drops to its own line. Scaling it down keeps the pairing. */
@media (max-width: 720px) {
  .sw-heading-mark {
    gap: var(--sw-s-2);
  }
  .sw-section-mark {
    width: 64px;
  }
}

.sw-hero--centered .sw-cta-group {
  justify-content: center;
}

/* Auto-centre block children that have their own max-width
   (.sw-lede = 60ch, .sw-body = 65ch). Without margin auto they would
   sit at the left edge of the centered parent, visually misaligned
   with the title above. */
.sw-hero--centered .sw-lede,
.sw-hero--centered .sw-body {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Trust line (small italic tagline) ---------- */
.sw-trust-line {
  font-family: var(--sw-font-display);
  font-style: italic;
  font-size: var(--sw-t4-lede);
  line-height: 1.4;
  color: var(--sw-text-2);
  max-width: 52ch;
  margin: var(--sw-s-4) auto;
  text-align: center;
  border-top: 1px solid var(--sw-rule);
  padding-top: var(--sw-s-3);
}

/* ---------- Product section (text + image, 2-col with --reversed) ---------- */
.sw-product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-s-6);
  align-items: center;
}

@media (max-width: 920px) {
  .sw-product-section {
    grid-template-columns: 1fr;
    gap: var(--sw-s-5);
  }
}

.sw-product-section--reversed .sw-product-section__text {
  order: 2;
}

@media (max-width: 920px) {
  .sw-product-section--reversed .sw-product-section__text {
    order: 0;
  }
}

.sw-product-section__text {
  max-width: 36rem;
}

.sw-product-section__text p {
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.65;
  color: var(--sw-text-2);
  margin: 0 0 var(--sw-s-3);
  max-width: 56ch;
}

.sw-product-section__text p strong {
  color: var(--sw-text);
  font-weight: 500;
}

.sw-product-section__text h2 {
  margin-bottom: var(--sw-s-4);
}

.sw-product-section__visual {
  display: flex;
  justify-content: center;
}

.sw-product-section__img {
  width: 100%;
  height: auto;
  border-radius: var(--sw-radius-md);
  box-shadow:
    0 1px 0 rgba(11, 11, 11, 0.04),
    0 8px 28px -8px rgba(11, 11, 11, 0.12);
}

/* ---------- UI frame (real product screenshots, blauw glow) ---------- */
.sw-ui-frame {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--sw-radius-md);
  box-shadow: none;
}

.sw-ui-frame--anchor {
  max-width: 1100px;
  margin: 0 auto;
}

.sw-ui-frame__caption {
  margin: var(--sw-s-3) auto 0;
  max-width: 64ch;
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sw-text-3);
  font-style: italic;
  text-align: center;
}

/* ---------- Progression strip (01 → 02 → 03 with connectors) ---------- */
.sw-progression {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sw-s-3);
  align-items: start;
  margin-top: var(--sw-s-4);
  padding-top: var(--sw-s-4);
  border-top: 1px solid var(--sw-rule);
}

@media (max-width: 720px) {
  .sw-progression {
    grid-template-columns: 1fr;
    gap: var(--sw-s-3);
  }
}

.sw-progression__num {
  font-family: var(--sw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-system);
  display: block;
  margin-bottom: 6px;
}

.sw-progression__label {
  font-family: var(--sw-font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--sw-text);
  display: block;
  margin-bottom: 4px;
}

.sw-progression__desc {
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  color: var(--sw-text-2);
  line-height: 1.45;
}

.sw-progression__connector {
  color: var(--sw-system);
  font-size: 1.5rem;
  line-height: 1;
  align-self: center;
}

@media (max-width: 720px) {
  .sw-progression__connector {
    display: none;
  }
}

/* ---------- Message (chat-style block; for "Max: pack ready...") ---------- */
.sw-message {
  background: var(--sw-surface-2);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-s-3);
  margin: var(--sw-s-3) 0;
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4);
  line-height: 1.55;
  color: var(--sw-text);
  font-style: italic;
}

.sw-message__from {
  font-family: var(--sw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-system);
  font-style: normal;
  display: block;
  margin-bottom: 6px;
}

.sw-message + .sw-message {
  margin-top: var(--sw-s-2);
}

/* ---------- Product quote (large mid-page blockquote, no mark) ---------- */
.sw-product-quote {
  max-width: 56rem;
  margin: 0 auto;
  padding: var(--sw-s-5) 0;
  text-align: center;
}

.sw-product-quote p {
  font-family: var(--sw-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--sw-text);
  letter-spacing: -0.015em;
  margin: 0 0 var(--sw-s-3);
  font-style: italic;
}

.sw-product-quote p + p {
  font-size: var(--sw-t4-lede);
  color: var(--sw-text-2);
}

/* ---------- Before / after stat (single-row, two-column contrast) ---------- */
.sw-before-after {
  background: var(--sw-surface);
  border: 1px solid var(--sw-rule);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-s-3);
  margin-top: var(--sw-s-4);
  text-align: center;
  font-family: var(--sw-font-body);
  font-size: var(--sw-t4-lede);
  line-height: 1.4;
  color: var(--sw-text);
  font-weight: 500;
}

/* Future primitives to add as needed:
   .sw-card--glass       backdrop-blur variant
   .sw-card--soft        accent-tinted background variant
   .sw-integration-strip row of small partner / LLM logos
*/
