/* ==========================================================================
   Spaucta — design system
   Technology + Business + Growth
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Taste-skill roles (light neutral + one accent) */
  --bg: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #5C5E62;
  --accent: #0A7B58;
  --accent-ink: #FFFFFF;
  --accent-hover: #086B4C;
  --surface-tone: #F7F7F6;

  --ink-900: var(--ink);
  --ink-800: #2A2A2A;
  --ink-700: #3D3D3D;
  --ink-600: var(--muted);
  --ink-500: #78797D;
  --ink-400: #9B9CA0;

  --paper: var(--bg);
  --surface: var(--bg);
  --sand: var(--bg);
  --sand-deep: var(--bg);

  --line: #EBEBEA;
  --line-soft: #F3F3F2;
  --line-strong: #D4D4D2;

  --accent-deep: #065A40;
  --accent-soft: #E6F3ED;
  --accent-line: #B8D9CB;

  --amber: #A8762B;
  --amber-soft: #F4EEDD;
  --rose: #A8452F;
  --rose-soft: #F6E9E5;
  --slate: #3D5B73;
  --slate-soft: #E8EEF3;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', monospace;

  /* Type scale — marketing site only */
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem; /* 16px — Notion-like body */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: clamp(1.25rem, 1.4vw, 1.375rem);
  --text-xl: clamp(1.3rem, 1.9vw, 1.625rem);
  --text-2xl: clamp(2rem, 3.6vw, 3rem);
  --text-hero: clamp(2.65rem, 5.2vw, 4.25rem);

  --leading-tight: 1.06;
  --leading-snug: 1.22;
  --leading-body: 1.5;
  --leading-relaxed: 1.72;

  --tracking-tight: -0.024em;
  --tracking-head: -0.022em;
  --tracking-caps: 0.11em;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 22, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 19, 22, 0.04), 0 12px 28px -12px rgba(16, 19, 22, 0.12);
  --shadow-lg: 0 2px 6px rgba(16, 19, 22, 0.05), 0 32px 64px -24px rgba(16, 19, 22, 0.22);

  --wrap: 1180px;
  --gutter: 28px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11' 1, 'ss01' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }
.wrap--wide { max-width: 1320px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.028em;
  line-height: 1.1;
  font-weight: 700;
}
h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.024em;
}
h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h4 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: var(--ink-900);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ink-400);
}
.eyebrow--plain::before { display: none; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); }

.lede {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  letter-spacing: -0.014em;
  color: var(--muted);
  max-width: 58ch;
}
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); line-height: 1.55; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.serif-it {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.section { padding: clamp(72px, 8.5vw, 128px) 0; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--white { background: var(--surface); }
.section--ink {
  background: var(--ink-900);
  color: #B9BFC4;
}
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: #fff; }
.section--ink .lede { color: #A7AEB4; }
.section--ink .eyebrow { color: #8E979E; }
.section--ink .eyebrow::before { background: #4A5257; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 20px; }
.section-head .lede { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn__arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-900);
}
.btn--ghost:hover {
  border-color: var(--ink-900);
  background: var(--surface);
}

.btn--light {
  background: #fff;
  color: var(--ink-900);
}
.btn--light:hover { background: #EDEAE3; }

.btn--outline-light {
  background: transparent;
  border-color: #3A4147;
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background: #171C20; }

.btn--sm { height: 40px; padding: 0 16px; font-size: 0.88rem; border-radius: 9px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--ink-900); }
.link-arrow:hover span { transform: translateX(3px); }
.section--ink .link-arrow { color: #fff; border-color: #454D53; }
.section--ink .link-arrow:hover { border-color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(16, 19, 22, 0.02);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink-900);
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-600);
  border-radius: 8px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--ink-900); background: rgba(16, 19, 22, 0.045); }
.nav__link.is-active { color: var(--ink-900); font-weight: 550; }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1.5px;
  background: var(--ink-900);
  border-radius: 2px;
}
.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink-900);
  position: relative;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink-900);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 14px 0 22px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: var(--text-md);
  font-family: var(--font-sans);
  font-weight: 550;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
/* Centered hero — copy first, product shot below (Notion-style) */
.hero--center .hero__intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero--center .eyebrow { justify-content: center; }
.hero--center .eyebrow::before { display: none; }
.hero--center .lede { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }
.hero--center .hero__note { justify-content: center; }
.hero__shot { margin-top: clamp(44px, 5.5vw, 76px); }

