/* ===================================================================
   Clever Builds — site stylesheet
   Visual DNA inherited from the Clever Tiny Homes Figma reference:
   vivid purple + cyan + yellow, bold geometric sans, big typographic
   moments, full-bleed dark sections, generous rounded cards.
   =================================================================== */

:root {
  /* ----- core palette ----- */
  --purple:        #8C52FF;
  --purple-deep:   #6B33E0;
  --purple-soft:   #C5A8FF;
  --purple-tint:   #EFE6FF;
  --cyan:          #5CE1E6;
  --cyan-deep:     #1BDAFF;
  --cyan-soft:     #C9F4F6;
  --yellow:        #FFE100;
  --sky:           #72B9EE;

  --ink:           #0B0B0F;
  --ink-2:         #232323;
  --ink-3:         #444444;
  --muted:         #6B6B73;
  --rule:          #E6E6EA;
  --paper:         #FFFFFF;
  --paper-2:       #FAFAFA;
  --cream:         #FDF8F1;
  --stone:         #F1F2F5;

  --ok:    #2E9C5C;
  --warn:  #C97B3C;
  --err:   #B23A48;

  /* ----- gradients ----- */
  --grad-pc:  linear-gradient(95deg, #8C52FF 0%, #5CE1E6 100%);
  --grad-pc-soft: linear-gradient(95deg, #C5A8FF 0%, #C9F4F6 100%);
  --grad-pc-dark: linear-gradient(95deg, #4B1FB0 0%, #1B97A0 100%);
  --grad-pc-radial: radial-gradient(120% 80% at 0% 0%, #A375FF 0%, #8C52FF 35%, #5CE1E6 95%);

  /* ----- type -----
     Uses Clever Tiny Homes' brand fonts: Nobel Uno for display/headings/buttons,
     Blauer Nue for body. Loaded via app/assets/stylesheets/fonts.css. */
  --display: "Nobel Uno", "Helvetica Neue", system-ui, sans-serif;
  --body:    "Blauer Nue", "Inter", "Helvetica Neue", system-ui, sans-serif;

  /* ----- radii + shadow ----- */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --sh-2: 0 6px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --sh-3: 0 18px 60px rgba(11,11,15,.18), 0 4px 12px rgba(11,11,15,.08);

  /* ----- layout ----- */
  --maxw:  1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* ===================================================================
   Reset + base — SCOPED to .brand-cb so these rules ONLY apply on
   Clever Builds pages. The CTH layout shares this stylesheet because
   `stylesheet_link_tag :app` globs every CSS file in app/assets/, so
   without scoping the typography/element rules below would override
   CTH defaults (and previously turned the THOW hero h1 from white to
   black). `.brand-cb` is set on <body> by `app/views/layouts/clever_builds.html.erb`.
   =================================================================== */
.brand-cb, .brand-cb *, .brand-cb *::before, .brand-cb *::after { box-sizing: border-box; }
.brand-cb { margin: 0; padding: 0; overflow-x: clip; }
.brand-cb {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
.brand-cb img, .brand-cb svg, .brand-cb video { display: block; max-width: 100%; }
.brand-cb button { font: inherit; color: inherit; cursor: pointer; }
.brand-cb a { color: inherit; text-decoration: none; }
.brand-cb input, .brand-cb textarea, .brand-cb select { font: inherit; color: inherit; }

/* ===================================================================
   Typography — DM Sans matches Nobel Uno's geometric humanist feel.
   Reference site uses fairly light weights (Regular ~500) on big
   headings, with shallow letter-spacing.

   Scoped to .brand-cb so CTH heading defaults remain intact.
   =================================================================== */
.brand-cb .display,
.brand-cb h1, .brand-cb h2, .brand-cb h3, .brand-cb h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.brand-cb h1, .brand-cb .h1 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.brand-cb h2, .brand-cb .h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.brand-cb h3, .brand-cb .h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.012em; }
.brand-cb h4, .brand-cb .h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: currentColor;
}
.eyebrow.on-dark { color: var(--cyan); }

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
  font-weight: 400;
}
.lead.on-dark { color: rgba(255,255,255,0.82); }

.tabular { font-variant-numeric: tabular-nums; }
.serif-feel { font-family: var(--display); font-weight: 600; }

/* ===================================================================
   Layout
   =================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
/* White / paper cards inside dark sections should render dark text by default */
.section--dark [style*="background: #fff"],
.section--dark [style*="background:#fff"],
.section--dark [style*="background: white"],
.section--dark [style*="background: var(--paper-2)"],
.section--dark [style*="background:var(--paper-2)"] { color: var(--ink); }
.section--cream { background: var(--cream); }
.section--stone { background: var(--stone); }
.section--paper2 { background: var(--paper-2); }
.section--purple {
  background: var(--grad-pc);
  color: #fff;
}
.section--purple h1, .section--purple h2, .section--purple h3 { color: #fff; }

.divider { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* CTH primary button: purple→cyan gradient, Nobel Uno bold, rounded-[10px] */
.btn--primary {
  background: linear-gradient(90deg, #8c52ff 0%, #00D9FF 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(140,82,255,0.25);
}
.btn--primary:hover { box-shadow: 0 10px 32px rgba(140,82,255,0.45); }

.btn--gradient {
  background: linear-gradient(90deg, #8c52ff 0%, #00D9FF 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(140,82,255,0.35);
}
.btn--gradient:hover { box-shadow: 0 10px 32px rgba(140,82,255,0.5); }

/* CTH secondary button: dark ink */
.btn--solid-purple,
.btn--secondary {
  background: #222222; color: #fff; border-radius: 10px;
}
.btn--solid-purple:hover,
.btn--secondary:hover { background: #000; }

.btn--ghost-dark {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }

.btn--ghost-light {
  background: transparent; color: #fff; border: 3px dashed rgba(255,255,255,0.85);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn--cyan {
  background: var(--cyan); color: var(--ink);
}
.btn--cyan:hover { background: var(--cyan-deep); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 18px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--purple);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease, transform .2s ease;
}
.link:hover { border-color: var(--purple); }
.link .arrow { transition: transform .2s ease; }
.link:hover .arrow { transform: translateX(4px); }
.link.on-dark { color: var(--cyan); }
.link.on-dark:hover { border-color: var(--cyan); }

/* ===================================================================
   Navigation
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.nav__logo-mark svg { width: 22px; height: 22px; }
.nav__links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.nav__link:hover { background: rgba(140,82,255,0.08); color: var(--purple); }
.nav__link.is-active { color: var(--purple); background: var(--purple-tint); }

/* Generic tab buttons (cb-tabs) */
.cb-tab-btn { transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.cb-tab-btn:hover { color: var(--ink); }
button.cb-tab-btn.is-active {
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: 0 1px 2px rgba(11,11,15,0.06), 0 2px 6px rgba(11,11,15,0.06);
}

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: transparent;
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 22px; height: 22px; }

.nav__mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.nav__mega.is-open { max-height: 520px; }
.nav__mega-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
}
.nav__mega h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: var(--body);
}
.nav__mega ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.nav__mega a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav__mega a:hover { color: var(--purple); }
.nav__mega-feature {
  background: var(--grad-pc);
  border-radius: 14px;
  padding: 24px;
  color: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.nav__mega-feature h3 { color: #fff; font-size: 24px; }
.nav__mega-feature p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }

@media (max-width: 1023px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: inline-flex; }
}

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%);
  transition: transform .3s ease, visibility 0s linear .3s;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s ease, visibility 0s linear 0s;
}
.mobile-drawer__row {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer__group { display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer__group h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 4px;
  font-family: var(--body);
}
.mobile-drawer a {
  font-size: 18px; font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

/* ===================================================================
   Footer
   =================================================================== */
.cross-link {
  background: var(--cream);
  text-align: center;
  padding: 28px 24px;
  font-size: 17px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cross-link a { color: var(--purple); font-weight: 600; border-bottom: 1.5px solid var(--purple); padding-bottom: 1px; }

.footer { background: var(--ink); color: #fff; padding: 80px 0 36px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}
.footer__brand h3 {
  color: #fff; font-size: 28px; margin-bottom: 16px;
  font-family: var(--display); font-weight: 800;
  letter-spacing: -0.02em;
}
.footer__brand p { color: rgba(255,255,255,0.65); font-size: 15px; max-width: 30ch; }
.footer__col h4 {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.85); font-size: 15px; }
.footer__col a:hover { color: var(--cyan); }
.footer__newsletter {
  margin-top: 28px;
  display: flex; gap: 8px; max-width: 380px;
}
.footer__newsletter input {
  flex: 1; height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  padding: 0 14px;
  color: #fff;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer__bottom {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: rgba(255,255,255,0.55); font-size: 14px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
}
.footer__social a:hover { background: var(--purple); border-color: var(--purple); }
.footer__social svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ===================================================================
   Cards
   =================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.tile {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--rule);
  text-align: left;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--purple); }
.tile__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--purple-tint); color: var(--purple);
}
.tile__icon svg { width: 22px; height: 22px; }

/* product cards (Figma style: dark band, purple buttons) */
.product-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 14px 14px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .15s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--purple); }
.product-card__thumb {
  width: 90px; height: 64px; border-radius: 8px;
  background: #1B1B22 center/cover no-repeat;
}
.product-card h4 { color: #fff; font-size: 17px; margin: 0 0 2px; font-family: var(--display); font-weight: 700; }
.product-card p { color: rgba(255,255,255,0.6); font-size: 13px; margin: 0; }
.product-card .btn { background: var(--purple); color: #fff; height: 38px; padding: 0 16px; font-size: 13px; border-radius: var(--r-pill); }

/* ===================================================================
   Stat band (homepage section 2)
   =================================================================== */
.stat-band {
  background: var(--grad-pc);
  color: #fff;
  border-radius: 0;
  padding: 64px 0;
}
.stat-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}
.stat-band__cell {
  padding: 24px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.stat-band__cell + .stat-band__cell { border-left: 1px solid rgba(255,255,255,0.25); }
.stat-band__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-band__cap { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 24ch; }

@media (max-width: 760px) {
  .stat-band__grid { grid-template-columns: 1fr; }
  .stat-band__cell + .stat-band__cell { border-left: 0; border-top: 1px solid rgba(255,255,255,0.25); }
}

/* ===================================================================
   Press strip
   =================================================================== */
.press {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px 64px;
}
.press img {
  height: 48px; max-width: 160px; object-fit: contain;
  /* Source PNGs are white-on-transparent; invert so they read on light bg */
  filter: invert(1) grayscale(1) brightness(0.45);
  opacity: 0.85;
  transition: opacity .2s ease, filter .2s ease;
}
.press img:hover { opacity: 1; filter: invert(1) grayscale(1) brightness(0.2); }
@media (max-width: 720px) {
  .press { gap: 28px 36px; }
  .press img { height: 36px; max-width: 120px; }
}
/* Press article-card logo (white PNGs need inversion on light card bg) */
.press-card-logo {
  max-height: 36px; max-width: 110px; object-fit: contain;
  filter: invert(1) grayscale(1) brightness(0.45);
  opacity: 0.85;
}

/* ===================================================================
   Block diagram (Clever Elements visual)
   =================================================================== */
.block-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
  display: grid;
  place-items: center;
}

/* SVG illustration of a 2-story Block A unit */
.elements-illust {
  width: 92%; max-width: 540px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.18));
}

