/* ============================================================
   WPAL design system — Dense Pacific
   Light mode only for production. Token-driven, no gradients.
   ============================================================ */

/* ---------- Self-hosted fonts (Inter, Inter Tight) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    /* Field + surfaces (light only for production) */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-tint: #F1F5F9;
    --text: #1E293B;
    --text-on-pastel: #1E293B;
    --text-on-ink: #F8FAFC;
    --muted: #64748B;
    --muted-soft: #94A3B8;
    --hairline: #E2E8F0;
    --hairline-strong: #CBD5E1;

    /* Pacific palette (saturated cool jewels) */
    --teal-deep: #0D9488;
    --teal-mid: #14B8A6;
    --teal-light: #5EEAD4;
    --sea-green: #10B981;
    --sea-green-deep: #047857;
    --cyan-mid: #06B6D4;
    --cyan-light: #67E8F9;
    --steel: #64748B;
    --slate-blue: #334155;

    /* Slate mono scale */
    --slate-1: #F1F5F9;
    --slate-15: #E2E8F0;
    --slate-2: #CBD5E1;
    --slate-25: #94A3B8;
    --slate-3: #64748B;
    --slate-4: #475569;
    --slate-5: #1E293B;

    /* Brand */
    --brand: var(--teal-deep);
    --brand-hover: var(--sea-green-deep);
    --ink: var(--slate-5);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter Tight', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-tile: 20px;
    --radius-card: 16px;
    --radius-pill: 999px;

    /* Layout */
    --wrap: 1280px;
    --gap: 12px;
    --header-h: 72px;
    --header-h-scrolled: 64px;

    /* Shadow (Depth-shadow #235 — warm/cool derived, two stacked) */
    --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px -4px rgba(15,23,42,0.08);
    --shadow-lift: 0 2px 6px rgba(15,23,42,0.10), 0 16px 36px -10px rgba(15,23,42,0.18);
    --shadow-hero: 0 2px 6px rgba(15,23,42,0.18), 0 24px 56px -10px rgba(15,23,42,0.32);

    color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text);
    margin: 0;
}
.display {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.h1 { font-size: clamp(36px, 5vw, 52px); }
.h2 { font-size: clamp(28px, 3.5vw, 40px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.h4 { font-size: clamp(18px, 1.6vw, 22px); }
.accent { color: var(--brand); }
.lede {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--muted);
    line-height: 1.55;
    max-width: 64ch;
    margin: 0;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--space-4);
}
.eyebrow--brand { color: var(--brand); }

/* ---------- Layout primitives ---------- */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.section {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--hairline);
}
.section--first { border-top: 0; padding: 32px 0 var(--space-8); }
.section--tight { padding: var(--space-3) 0; }
.section__head {
    max-width: 720px;
    margin-bottom: var(--space-2);
}
.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section__head .lede { margin-top: var(--space-4); margin-bottom: calc(var(--space-4) + 6px); }
@media (max-width: 720px) {
    .section { padding: var(--space-3) 0; }
    .section--first { padding: var(--space-7) 0; }
    .wrap { padding: 0 var(--space-5); }
}

/* ---------- Buttons (CTA pair #13) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 22px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}
.btn .arrow { aria-hidden: true; }
.btn--filled {
    background: var(--ink);
    color: var(--text-on-ink);
    border-color: var(--ink);
}
.btn--filled:hover { background: #0F172A; border-color: #0F172A; }
.btn--brand {
    background: var(--brand);
    color: var(--text-on-ink);
    border-color: var(--brand);
}
.btn--brand:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--hairline-strong);
}
.btn--ghost:hover { background: var(--surface-tint); border-color: var(--slate-3); }
.btn--on-ink {
    background: var(--text-on-ink);
    color: var(--ink);
    border-color: var(--text-on-ink);
}
.btn--on-ink:hover { background: rgba(255,255,255,0.9); }
.btn--ghost-on-ink {
    background: transparent;
    color: var(--text-on-ink);
    border-color: rgba(248,250,252,0.4);
}
.btn--ghost-on-ink:hover { background: rgba(248,250,252,0.1); border-color: rgba(248,250,252,0.7); }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    background: var(--ink);
    color: var(--text-on-ink);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
    font-size: 14px;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Sticky header (#123) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.site-header__brand img { height: 60px; width: auto; }
.site-header__brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.02em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}
.site-nav__link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s ease;
}
.site-nav__link:hover { background: var(--surface-tint); }
.site-nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.site-nav__cta { margin-left: var(--space-3); }

/* Products dropdown */
.site-nav__item--has-menu { position: relative; }
.site-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: rgba(248,250,252,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lift);
    padding: var(--space-2);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.site-nav__item--has-menu:hover .site-nav__menu,
