/* =========================================================================
   LampCal — site stylesheet (v8)
   Layout and typography modelled on anthropic.com: an ivory page, a geometric
   sans for headings, a serif for statements, pill navigation, soft beige cards,
   mono labels on hairline rules, left-aligned two-column page openings and a
   "learn more" row of square illustrated tiles.
   LampCal's own colours, logo and original footer are kept.

   TYPE SCALE (every text on the site uses one of these)
     --fs-hero      opening statements (sans + serif)    28 → 40px
     --fs-display   page titles                           36 → 56px
     --fs-h2        section headings                      30 → 48px
     --fs-h3        card headings                         19 → 21px
     --fs-lead      serif intros                          18 → 22px
     --fs-body      body text                             16.5px
     --fs-small     card text, lists                      14.5px
     --fs-label     labels, nav, meta                     13px
   ========================================================================= */

:root {
    /* LampCal palette (unchanged), mapped onto Anthropic-style roles */
    --bg: #f4f1ea;          /* page */
    --surface: #ebe7df;     /* cards and panels */
    --surface-2: #e2ddd1;   /* secondary buttons, chips */
    --border: #d9d3c6;
    --white: #fffef9;
    --ink: #11110f;
    --ink-2: #2a2a26;
    --text: #11110f;
    --text-2: #5e5c56;
    --text-3: #8b887f;
    --acid: #d9ff43;
    --acid-2: #c8ef35;
    --line: rgba(17, 17, 15, .14);
    --positive: #2f6b4f;
    --negative: #a33a3a;

    --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --wordmark: "Roboto", Arial, sans-serif;

    --fs-hero: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
    --fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
    --fs-h2: clamp(1.875rem, 1.4rem + 1.9vw, 3rem);
    --fs-h3: clamp(1.1875rem, 1.12rem + .25vw, 1.3125rem);
    --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
    --fs-body: 1.03125rem;
    --fs-small: .90625rem;
    --fs-label: .8125rem;

    --r-card: 16px;
    --r-btn: 10px;
    --r-pill: 999px;
    --max: 1105px;
    --pad: clamp(20px, 6.3vw, 80px);
    --section: clamp(72px, 9vw, 128px);
    --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg); }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: var(--fs-body); line-height: 1.53;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.page { overflow-x: clip; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 500; padding: 8px 14px; border-radius: var(--r-btn); background: var(--ink); color: var(--bg); font-size: var(--fs-label); }
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */
.t-display { font-family: var(--sans); font-weight: 600; font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.t-h2 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.t-h3 { font-family: var(--sans); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.005em; }
.t-h4 { font-family: var(--sans); font-weight: 700; font-size: var(--fs-body); line-height: 1.35; }
.t-lead { font-family: var(--serif); font-weight: 400; font-size: var(--fs-lead); line-height: 1.42; color: var(--text); text-wrap: pretty; }
.t-body { font-size: var(--fs-body); line-height: 1.53; color: var(--text-2); }
.t-small { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.t-label { font-size: var(--fs-label); line-height: 1.5; color: var(--text-2); }
.t-mono { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.t-display em, .t-h2 em { font-style: normal; color: var(--text-3); }
.muted { color: var(--text-2); }

/* the anthropic.com opening statement: bold sans sentence, then serif */
.hero-statement { font-size: var(--fs-hero); line-height: 1.25; letter-spacing: -.01em; max-width: 29em; }
.hero-statement b { font-family: var(--sans); font-weight: 600; }
.hero-statement span { font-family: var(--serif); font-weight: 400; color: var(--text-2); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: calc(820px + 2 * var(--pad)); }
.section { padding-top: var(--section); }
.section-sm { padding-top: calc(var(--section) * .5); }
.center { text-align: center; }

/* mono label on a hairline rule ("OUR PURPOSE") */
.rule-label { display: block; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
/* bold label between two rules ("Learn more") */
.rule-bar { padding: 22px 0; margin-bottom: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-label); font-weight: 700; }

/* section opening: heading left, intro right, on a rule */
.section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start;
    padding-top: 28px; margin-bottom: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line);
}
.section-head > :only-child { grid-column: 1 / -1; }
.section-head .t-label { grid-column: 1 / -1; }
.section-head .t-lead { color: var(--text-2); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.53; padding-top: 6px; max-width: 46ch; }

/* ---------- buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 9px 20px; border: 1px solid transparent; border-radius: var(--r-btn);
    font-size: var(--fs-body); font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary, .btn-accent { background: var(--ink); color: var(--bg); }
.btn-primary:hover, .btn-accent:hover { background: var(--ink-2); }
.btn-soft { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
.btn-soft:hover { background: #d9d3c6; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.center .actions, .actions.center { justify-content: center; }

.link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.link::after { content: "→"; transition: transform .2s ease; }
.link:hover::after { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   HEADER — logo left, pill navigation
   ========================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 241, 234, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header-bar {
    max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
    height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; flex: none; color: #11110f; font-family: var(--wordmark); font-weight: 600; font-size: 22px; letter-spacing: -.04em; line-height: 1; }
.brand-mark { display: inline-flex; margin-right: 1px; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }

.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px;
    border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
    font-size: var(--fs-label); line-height: 1.5; color: var(--ink);
    transition: background .15s ease;
}
.nav-item > a:hover, .nav-item:focus-within > a, .nav-item > a[aria-current="page"] { background: var(--surface-2); }
.chev { width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-panel {
    position: absolute; top: calc(100% + 8px); left: 0; width: 280px; padding: 8px; display: grid;
    border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 18px 40px -18px rgba(17, 17, 15, .3);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; }
.nav-panel a:hover { background: var(--surface); }
.nav-panel b { font-size: var(--fs-small); font-weight: 500; }
.nav-panel small { font-size: var(--fs-label); color: var(--text-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }
.header-actions .btn { min-height: 0; padding: 6px 15px; border-radius: var(--r-pill); font-size: var(--fs-label); line-height: 1.5; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

/* =========================================================================
   PAGE OPENINGS
   ========================================================================= */
/* home: statement */
.hero { padding: clamp(40px, 5vw, 64px) 0 0; }
.hero-ghost { display: none; }

/* inner pages: big sans title left, serif intro + action right */
.hero-page {
    width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
    padding: clamp(48px, 7vw, 96px) var(--pad) 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 56px); align-items: start;
}
.hero-page > * { grid-column: 1 / -1; }
.hero-page > h1 { grid-column: 1; grid-row: span 4; }
.hero-page > .t-lead, .hero-page > .actions { grid-column: 2; }
.hero-page > .t-lead { padding-top: 10px; }
.hero-page > .actions { margin-top: 24px; }
.hero-page > .toggles { margin-top: 40px; }
.crumb { display: inline-block; margin-bottom: 18px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
a.crumb:hover { color: var(--ink); }

/* =========================================================================
   HOME — feature panel holding the product dashboard
   ========================================================================= */
.panel {
    position: relative; overflow: hidden; isolation: isolate;
    margin: clamp(40px, 5vw, 56px) clamp(0px, 1.9vw, 24px) 0;
    padding: clamp(56px, 7vw, 96px) var(--pad) clamp(40px, 5vw, 64px);
    background: var(--surface); text-align: center;
}
.panel .t-h2 { max-width: 22ch; margin: 0 auto; }
.panel .t-body { max-width: 40em; margin: 20px auto 0; font-size: var(--fs-lead); line-height: 1.5; }
.panel .actions { justify-content: center; margin-top: 26px; }
.panel .btn-primary { border-radius: var(--r-pill); }
.collage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.collage span { position: absolute; width: clamp(54px, 7vw, 92px); aspect-ratio: 1; }
.collage .art { width: 100%; height: 100%; }

/* =========================================================================
   STATEMENTS (inner pages)
   ========================================================================= */
.statement { max-width: 28em; font-family: var(--serif); font-weight: 400; font-size: var(--fs-hero); line-height: 1.25; letter-spacing: -.01em; }
.statement-note { max-width: 46em; margin-top: 22px; font-family: var(--sans); font-size: var(--fs-body); line-height: 1.53; color: var(--text-2); }
.statement .w { color: inherit !important; }
.medal { display: inline-grid; place-items: center; width: .95em; height: .95em; margin: 0 .05em; vertical-align: -.12em; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.medal svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.medal .seal { width: 92%; height: 92%; }
.medal.ink { background: var(--ink); color: var(--acid); box-shadow: none; }
.medal.acid { background: var(--acid); box-shadow: none; }

/* =========================================================================
   CARDS — beige, rounded, with a details list and full-width button
   ========================================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
    display: flex; flex-direction: column; gap: 12px; padding: 32px;
    border-radius: var(--r-card); background: var(--surface); text-align: left;
    transition: background .2s ease;
}
a.card:hover { background: var(--surface-2); }
.card .medal { font-size: 40px; margin-bottom: 4px; }
.card .t-body, .card .t-small { color: var(--text-2); }
.card .t-body { font-size: var(--fs-small); line-height: 1.5; }
.card .link { margin-top: auto; padding-top: 10px; }
.card ul { margin-top: 4px; }
.card li { padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.card-ink { background: var(--ink); color: var(--bg); }
.card-ink .t-body, .card-ink .t-small, .card-ink .t-label { color: rgba(244, 241, 234, .7); }
.card-ink li { border-color: rgba(244, 241, 234, .16); }
a.card-ink:hover { background: var(--ink-2); }
.card-acid { background: var(--acid); }
.card-acid .t-body, .card-acid .t-label { color: rgba(17, 17, 15, .72); }
.card-acid li { border-color: rgba(17, 17, 15, .14); }

.meta { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.meta .chip { display: inline-grid; place-items: center; width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 11px; letter-spacing: 1px; color: var(--text-2); }
.card-rows { margin-top: auto; padding-top: 24px; }
.card-rows div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.card-rows div span:last-child { color: var(--text-2); }
.card-rows + .btn { margin-top: 8px; }

/* four columns under a mono rule ("OUR PURPOSE") */
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.col { padding-top: 18px; border-top: 1px solid var(--line); }
.col .t-h4 { margin-bottom: 10px; }
.col p { font-size: var(--fs-body); color: var(--text-2); }

/* values: heading + paragraph left, two-column grid right */
.values { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(40px, 8vw, 110px); padding-top: 56px; border-top: 1px solid var(--line); }
.values-intro .t-body { margin-top: 18px; color: var(--text); font-size: var(--fs-lead); font-family: var(--sans); line-height: 1.5; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.values-grid .t-h3 { margin-bottom: 10px; }
.values-grid p { font-size: var(--fs-body); color: var(--text); }

/* learn-more tiles */
.tiles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-link { display: grid; gap: 14px; align-content: start; }
.tile-link .meta { margin-bottom: 2px; }
.tile-link .art { width: 100%; aspect-ratio: 264 / 330; }
.tile-link .t-h3 { margin-top: 10px; }
.tile-link .t-body { color: var(--text-3); }
.tile-link:hover .t-h3 { text-decoration: underline; text-underline-offset: 3px; }

/* generated illustrations */
.art { display: block; overflow: hidden; }
.art .ln { fill: none; stroke: #11110f; stroke-width: 1.4; }
.art .ln-thin { fill: none; stroke: #11110f; stroke-width: .8; opacity: .5; }

/* =========================================================================
   FEATURE ROWS (inner pages) — square media + text, two columns
   ========================================================================= */
.features { display: grid; gap: 16px; }
.feature {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
    padding: 32px; background: var(--surface);
}
.feature-text { max-width: 440px; }
.feature-text .t-h3 { margin-bottom: 14px; font-size: var(--fs-h3); }
.feature-text .t-body + .t-body { margin-top: 12px; }
.feature-text .link { margin-top: 20px; }
.media { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1; background: var(--white); }
.media-soft { background: #e2ddd1; }
.media-ink { background: #11110f; color: var(--white); }

.code { position: absolute; inset: 28px 0 28px 28px; overflow: hidden; text-align: left; background: rgba(255, 254, 249, .04); box-shadow: inset 0 0 0 1px rgba(255, 254, 249, .12); }
.code-head { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 254, 249, .1); }
.code-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 254, 249, .25); }
.code-head i:first-child { background: var(--acid); }
.code pre { margin: 0; padding: 16px; font: 12.5px/1.75 var(--mono); color: rgba(255, 254, 249, .88); white-space: pre; }
.code .k { color: var(--acid); }
.code .s { color: #e9e3c9; }
.code .c { color: rgba(255, 254, 249, .42); }

.tiles { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(3, 92px); gap: 12px; }
.tile { width: 92px; height: 92px; display: grid; place-items: center; align-content: center; gap: 7px; border-radius: 20px; background: var(--white); font-size: 11px; font-weight: 500; color: var(--text-2); }
.tile svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.tile.acid { background: var(--acid); color: var(--ink); }
.tile.ink { background: var(--ink); color: rgba(255, 254, 249, .7); }
.tile.ink svg { stroke: var(--acid); }

.loop { position: absolute; inset: 0; display: grid; place-items: center; }
.loop svg { width: 86%; height: auto; overflow: visible; }
.loop .ring { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.loop .ring-dash { fill: none; stroke: var(--ink); stroke-dasharray: 2 6; opacity: .35; }
.loop .runner { fill: var(--acid); stroke: var(--ink); stroke-width: 1.2; }
.loop .spin { transform-origin: 200px 200px; animation: turn 12s linear infinite; }
.loop .stop rect { fill: var(--white); }
.loop .stop text { font: 500 13px var(--sans); fill: var(--ink); }
.loop .centre { font-family: var(--serif); font-size: 32px; fill: var(--ink); }

/* =========================================================================
   LISTS, STATS, TABLES, STEPS, CHAPTERS
   ========================================================================= */
.list { max-width: none; border-top: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.list-row .n { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-3); }
.list-row .t-h4 { margin: 0; }
.list-row p { color: var(--text-2); font-size: var(--fs-body); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 28px; border-radius: var(--r-card); background: var(--surface); }
.stat strong { display: block; font-family: var(--sans); font-weight: 600; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 12px; font-size: var(--fs-small); color: var(--text-2); }

.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; font-family: var(--mono); font-size: var(--fs-label); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.table td.after { font-weight: 700; }
.table td.after span { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--acid); }

.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-label); color: var(--text-3); padding-top: 3px; }

.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.chapter + .chapter { margin-top: clamp(48px, 6vw, 72px); }
.chapter-head .t-label { display: block; margin-bottom: 10px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.chapter-head .t-h3 { margin-bottom: 16px; }
.chapter-body > * + * { margin-top: 20px; }
.chapter-body p { color: var(--text); font-size: var(--fs-body); }
.findings { display: grid; gap: 12px; }
.finding { padding: 24px; border-radius: var(--r-card); background: var(--surface); }
.finding .t-h4 { margin-bottom: 6px; }
.finding p { color: var(--text-2) !important; font-size: var(--fs-small) !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 5px 13px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-label); }
.note { padding: 16px 20px; border-radius: 12px; background: var(--surface); font-size: var(--fs-small) !important; color: var(--text-2) !important; }

/* =========================================================================
   PRICING
   ========================================================================= */
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.seg-control { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); }
.seg-control button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font-size: var(--fs-label); color: var(--text-2); }
.seg-control button.active { background: var(--ink); color: var(--bg); }
.seg-control .save { padding: 1px 8px; border-radius: var(--r-pill); background: var(--acid); color: var(--ink); font-size: 11px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-card); background: var(--surface); }
.plan.featured { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-name .t-label b { padding: 2px 10px; border-radius: var(--r-pill); background: var(--acid); color: var(--ink); font-weight: 500; }
.plan .t-h3 { margin-top: 12px; }
.plan-price { margin: 24px 0; }
.plan-price strong { display: block; font-family: var(--sans); font-weight: 600; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.02em; }
.plan-price span { display: block; margin-top: 8px; font-size: var(--fs-small); color: var(--text-2); }
.plan .btn { width: 100%; }
.plan-includes { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-includes .t-label { display: block; margin-bottom: 10px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plan-includes li { position: relative; padding: 6px 0 6px 24px; font-size: var(--fs-small); }
.plan-includes li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 12px; height: 7px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg) translateY(-50%); }
.price-hidden { display: none !important; }
.plan-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 30px; align-items: start; margin-top: 16px; }

