/* =================================================================
   VYNTWORKS — Brand design system
   "Steel Navy & Chalk" (from the approved ledger-v2-cobalt comp):
   chalk paper surfaces, ink navy, steel-navy accent, Newsreader
   display serif + Libre Franklin body, 12px card radius, pill buttons.
   Class vocabulary is inherited from the previous system so existing
   page markup keeps working — the visual system is entirely new.
   ================================================================= */

:root {
    /* Brand */
    --brand: #31567c;            /* steel navy */
    --brand-hover: #223d59;
    --brand-deep: #223d59;
    --brand-accent: #8fb0d4;     /* light steel — accent on dark surfaces */
    --brand-soft: #e9eff5;

    /* Dark surfaces (ink navy band) */
    --bg-0: #141c2e;
    --bg-1: #141c2e;
    --bg-2: #1a2438;
    --navy: #141c2e;

    /* Light surfaces */
    --paper: #fbfbf9;
    --paper-2: #f1f2ee;
    --paper-3: #e9ebe4;

    /* Ink */
    --ink-900: #141c2e;
    --ink-700: #2c3547;
    --ink-500: #4c5568;
    --ink-400: #9aa1ae;

    /* Lines */
    --line: #dde0da;
    --line-dark: rgba(255, 255, 255, 0.12);

    --green: #1f7a52;

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Libre Franklin', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

    --radius: 12px;
    --radius-sm: 10px;
    --radius-lg: 12px;
    --maxw: 1160px;
    --shadow-glow: 0 8px 30px rgba(34, 61, 89, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink-900);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--brand); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.01em;
}
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ---------- Section rhythm ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-tight { padding: 3rem 0; }

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-family: var(--sans);
}
.eyebrow-line::before {
    content: '';
    display: inline-block;
    width: 34px; height: 2px;
    background: var(--brand);
    vertical-align: middle;
    margin-right: 0.65rem;
}

.h-display {
    font-size: clamp(2.75rem, 5.4vw, 4.25rem);
    font-weight: 400;
    line-height: 1.05;
}
.h-display em, .h-section em { font-style: italic; color: var(--brand); }
.h-section { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 500; }
.lead { font-size: 1.16rem; color: var(--ink-500); line-height: 1.7; font-family: var(--sans); }
.muted { color: var(--ink-500); }
.text-brand { color: var(--brand); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 720px; }
.measure-sm { max-width: 560px; }

/* =================================================================
   DARK SURFACE — the ink-navy band (support band in the comp)
   ================================================================= */
.dark {
    position: relative;
    background: var(--navy);
    color: #e6e9f0;
    overflow: hidden;
}
.dark .lead, .dark .muted { color: #b7bfd0; }
.dark .eyebrow { color: var(--brand-accent); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* Legacy decorative layers — kept as harmless subtle textures */
.dark .grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 40%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 40%, transparent 100%);
}
.dark .glow {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(143, 176, 212, 0.10) 0%, transparent 46%),
        radial-gradient(ellipse at 84% 70%, rgba(49, 86, 124, 0.14) 0%, transparent 42%);
}
.dark > .container, .dark > .container-wide { position: relative; z-index: 1; }

/* =================================================================
   BUTTONS — pill, calm steel navy
   ================================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.82rem 1.65rem;
    border-radius: 99px;
    font-weight: 600; font-size: 0.95rem;
    font-family: var(--sans);
    cursor: pointer; border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 6px 18px rgba(34, 61, 89, 0.22);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(34, 61, 89, 0.30); }

.btn-ghost-light {
    color: #e6e9f0;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

.btn-outline {
    color: var(--ink-900);
    border-color: var(--ink-900);
    background: transparent;
}
.btn-outline:hover { background: var(--ink-900); color: var(--paper); }

.btn-lg { padding: 0.98rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* =================================================================
   NAVBAR — light chalk, sticky, serif wordmark
   ================================================================= */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 251, 249, 0.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    height: 76px;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 2px; }
