/* ============================================================================
   Lucas0 Design System 2026
   AI financial research agent. Instrument-panel language: hairline grids,
   tabular figures, monospace metadata, sourced numbers.

   Palette validated for categorical use on both surfaces
   (OKLCH lightness band, chroma floor, CVD separation, contrast).
     dark surface  #0E1524 -> #3D6FF6 #0FA97D #D4732A #8E7BF2 #D4536E
     light surface #F5F7FB -> #2B5BE0 #0B8F68 #B85E1E #7259D8 #B8425C
   ============================================================================ */

:root {
    /* Ground */
    --ink:        #070B14;
    --panel:      #0E1524;
    --panel-2:    #131C2E;
    --panel-3:    #18223A;
    --line:       #1E2942;
    --line-soft:  rgba(255, 255, 255, 0.07);

    /* Paper (light bands) */
    --paper:      #F5F7FB;
    --paper-2:    #FFFFFF;
    --paper-line: #DEE4EF;

    /* Ink on ground */
    --text:       #E7ECF5;
    --text-2:     #B7C2D6;
    --muted:      #93A1BC;
    --faint:      #64728F;

    /* Ink on paper */
    --on-paper:      #0B1220;
    --on-paper-2:    #38455F;
    --on-paper-mute: #647089;

    /* Signature + data */
    --signal:     #3D6FF6;
    --signal-hi:  #5B85FF;
    --signal-ink: #2B5BE0;
    --jade:       #0FA97D;
    --jade-ink:   #0B8F68;
    --ember:      #D4732A;
    --ember-ink:  #B85E1E;
    --violet:     #8E7BF2;
    --rose:       #D4536E;

    /* Type */
    --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Rhythm */
    --wrap: 1180px;
    --band-y: clamp(3.75rem, 6.5vw, 6rem);
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    /* Legacy tokens used by main.css, retargeted so old pages follow along */
    --color-primary: #3D6FF6;
    --color-secondary: #3D6FF6;
    --color-accent: #2B5BE0;
    --color-dark: #E7ECF5;
    --color-light: #0E1524;
    --gradient-primary: linear-gradient(135deg, #3D6FF6 0%, #2B5BE0 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================================
   Base
   ============================================================================ */

html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* The old theme painted a fixed grid over everything. */
body::before { display: none !important; content: none !important; }

body h1, body h2, body h3, body h4, body h5 {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--text);
}

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

a { color: var(--signal-hi); text-decoration: none; }
a:hover { color: var(--text); }

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

.l0-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Tabular figures everywhere a number is a number. */
.l0-num, .trace-val, .plan-price {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

/* ============================================================================
   Bands
   ============================================================================ */

.l0-band {
    position: relative;
    padding: var(--band-y) 0;
    border-top: 1px solid var(--line);
}
.l0-band--ink   { background: var(--ink); }
.l0-band--panel { background: var(--panel); }
.l0-band--paper {
    background: var(--paper);
    color: var(--on-paper);
    border-top-color: var(--paper-line);
}
.l0-band--paper h2,
.l0-band--paper h3,
.l0-band--paper h4 { color: var(--on-paper); }
.l0-band--paper p  { color: var(--on-paper-2); }

/* Section heading block. Deliberately not .section-header: that class is
   claimed by the legacy scroll animator in main.js. */
.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal-hi);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}
.l0-band--paper .eyebrow { color: var(--signal-ink); }

.band-title {
    font-size: clamp(1.9rem, 3.9vw, 2.9rem);
    margin: 0 0 1rem;
    text-wrap: balance;
}
.band-sub {
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    color: var(--muted);
    max-width: 42rem;
    margin: 0;
}
.band-head--center .band-sub { margin-inline: auto; }

/* ============================================================================
   Buttons
   ============================================================================ */

.l0-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-family: var(--body);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.l0-btn svg { flex: none; }