/* ===================================================================
   Forms
   =================================================================== */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
}
.field label .req { color: var(--err); margin-left: 2px; }
.field input, .field select, .field textarea {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  font-family: var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(140,82,255,0.16);
}
.field--row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 640px) {
  .field--row { grid-template-columns: 1fr; }
}

/* Install partners coverage map grid */
.cb-coverage-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .cb-coverage-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Lead form on dark sections */
.section--dark .field label { color: rgba(255,255,255,0.92); }
.section--dark .field input,
.section--dark .field select,
.section--dark .field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.section--dark .field input::placeholder,
.section--dark .field textarea::placeholder { color: rgba(255,255,255,0.45); }
.section--dark .field input:focus,
.section--dark .field select:focus,
.section--dark .field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,209,224,0.22);
  background: rgba(255,255,255,0.10);
}
.section--dark form label.row,
.section--dark form label.row span { color: rgba(255,255,255,0.82); }
.section--dark form .muted { color: rgba(255,255,255,0.55); }

/* ===================================================================
   Hero (homepage)
   =================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 90px) 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero__copy { padding-bottom: 36px; }
.hero__copy h1 { margin: 18px 0 18px; }
.hero__copy .lead { max-width: 36ch; margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--ink);
  box-shadow: var(--sh-3);
}
.hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hero__chip {
  position: absolute; left: 24px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.hero__chip-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(140,82,255,0.18);
}
.hero__floater {
  position: absolute; top: -40px; right: -50px;
  width: 360px; height: 360px;
  background: var(--grad-pc);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
}

/* ===================================================================
   Audience tiles (homepage section 3)
   =================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.audience-tile {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 260px;
}
.audience-tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-pc);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.audience-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: transparent;
}
.audience-tile:hover::after { transform: translateY(0); }
.audience-tile__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--purple-tint); color: var(--purple);
}
.audience-tile__icon svg { width: 26px; height: 26px; }
.audience-tile h3 { font-size: 22px; }
.audience-tile p { font-size: 15px; color: var(--muted); margin: 0; }
.audience-tile .link { margin-top: auto; }

@media (max-width: 900px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Split section (image + content)
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split--reverse .split__visual { order: 2; }
.split__visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--cream);
  box-shadow: var(--sh-2);
}
.split__visual img { width: 100%; height: 100%; object-fit: cover; }
.split__copy h2 { margin-bottom: 18px; }
.split__copy p { margin-bottom: 16px; font-size: 17px; color: var(--ink-3); }
.split__copy .actions { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
}

/* ===================================================================
   Process timeline
   =================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.process__step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--rule);
}
.process__num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-pc);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.process__step h4 { font-size: 17px; margin-bottom: 4px; }
.process__step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.process__time { display: block; font-size: 12px; color: var(--purple); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }

@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .process { grid-template-columns: 1fr; } }

/* ===================================================================
   Capabilities strip
   =================================================================== */
