/* Homepage design tokens and chrome; loaded only by /products/ pages. */
:root {
  --background: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: #eeeeef;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --content-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
main { flex: 1; }
.container { width: min(calc(100% - 40px), var(--content-width)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--text); color: #ffffff; font-size: 13px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 34px); }
.main-nav a { color: #424245; font-size: 14px; font-weight: 500; transition: color 160ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: #ffffff; color: var(--muted); font-size: 14px; text-align: center; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.35); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 101; padding: 12px 20px; border-radius: 8px; background: var(--text); color: #ffffff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.eyebrow { margin-bottom: 20px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.button-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 25px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 600; text-align: center; transition: background-color 160ms ease, border-color 160ms ease; }
.button-primary { background: var(--accent); color: #ffffff; }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-hover); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: rgba(29, 29, 31, 0.18); background: var(--surface-strong); }

/* Compact product directory and four-section landing page. */
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.055em; line-height: 1.07; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.045em; line-height: 1.15; }
h3 { font-size: 20px; letter-spacing: -0.025em; line-height: 1.3; }
.product-directory { padding-top: 64px; padding-bottom: 80px; }
.product-directory > h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 32px; }
.product-card { max-width: 640px; padding: clamp(26px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.product-card p { max-width: 510px; margin-top: 16px; color: var(--muted); font-size: 18px; }
.product-card .button { margin-top: 26px; }
.product-hero { max-width: 920px; padding-top: 64px; padding-bottom: 54px; text-align: center; }
.product-hero h1 span { display: block; color: var(--accent); }
.hero-subheadline { max-width: 660px; margin: 24px auto 0; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; letter-spacing: -0.02em; }
.product-note { margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.product-section { padding-top: 52px; padding-bottom: 52px; }
.examples-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; }
.examples-note { margin-top: 14px; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 300px)); justify-content: center; gap: 24px; margin-top: 30px; }
.video-example { min-width: 0; }
.video-example video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 22px; background: #1d1d1f; }
.video-example figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; list-style: none; }
.step-number { color: var(--accent); white-space: nowrap; }
.steps p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.workflow-note { max-width: 850px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.purchase-section { padding-bottom: 64px; }
.purchase-card { padding: clamp(30px, 5vw, 48px) 24px; border-radius: 22px; background: var(--surface); text-align: center; }
.purchase-card h2 { max-width: 650px; margin: 0 auto; }
.purchase-card p { margin: 18px auto 24px; max-width: 570px; color: var(--muted); font-size: 18px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .container { width: min(calc(100% - 28px), var(--content-width)); }
  .header-inner { min-height: 104px; flex-direction: column; justify-content: center; gap: 11px; padding: 12px 0; }
  .main-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .product-hero { padding-top: 42px; padding-bottom: 40px; }
  .product-section { padding-top: 38px; padding-bottom: 38px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .product-directory { padding-top: 42px; padding-bottom: 48px; }
  .purchase-section { padding-bottom: 42px; }
}
@media (max-width: 430px) {
  .main-nav a { font-size: 13px; }
  .button-group { align-items: stretch; flex-direction: column; }
  .button-group .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .main-nav a { transition: none; }
}