.l0-btn--primary {
    background: var(--signal);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
}
.l0-btn--primary:hover { background: var(--signal-hi); color: #fff; transform: translateY(-1px); }

.l0-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.l0-btn--ghost:hover { border-color: var(--signal); color: var(--text); background: rgba(61, 111, 246, 0.08); }

.l0-band--paper .l0-btn--ghost { color: var(--on-paper); border-color: var(--paper-line); }
.l0-band--paper .l0-btn--ghost:hover { border-color: var(--signal-ink); background: rgba(43, 91, 224, 0.06); }

.l0-btn--block { width: 100%; }
.l0-btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* ============================================================================
   Nav
   ============================================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}
.site-header .container,
.site-footer .container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.navbar { background: transparent; border: 0; box-shadow: none; padding: 0; }
.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 66px;
}
.navbar-brand .logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.navbar-brand img { width: 28px; height: 28px; filter: none !important; border-radius: 6px; }
.logo-text {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-family: var(--mono);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.16s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-link-login { color: var(--muted); }
.nav-links a.nav-link-login:hover { color: var(--text); }
.navbar-cta .btn,
.navbar-cta .l0-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--r-sm);
    background: var(--signal);
    color: #fff;
    border: 0;
    font-weight: 600;
}
.navbar-cta .btn:hover { background: var(--signal-hi); color: #fff; }

.mobile-menu-toggle { background: none; border: 0; cursor: pointer; padding: 0.5rem; display: none; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
.mobile-menu { background: var(--panel); border-bottom: 1px solid var(--line); }
.mobile-nav-links { list-style: none; margin: 0; padding: 1rem 1.5rem 1.5rem; }
.mobile-nav-links li { margin: 0.35rem 0; }
.mobile-nav-links a { color: var(--text); font-size: 0.98rem; }

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    border-top: 0;
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
/* A quiet coordinate grid, the way a terminal draws its ground. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(147, 161, 188, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(147, 161, 188, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(105% 78% at 22% 24%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(105% 78% at 22% 24%, #000 20%, transparent 78%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: -12%;
    top: -32%;
    width: 62%;
    height: 105%;
    background: radial-gradient(closest-side, rgba(61, 111, 246, 0.20), transparent 72%);
    pointer-events: none;
    filter: blur(6px);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.hero-title {
    text-wrap: balance;
    font-size: clamp(2.5rem, 5.6vw, 4.2rem);
    line-height: 1.02;
    margin: 0 0 1.4rem;
    letter-spacing: -0.035em;
}
.hero-title em {
    font-style: normal;
    color: var(--signal-hi);
}
.hero-lede {
    font-size: clamp(1.05rem, 1.9vw, 1.22rem);
    line-height: 1.62;
    color: var(--text-2);
    max-width: 34rem;
    margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.8rem; }

.disclaimer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: var(--faint);
    margin: 0;
}
.disclaimer-chip svg { flex: none; opacity: 0.8; }
.disclaimer-chip strong { color: var(--muted); font-weight: 400; }

/* ---- The signature: a research trace ---- */

.trace {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 32px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(61, 111, 246, 0.08);
}
.trace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.trace-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--jade); }
.trace-live::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--jade);
    box-shadow: 0 0 0 0 rgba(15, 169, 125, 0.55);
    animation: tracePulse 2.4s ease-out infinite;
}
@keyframes tracePulse {
    0%   { box-shadow: 0 0 0 0 rgba(15, 169, 125, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(15, 169, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 169, 125, 0); }
}

.trace-ask {
    display: flex;
    gap: 0.7rem;
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text);
}
.trace-ask span:first-child { color: var(--signal-hi); font-family: var(--mono); flex: none; }