.caps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.caps__cell {
  padding: 28px 24px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--ink);
}
.caps__cell + .caps__cell { border-left: 1px solid var(--rule); }
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr 1fr; }
  .caps__cell + .caps__cell { border-left: 0; }
  .caps__cell { border-top: 1px solid var(--rule); }
}

/* ===================================================================
   Marquee / scrolling text
   =================================================================== */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.marquee__track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.01em;
}
.marquee__item { display: inline-flex; align-items: center; gap: 24px; }
.marquee__star {
  display: inline-block;
  width: 24px; height: 24px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================================
   Stat tiles grid (SB 1211 page)
   =================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-tile {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-tile__num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}
.stat-tile__cap { font-size: 15px; color: var(--ink-3); }

@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   FAQ accordion
   =================================================================== */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 22px);
  background: transparent;
  border: 0; cursor: pointer; text-align: left;
  color: var(--ink);
}
.faq__plus {
  width: 32px; height: 32px;
  border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, transform .25s ease, border-color .15s ease;
}
.faq__item.is-open .faq__plus { background: var(--purple); border-color: var(--purple); color: #fff; transform: rotate(45deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.6;
}
.faq__a-inner { padding: 0 0 22px; max-width: 70ch; }

/* ===================================================================
   Comparison table
   =================================================================== */
.cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.cmp__col { padding: 32px; }
.cmp__col h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  font-family: var(--body);
  margin: 0 0 14px;
}
.cmp__col--before { background: #FAFAFA; color: var(--ink-3); }
.cmp__col--after  { background: var(--purple-tint); color: var(--ink); }
.cmp__col--after h4 { color: var(--purple); }
.cmp__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cmp__col li {
  font-size: 16px;
  padding-left: 26px;
  position: relative;
}
.cmp__col--before li::before {
  content: "—"; position: absolute; left: 0; color: var(--muted);
}
.cmp__col--after li::before {
  content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 700;
}
@media (max-width: 720px) { .cmp { grid-template-columns: 1fr; } }

/* ===================================================================
   Calculator
   =================================================================== */
.calc {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: #fff;
}
.calc__inputs {
  background: var(--ink);
  color: #fff;
  padding: 40px;
}
.calc__inputs h3 { color: #fff; margin-bottom: 8px; }
.calc__inputs .lead { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 24px; }
.calc__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.calc__field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; }
.calc__field label .val { color: var(--cyan); font-family: var(--display); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; }
.calc__field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px; outline: 0;
}
.calc__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}
.calc__field input[type="number"], .calc__field select {
  height: 46px; padding: 0 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff;
}
.calc__field input[type="number"]:focus, .calc__field select:focus {
  outline: 0; border-color: var(--cyan);
}
.calc__seg {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 4px;
  background: rgba(255,255,255,0.06); padding: 4px; border-radius: 10px;
}
.calc__seg button {
  height: 38px; border: 0; background: transparent; color: rgba(255,255,255,0.8);
  border-radius: 7px; font-weight: 600; font-size: 14px;
}
.calc__seg button.is-on { background: var(--purple); color: #fff; }

.calc__results { padding: 40px; background: #fff; }
.calc__big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95; letter-spacing: -0.035em;
  background: var(--grad-pc); -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.calc__big-label { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.calc__metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 28px;
}
.calc__metric {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 12px; padding: 16px;
}
.calc__metric-num {
  font-family: var(--display); font-weight: 700;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.calc__metric-cap { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.calc__note { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.5; }

@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ===================================================================
   Tweaks panel
   =================================================================== */
.tweaks-panel {
  position: fixed; right: 24px; bottom: 24px;
  width: 320px; max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh-3);
  border: 1px solid var(--rule);
  padding: 18px;
  z-index: 200;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.tweaks-panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.tweaks-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tweaks-panel__head h4 { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.tweaks-panel__close { width: 28px; height: 28px; border: 0; background: var(--stone); border-radius: 50%; }
.tweaks-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--rule); }
.tweaks-row:first-of-type { border-top: 0; }
.tweaks-row__label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tweaks-swatches { display: flex; gap: 6px; }
.tweaks-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  outline: 1px solid rgba(0,0,0,0.06);
}
.tweaks-swatch.is-on { border-color: var(--ink); }

/* ===================================================================
   Utility / responsive helpers
   =================================================================== */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.center { text-align: center; }
.max-prose { max-width: 64ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ===================================================================
   Page-specific (hero variants, gallery, etc.)
   =================================================================== */

/* sticky bottom CTA on mobile */
.mobile-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: var(--grad-pc);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  z-index: 80;
  box-shadow: var(--sh-3);
  text-align: center;
}
@media (max-width: 720px) { .mobile-cta { display: block; } }

/* breadcrumb */
.crumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--muted);
  padding: 24px 0 0;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--purple); }