.site-nav__item--has-menu:focus-within .site-nav__menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav__menu-item a {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
}
.site-nav__menu-item a:hover { background: var(--surface-tint); }
.site-nav__menu-item strong { font-weight: 600; font-size: 14px; }
.site-nav__menu-item span { font-size: 12px; color: var(--muted); }

@media (max-width: 880px) {
    .site-header__inner { gap: var(--space-4); padding: 0 var(--space-5); }
    .site-nav { display: none; }
}

@media (max-width: 480px) {
    .site-header__brand-text { display: none; }
}

/* ---------- Mobile off-canvas nav (#214) ---------- */
.mobile-nav__toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__toggle:hover { background: var(--surface-tint); }
.mobile-nav__bars,
.mobile-nav__bars::before,
.mobile-nav__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.15s ease;
}
.mobile-nav__bars { position: relative; }
.mobile-nav__bars::before,
.mobile-nav__bars::after { content: ""; position: absolute; left: 0; }
.mobile-nav__bars::before { top: -7px; }
.mobile-nav__bars::after  { top: 7px; }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bars { background: transparent; }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bars::before { top: 0; transform: rotate(45deg); }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__bars::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(360px, 85vw);
    background: var(--surface);
    border-left: 1px solid var(--hairline);
    box-shadow: var(--shadow-lift);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    visibility: hidden;
}
.mobile-nav[data-open] { transform: translateX(0); visibility: visible; }

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--hairline);
    flex-shrink: 0;
}
.mobile-nav__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}
.mobile-nav__close {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close:hover { background: var(--surface-tint); }

.mobile-nav__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-nav__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: var(--space-4) 0 var(--space-2);
}
.mobile-nav__eyebrow:first-child { margin-top: 0; }
.mobile-nav__link {
    display: block;
    padding: var(--space-3) var(--space-2);
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.12s ease;
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible { background: var(--surface-tint); }
.mobile-nav__link--product { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__link--product strong { font-weight: 600; font-size: 15px; }
.mobile-nav__link--product span { font-size: 13px; color: var(--muted); }

.mobile-nav__footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--hairline);
    flex-shrink: 0;
}
.mobile-nav__cta { width: 100%; justify-content: center; }

.mobile-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 190;
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.mobile-nav__overlay[data-open] { opacity: 1; pointer-events: auto; }

body.is-mobile-nav-open { overflow: hidden; }

@media (min-width: 881px) {
    .mobile-nav,
    .mobile-nav__toggle,
    .mobile-nav__overlay { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav__overlay,
    .mobile-nav__bars,
    .mobile-nav__bars::before,
    .mobile-nav__bars::after { transition: none !important; }
}

/* ---------- Split hero (#10) ---------- */
.hero { padding: var(--space-8) 0 var(--space-8); }
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-8);
    align-items: center;
}
.hero__text .eyebrow { margin-bottom: var(--space-4); }
.hero__title { margin-bottom: var(--space-5); }
.hero__lede { margin-bottom: var(--space-7); }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
}
.hero__meta strong { color: var(--text); font-weight: 600; }
.hero__media {
    background: var(--surface-tint);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-5);
    box-shadow: var(--shadow-lift);
}
@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
    .hero { padding: var(--space-8) 0; }
}