.hero h1 { margin-bottom: 28px; max-width: 18ch; margin-inline: auto; }
.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
.hero .lede { margin-bottom: 36px; max-width: 52ch; }
.hero__note {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: var(--text-sm);
  letter-spacing: -0.008em;
  color: var(--ink-500);
}
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 14px; height: 14px; flex: none; color: var(--accent); }

/* Page hero (interior pages) */
.phero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.phero h1 { max-width: 17ch; margin-bottom: 24px; }
.phero .lede { max-width: 62ch; }
.phero__meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.875rem;
  color: var(--ink-500);
}
.phero__meta b { color: var(--ink-900); font-weight: 550; }

/* ---------- Three takeaways ---------- */
.takeaways {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.takeaways__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.takeaway {
  padding: 34px 32px 38px;
  border-left: 1px solid var(--line);
}
.takeaway:first-child { border-left: 0; padding-left: 0; }
.takeaway:last-child { padding-right: 0; }
.takeaway__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  display: block;
  margin-bottom: 14px;
}
.takeaway h3 { font-size: 1.3rem; margin-bottom: 10px; }
.takeaway p { font-size: 0.97rem; color: var(--ink-500); line-height: 1.58; }

/* ---------- Two ways (panels) ---------- */
.ways { display: grid; gap: 28px; }
.way {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  transition: border-color 0.3s var(--ease);
}
.way:hover { border-color: var(--line-strong); }
.way:not(:has(.way__media)) { grid-template-columns: 1fr; }
.way--flip .way__copy { order: 2; }
.way--flip .way__media { order: 1; }
.way__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
.way h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.way p { color: var(--ink-600); margin-bottom: 26px; }
.way__list { margin-bottom: 28px; display: grid; gap: 10px; }
.way__list li {
  display: flex;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-600);
  align-items: flex-start;
}
.way__list li::before {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Product mockup system ---------- */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-600);
  container-type: inline-size;
  container-name: mock;
}
.mock--flat { box-shadow: var(--shadow-md); }
.mock--inset { background: var(--sand); }
.mock--wide { font-size: 14px; }
.mock--wide .mock__main { padding: 20px 22px 22px; }
.mock--wide .mock__side { width: 196px; }
.mock--wide .kpi { padding: 13px 14px 14px; }
.mock--wide .kpi__value { font-size: 1.4rem; }
.mock--wide .mock__head h4 { font-size: 1.05rem; }
.mock--wide .mock__panel-title { font-size: 0.8rem; }
.mock--wide .mock__panel-sub { font-size: 0.72rem; }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.mock__url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-400);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px 12px;
  margin-inline: auto;
}

.mock__body { display: flex; min-height: 0; }
.mock__side {
  width: 178px;
  flex: none;
  border-right: 1px solid var(--line-soft);
  padding: 14px 10px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.mock__side-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 6px 8px 8px;
}
.mock__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.78rem;
  color: var(--ink-600);
  margin-bottom: 2px;
}
.mock__nav svg { width: 13px; height: 13px; flex: none; color: var(--ink-400); }
.mock__nav.is-on { background: var(--ink-900); color: #fff; }
.mock__nav.is-on svg { color: #fff; }
.mock__side-foot {
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.7rem;
  color: var(--ink-500);
  line-height: 1.4;
}
.mock__side-foot + .mock__side-foot { margin-top: 8px; }

.mock__main { flex: 1; min-width: 0; padding: 16px 18px 18px; background: var(--surface); }
.mock__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.mock__head h4 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mock__head p { font-size: 0.72rem; color: var(--ink-400); }
.mock__chip {
  font-size: 0.68rem;
  font-weight: 550;
  color: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 9px;
  background: var(--surface);
  white-space: nowrap;
}

.mock__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}
.kpi {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 11px 12px 12px;
  background: var(--surface);
  min-width: 0;
}
.kpi__label {
  font-size: 0.68rem;
  color: var(--ink-400);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 3px;
}
.kpi__delta {
  display: block;
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 550;
  line-height: 1.35;
}
.kpi__delta.is-down { color: var(--rose); }

.mock__split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 10px;
}
.mock__panel {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 12px;
  background: var(--surface);
  min-width: 0;
}
.mock__panel-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 2px;
}
.mock__panel-sub { font-size: 0.66rem; color: var(--ink-400); margin-bottom: 10px; }
.mock__chart { width: 100%; height: auto; }
.mock__legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.64rem;
  color: var(--ink-400);
}
.mock__legend i {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 5px;
}