.crumb span { color: var(--ink-2); font-weight: 500; }

/* hero stat ribbon (used on Elements page) */
.ribbon {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  font-size: 14px;
  font-weight: 500;
}
.ribbon strong { color: var(--cyan); font-weight: 700; font-family: var(--display); font-size: 18px; }

/* small chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--purple-tint); color: var(--purple);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.chip--cyan { background: var(--cyan-soft); color: #1a8a90; }
.chip--ink  { background: var(--ink); color: #fff; }
.chip--yellow { background: var(--yellow); color: var(--ink); }

/* image placeholder */
.placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(140,82,255,0.06) 0 12px, rgba(140,82,255,0.02) 12px 24px),
    var(--cream);
  color: var(--muted);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  border: 1.5px dashed rgba(140,82,255,0.25);
}
.placeholder__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--purple); color: #fff;
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 8px;
}

/* reveal-on-scroll (opt-in: requires .reveal-armed) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal-armed.reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
}

/* ===================================================================
   FIGMA-STYLE COMPONENTS
   ─ a refresh layer that brings homepage sections in line with the
   clevertinyhomes.com reference: photo hero, black product list,
   purple→cyan stat band, big alternating keypoints, testimonial grid
   with a purple highlight card, factory video, partnership band.
   =================================================================== */