/* ---------- Bento grid (#21) ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 140px;
    gap: var(--gap);
    grid-auto-flow: dense;
}
.tile {
    border-radius: var(--radius-tile);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    color: var(--text-on-pastel);
    border: 1px solid rgba(15,23,42,0.06);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile__eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.78;
}
.tile__h {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.12;
    margin: 0;
    font-size: 18px;
}
.tile__p { margin: 0; opacity: 0.85; font-size: 13px; line-height: 1.45; }
.tile__num {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-size: 36px;
}
.tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-top: auto;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1.5px solid currentColor;
    align-self: flex-start;
}

/* Dimensional modifiers (bookcase rhythm) */
.tile--hero {
    grid-column: span 2;
    grid-row: span 2;
    border: 0;
    box-shadow: var(--shadow-hero);
}
.tile--hero .tile__h { font-size: 30px; }
.tile--hero .tile__p { font-size: 14px; max-width: 38ch; }
.tile--wide { grid-column: span 2; }
.tile--wide .tile__h { font-size: 22px; }
.tile--wide .tile__num { font-size: 52px; }
.tile--tall { grid-row: span 2; }
.tile--tall .tile__num { font-size: 72px; }
.tile--tall .tile__h { font-size: 20px; }
.tile__num--md { font-size: 40px; }

/* Tile colors (Pacific palette utilities) */
.tile--ink { background: var(--slate-5); color: var(--text-on-ink); border: 0; }
.tile--brand { background: var(--brand); color: var(--text-on-ink); border: 0; }
.tile--teal-deep { background: var(--teal-deep); color: var(--text-on-ink); border: 0; }
.tile--teal-mid { background: var(--teal-mid); color: var(--text-on-ink); border: 0; }
.tile--teal-light { background: var(--teal-light); }
.tile--sea-green { background: var(--sea-green); color: var(--text-on-ink); border: 0; }
.tile--sea-green-deep { background: var(--sea-green-deep); color: var(--text-on-ink); border: 0; }
.tile--cyan-mid { background: var(--cyan-mid); color: var(--text-on-ink); border: 0; }
.tile--cyan-light { background: var(--cyan-light); }
.tile--steel { background: var(--steel); color: var(--text-on-ink); border: 0; }
.tile--slate-blue { background: var(--slate-blue); color: var(--text-on-ink); border: 0; }
.tile--slate-1 { background: var(--slate-1); }
.tile--slate-15 { background: var(--slate-15); }
.tile--slate-2 { background: var(--slate-2); }
.tile--slate-3 { background: var(--slate-3); color: var(--text-on-ink); border: 0; }
.tile--slate-4 { background: var(--slate-4); color: var(--text-on-ink); border: 0; }
.tile--slate-5 { background: var(--slate-5); color: var(--text-on-ink); border: 0; }

@media (max-width: 880px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .tile--hero { grid-column: span 2; grid-row: span 2; }
    .tile--wide { grid-column: span 2; }
    .tile--tall { grid-row: span 2; }
}
@media (max-width: 540px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile { min-height: 120px; }
    .tile--hero, .tile--wide, .tile--tall { grid-column: span 1; grid-row: span 1; }
    .tile--hero .tile__h { font-size: 22px; }
    .tile--hero .tile__p { font-size: 13px; max-width: none; }
    .tile--wide .tile__h { font-size: 18px; }
    .tile--wide .tile__num { font-size: 36px; }
    .tile--tall .tile__num { font-size: 40px; }
    .tile--tall .tile__h { font-size: 18px; }
}