.brand img { display: none; } /* wordmark is typographic now */
.brand-name {
    color: var(--ink-900);
    font-family: var(--serif);
    font-weight: 600; font-size: 1.8rem; letter-spacing: -0.01em;
    line-height: 1;
}
.brand-name span { color: var(--ink-900); }
.brand-name .tick { color: var(--brand); }
.brand-sub { display: none; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    color: var(--ink-500); font-size: 0.93rem; font-weight: 500;
    transition: color .18s ease; position: relative;
    white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--ink-900); }

/* Dropdown groups */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop-toggle {
    background: none; border: 0; cursor: pointer; padding: 0;
    font-family: var(--sans);
}
.nav-drop-toggle .caret { font-size: 0.6rem; display: inline-block; transition: transform .18s ease; margin-left: 0.15rem; color: var(--ink-400); }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); color: var(--brand); }
.nav-item.active-group .nav-drop-toggle { color: var(--ink-900); }
.nav-drop {
    position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 24px 50px -18px rgba(20, 28, 46, 0.32);
    padding: 0.5rem; min-width: 232px;
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 120;
}
/* invisible hover bridge so the pointer can travel to the panel */
.nav-drop::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-drop a {
    display: block; padding: 0.6rem 0.9rem; border-radius: 8px;
    color: var(--ink-700); font-size: 0.92rem; font-weight: 500;
    white-space: nowrap;
}
.nav-drop a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-login { color: var(--ink-500); font-weight: 600; font-size: 0.93rem; }
.nav-login:hover { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink-900); font-size: 1.7rem; cursor: pointer; line-height: 1; }

.mobile-menu {
    display: none;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block; color: var(--ink-700); font-weight: 500; font-size: 1.05rem;
    padding: 0.8rem 0; border-bottom: 1px solid var(--paper-2);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 1rem; }
.mobile-menu .mm-label {
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-400); font-weight: 700; margin: 1.1rem 0 0.2rem;
    font-family: var(--sans);
}
.mobile-menu .mm-label:first-child { margin-top: 0.4rem; }

/* =================================================================
   HERO — light chalk editorial
   ================================================================= */
.hero { padding: 6rem 0 4.5rem; text-align: center; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 920px; margin: 0 auto 1.6rem; }
.hero .em { font-style: italic; color: var(--brand); }
.hero .lead { max-width: 660px; margin: 0 auto 2.4rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.6rem; color: var(--ink-500); font-size: 0.9rem; }
.hero-note b { color: var(--ink-900); }

/* Left-aligned hero grid (ledger hero, home page) */
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px;
    align-items: center; text-align: left;
}
.hero-grid h1 { margin: 0 0 1.6rem; }
.hero-grid .lead { margin: 0 0 2.2rem; }
.hero-grid .hero-cta { justify-content: flex-start; }

.badge-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: transparent;
    border: 0;
    padding: 0; border-radius: 0;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 1.8rem;
}
.badge-pill::before { content: ''; width: 34px; height: 2px; background: var(--brand); }
.badge-pill .dot { display: none; }

/* =================================================================
   ACTIVITY LEDGER CARD (signature component from the comp)
   ================================================================= */
.ledger {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 24px 60px -28px rgba(20, 28, 46, 0.35);
    overflow: hidden;
    text-align: left;
}
.ledger-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 22px; border-bottom: 1px solid var(--line);
    background: var(--brand-soft);
}
.ledger-head .t { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--brand-hover); }
.pill {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 99px;
}
.pill.live { background: #fff; color: var(--brand); }
.ledger .row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 15px 22px; border-bottom: 1px solid #eef0ea;
    font-size: 0.87rem; align-items: baseline;
}
.ledger .row:last-child { border-bottom: none; }
.ledger .row .who { font-weight: 600; white-space: nowrap; color: var(--ink-900); }
.ledger .row .who.ai { color: var(--brand); }
.ledger .row .what { color: var(--ink-500); flex: 1; }
.ledger .row .when { color: var(--ink-400); font-size: 0.76rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .row .check { color: var(--green); font-weight: 700; }

/* =================================================================
   TRUST / PROOF STRIP (sector references — never client names)
   ================================================================= */
.logos, .proof {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 1.7rem 0; background: var(--paper-2);
}
.logos p {
    text-align: center; color: #a3a69e; font-size: 0.75rem;
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.2rem;
    font-family: var(--sans);
}
.logos-row { display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: center; align-items: center; opacity: 1; }
.logos-row span {
    color: #8d9088; font-weight: 500; font-size: 1.08rem;
    font-family: var(--serif); letter-spacing: 0;
}

/* =================================================================
   PHOTO BAND (people photography with caption card)
   ================================================================= */
.photoband { position: relative; border-bottom: 1px solid var(--line); }
.photoband img { width: 100%; height: 540px; object-fit: cover; display: block; }
.photoband .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,46,.1), rgba(20,28,46,.58) 82%); }
.photoband .cap { position: absolute; left: 0; right: 0; bottom: 44px; }
.photocard {
    max-width: 560px; background: rgba(251, 251, 249, 0.97);
    border-left: 4px solid var(--brand);
    padding: 30px 34px 32px; border-radius: var(--radius);
    box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.55);
}
.photocard .eyebrow { margin-bottom: 0.7rem; }
.photocard p { font-family: var(--serif); font-size: 1.24rem; line-height: 1.45; color: var(--ink-900); }