/* ---- Photo hero (Header5Desktop) ---- */
.photo-hero {
  position: relative;
  min-height: clamp(560px, 86vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.photo-hero__bg { position: absolute; inset: 0; z-index: 0; }
.photo-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
}
.photo-hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.photo-hero__inner { max-width: 720px; }
.photo-hero__eye {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  color: rgba(255,255,255,0.95);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.photo-hero__eye-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(92,225,230,0.22);
}
.photo-hero h1 {
  color: #fff;
  font-size: clamp(40px, 6.2vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 22px 0 22px;
  max-width: 16ch;
}
.photo-hero h1 em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 600;
}
.photo-hero__lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 32px;
}
.photo-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-hero__meta {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  align-items: center;
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
}
.photo-hero__meta strong { color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; display: block; }
.photo-hero__meta-cell { line-height: 1.3; }

/* ---- Stat band (purple → cyan gradient with 3 big stats) ---- */
.gstat-band {
  background: var(--grad-pc);
  color: #fff;
  padding: clamp(56px, 8vw, 100px) 0;
}
.gstat-band__head { text-align: center; max-width: 880px; margin: 0 auto 56px; }
.gstat-band__head h2 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
}
.gstat-band__head p { color: rgba(255,255,255,0.85); font-size: 17px; margin: 16px auto 0; max-width: 60ch; }
.gstat-band__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.28);
}
.gstat-band__cell {
  padding: 36px 28px 4px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid rgba(255,255,255,0.28);
}
.gstat-band__cell:last-child { border-right: 0; }
.gstat-band__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 6.8vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.gstat-band__num sup { font-size: 0.42em; vertical-align: 0.4em; font-weight: 600; letter-spacing: 0; }
.gstat-band__cap { color: rgba(255,255,255,0.9); font-size: 15px; max-width: 26ch; line-height: 1.45; }
@media (max-width: 780px) {
  .gstat-band__row { grid-template-columns: 1fr; }
  .gstat-band__cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.28); padding: 28px 0; }
  .gstat-band__cell:last-child { border-bottom: 0; }
}

/* ---- Black products section (horizontal list) ---- */
.products-dark {
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 8vw, 110px) 0 clamp(80px, 8vw, 120px);
}
.products-dark__head {
  text-align: center; max-width: 820px; margin: 0 auto 56px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.products-dark__head .eyebrow { color: var(--cyan); }
.products-dark__head .eyebrow::before { background: var(--cyan); }
.products-dark__head h2 {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.products-dark__head p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; max-width: 60ch; }

.product-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 22px 14px 14px;
  margin-bottom: 14px;
  transition: background .15s ease, border-color .2s ease, transform .15s ease;
  color: #fff;
}
.product-row:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  transform: translateX(2px);
}
.product-row__thumb {
  width: 100%; aspect-ratio: 220 / 110; border-radius: 10px;
  overflow: hidden;
  background: #1B1B22 center/cover no-repeat;
}
.product-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.15;
}
.product-row__sub { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 6px; }
.product-row__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px;
  height: 44px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease;
}
.product-row__cta::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--cyan);
  border-radius: 50%;
  display: inline-block;
}
.product-row:hover .product-row__cta { background: var(--purple-deep); }
@media (max-width: 760px) {
  .product-row { grid-template-columns: 1fr; padding: 14px; }
  .product-row__thumb { aspect-ratio: 16/9; }
  .product-row__cta { width: 100%; justify-content: center; }
}