/* ---------- Stat strip (#4) ---------- */
.stat-strip {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-7) var(--space-6);
}
.stat-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.stat-strip__grid dl { margin: 0; text-align: left; }
.stat-strip__grid dt {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    order: 2;
}
.stat-strip__grid dd {
    margin: 0 0 var(--space-3);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    order: 1;
}
.stat-strip__source {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--hairline);
    font-size: 12px;
    color: var(--muted-soft);
    font-style: italic;
}
@media (max-width: 720px) {
    .stat-strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* ---------- Feature spotlight (#240) ---------- */
.spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-5) 0;
}
.spotlight:nth-child(even) .spotlight__media { order: -1; }
.spotlight__text .eyebrow { margin-bottom: var(--space-3); }
.spotlight__text h3 { margin-bottom: var(--space-4); }
.spotlight__text p { color: var(--muted); margin: 0 0 var(--space-4); }
.spotlight__text ul {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: grid;
    gap: var(--space-2);
}
.spotlight__text li {
    padding-left: var(--space-5);
    position: relative;
    font-size: 14px;
    color: var(--text);
}
.spotlight__text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}
.spotlight__media {
    background: var(--slate-5);
    border-radius: var(--radius-tile);
    padding: var(--space-6);
    aspect-ratio: 4 / 3;
    color: var(--text-on-ink);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 880px) {
    .spotlight { grid-template-columns: 1fr; gap: var(--space-6); }
    .spotlight:nth-child(even) .spotlight__media { order: 0; }
}

/* Spotlight media: mono log rows (security/logs/vault/mcp/email) */
.media-log {
    margin-top: 24px;
    display: grid;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
}
.media-log__row {
    padding: 8px 12px;
    background: rgba(248,250,252,0.06);
    border-left: 2px solid var(--slate-3);
    border-radius: 4px;
}
.media-log__row--ok {
    background: rgba(94,234,212,0.10);
    border-left-color: var(--teal-light);
}
.media-log__row--deny {
    background: rgba(252,165,165,0.10);
    border-left-color: #EF4444;
}

/* Spotlight media: connector blocks (crm) */
.media-stack {
    margin-top: 24px;
    display: grid;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
}
.media-stack__block {
    padding: 12px 16px;
    background: rgba(248,250,252,0.06);
    border-radius: 8px;
}
.media-stack__block--strong { background: rgba(248,250,252,0.10); }
.media-stack__block--brand { background: rgba(13,148,136,0.30); }

/* ---------- Pricing tiers (#29) ---------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: stretch;
}
.tier {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-7) var(--space-6);
    display: flex;
    flex-direction: column;
}
.tier--featured {
    border-color: var(--brand);
    border-width: 2px;
    box-shadow: var(--shadow-lift);
    transform: translateY(-6px);
    position: relative;
}
.tier__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: var(--text-on-ink);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tier__name { font-size: 18px; font-weight: 700; margin-bottom: var(--space-2); }
.tier__price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-1);
    line-height: 1;
}
.tier__price-note { font-size: 13px; color: var(--muted); margin-bottom: var(--space-6); }
.tier__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-7);
    display: grid;
    gap: var(--space-3);
    flex-grow: 1;
}
.tier__features li {
    padding-left: var(--space-5);
    position: relative;
    font-size: 14px;
    color: var(--text);
}
.tier__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.tier .btn { width: 100%; justify-content: center; }
@media (max-width: 880px) {
    .pricing { grid-template-columns: 1fr; }
    .tier--featured { transform: none; }
}

/* ---------- Integration grid (#35) ---------- */
.integrations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-3);
}
.integration {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.integration:hover { border-color: var(--brand); transform: translateY(-2px); }
.integration__mark {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface-tint);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    color: var(--brand);
    flex-shrink: 0;
    letter-spacing: -0.04em;
}
.integration__name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.integration__note { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Testimonial (#138) ---------- */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
}
.testimonial blockquote { margin: 0; }
.testimonial p {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 var(--space-6);
}
.testimonial cite {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-style: normal;
}
.testimonial cite .who { font-weight: 600; font-size: 14px; }
.testimonial cite .role { font-size: 13px; color: var(--muted); display: block; }
.testimonial__avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--text-on-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
.testimonial__avatar--img { object-fit: cover; }

/* Stacked testimonial grid (3-up) */
.testimonial-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.testimonial-stack .testimonial { padding: var(--space-5); }
.testimonial-stack .testimonial p {
    font-size: clamp(16px, 1.4vw, 18px);
    margin: 0 0 var(--space-5);
}
/* Tablet: 2-col to keep tiles from going ultra-wide (iPad portrait falls here) */
@media (max-width: 880px) {
    .testimonial-stack { grid-template-columns: repeat(2, 1fr); }
    /* When there's an odd count, center the last tile rather than leaving it stretched wide */
    .testimonial-stack .testimonial:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* Phones: single column */
@media (max-width: 560px) {
    .testimonial-stack { grid-template-columns: 1fr; }
    .testimonial-stack .testimonial:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }
}

/* ---------- Social proof aggregate (#137) ---------- */
.socialproof {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-3) 0;
}
.socialproof__number {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--brand);
}
.socialproof__label {
    display: block;
    font-size: 14px;
    color: var(--muted);
    max-width: 32ch;
    margin-top: var(--space-2);
}
.socialproof__logos {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-left: auto;
    flex-wrap: wrap;
}
.socialproof__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--muted);
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.socialproof__logo:hover { opacity: 1; color: var(--text); filter: none; }