.trace-steps { list-style: none; margin: 0; padding: 0.85rem 0.4rem 0.85rem 0; }
.trace-step {
    display: grid;
    grid-template-columns: 4.6rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 1.15rem;
    font-family: var(--mono);
    font-size: 0.775rem;
    color: var(--text-2);
}
.trace-time { color: var(--faint); font-variant-numeric: tabular-nums; }
.trace-tool { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-ok { color: var(--jade); font-size: 0.72rem; letter-spacing: 0.06em; }

.trace-out {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(61, 111, 246, 0.05), transparent 60%);
    padding: 1.15rem;
}
.trace-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 1rem; }
.trace-metric {
    border-left: 2px solid var(--line);
    padding-left: 0.7rem;
}
.trace-metric:nth-child(1) { border-left-color: var(--signal); }
.trace-metric:nth-child(2) { border-left-color: var(--jade); }
.trace-metric:nth-child(3) { border-left-color: var(--violet); }
.trace-key {
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--faint);
    display: block;
    margin-bottom: 0.25rem;
}
.trace-val {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.32rem;
    letter-spacing: -0.02em;
    color: var(--text);
    display: block;
    line-height: 1.15;
}
.trace-src {
    font-family: var(--mono);
    font-size: 0.63rem;
    color: var(--signal-hi);
    letter-spacing: 0.02em;
}
.trace-plot { margin: 0.2rem 0 0.9rem; }
.trace-plot svg { display: block; width: 100%; height: auto; }
.trace-foot {
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--faint);
    letter-spacing: 0.04em;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
}

/* Load sequence: the trace fills in the way a real one does. */
.trace-step, .trace-out > * { animation: traceIn 0.5s ease-out both; }
.trace-step:nth-child(1) { animation-delay: 0.35s; }
.trace-step:nth-child(2) { animation-delay: 0.55s; }
.trace-step:nth-child(3) { animation-delay: 0.75s; }
.trace-step:nth-child(4) { animation-delay: 0.95s; }
.trace-out > *:nth-child(1) { animation-delay: 1.15s; }
.trace-out > *:nth-child(2) { animation-delay: 1.28s; }
.trace-out > *:nth-child(3) { animation-delay: 1.4s; }
@keyframes traceIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================================
   Capabilities. Plain columns on hairlines, no boxes.
   ============================================================================ */

.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.5rem);
}
.cap-col { min-width: 0; }
.cap-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.06rem;
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}
.cap-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cap-dot--1 { background: var(--signal); }
.cap-dot--2 { background: var(--jade); }
.cap-dot--3 { background: var(--violet); }
.cap-dot--4 { background: var(--ember); }
.cap-dot--5 { background: var(--rose); }
.cap-dot--6 { background: var(--signal-hi); }
.cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.62rem; }
.cap-list li {
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--text-2);
    padding-left: 1rem;
    position: relative;
}
.cap-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 1px;
    background: var(--faint);
}

/* ============================================================================
   Instruments: what the agents found
   ============================================================================ */

.instr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
/* Kept at --panel: the validated chart surface the SVG colours were checked
   against, and the colour the heatmap cell gaps are stroked with. */
.instr { background: var(--panel); margin: 0; padding: 1.5rem 1.4rem 1.6rem; }
.instr-head { display: flex; flex-direction: column; gap: 0.28rem; margin-bottom: 1.1rem; }
.instr-tool {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.02rem;
    letter-spacing: -0.015em;
    color: var(--text);
}
.instr-desc {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--faint);
}
.instr svg { display: block; width: 100%; height: auto; }

/* ============================================================================
   Pipeline (light band)
   ============================================================================ */

.pipe { margin-top: 0.5rem; }
.pipe svg { display: block; width: 100%; height: auto; }
.pipe-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--on-paper-mute);
}
.pipe-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }
.pipe-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }

.stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-top: 2.5rem;
}
.stage {
    background: var(--paper-2);
    padding: 1.6rem 1.4rem;
}
.stage-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal-ink);
    display: block;
    margin-bottom: 0.7rem;
}
.stage h3 { font-size: 1.08rem; margin: 0 0 0.5rem; }
.stage p { font-size: 0.92rem; line-height: 1.6; margin: 0; color: var(--on-paper-2); }

/* ============================================================================
   Showcase: video + screenshots
   ============================================================================ */