/* ---- Big keypoint rows (image left/right, sidebar text) ---- */
.keypoint {
  padding: clamp(48px, 6vw, 80px) 0;
  background: #fff;
}
.keypoint__row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.keypoint--reverse .keypoint__row { grid-template-columns: 320px 1fr; }
.keypoint--reverse .keypoint__copy { order: 0; }
.keypoint--reverse .keypoint__visual { order: 1; }
.keypoint__visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stone);
}
.keypoint__visual img { width: 100%; height: 100%; object-fit: cover; }
.keypoint__copy { max-width: 32ch; }
.keypoint__copy h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.keypoint__copy p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 14px;
}
.keypoint__copy .link { margin-top: 12px; }
@media (max-width: 860px) {
  .keypoint__row,
  .keypoint--reverse .keypoint__row { grid-template-columns: 1fr; gap: 24px; }
  .keypoint--reverse .keypoint__visual { order: 0; }
}

/* ---- Testimonial grid (4 cards, center = purple highlight) ---- */
.testimonials {
  padding: clamp(72px, 8vw, 110px) 0;
  background: var(--paper-2);
}
.testimonials__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.testimonials__head h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.testimonials__head p { color: var(--muted); font-size: 16px; margin-top: 14px; }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.tcard {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.tcard__stars { display: flex; gap: 4px; }
.tcard__stars svg { width: 18px; height: 18px; color: var(--yellow); }
.tcard__body { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.tcard__person { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tcard__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--stone); }
.tcard__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.tcard__role { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tcard--feature {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.tcard--feature .tcard__body { color: #fff; }
.tcard--feature .tcard__name { color: #fff; }
.tcard--feature .tcard__role { color: rgba(255,255,255,0.78); }
.tcard--feature .tcard__stars svg { color: var(--yellow); }

@media (max-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .testimonials__grid { grid-template-columns: 1fr; }
}

/* ---- Factory video block ---- */
.factory-block {
  padding: clamp(72px, 8vw, 110px) 0;
  background: #fff;
}
.factory-block__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.factory-block__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--ink);
}
.factory-block__media img { width: 100%; height: 100%; object-fit: cover; }
.factory-block__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background .2s ease;
}
.factory-block__play:hover { background: rgba(0,0,0,0.15); }
.factory-block__play-btn {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--purple);
  display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(140,82,255,0.5);
  transition: transform .2s ease;
}
.factory-block__play:hover .factory-block__play-btn { transform: scale(1.05); }
.factory-block__play svg { width: 32px; height: 32px; color: #fff; margin-left: 4px; }
.factory-block__copy h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 14ch;
}
.factory-block__copy p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 12px;
}
.factory-block__copy .actions { margin-top: 22px; }
@media (max-width: 860px) {
  .factory-block__row { grid-template-columns: 1fr; }
}

/* ---- Partnership gradient final CTA ---- */
.partnership {
  background: var(--grad-pc);
  color: #fff;
  padding: clamp(72px, 9vw, 130px) 0;
  text-align: center;
}
.partnership h2 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.partnership__big {
  display: block;
}
.partnership p {
  color: rgba(255,255,255,0.92);
  font-size: 17px;
  max-width: 56ch;
  margin: 22px auto 36px;
}
.partnership .btn--solid-ink {
  background: var(--ink); color: #fff;
}
.partnership .btn--solid-ink:hover { background: #000; }

/* ---- Black footer (matches figma's deep gray with cyan brand) ---- */
.footer--dark { background: #333; }
.footer--dark .footer__brand h3 { font-weight: 500; letter-spacing: -0.02em; }
.footer--dark .footer__brand .footer__logo-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.footer--dark .footer__logo-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1.5px solid #fff;
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 700; font-size: 14px;
}

/* ---- Nav variant: transparent over photo hero ---- */
.nav--transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: absolute; top: 0; left: 0; right: 0;
}
.nav--transparent .nav__logo,
.nav--transparent .nav__link { color: #fff; }
.nav--transparent .nav__link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav--transparent .nav__logo-mark { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.32); }
.nav--transparent .nav__burger { border-color: #fff; color: #fff; }
.nav--transparent.is-scrolled {
  position: sticky;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.1);
}