/* =================================================================
   QUOTEBLOCK (dark navy pull-quote from the comp)
   ================================================================= */
.quoteblock {
    background: var(--brand-hover); color: #e7ebf8;
    padding: 52px 48px; border-radius: var(--radius); position: relative;
}
.quoteblock::before {
    content: "\201C"; font-family: var(--serif); font-size: 120px; line-height: 0;
    position: absolute; top: 52px; left: 34px; color: var(--brand-accent); opacity: 0.9;
}
.quoteblock p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; font-weight: 300; padding-left: 36px; }
.quoteblock .attrib { padding-left: 36px; margin-top: 26px; font-size: 0.82rem; color: #9db5ce; }
.quoteblock .attrib b { color: #fff; display: block; font-size: 0.88rem; }

/* =================================================================
   PIPELINE STRIP
   ================================================================= */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.pipe-step {
    position: relative; text-align: left;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem;
}
.dark .pipe-step { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.pipe-step .n { color: var(--brand); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; font-family: var(--sans); }
.dark .pipe-step .n { color: var(--brand-accent); }
.pipe-step h4 { color: var(--ink-900); font-size: 1.2rem; margin: 0.5rem 0 0.4rem; font-weight: 600; }
.dark .pipe-step h4 { color: #fff; }
.pipe-step p { color: var(--ink-500); font-size: 0.9rem; }
.dark .pipe-step p { color: #8b93a8; }
.pipe-step:not(:last-child)::after {
    content: '→'; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%);
    color: var(--brand); font-size: 1.1rem; z-index: 2;
}
.dark .pipe-step:not(:last-child)::after { color: var(--brand-accent); }

/* =================================================================
   GRIDS + CARDS
   ================================================================= */
.grid { display: grid; gap: 1.4rem; }
.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 {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.1rem 1.9rem; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 28, 46, 0.3); }
.card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.65rem; }
.card p { color: var(--ink-500); font-size: 0.95rem; }

/* cards on dark bands */
.card-glass {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 2.1rem 1.9rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.card-glass:hover { transform: translateY(-3px); background: rgba(255,255,255,0.07); border-color: rgba(143,176,212,0.4); box-shadow: 0 22px 44px rgba(0,0,0,0.3); }
.card-glass h3 { color: #fff; font-size: 1.35rem; font-weight: 600; margin-bottom: 0.65rem; }
.card-glass p { color: #b7bfd0; font-size: 0.95rem; }

.icon-tile {
    width: 48px; height: 48px; border-radius: 10px;
    display: grid; place-items: center; margin-bottom: 1.1rem;
    background: var(--brand-soft);
    border: 1px solid #d5e0eb;
    color: var(--brand);
}
.icon-tile .mdi { font-size: 1.5rem; }
.dark .icon-tile, .card-glass .icon-tile {
    background: rgba(143, 176, 212, 0.14);
    border-color: rgba(143, 176, 212, 0.3);
    color: var(--brand-accent);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
    display: inline-block; padding: 0.42rem 0.95rem; border-radius: 99px;
    background: var(--brand-soft); border: 1px solid #cfdce8;
    color: var(--brand); font-size: 0.83rem; font-weight: 600;
}
.dark .tag { background: rgba(143,176,212,0.12); border-color: rgba(143,176,212,0.35); color: var(--brand-accent); }

.addon-flag {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.55rem 0.9rem; margin-top: 1.3rem;
    font-size: 0.93rem; color: var(--ink-500);
}
.dark .addon-flag { color: #b7bfd0; }
.addon-flag .tag { display: inline-flex; align-items: center; gap: 0.4rem; }
.addon-flag a { color: var(--brand); font-weight: 700; white-space: nowrap; }
.dark .addon-flag a { color: var(--brand-accent); }

.tier-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.32rem 0.72rem; border-radius: 99px;
    background: var(--paper-2); border: 1px solid var(--line);
    color: var(--ink-500); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.tier-pill i { font-size: 0.95rem; }
.tier-pill.ent { color: var(--brand); background: var(--brand-soft); border-color: #cfdce8; }
.tier-row { margin: 0.1rem 0 0.75rem; }
.dark .tier-pill { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #b7bfd0; }
.dark .tier-pill.ent { color: var(--brand-accent); background: rgba(143,176,212,0.13); border-color: rgba(143,176,212,0.4); }

kbd {
    display: inline-block; min-width: 1.5em; padding: 0.05em 0.45em; text-align: center;
    font-family: inherit; font-size: 0.85em; font-weight: 700; line-height: 1.5;
    color: var(--brand); background: var(--brand-soft);
    border: 1px solid #cfdce8; border-radius: 6px;
    box-shadow: 0 1px 0 #cfdce8; vertical-align: middle;
}
.dark kbd { color: var(--brand-accent); background: rgba(143,176,212,0.14); border-color: rgba(143,176,212,0.35); }

.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-500); font-size: 0.99rem; }
.checks li b, .checks li strong { color: var(--ink-900); }
.dark .checks li { color: #c5ccd6; }
.checks .mdi { color: var(--brand); font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.dark .checks .mdi { color: var(--brand-accent); }

/* =================================================================
   SPLIT (alternating feature rows)
   ================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.2rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media {
    border-radius: var(--radius); overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line); min-height: 340px;
    position: relative; padding: 2rem;
}
.dark .split-media { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

/* Mock UI panel used inside split-media — now a light ledger-style card */
.mock {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.2rem; height: 100%;
    box-shadow: 0 18px 44px -24px rgba(20, 28, 46, 0.3);
}
.mock-bar { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper-3); }
.mock-bar i:first-child { background: var(--brand); }
.mock-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0.9rem; border-radius: 9px; margin-bottom: 0.55rem;
    background: var(--paper); border: 1px solid var(--paper-3);
    color: var(--ink-500); font-size: 0.85rem;
}
.mock-row .v { color: var(--ink-900); font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-row.hi { border-color: #cfdce8; background: var(--brand-soft); color: var(--ink-700); }
.mock-row .pill-ok { color: var(--green); font-weight: 700; font-size: 0.78rem; }
.mock-row .pill-warn { color: #b45309; font-weight: 700; font-size: 0.78rem; }

/* =================================================================
   STATS
   ================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat .num {
    font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; color: var(--brand);
    letter-spacing: -0.02em; font-family: var(--serif);
}
.stat .lbl { color: var(--ink-500); font-size: 0.88rem; margin-top: 0.3rem; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.dark .stat .lbl { color: #8b93a8; }
.dark .stat .num { color: var(--brand-accent); }

/* Stat grid used on dark support band (comp style) */
.stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); overflow: hidden;
}
.stat-grid .stat { background: var(--navy); padding: 30px 28px; text-align: left; }
.stat-grid .stat .num { font-size: 2.5rem; color: var(--brand-accent); }
.stat-grid .stat .lbl { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8b93a8; margin-top: 6px; }

/* =================================================================
   CTA BAND
   ================================================================= */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 1.1rem; }
.cta-band .lead { max-width: 600px; margin: 0 auto 2.2rem; }

/* =================================================================
   FOOTER — light chalk editorial
   ================================================================= */
.footer { background: var(--paper-2); color: var(--ink-500); padding: 4.5rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer .brand-name { font-size: 1.5rem; color: var(--ink-900); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-about { max-width: 320px; margin-top: 1rem; font-size: 0.92rem; line-height: 1.7; color: var(--ink-500); }
.footer h5 { color: var(--ink-900); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1.1rem; font-family: var(--sans); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.footer a { color: var(--ink-500); font-size: 0.93rem; transition: color .15s ease; }
.footer a:hover { color: var(--brand); }
.footer-bottom {
    margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: 0.85rem; color: var(--ink-400);
}

/* =================================================================
   AUTH (login)
   ================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { position: relative; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.auth-left .inner { position: relative; z-index: 1; max-width: 480px; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper-2); }
.auth-card {
    width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2.6rem; box-shadow: 0 30px 60px rgba(20,28,46,0.10);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.auth-logo img { width: 56px; height: 56px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.5rem; }
.field input {
    width: 100%; padding: 0.85rem 1rem; font-size: 1rem; color: var(--ink-900);
    border: 1px solid var(--line); border-radius: 0.6rem; outline: none;
    transition: border-color .18s, box-shadow .18s; font-family: inherit;
    background: var(--paper);
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(49, 86, 124, 0.16); }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.88rem; }
.auth-row a { color: var(--brand); font-weight: 600; }

/* =================================================================
   MISC
   ================================================================= */
.divider-soft { border: 0; border-top: 1px solid var(--line); }
.kbd {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
    font-size: 0.82rem; font-weight: 700; color: #fff; font-family: ui-monospace, monospace;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-head .lead { margin-top: 1rem; }

.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item h4 { font-size: 1.18rem; font-weight: 600; margin-bottom: 0.6rem; }
.faq-item p { color: var(--ink-500); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2.2rem; display: flex; flex-direction: column;
}
.price-card.featured {
    border-color: var(--brand); box-shadow: 0 22px 50px rgba(34, 61, 89, 0.14);
    position: relative;
}
.price-card.featured::before {
    content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 99px;
}
.price-card h3 { font-size: 1.4rem; font-weight: 600; }
.price-card .price { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.02em; margin: 1rem 0 0.2rem; font-family: var(--serif); }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--ink-500); font-family: var(--sans); }
.price-card .desc { color: var(--ink-500); font-size: 0.95rem; min-height: 48px; }
.price-card .checks { flex: 1; }
.price-card .btn { margin-top: 1.8rem; }

/* =================================================================
   COMPARISON TABLES
   ================================================================= */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20,28,46,0.06); }
.compare { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: #fff; }
.compare th, .compare td { padding: 1.05rem 1.5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); background: var(--paper-2); font-weight: 700; }
.compare thead th.col-vw { color: var(--brand); }
.compare td.feat { font-weight: 700; color: var(--ink-900); width: 30%; }
.compare td .sub { display: block; color: var(--ink-500); font-weight: 400; font-size: 0.9rem; margin-top: 0.15rem; }
.compare .col-vw { background: var(--brand-soft); color: var(--ink-700); }
.compare td.col-other { color: var(--ink-500); }
.compare .mdi-close-circle { color: #cbd0c9; margin-right: 0.4rem; }
.compare .mdi-check-circle { color: var(--brand); margin-right: 0.4rem; }
.compare tbody tr:last-child td { border-bottom: 0; }

.compare.plans { min-width: 760px; }
.compare.plans th:not(.feat), .compare.plans td:not(.feat) { text-align: center; }
.compare.plans thead th.plan { font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink-900); }
.compare.plans thead th.plan small { display: block; font-weight: 600; font-size: 0.82rem; color: var(--ink-500); margin-top: 0.2rem; }
.compare.plans thead th.plan.col-vw, .compare.plans thead th.plan.col-vw small { color: var(--brand); }
.compare.plans .mdi-check-circle, .compare.plans .mdi-minus { margin-right: 0; }
.compare.plans .mdi-minus { color: #cbd0c9; }
.compare.plans .add { color: var(--brand); font-weight: 700; }
.compare.plans .add small { display: block; color: var(--ink-500); font-weight: 500; font-size: 0.82rem; margin-top: 0.1rem; }
.compare.plans .incl { color: var(--ink-900); font-weight: 700; }
.compare.plans tr.grp td { background: var(--paper-2); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); text-align: left; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .pipe-step:not(:last-child)::after { display: none; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse .split-media { order: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .auth { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .photoband img { height: 440px; }
}

@media (max-width: 680px) {
    .section { padding: 4rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .pipeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero { padding: 4.5rem 0 4rem; }
    .auth-card { padding: 1.8rem; }
    .container, .container-wide { padding: 0 1.2rem; }
    .photoband img { height: 360px; }
    .photoband .cap { bottom: 20px; }
    .photocard { padding: 20px 22px 22px; margin: 0 0.2rem; }
    .photocard p { font-size: 1.05rem; }
    .stat-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   CLICKABLE TILE + "LEARN MORE"
   ================================================================= */
.card.tile { cursor: pointer; position: relative; }
.tile-detail { display: none; }
.tile-more {
    display: inline-flex; align-items: center; gap: 0.35rem;
    margin-top: 1rem; color: var(--brand); font-weight: 600; font-size: 0.9rem;
    opacity: 0.75; transition: opacity .2s ease, gap .2s ease;
}
.card.tile:hover .tile-more { opacity: 1; gap: 0.6rem; }
.card-glass.tile { cursor: pointer; }
.card-glass.tile .tile-more { color: var(--brand-accent); }

/* =================================================================
   SLIDE-OVER DRAWER (feature deep-dive) — chalk light
   ================================================================= */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(20, 28, 46, 0.5);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 0; right: 0; z-index: 201;
    height: 100%; width: min(540px, 94vw);
    background: var(--paper);
    color: var(--ink-900);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
    box-shadow: -30px 0 70px rgba(20, 28, 46, 0.35);
    display: flex; flex-direction: column;
    border-left: 1px solid var(--line);
}
.drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }

.drawer-head {
    padding: 2rem 2rem 1.4rem; position: relative;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}
.drawer-close {
    position: absolute; top: 1.3rem; right: 1.3rem;
    width: 38px; height: 38px; border-radius: 10px;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-500); font-size: 1.3rem; cursor: pointer; line-height: 1;
    display: grid; place-items: center; transition: all .18s ease;
}
.drawer-close:hover { background: var(--paper-3); color: var(--ink-900); }
.drawer-head .icon-tile { margin-bottom: 1.1rem; }
.drawer-head .eyebrow { margin-bottom: 0.6rem; }
.drawer-title { font-size: 1.7rem; font-weight: 600; margin: 0; font-family: var(--serif); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1.6rem 2rem 2rem; }
.drawer-body .drawer-lead { font-size: 1.05rem; color: var(--ink-700); line-height: 1.7; margin: 0 0 1.2rem; }
.drawer-body .checks li { color: var(--ink-700); }
.drawer-body p { color: var(--ink-500); line-height: 1.7; }

.drawer-foot {
    padding: 1.3rem 2rem; border-top: 1px solid var(--line);
    display: flex; gap: 0.8rem; align-items: center;
    background: var(--paper-2);
}
.drawer-foot .btn { flex: 1; justify-content: center; }

@media (max-width: 560px) {
    .drawer { width: 100vw; }
    .drawer-head, .drawer-body, .drawer-foot { padding-left: 1.3rem; padding-right: 1.3rem; }
}

/* =================================================================
   PRODUCT SCREENSHOT FRAME (browser-chrome style) — light chrome
   ================================================================= */
.shot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 30px 70px -30px rgba(20, 28, 46, 0.4);
}
.shot-top {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.shot-top i { width: 11px; height: 11px; border-radius: 50%; background: var(--paper-3); display: inline-block; border: 1px solid var(--line); }
.shot-top i:first-child { background: var(--brand); border-color: var(--brand); }
.shot-top .url {
    margin-left: 0.7rem; flex: 1; max-width: 320px;
    background: #fff; border: 1px solid var(--line); border-radius: 99px;
    color: var(--ink-400); font-size: 0.72rem; padding: 0.25rem 0.8rem;
}
.shot img { display: block; width: 100%; height: auto; }

.section .shot:not(.shot-dark) { border-color: var(--line); box-shadow: 0 24px 50px -20px rgba(20, 28, 46, 0.25); }

.showcase { text-align: center; }
.showcase .shot { max-width: 1000px; margin: 2.8rem auto 0; }
.split-media.has-shot { background: none; border: 0; padding: 0; min-height: 0; }

/* reveal on scroll — only hidden when JS is present (progressive enhancement) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── Resources / blog index ────────────────────────────────────── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.post-card, .post-feature {
    position: relative; display: flex; overflow: hidden;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(20, 28, 46, 0.05);
    text-decoration: none; color: inherit;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.post-card:hover, .post-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 52px -20px rgba(20, 28, 46, 0.28);
    border-color: #b9c9d9;
}

.post-chip {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: #fff; background: var(--brand);
    box-shadow: 0 4px 14px rgba(34, 61, 89, 0.40);
    padding: 0.34rem 0.7rem; border-radius: 99px;
}

.post-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.post-readmore { color: var(--brand); font-weight: 700; font-size: 0.9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; }
.post-readmore .arrow { transition: transform .25s ease; }
.post-card:hover .post-readmore .arrow, .post-feature:hover .post-readmore .arrow { transform: translateX(4px); }

.post-card-excerpt, .post-feature-excerpt {
    color: var(--ink-500);
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}

.post-card { flex-direction: column; }
.post-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.55rem; }
.post-card-body h3 { font-size: 1.24rem; line-height: 1.32; color: var(--ink-900); font-weight: 600; }
.post-card-excerpt { font-size: 0.94rem; line-height: 1.55; -webkit-line-clamp: 3; }

.post-feature { flex-direction: row; align-items: stretch; margin-bottom: 1.6rem; }
.post-feature-media { position: relative; flex: 0 0 46%; overflow: hidden; background: var(--paper-3); min-height: 320px; }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.post-feature:hover .post-feature-media img { transform: scale(1.04); }
.post-feature-body { flex: 1; padding: 2.2rem 2.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.post-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.post-feature-body h2 { font-size: 1.85rem; line-height: 1.22; color: var(--ink-900); font-weight: 600; }
.post-feature-excerpt { font-size: 1.02rem; line-height: 1.6; -webkit-line-clamp: 4; }

@media (max-width: 760px) {
    .post-feature { flex-direction: column; }
    .post-feature-media { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; }
    .post-feature-body { padding: 1.5rem 1.4rem 1.4rem; }
    .post-feature-body h2 { font-size: 1.4rem; }
}

.post-tag {
    align-self: flex-start; display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft);
    padding: 0.28rem 0.6rem; border-radius: 99px;
}
.post-tag-row { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.post-tag-row .post-tag { background: rgba(143,176,212,0.14); color: var(--brand-accent); }

.post-meta { display: flex; gap: 0.5rem; align-items: center; color: var(--ink-400); font-size: 0.85rem; }
.post-meta-center { justify-content: center; color: #8b93a8; }

.back-link { color: #8b93a8; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 0.4rem; align-items: center; }
.back-link:hover { color: var(--brand-accent); }

.post-hero { border-radius: var(--radius); overflow: hidden; margin: 0 0 2.4rem; border: 1px solid var(--line); }
.post-hero img { width: 100%; display: block; }

/* Long-form article body */
.prose { color: var(--ink-700); font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { color: var(--ink-900); font-size: 1.85rem; line-height: 1.25; margin-top: 2.6rem; font-weight: 600; }
.prose h3 { color: var(--ink-900); font-size: 1.4rem; line-height: 1.3; margin-top: 2rem; font-weight: 600; }
.prose p { color: var(--ink-700); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: 0.5rem; }
.prose img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin: 2rem 0; }
.prose blockquote {
    border-left: 3px solid var(--brand); padding: 0.2rem 0 0.2rem 1.4rem;
    color: var(--ink-500); font-style: italic; font-size: 1.14rem; font-family: var(--serif);
}
.prose code { font-family: ui-monospace, monospace; font-size: 0.92em; background: var(--paper-3); padding: 0.12em 0.4em; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink-900); font-weight: 700; }