/* ---------- CTA band (#51) ---------- */
.cta-band {
    background: var(--slate-5);
    color: var(--text-on-ink);
    padding: var(--space-9) 0;
    border-radius: var(--radius-tile);
    margin: var(--space-8) 0;
}
.cta-band--brand { background: var(--brand); }
.cta-band__inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 var(--space-6);
}
.cta-band h2 {
    color: var(--text-on-ink);
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: var(--space-4);
}
.cta-band p {
    color: rgba(248,250,252,0.82);
    font-size: 17px;
    margin: 0 0 var(--space-7);
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Breadcrumbs (#117) ---------- */
.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--hairline-strong);
    margin-left: var(--space-2);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* ---------- Fat footer (#68) ---------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    padding: var(--space-9) 0 var(--space-6);
    margin-top: var(--space-9);
}
.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--space-7);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--hairline);
}
.site-footer__brand img { height: 36px; margin-bottom: var(--space-4); }
.site-footer__tag {
    color: var(--muted);
    font-size: 14px;
    max-width: 32ch;
    margin: 0;
}
.site-footer h4 {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.site-footer a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-6);
    font-size: 13px;
    color: var(--muted);
}
.site-footer__legal { display: flex; gap: var(--space-5); flex-wrap: wrap; }
@media (max-width: 720px) {
    .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Team grid (#33) ---------- */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5);
}
.team__card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-6);
    text-align: center;
}
.team__avatar {
    width: 96px; height: 96px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: var(--text-on-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    margin: 0 auto var(--space-4);
    letter-spacing: -0.04em;
}
.team__name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.team__role { font-size: 13px; color: var(--muted); margin-bottom: var(--space-4); }
.team__bio { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Story section (about) ---------- */
.story {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-8);
    padding: var(--space-8) 0;
    align-items: start;
}
.story__label .eyebrow { margin: 0; }
.story__label h2 { font-size: clamp(24px, 2.6vw, 32px); }
.story__body p {
    color: var(--text);
    margin: 0 0 var(--space-4);
    font-size: 17px;
    line-height: 1.65;
}
.story__body p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
    .story { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ---------- Code block ---------- */
.code-block {
    background: var(--slate-5);
    color: #E2E8F0;
    border-radius: var(--radius-card);
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
}
.code-block .c-key { color: #67E8F9; }
.code-block .c-str { color: #5EEAD4; }
.code-block .c-com { color: #94A3B8; font-style: italic; }

/* ---------- Stagger entrance utility ----------
   One-time fade-in on load, staggered via --stagger delay.
   Gated behind prefers-reduced-motion: no-preference so reduced-motion users
   see content immediately at full opacity. Hero text uses opacity-only fade;
   bento tiles get a scale "pop" via wpal-pop-in with a back-out overshoot curve.
   Note: during the bento entrance (~1.25s total with random stagger), .tile:hover
   transform won't apply because the entrance animation owns the transform property;
   hover works normally once the entrance completes. */
@media (prefers-reduced-motion: no-preference) {
    .stagger {
        animation: wpal-stagger-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--stagger, 0ms);
    }
    .bento .stagger {
        animation-name: wpal-pop-in;
        animation-timing-function: cubic-bezier(0.34, 1.9, 0.64, 1);
    }
}
@keyframes wpal-stagger-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wpal-pop-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--space-6); }
.mb-6 { margin-bottom: var(--space-6); }
.hide-mobile { display: initial; }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* ---------- Contact page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-tile);
    padding: var(--space-7);
    box-shadow: var(--shadow-card);
}
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    border-width: 2px;
    padding: 11px 13px;
}
.contact-form .field { margin-bottom: var(--space-4); }
.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
@media (max-width: 540px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-info dl {
    display: grid;
    gap: var(--space-5);
    margin: var(--space-6) 0 0;
}
.contact-info dt {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-info dd { margin: 0; font-size: 15px; color: var(--text); }
.contact-info dd a { color: var(--brand); }

/* Form state: alerts, field errors */
.alert {
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
    font-size: 14px;
    line-height: 1.5;
}
.alert a { color: inherit; text-decoration: underline; }
.alert--error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #991B1B;
}
.field__error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #B91C1C;
}
.contact-form .field--error input,
.contact-form .field--error select,
.contact-form .field--error textarea {
    border-color: #DC2626;
    background: #FFFBFB;
}
.contact-form .field--error input:focus,
.contact-form .field--error select:focus,
.contact-form .field--error textarea:focus {
    border-color: #DC2626;
}