/* ===================================================================
   Home page (index.html) inline styles — ported verbatim from the
   <style> block in claude-design/index.html.
   =================================================================== */

  /* Hero v2 — Q&A treatment, restyled in the new system (no Fraunces;
     italic-purple accent replaced with semibold-purple in headline). */
  .hero--v2 .hero__inner {
    align-items: center;
    padding-top: clamp(20px, 3vw, 56px);
  }
  .hero__q {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 34px);
    color: var(--ink-3);
    margin: 20px 0 6px;
    letter-spacing: -0.012em;
    line-height: 1.2;
    display: flex; align-items: center; gap: 14px;
  }
  .hero__q::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--purple);
    border-radius: 1px;
    flex-shrink: 0;
  }
  .hero__copy h1.hero__a {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(64px, 9.4vw, 140px);
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--ink);
    margin: 4px 0 28px;
  }
  .hero__a em {
    font-style: normal;
    font-weight: 600;
    color: var(--purple);
  }
  .hero__a-dot {
    color: var(--cyan-deep);
    display: inline-block;
    transform: translateX(-0.04em);
  }
  .hero__copy .lead { max-width: 50ch; }
  .hero__lead-emph {
    color: var(--ink); font-weight: 600;
  }
  .hero__lead-only {
    font-weight: 600;
    color: var(--purple);
  }
  /* Stat band v2 — Factory-built value prop */
  .stat-band--v2 { padding: clamp(72px, 9vw, 120px) 0; }
  .stat-band__head {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 64px);
  }
  .stat-band__head .eyebrow.on-dark { margin-bottom: 14px; }
  .stat-band__title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
  }
  .stat-band__title em {
    font-style: normal;
    font-weight: 600;
    color: var(--cyan);
  }
  .stat-band__lede {
    font-size: clamp(16.5px, 1.25vw, 19px);
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    max-width: 46ch;
    margin: 0;
    text-wrap: pretty;
  }
  .stat-band__lede strong { color: #fff; font-weight: 600; }
  @media (max-width: 900px) {
    .stat-band__head { grid-template-columns: 1fr; align-items: start; }
  }

  /* Pillars row */
  .stat-band__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.22);
    border-bottom: 1px solid rgba(255,255,255,0.22);
  }
  .stat-pillar {
    padding: clamp(28px, 3.5vw, 44px) clamp(18px, 2.4vw, 36px);
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
  }
  .stat-pillar + .stat-pillar {
    border-left: 1px solid rgba(255,255,255,0.22);
  }
  .stat-pillar__tag {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cyan);
    display: inline-flex; align-items: center; gap: 8px;
  }
  .stat-pillar__tag::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--cyan);
  }
  .stat-pillar__num {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(56px, 7.2vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.035em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    display: flex; align-items: baseline; gap: 4px;
  }
  .stat-pillar__unit {
    font-size: 0.42em;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.01em;
  }
  .stat-pillar__label {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(18px, 1.5vw, 22px);
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .stat-pillar__sub {
    font-size: 14.5px;
    line-height: 1.45;
    color: rgba(255,255,255,0.7);
    max-width: 28ch;
  }
  @media (max-width: 860px) {
    .stat-band__pillars { grid-template-columns: 1fr; }
    .stat-pillar + .stat-pillar {
      border-left: 0;
      border-top: 1px solid rgba(255,255,255,0.22);
    }
  }

  /* Law tracker tucked below as supporting context */
  .stat-band__laws {
    margin-top: clamp(28px, 3.5vw, 44px);
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  }
  .stat-band__laws-label {
    color: var(--cyan); font-weight: 700; font-size: 11px;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-right: 4px;
  }
  .stat-band__law {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
  }
  .stat-band__law:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.36);
    transform: translateY(-1px);
  }
  .stat-band__law-id {
    font-family: var(--display); font-weight: 700; color: var(--cyan);
    letter-spacing: -0.005em;
  }
  .stat-band__law-sep { color: rgba(255,255,255,0.32); }
  .stat-band__law-t { color: rgba(255,255,255,0.88); }
  .stat-band__more {
    margin-left: auto;
    color: var(--cyan);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .stat-band__more:hover { text-decoration: underline; }
  @media (max-width: 720px) {
    .stat-band__more { margin-left: 0; }
    .stat-band__laws-label { width: 100%; margin-bottom: 4px; }
  }