.mock__list { display: grid; gap: 9px; }
.mock__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
}
.mock__row-txt { min-width: 0; flex: 1; }
.mock__row-txt b {
  display: block;
  font-weight: 550;
  color: var(--ink-800);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__row-txt span { color: var(--ink-400); font-size: 0.65rem; }
.avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink-700);
}
.avatar--a { background: #3D5B73; }
.avatar--b { background: #0F6B4F; }
.avatar--c { background: #A8762B; }
.avatar--d { background: #A8452F; }

.mock__table { width: 100%; border-collapse: collapse; font-size: 0.71rem; }
.mock__table th {
  text-align: left;
  font-weight: 550;
  color: var(--ink-400);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 8px 7px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mock__table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
}
.mock__table tr:last-child td { border-bottom: 0; }
.mock__table .num { text-align: right; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 550;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--sand);
  color: var(--ink-600);
  white-space: nowrap;
}
.pill--green { background: var(--accent-soft); color: var(--accent-deep); }
.pill--amber { background: var(--amber-soft); color: #7A5320; }
.pill--rose { background: var(--rose-soft); color: #7E3322; }
.pill--slate { background: var(--slate-soft); color: #2E4759; }

.bars { display: grid; gap: 8px; }
.mock .bar,
.bars .bar {
  display: grid;
  grid-template-columns: 76px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
}
.bar__track {
  display: block;
  height: 7px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--ink-700);
  min-width: 2px;
}
.bar__fill--a { background: var(--accent); }
.bar__fill--b { background: #3D5B73; }
.bar__fill--c { background: #A8762B; }
.bar__num { text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; }

.funnel { display: grid; gap: 6px; }
.funnel__step {
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 550;
  color: #fff;
  background: var(--ink-800);
}
.funnel__step:nth-child(2) { background: #28524A; }
.funnel__step:nth-child(3) { background: var(--accent); }
.funnel__step:nth-child(4) { background: #0A4C39; }

/* marketing mock */
.mkt {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
}
.mkt__page {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.mkt__page-top {
  height: 26px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  display: flex;
  align-items: center;
  padding: 0 9px;
  gap: 5px;
}
.mkt__page-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); display: block; }
.mkt__page-body { padding: 13px; }
.mkt__line { height: 7px; border-radius: 4px; background: var(--line-soft); margin-bottom: 8px; }
.mkt__line--h { height: 12px; background: var(--ink-800); width: 62%; }
.mkt__line--w { width: 84%; }
.mkt__line--m { width: 40%; }
.mkt__btn {
  margin-top: 12px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  width: 76px;
}
.mkt__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.mkt__card { border: 1px solid var(--line-soft); border-radius: 6px; height: 42px; }

.channel {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.72rem;
}
.channel:last-child { border-bottom: 0; }
.channel__name { flex: 1; color: var(--ink-700); }
.channel__val { color: var(--ink-900); font-weight: 600; font-variant-numeric: tabular-nums; }
.channel__spark { width: 52px; height: 18px; flex: none; }

/* Mockup components reflow based on their own width, not the viewport */
@container mock (max-width: 660px) {
  .mock__grid { grid-template-columns: repeat(2, 1fr); }
  .mock__split { grid-template-columns: 1fr; }
  .mkt { grid-template-columns: 1fr; }
}
@container mock (max-width: 460px) {
  .mock__side { display: none; }
}
@container mock (max-width: 360px) {
  .mock__grid { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 28px; }
.step__num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 26px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--ink-500); line-height: 1.58; }

/* ---------- Flow loop ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.flow__step {
  padding: 26px 20px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.flow__step:last-child { border-right: 0; }
.flow__step:last-child { background: var(--accent-soft); }
.flow__n {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 16px;
}
.flow__step:last-child .flow__n { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow__step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.flow__step p { font-size: 0.82rem; color: var(--ink-500); line-height: 1.5; }
.flow--five .flow__step h4 { min-height: 2.7em; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 26px 24px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
}
.card__icon svg { width: 17px; height: 17px; }
.card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.card p { font-size: 0.94rem; color: var(--ink-500); line-height: 1.58; }
.card--plain { background: transparent; }
.card--plain:hover { box-shadow: none; }

.plain-list { border-top: 1px solid var(--line); }
.plain-list__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.plain-list__row h3 { font-size: 1.2rem; }
.plain-list__row p { font-size: 0.96rem; color: var(--ink-500); }
.plain-list__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  letter-spacing: 0.08em;
}

/* ---------- Split (media + copy) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__copy p + p { margin-top: 16px; }
.split__copy p { color: var(--ink-600); }
.split__copy h3 { margin: 26px 0 10px; }

/* ---------- Reasons (why) ---------- */
.reasons { display: grid; gap: 0; }
.reason {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason__mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 600;
}
.reason h3 { font-size: 1.22rem; margin-bottom: 8px; }
.reason p { font-size: 0.97rem; color: var(--ink-500); max-width: 62ch; }

/* ---------- Mission / Vision (dark) ---------- */
.mv { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px); }
.mv__block { border-top: 1px solid #2C3338; padding-top: 26px; }
.mv__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E767C;
  margin-bottom: 18px;
  display: block;
}
.mv__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.32;
  color: #F2F3F4;
  letter-spacing: -0.015em;
}
.mv__text em { font-style: italic; color: #7FC0A4; }

/* ---------- Case study ---------- */
.case {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}
.case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.case__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.case__logo {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.case__meta { display: flex; gap: 8px; flex-wrap: wrap; }

.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(28px, 3.5vw, 44px);
  align-items: start;
}
.case__block + .case__block { margin-top: 30px; }
.case__block h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.case__block p { color: var(--ink-600); font-size: 0.99rem; }
.case__block p + p { margin-top: 12px; }
.case__quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--ink-900);
}
.case__result {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.case__stat b {
  display: block;
  font-size: 1.7rem;
  font-family: var(--font-serif);
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case__stat span { font-size: 0.82rem; color: var(--ink-500); }

.case__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 28px clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.case__foot-stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink-900);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.case__foot-stat span { font-size: 0.85rem; color: var(--ink-500); line-height: 1.45; display: block; }

/* tabs */
.tabs__list {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tab:hover { color: var(--ink-900); }
.tab[aria-selected='true'] { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.tabpanel[hidden] { display: none; }

/* ---------- Quote / statement ---------- */
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.14;
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  max-width: 20ch;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--accent); }
.statement--wide { max-width: 26ch; }

.belief {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.belief p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.38;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.belief span {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--ink-500);
}

/* ---------- Quote cards (testimonial style) ---------- */
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 24px;
  font-size: 0.97rem;
  color: var(--ink-600);
  line-height: 1.58;
}
.quote-card b { display: block; margin-top: 14px; font-size: 0.85rem; color: var(--ink-900); font-weight: 600; }
.quote-card span { display: block; font-size: 0.8rem; color: var(--ink-400); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-900);
  letter-spacing: -0.012em;
}
.faq__icon {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ink-700);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.faq__icon::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.faq__icon::after { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { overflow: hidden; height: 0; transition: height 0.3s var(--ease); }
.faq__a p { padding: 0 40px 24px 0; color: var(--ink-500); font-size: 0.97rem; max-width: 72ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--ink-800);
  letter-spacing: -0.005em;
}
.field .hint { font-size: 0.8rem; color: var(--ink-400); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2369737B' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-size: 0.82rem; color: var(--ink-400); }
.form__status {
  display: none;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
}
.form__status.is-visible { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(48px, 6vw, 76px) 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr));
  gap: 40px;
  padding-bottom: 44px;
}
.footer__blurb { margin-top: 18px; font-size: 0.93rem; color: var(--ink-500); max-width: 34ch; }
.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 16px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 0.93rem; color: var(--ink-600); transition: color 0.18s var(--ease); }
.footer__col a:hover { color: var(--ink-900); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-400);
}
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--ink-700); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
.reveal[data-delay='4'] { transition-delay: 0.32s; }
.reveal[data-delay='5'] { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .way { grid-template-columns: 1fr; }
  .way--flip .way__copy { order: 1; }
  .way--flip .way__media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); }
  .step:nth-child(3) { padding-left: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step { border-bottom: 1px solid var(--line); }
  .flow__step:nth-child(2n) { border-right: 0; }
  .flow__step:nth-last-child(-n+2) { border-bottom: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .case__grid { grid-template-columns: 1fr; }
  .case__foot { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__shot { display: none; }
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .takeaways__grid { grid-template-columns: 1fr; }
  .takeaway { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .takeaway:first-child { border-top: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr; }
  .plain-list__row { grid-template-columns: 44px 1fr; gap: 16px; }
  .plain-list__row p { grid-column: 2; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .mock__side { display: none; }
  .mock__grid { grid-template-columns: repeat(2, 1fr); }
  .mock__split { grid-template-columns: 1fr; }
  .mkt { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 26px 0 !important; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step__num { margin-bottom: 14px; }
  .flow { grid-template-columns: 1fr; }
  .flow__step { border-right: 0; }
  .flow__step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow__step:last-child { border-bottom: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .case__head { padding: 18px; }
  .case__foot { grid-template-columns: 1fr; gap: 20px; }
  .reason { grid-template-columns: 1fr; gap: 14px; }
  .btn { height: 46px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .footer, .nav-toggle { display: none; }
}