.chrome {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
}
.chrome-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.95rem;
    background: var(--panel-2);
    border-bottom: 1px solid var(--line);
}
.chrome-dots { display: flex; gap: 0.35rem; flex: none; }
.chrome-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.chrome-path {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.04em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.chrome video, .chrome img { display: block; width: 100%; height: auto; }

.shots { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 2.5rem; }
.shot { background: var(--panel); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.shot-img { padding: 1.4rem; display: flex; align-items: center; background: var(--panel-2); }
.shot-img img { width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; }
.shot-note { padding: 1.7rem 1.6rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.shot-note h3 { font-size: 1.1rem; margin: 0 0 0.55rem; }
.shot-note p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin: 0; }

.figcap {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    color: var(--faint);
    margin-top: 0.9rem;
}
.l0-band--paper .figcap { color: var(--on-paper-mute); }

/* ============================================================================
   Pricing
   ============================================================================ */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.plan-card {
    background: var(--paper-2);
    padding: 2rem 1.7rem 2.1rem;
    display: flex;
    flex-direction: column;
}
.plan-card--featured { background: #FFFFFF; box-shadow: inset 0 3px 0 var(--signal-ink); }

/* Always rendered, so the three cards start their headings on the same line
   whether or not they carry a badge. */
.plan-badge-slot { min-height: 1.85rem; margin-bottom: 0.4rem; }
.plan-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.63rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--signal-ink);
    border: 1px solid rgba(43, 91, 224, 0.3);
    background: rgba(43, 91, 224, 0.07);
    border-radius: 100px;
    padding: 0.24rem 0.6rem;
}
.plan-name { font-size: 1.25rem; margin: 0 0 0.3rem; }
.plan-for {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-paper-mute);
    margin: 0 0 1.3rem;
}
.plan-price {
    font-family: var(--display);
    font-weight: 800;
    font-stretch: 115%;
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--on-paper);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    min-height: 2.6rem;
}
/* "Custom" is a word, not a figure. Setting it at the numeral size makes the
   two sales tiers shout louder than the one with an actual price. */
.plan-price--word { font-size: clamp(1.55rem, 2.4vw, 1.9rem); align-items: center; }
.plan-per { font-family: var(--mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.04em; color: var(--on-paper-mute); margin-left: 0.15rem; }
.plan-feats { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.68rem; flex: 1; }
.plan-feats li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--on-paper-2);
    line-height: 1.45;
}
.plan-feats svg { flex: none; margin-top: 0.22rem; color: var(--jade-ink); }
.plan-card .l0-btn--primary { background: var(--signal-ink); }
.plan-card .l0-btn--primary:hover { background: var(--signal); }

/* ============================================================================
   Closing call
   ============================================================================ */

.close-band { text-align: center; }
.close-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 1rem; text-wrap: balance; max-width: 40rem; margin-inline: auto; }
.close-sub { color: var(--muted); font-size: 1.05rem; margin: 0 auto 2rem; max-width: 34rem; }
.close-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.close-fine { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); margin-top: 1.5rem; }

/* ============================================================================
   Footer
   ============================================================================ */

.site-footer {
    background: var(--panel) !important;
    border-top: 1px solid var(--line) !important;
    color: var(--text-2) !important;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    box-shadow: none !important;
}
.site-footer * { color: inherit !important; }
.footer-content {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr) 1.4fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}
.footer-logo { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem; }
.footer-logo img { width: 26px; height: 26px; filter: none !important; border-radius: 6px; }
.footer-logo-text {
    font-family: var(--display) !important;
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    color: var(--text) !important;
}
.footer-description { font-size: 0.87rem; line-height: 1.65; color: var(--muted) !important; margin: 0; max-width: 26rem; }
.footer-heading {
    font-family: var(--mono) !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint) !important;
    margin: 0 0 1rem;
    font-stretch: normal;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--text-2) !important; }
.footer-links a:hover { color: var(--text) !important; }
.footer-cta-section { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 3vw, 2rem); }
.footer-cta-text { font-size: 0.87rem; color: var(--muted) !important; margin: 0 0 1.1rem; line-height: 1.6; }
.btn-footer, .footer-cta-section .l0-btn {
    background: var(--signal) !important;
    color: #fff !important;
    border-radius: var(--r-sm);
    padding: 0.7rem 1.1rem;
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    width: auto;
}
.footer-bottom { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; }
.footer-bottom-content { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.copyright { font-family: var(--mono) !important; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--faint) !important; margin: 0; }
.footer-legal-note { font-family: var(--mono) !important; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--faint) !important; margin: 0; }