/* =========================================================================
   FORMS / CONTACT
   ========================================================================= */
.hero-page > .contact-grid { grid-column: 1 / -1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info .t-display { margin-bottom: 20px; }
.contact-info .crumb { display: block; }
.contact-lines { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.contact-line .t-label { font-size: var(--fs-body); color: var(--text); }
.contact-line a { color: var(--text-2); }
.contact-line a:hover { color: var(--ink); }
.form-card { padding: 32px; border-radius: var(--r-card); background: var(--surface); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field span { font-size: var(--fs-label); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--white); font-size: var(--fs-body); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 15, .08); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: var(--r-btn); font-size: var(--fs-small); }
.form-msg.error { background: rgba(163, 58, 58, .1); color: var(--negative); }
.form-done { text-align: center; padding: 20px 0; }
.form-done .medal { font-size: 56px; margin-bottom: 16px; }
.form-done .t-body { margin: 10px auto 22px; max-width: 36ch; }

/* =========================================================================
   VIDEO, LEGAL, CASE LOGOS, CTA
   ========================================================================= */
.video { overflow: hidden; background: var(--ink); }
.video video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.video-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.legal-meta { position: sticky; top: 110px; align-self: start; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.prose { max-width: 680px; font-size: var(--fs-body); color: var(--text); }
.prose h2 { margin: 2.2em 0 .6em; font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; font-size: var(--fs-body); font-weight: 700; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.logo-box { display: grid; place-items: center; height: 160px; background: var(--white); }
.logo-box img { max-width: 70%; max-height: 90px; object-fit: contain; }

.cta {
    width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 56px); align-items: start;
}
.cta-inner { display: contents; }
.cta > * { grid-column: 1 / -1; }
.cta::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: 40px; }
.cta > .t-display { grid-column: 1; grid-row: span 3; font-size: var(--fs-h2); }
.cta > .t-lead, .cta > .actions { grid-column: 2; }
.cta > .actions { margin-top: 24px; }
.cta-seal { display: none; }

/* ---------- Argus dashboard — recreated from the product demo video ----------
   Laid out on the video's 1920px frame. --u is one "video pixel", so the whole
   dashboard scales with the space it has, like a crisp screenshot. Below 700px
   it switches to a stacked phone layout. */
.preview { position: relative; z-index: 1; width: min(1040px, 100%); margin: clamp(36px, 4vw, 52px) auto 0; text-align: left; }
.vd-wrap { container-type: inline-size; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(17,17,15,.10), 0 30px 70px -30px rgba(17,17,15,.35); }
.vd {
    --u: calc(100cqw / 1920);
    --vd-ink: #1b1b19; --vd-muted: #6f6d67; --vd-line: #e3e2e0;
    display: grid; grid-template-columns: calc(265 * var(--u)) 1fr;
    aspect-ratio: 1920 / 1080;
    background: #f6f5f0; color: var(--vd-ink);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; line-height: 1.25; text-align: left;
}
.vd-side { display: flex; flex-direction: column; background: #eeede8; border-right: 1px solid #e6e4de; padding: calc(60 * var(--u)) calc(16 * var(--u)) calc(56 * var(--u)); }
.vd-logo { margin-left: calc(32 * var(--u)); font-size: calc(30 * var(--u)); font-weight: 400; letter-spacing: .28em; line-height: 1; }
.vd-org { margin: calc(46 * var(--u)) 0 0 calc(32 * var(--u)); font-size: calc(14 * var(--u)); letter-spacing: .2em; text-transform: uppercase; color: var(--vd-muted); }
.vd-nav { display: grid; gap: calc(10 * var(--u)); margin-top: calc(52 * var(--u)); }
.vd-nav span { height: calc(52 * var(--u)); display: flex; align-items: center; padding: 0 calc(18 * var(--u)); border-radius: calc(12 * var(--u)); font-size: calc(21 * var(--u)); color: #2b2b28; }
.vd-nav span.on { background: #e4e3df; }
.vd-settings { margin-top: auto; padding-left: calc(32 * var(--u)); font-size: calc(21 * var(--u)); color: #2b2b28; }
.vd-main { display: flex; flex-direction: column; gap: calc(30 * var(--u)); padding: calc(64 * var(--u)) calc(55 * var(--u)) calc(46 * var(--u)) calc(55 * var(--u)); min-width: 0; }
.vd-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: calc(4 * var(--u)); }
.vd-crumb { font-size: calc(17 * var(--u)); color: var(--vd-muted); }
.vd-title { margin-top: calc(16 * var(--u)); font-size: calc(50 * var(--u)); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.vd-sub { margin-top: calc(18 * var(--u)); font-size: calc(20 * var(--u)); color: var(--vd-muted); }
.vd-select { position: relative; width: calc(468 * var(--u)); height: calc(60 * var(--u)); margin-top: calc(32 * var(--u)); display: flex; align-items: center; padding: 0 calc(24 * var(--u)); border-radius: calc(14 * var(--u)); background: #fff; box-shadow: 0 0 0 1px var(--vd-line); font-size: calc(21 * var(--u)); }
.vd-select i { position: absolute; right: calc(28 * var(--u)); top: 50%; width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-right: calc(2 * var(--u)) solid #555; border-bottom: calc(2 * var(--u)) solid #555; transform: translateY(-70%) rotate(45deg); }
.vd-card { background: #fff; border-radius: calc(18 * var(--u)); box-shadow: 0 0 0 1px var(--vd-line); }
.vd-brief { padding: calc(30 * var(--u)) calc(36 * var(--u)); }
.vd-brief-title { font-size: calc(21 * var(--u)); font-weight: 600; }
.vd-brief-text { margin-top: calc(14 * var(--u)); font-size: calc(19 * var(--u)); }
.vd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(23 * var(--u)); }
.vd-kpi { min-height: calc(150 * var(--u)); padding: calc(24 * var(--u)) calc(28 * var(--u)); display: flex; flex-direction: column; line-height: 1.2; }
.vd-kpi span { font-size: calc(15 * var(--u)); letter-spacing: .1em; text-transform: uppercase; color: var(--vd-muted); }
.vd-kpi strong { margin-top: calc(12 * var(--u)); font-size: calc(42 * var(--u)); font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.vd-kpi em { margin-top: calc(13 * var(--u)); font-style: normal; font-size: calc(16 * var(--u)); color: var(--vd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-kpi em.pos { color: #2f6b4f; }
.vd-kpi em.neg { color: #a33a3a; }
.vd-lower { flex: 1; min-height: 0; display: grid; grid-template-columns: 1001fr 520fr; gap: calc(24 * var(--u)); }
.vd-card-title { font-size: calc(22 * var(--u)); font-weight: 600; margin-bottom: calc(26 * var(--u)); }
.vd-perf, .vd-attn { padding: calc(34 * var(--u)) calc(36 * var(--u)); }
.vd-row { display: grid; grid-template-columns: calc(224 * var(--u)) calc(480 * var(--u)) 1fr auto; align-items: center; height: calc(62 * var(--u)); font-size: calc(20 * var(--u)); }
.vd-row b { display: block; height: calc(14 * var(--u)); border-radius: calc(7 * var(--u)); background: #eae6e3; overflow: hidden; }
.vd-row b i { display: block; height: 100%; border-radius: inherit; background: #c8e78a; }
.vd-row span:nth-child(3) { padding-left: calc(30 * var(--u)); font-size: calc(18 * var(--u)); }
.vd-row span:nth-child(4) { font-size: calc(18 * var(--u)); color: var(--vd-muted); }
.vd-item { display: grid; gap: calc(6 * var(--u)); margin-bottom: calc(28 * var(--u)); }
.vd-item strong { font-size: calc(19 * var(--u)); font-weight: 400; }
.vd-item span { font-size: calc(17 * var(--u)); color: var(--vd-muted); }
.vd-ask { height: calc(96 * var(--u)); flex: none; margin-top: calc(-22 * var(--u)); display: flex; flex-direction: column; justify-content: center; gap: calc(10 * var(--u)); padding: 0 calc(40 * var(--u)); border-radius: calc(18 * var(--u)); background: #181d19; }
.vd-ask span { font-size: calc(15 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.vd-ask div { font-size: calc(26 * var(--u)); color: rgba(255,255,255,.62); }

/* phone layout: same content, stacked, readable */
@container (max-width: 700px) {
    .vd { --u: .62px; grid-template-columns: 1fr; aspect-ratio: auto; }
    .vd-side { display: none; }
    .vd-main { padding: 22px 16px 18px; gap: 14px; }
    .vd-head { flex-direction: column; gap: 14px; }
    .vd-crumb { font-size: 12px; }
    .vd-title { font-size: 28px; margin-top: 8px; }
    .vd-sub { font-size: 13px; margin-top: 8px; }
    .vd-select { width: 100%; height: 40px; margin: 0; font-size: 14px; padding: 0 14px; border-radius: 10px; }
    .vd-brief { padding: 16px; }
    .vd-brief-title { font-size: 14px; }
    .vd-brief-text { font-size: 13px; margin-top: 6px; }
    .vd-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .vd-kpi { height: auto; padding: 14px; }
    .vd-kpi span { font-size: 10px; }
    .vd-kpi strong { font-size: 22px; margin-top: 8px; }
    .vd-kpi em { font-size: 11px; margin-top: 8px; white-space: normal; }
    .vd-lower { grid-template-columns: 1fr; gap: 10px; }
    .vd-perf, .vd-attn { padding: 16px; }
    .vd-card-title { font-size: 15px; margin-bottom: 10px; }
    .vd-row { grid-template-columns: 90px 1fr auto; column-gap: 10px; height: 34px; font-size: 13px; }
    .vd-row span:nth-child(3) { padding: 0; font-size: 12px; }
    .vd-row span:nth-child(4) { display: none; }
    .vd-item { margin-bottom: 12px; gap: 2px; }
    .vd-item strong { font-size: 13px; }
    .vd-item span { font-size: 12px; }
    .vd-ask { height: auto; margin: 0; padding: 14px 16px; gap: 6px; border-radius: 12px; }
    .vd-ask span { font-size: 9px; }
    .vd-ask div { font-size: 14px; }
}

/* ---------- footer: the original LampCal footer, unchanged ---------- */
.site-footer {
    padding: 90px clamp(22px, 4vw, 66px) 28px;
    margin-top: clamp(20px, 3vw, 40px);
    font-family: "Roboto", Arial, sans-serif;
    line-height: normal;
    letter-spacing: normal;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    padding-bottom: 75px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -.04em;
    color: #11110f;
}
.footer-brand-mark {
    display: inline-flex;
    width: 36px;
    height: 44px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: flex-start;
    margin-right: 1px;
}
.footer-brand-mark svg { display: block; width: 36px; height: 44px; overflow: visible; }
.footer-top > div:first-child > p {
    max-width: 360px;
    margin: 28px 0 0;
    color: #69675f;
    line-height: 1.6;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-links > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}
.footer-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #939088;
    margin-bottom: 8px;
}
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 15, .18);
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #7d7a72;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* =========================================================================
   SEAL
   ========================================================================= */
.seal { width: 100%; height: auto; overflow: visible; color: var(--ink); }
.seal .seal-line { fill: none; stroke: currentColor; stroke-width: .9; opacity: .7; }
.seal .seal-line-strong { stroke-width: 1.8; opacity: 1; }
.seal .seal-ticks line { stroke: currentColor; stroke-width: .8; opacity: .55; }
.seal .seal-legend text { font: 600 15.4px var(--sans); letter-spacing: 3.2px; fill: currentColor; }
.seal .seal-legend { transform-origin: 250px 250px; animation: turn 120s linear infinite; }
.seal .seal-rosette path { fill: none; stroke: currentColor; stroke-width: .5; opacity: .5; }
.seal .seal-rosette .seal-rosette-b { opacity: .3; }
.seal .seal-eyes circle { fill: currentColor; opacity: .5; }
.seal .seal-eyes .eye-lit { fill: var(--acid-2); opacity: 1; stroke: var(--ink); stroke-width: .6; }
.seal .seal-iris-bg { fill: var(--white); }
.seal .seal-iris line { stroke: currentColor; stroke-width: .7; opacity: .7; }
.seal .seal-pupil { fill: var(--ink); }
.seal .seal-pupil-core { fill: var(--acid); }
.seal .seal-glow { opacity: .9; }
@keyframes turn { to { transform: rotate(360deg); } }

/* =========================================================================
   MOTION (only while the site script runs; content always visible without it)
   ========================================================================= */
.anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .footer-top { grid-template-columns: 1fr; gap: 55px; }
    .tiles-4, .cols-4, .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .values { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .nav, .header-actions a.btn { display: none; }
    .header-actions .menu-btn { display: inline-flex; }
    .site-header-bar { height: 68px; }
    .mobile-nav {
        position: fixed; z-index: 99; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto;
        display: grid; align-content: start; gap: 24px; padding: 20px var(--pad) 32px;
        background: var(--bg); border-top: 1px solid var(--line);
        opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
    }
    .nav-open .mobile-nav { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    .mobile-nav nav { display: grid; border-top: 1px solid var(--line); }
    .mobile-nav nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-lead); font-weight: 500; }
    .mobile-nav nav a.sub { padding-left: 18px; font-size: var(--fs-body); font-weight: 400; color: var(--text-2); }
    .mobile-nav .btn { justify-self: start; }

    .hero-page, .cta, .section-head, .contact-grid, .chapter, .legal, .plan-wide { grid-template-columns: minmax(0, 1fr); }
    .hero-page > h1, .hero-page > .t-lead, .hero-page > .actions, .cta > .t-display, .cta > .t-lead, .cta > .actions { grid-column: 1; grid-row: auto; }
    .hero-page > .t-lead, .cta > .t-lead { padding-top: 18px; }
    .legal-meta { position: static; }
    .grid-3, .price-grid { grid-template-columns: minmax(0, 1fr); }
    .feature { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .feature-text { max-width: none; }
}

@media (max-width: 760px) {
    .site-footer { padding-top: 70px; }
    .footer-links { grid-template-columns: 1fr 1fr; row-gap: 45px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
    .cols-4, .grid-4, .grid-2, .stats, .values-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
    .tiles-4 { gap: 24px 12px; }
    .card, .plan, .form-card { padding: 24px; }
    .panel { padding-left: 20px; padding-right: 20px; }
    .collage { display: none; }
    .list-row { grid-template-columns: 36px minmax(0, 1fr); }
    .list-row p { grid-column: 2; }
    .tiles { grid-template-columns: repeat(2, 84px); }
    .tile { width: 84px; height: 84px; }
    .table th, .table td { padding: 12px 14px; }
}

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

@media print {
    .site-header, .mobile-nav { display: none; }
}