/* ---------- Error pages (404, etc.) ---------- */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 96px;
    padding-bottom: 96px;
}
.error-page .btn-group { justify-content: center; }

/* ---------- Hero photo (split hero image variant) ----------
   When a product supplies hero_image, the media column drops its tinted
   frame and the photo floats on a layered depth shadow: a brand-tinted
   accent panel offset behind the image, plus a deep soft drop shadow. */
.hero__media--photo {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}
.hero__photo {
    position: relative;
    border-radius: var(--radius-tile);
}
.hero__photo-accent {
    position: absolute;
    z-index: 0;
    right: -14px;
    bottom: -14px;
    width: 88%;
    height: 88%;
    background: var(--brand);
    opacity: 0.3;
    border-radius: var(--radius-tile);
    filter: blur(22px);
}
.hero__photo-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-tile);
    box-shadow: 0 12px 30px -8px rgba(15,23,42,0.26);
}
@media (max-width: 880px) {
    .hero__photo-accent { right: -6px; bottom: -6px; }
}

/* ---------- "What ships in the box" feature grid ---------- */
.included-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}
.included-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: var(--space-6);
}
.included-card__h {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--hairline);
}
.included-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}
.included-card__list li {
    padding-left: var(--space-5);
    position: relative;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}
.included-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* ---------- Cost of ownership (closer) ---------- */
.ownership {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
    align-items: start;
}
.ownership__head .eyebrow { margin-bottom: var(--space-3); }
.ownership__head h2 { margin-bottom: var(--space-4); }
.ownership__head .lede { color: var(--muted); margin: 0; }
.ownership__list { display: grid; gap: 0; }
.ownership__item {
    padding: var(--space-5) 0;
    border-top: 1px solid var(--hairline);
}
.ownership__item:first-child {
    border-top: 0;
    padding-top: 0;
}
.ownership__item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--space-2);
}
.ownership__item p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 880px) {
    .ownership { grid-template-columns: 1fr; gap: var(--space-6); }
}