.back-to-top {
    background: var(--panel-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-sm) !important;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: none !important;
}
.back-to-top:hover { border-color: var(--signal) !important; }

/* ============================================================================
   Inner pages: about, contact, legal
   ============================================================================ */

/* One measured column, left aligned inside it. main.css centres these blocks
   at different widths, which left the title and the body on different axes. */
.page-content { background: var(--ink); padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.page-content .container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    text-align: left;
}
.page-header {
    max-width: none;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin: 0 0 0.9rem; color: var(--text); text-align: left; text-wrap: balance; }
.page-subtitle { font-size: 1.08rem; color: var(--muted); margin: 0; line-height: 1.6; text-align: left; }
.page-body { max-width: none; font-size: 1rem; line-height: 1.75; color: var(--text-2); text-align: left; }
.page-body h2 {
    font-size: 1.5rem;
    margin: 2.75rem 0 0.9rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    color: var(--text);
}
.page-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-body h3 { font-size: 1.12rem; margin: 1.9rem 0 0.6rem; color: var(--text); }
.page-body p { margin: 0 0 1.1rem; }
.page-body ul, .page-body ol { margin: 0 0 1.3rem; padding-left: 1.25rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body strong { color: var(--text); font-weight: 600; }
.page-body a { color: var(--signal-hi); text-decoration: underline; text-underline-offset: 3px; }
.page-body code { font-family: var(--mono); font-size: 0.86em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.1em 0.35em; }
.page-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.92rem; }
.page-body th, .page-body td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.page-body th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.security-badge, .l0-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--signal-hi);
    background: rgba(61, 111, 246, 0.08);
    border: 1px solid rgba(61, 111, 246, 0.28);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
}

/* Contact page reuses the legacy card classes. */
.feature-box, .contact-form-wrapper {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.6rem 1.5rem;
}
.feature-box h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.feature-box p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pricing-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1.8rem 1.5rem;
}
.pricing-card-featured { border-color: var(--signal); }
.pricing-amount, .price-amount {
    font-family: var(--display);
    font-weight: 800;
    font-stretch: 115%;
    letter-spacing: -0.03em;
    color: var(--text);
}
.form-description, .pricing-note { color: var(--muted); font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="url"], textarea, select {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--body);
    font-size: 0.95rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--signal); outline: none; }
input[type="submit"], button[type="submit"] {
    background: var(--signal);
    color: #fff;
    border: 0;
    border-radius: var(--r-sm);
    padding: 0.8rem 1.5rem;
    font-family: var(--body);
    font-weight: 600;
    cursor: pointer;
}
input[type="submit"]:hover, button[type="submit"]:hover { background: var(--signal-hi); }

/* Contact Form 7 */
.wpcf7-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.wpcf7-form p { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wpcf7-form label { font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input[type="submit"] { align-self: flex-start; margin-top: 0.4rem; }
.wpcf7-not-valid-tip { color: var(--rose); font-size: 0.82rem; margin-top: 0.3rem; }
.wpcf7-response-output { border-radius: var(--r-sm); border: 1px solid var(--line); padding: 0.8rem 1rem; font-size: 0.88rem; margin-top: 1rem; }

/* ============================================================================
   Reveal on scroll. Content is visible by default; only a browser that has
   run the script hides it, and only until it scrolls into view.
   ============================================================================ */

html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .tape-grid { grid-template-columns: repeat(2, 1fr); }
    .tape-cell:nth-child(3) { border-left: 0; }
    .tape-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-cta-section { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
    .shot { grid-template-columns: 1fr; }
    .shot-note { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .navbar-menu, .navbar-cta { display: none; }
    .mobile-menu-toggle { display: block; }
}

@media (max-width: 560px) {
    .tape-grid { grid-template-columns: 1fr; }
    .tape-cell { border-left: 0; border-top: 1px solid var(--line); }
    .tape-cell:first-child { border-top: 0; }
    .trace-metrics { grid-template-columns: 1fr; gap: 0.7rem; }
    .trace-step { grid-template-columns: 4.2rem 1fr auto; font-size: 0.72rem; padding-inline: 0.95rem; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-actions .l0-btn, .close-actions .l0-btn { width: 100%; }
}

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