/* Shared styles for the Deploy, Security & licensing and Pricing pages.
   The base block is copied from index.html's inline <style> (the homepage keeps
   its inline copy because the theme and identity contracts pin it). Keep the two in step. */
/* ========================================
   AGENTJACK DESIGN SYSTEM
   Verduona public tokens (KRA-5439) — Paper / Ink
   KRA-6073 rewrite brief (27 Sep): "Jack hunts. You decide."
   Family look: paper/ink, Fraunces headlines, Inter body,
   6px buttons, pills, faint hero grid. The hero band is the
   one place the white shepherd mark sits on ink.
   ======================================== */

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

:root {
    --color-paper: #ffffff;
    --color-ink: #000000;
    --color-line: #0000001a;
    --color-navy: #0a142f;

    --bg-primary: var(--color-paper);
    --bg-secondary: #f7f7f5;
    --bg-card: var(--color-paper);
    --text-primary: var(--color-ink);
    --text-secondary: rgba(0, 0, 0, 0.66);
    --border-subtle: var(--color-line);
    --border-strong: rgba(0, 0, 0, 0.26);
    --btn-bg: var(--color-ink);
    --btn-fg: var(--color-paper);

    --radius-btn: 6px;
    --radius-lg: 1rem;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: var(--color-ink);
    --bg-secondary: #0b0b0b;
    --bg-card: #111111;
    --text-primary: var(--color-paper);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.3);
    --btn-bg: var(--color-paper);
    --btn-fg: var(--color-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 650; letter-spacing: -0.01em; }
p, blockquote, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--color-navy); outline-offset: 3px; border-radius: 4px; }
html[data-theme="dark"] :focus-visible, .hero :focus-visible { outline-color: #9db4ff; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    padding: 10px 14px; border-radius: var(--radius-btn);
    background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Header */
.header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg-primary);
    border-bottom: 1px solid transparent;
    transition: border-color 150ms ease;
}
.header.header-scrolled { border-bottom-color: var(--border-subtle); }
.header-inner {
    width: min(1120px, calc(100% - 40px)); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo span { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.15em; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 8px 12px; border-radius: var(--radius-btn); }
.nav-links a:hover { background: var(--bg-secondary); }
.nav-links a.nav-login { border: 1px solid var(--border-strong); }
.nav-links a.nav-cta { background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
.icon-btn, .lang-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 10px;
    border: 1px solid var(--border-subtle); border-radius: 999px;
    background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.icon-btn:hover, .lang-toggle:hover { border-color: var(--border-strong); }
@media (max-width: 900px) { .nav-links a.nav-section { display: none; } }
@media (max-width: 560px) {
    .nav-links a.nav-login { display: none; }
    .logo span { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px; border-radius: var(--radius-btn);
    font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
    transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-secondary { border-color: var(--border-strong); color: var(--text-primary); background: transparent; }
.btn-secondary:hover { background: var(--bg-secondary); }

.pill {
    display: inline-block; padding: 5px 14px;
    border: 1px solid var(--border-strong); border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Hero: the one ink band, carrying the white shepherd mark */
.hero {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.74);
    --border-strong: rgba(255, 255, 255, 0.4);
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --btn-bg: #ffffff;
    --btn-fg: #000000;
    position: relative; overflow: hidden;
    background-color: #000000;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--text-primary);
    padding: 72px 0 80px;
}
html[data-theme="dark"] .hero { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.hero-lede { margin-top: 22px; max-width: 600px; font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--text-secondary); }
.hero-foundation { margin-top: 18px; max-width: 600px; font-size: clamp(1.05rem, 1.9vw, 1.22rem); font-weight: 600; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.hero-mark { justify-self: center; width: min(360px, 100%); }
.hero-mark img { width: 100%; height: auto; }
@media (max-width: 820px) {
    .hero { padding: 40px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-mark { order: -1; justify-self: start; width: 120px; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-secondary); }
.section-head { max-width: 760px; margin: 0 0 44px; }
.section-head .pill { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 0 0; border-top: 2px solid var(--text-primary); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.steps h3 { font-size: 1.12rem; }
.steps p { margin-top: 6px; color: var(--text-secondary); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--bg-card); }
.card h3 { font-size: 1.2rem; }
.card p { margin-top: 10px; color: var(--text-secondary); }
.card a { display: inline-block; margin-top: 16px; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 900px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-2, .cards-4 { grid-template-columns: 1fr; } }

.clients { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding: 28px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.clients h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.clients p { color: var(--text-secondary); }
.clients a { font-weight: 600; text-underline-offset: 3px; }

.why { max-width: 820px; }
.why h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.why blockquote { margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; }
.why figcaption { margin-top: 16px; color: var(--text-secondary); font-size: 0.95rem; }

.get-in { text-align: center; }
.get-in h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.get-in-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.get-in-note { margin-top: 16px; color: var(--text-secondary); font-size: 0.95rem; }

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--border-subtle); font-size: 0.92rem; color: var(--text-secondary); }
.footer-family { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-primary); }
.footer-row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 18px; }

/* Cookie notice */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin: 0 auto;
    padding: 12px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-btn);
    background: var(--bg-card); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0; transform: translateY(12px); transition: opacity 300ms ease, transform 300ms ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.visible { opacity: 1; transform: none; }
.cookie-content p { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.btn-cookie-dismiss { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; }
.plans-up { margin-top: 1.5rem; }
.plans-up a { font-weight: 600; text-underline-offset: 3px; }
.section-head p:not(.pill) { margin-top: 14px; color: var(--text-secondary); }

/* Sub-page additions */
.nav-links a[aria-current="page"] { background: var(--bg-secondary); }
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border-subtle); }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 860px; }
.page-hero .lede { margin-top: 20px; max-width: 720px; font-size: clamp(1.05rem, 1.9vw, 1.22rem); color: var(--text-secondary); }
.card .status, .status { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--border-strong); }
.card .status-live, .status-live { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.card ul, .prose ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--text-secondary); }
.card li + li, .prose li + li { margin-top: 6px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose p { margin-top: 12px; color: var(--text-secondary); }
.prose + .prose { margin-top: 48px; }
.note { margin-top: 28px; max-width: 760px; font-size: 0.95rem; color: var(--text-secondary); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
