/* nurax.ai site styles: white + black, lime used sparingly. Used by every page. */
/* Plus Jakarta Sans, self-hosted (SIL Open Font License). One variable file per script covers weights 300–800. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
    src: url('/fonts/plus-jakarta-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
    src: url('/fonts/plus-jakarta-sans-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; }
:root {
    --white: #FFFFFF;
    --alt: #F6F6F4;
    --ink: #0A0A0A;
    --ink-hover: #262626;
    --muted: #5F5F5F;
    --line: #E8E8E8;
    --lime: #C6ED89;          /* rgb(198,237,137): highlights only, never text */
    --radius: 16px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px;
    font: 600 0.95rem/1 var(--font-main);
    text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--alt); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Nav ---------- */
.navbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero mark {
    background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
    color: inherit; padding: 0 .08em;
}
.lead { max-width: 640px; margin: 26px auto 0; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 0; margin: 32px 0 0; font-size: 0.9rem; color: var(--muted); }
.trust-row li::before { content: "✓"; font-weight: 700; color: var(--ink); margin-right: 8px; }

/* ---------- Console (live feed) ---------- */
.console {
    max-width: 860px; margin: 64px auto 0; text-align: left;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 48px -24px rgba(0,0,0,.12);
    overflow: hidden;
}
.console-sm { margin: 0; max-width: none; box-shadow: none; }
.console-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--alt); }
.console-title { font-weight: 600; font-size: 0.9rem; }
.console-meta { margin-left: auto; font-size: 0.8rem; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(198,237,137,.35), inset 0 0 0 1px rgba(0,0,0,.15); }

.activity-log { list-style: none; margin: 0; padding: 16px 20px; min-height: 300px; font-size: 0.9rem; }
.console-sm .activity-log { min-height: 280px; font-size: 0.85rem; }
.activity-log li {
    display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: baseline;
    padding: 7px 0; border-bottom: 1px dashed var(--line);
    opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.activity-log li:last-child { border-bottom: 0; }
.activity-log li.visible { opacity: 1; transform: none; }
.log-time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; color: #9A9A9A; }
.log-tag {
    font-size: 0.7rem; font-weight: 700; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 6px; min-width: 52px; text-align: center;
    border: 1px solid var(--line); color: var(--muted); background: var(--white);
}
.tag-critical { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tag-success { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.log-msg { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: #CFCFCF; transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0,0,0,.18); }
.icon-box { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.9rem; }
.ticks li { padding: 5px 0 5px 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.card-link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); background: var(--white); }
.compare-col h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.compare-col li::before { position: absolute; left: 0; top: 12px; font-weight: 700; }
.compare-col:not(.compare-ours) { color: var(--muted); }
.compare-col:not(.compare-ours) li::before { content: "✕"; color: #A0A0A0; }
.compare-ours { background: var(--ink); color: var(--white); border-color: var(--ink); }
.compare-ours li { border-top-color: rgba(255,255,255,.14); }
.compare-ours li::before { content: "✓"; color: var(--white); }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-text { order: 2; }
.step-num { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.feature-text h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; }
.feature-text p { margin-top: 16px; font-size: 1.05rem; color: var(--muted); max-width: 460px; }

.mini-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 20px 22px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.16); }
.mini-head { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.mini-list b { font-weight: 600; font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--white); white-space: nowrap; }
.mini-list b.muted { background: var(--alt); color: var(--ink); border: 1px solid var(--line); }
.mini-q { font-weight: 600; font-size: 1.05rem; }
.mini-approve { margin: 14px 0 16px; }
.chip-ok { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }
.mini-log { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.mini-log li { padding: 9px 0; border-top: 1px solid var(--line); }
.mini-log time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); margin-right: 10px; font-size: 0.8rem; }

/* Integrations */
.logo-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.logo-group h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 500; text-decoration: none; background: var(--white); }
.logo-chip img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; }
a.logo-chip:hover { border-color: var(--ink); }

/* Security (dark band) */
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .kicker, .section-dark .section-head p { color: #A3A3A3; }
.dark-item { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.dark-item h3 { font-size: 1.1rem; font-weight: 700; }
.dark-item p { margin-top: 10px; color: #A3A3A3; font-size: 0.95rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: wk; }
.timeline li { border-top: 2px solid var(--ink); padding-top: 22px; }
.week { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.timeline h3 { font-size: 1.15rem; font-weight: 700; }
.timeline p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--muted); }

/* Final CTA */
.cta-section { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.cta-inner p { margin: 16px 0 32px; color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) { .cta-actions { width: 100%; } .cta-actions .btn { width: 100%; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-col .logo { margin-bottom: 16px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.footer-col p { color: var(--muted); margin-bottom: 8px; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(10,10,10,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: 20px; padding: 36px 32px 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.modal-container h2 { font-size: 1.6rem; font-weight: 700; }
.modal-container > p { margin-top: 8px; color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-form { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.modal-input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font: 500 0.95rem var(--font-main); color: var(--ink); background: var(--white); }
.modal-input:focus { outline: none; border-color: var(--ink); }
.modal-form .btn { margin-top: 6px; }
.form-privacy { font-size: 0.78rem; color: var(--muted); }
.form-privacy a { color: var(--ink); }
/* main.js colours the status message inline (yellow/red); keep it readable on white */
.modal-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; font-size: 0.88rem; color: var(--muted); cursor: pointer; line-height: 1.45; }
.modal-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #0A0A0A; cursor: pointer; }
.modal-message { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #F3FBE7; color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
.modal-message.is-error { background: #FDECEC; color: #B3261E; }
.modal-form[hidden] { display: none; }
#modal-demo-message { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--ink) !important; }
#modal-demo-message[style*="239, 68, 68"] { color: #C62828 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
    .logo-groups { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 8px 16px 20px;
        background: var(--white); border-bottom: 1px solid var(--line);
    }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
    .nav-links .nav-cta-mobile { display: flex; margin-top: 16px; border: 0; color: var(--white); }
    .navbar.open .nav-links { display: flex; }
    .navbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
    .navbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .feature-row { grid-template-columns: 1fr; gap: 28px; }
    .feature-row.reverse .feature-text { order: 0; }
    .compare { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .hero { padding: 56px 0 64px; }
    .section { padding: 72px 0; }
    .grid-4, .timeline, .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .console-meta { display: none; }
    .activity-log li { grid-template-columns: auto 1fr; }
    .log-time { display: none; }
    .compare-col { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* =====================================================================
   Subpages (landing pages + privacy)
   ===================================================================== */
.page-container { display: block; }

.breadcrumb { max-width: 1160px; margin: 0 auto; padding: 20px 24px 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { margin: 0 6px; color: #BDBDBD; }

/* Landing hero */
.landing-hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero-content { max-width: 860px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
.hero-tag {
    display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 24px; background: var(--white);
}
.hero .hero-title, .landing-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.hero-subtitle { max-width: 680px; margin: 22px auto 0; font-size: 1.12rem; color: var(--muted); }
.landing-hero .hero-actions { margin-top: 32px; }

/* Generic content sections */
.features, .steps-section { padding: 88px 24px; max-width: 1208px; margin: 0 auto; }
.features + .features, .features + .steps-section, .steps-section + .features { border-top: 1px solid var(--line); }
.section-header { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-header .hero-tag { margin-bottom: 18px; }
.section-header h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 700; }
.section-header p { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }

.page-prose { max-width: 760px; margin: 0 auto; }
.page-prose p { color: #333; font-size: 1.05rem; margin-bottom: 18px; }
.page-prose p:last-child { margin-bottom: 0; }
.page-prose a, .faq-item a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { position: relative; padding: 8px 0 8px 26px; color: #333; }
.feature-list li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.landing-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.landing-list li { border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.landing-list li::before { top: 19px; }

/* Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover { border-color: #CFCFCF; transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(0,0,0,.18); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; margin-bottom: 20px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.12rem; font-weight: 700; }
.feature-card p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-card .feature-icon { margin-bottom: 16px; }
.step-number { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; }
.step-card h3 { font-size: 1.12rem; font-weight: 700; }
.step-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* FAQ on subpages sits on white: give it the light grey band look */
.faq-section .faq-list { max-width: 820px; margin: 0 auto; }
.faq-section .faq-item { background: var(--alt); border-color: var(--alt); }

/* Related links */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.related-card {
    display: flex; flex-direction: column; gap: 8px; padding: 24px; text-decoration: none;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
    transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.related-title { font-size: 1.15rem; font-weight: 700; }
.related-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.9rem; }
.cta-container { display: flex; justify-content: center; margin-top: 56px; }

/* Jira page: split layout + story mock */
.jira-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.jira-split .page-prose { margin: 0; }
.jira-h3 { font-size: 1.15rem; font-weight: 700; margin-top: 28px; }
.story-mock { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.18); }
.story-mock-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.story-type { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--white); }
.story-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; color: var(--muted); }
.story-badge { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.story-title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.story-desc { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.story-fields { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.story-fields dt { color: var(--muted); font-weight: 500; }
.story-fields dd { margin: 0; }
.story-pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--alt); }
.story-pill.high { background: var(--ink); color: var(--white); border-color: var(--ink); }
.story-ac { font-size: 0.88rem; }
.story-ac ul { margin: 8px 0 0; padding-left: 18px; color: #333; }
.story-actions { display: flex; gap: 8px; margin-top: 18px; }
.story-btn { font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--white); }
.story-btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.story-note { margin-top: 14px; font-size: 0.75rem; color: #9A9A9A; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--ink); color: var(--white); font-weight: 700; }
.compare-table tbody th { font-weight: 600; width: 24%; background: var(--alt); }
.compare-table td { color: #333; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* Privacy */
.legal-page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.legal-updated { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.legal-page h2 { font-size: 1.35rem; font-weight: 700; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: #333; }
.legal-page p { margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; margin: 0 0 12px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
    .jira-split { grid-template-columns: 1fr; }
    .landing-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .features, .steps-section { padding: 64px 16px; }
    .breadcrumb { padding: 16px 16px 0; }
    .hero-content { padding: 0 16px; }
    .landing-hero .hero-actions .btn { width: 100%; }
    .legal-page { padding: 48px 16px 72px; }
}

/* Even line breaks in headings (avoids one orphaned word on the last line) */
h1, h2, .hero-title { text-wrap: balance; }

/* ---------- Hero: "Human in the loop" badge (text loops over the top only) ---------- */
.hitl-wrap { display: flex; flex-direction: column; align-items: center; }
.hitl-badge { width: min(320px, 88vw); aspect-ratio: 320 / 200; margin: -8px 0 0; }
.hitl-ring text { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; fill: #3A3A3A; }
.hitl-label { position: relative; z-index: 1; background: var(--white); margin-top: calc(min(320px, 88vw) * -0.09); }
.hitl-badge svg { width: 100%; height: 100%; display: block; }
.hitl-ring { transform-origin: 160px 165px; animation: hitl-spin 40s linear infinite; }
@keyframes hitl-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .hitl-ring { animation: none; } }

/* Pause the badge spin while it's off screen (class set by main.js) */
.hitl-badge.is-offscreen .hitl-ring { animation-play-state: paused; }

/* ---------- Cookie policy page (/cookies/) ---------- */
.cookie-hero { text-align: center; margin-bottom: 36px; }
.cookie-mark { position: relative; width: 72px; height: 72px; margin: 0 auto 22px; }
.cookie-mark img { width: 72px; height: 72px; display: block; border-radius: 50%; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.cookie-count { position: absolute; top: -6px; right: -10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
    display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 0.9rem;
    border: 3px solid var(--white); }
.cookie-hero h1 { margin-top: 4px; }
.cookie-lead { max-width: 520px; margin: 14px auto 0; color: var(--muted); font-size: 1.08rem; }
.cookie-console { margin: 0 0 8px; max-width: none; }
.scan-log { min-height: 0; font-size: 0.82rem; }
.scan-log li { opacity: 1; transform: none; grid-template-columns: auto auto 1fr; }
.scan-log .log-msg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 300; color: #2B2B2B; }
.scan-result { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
    .scan-log li { animation: scan-in .45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * .45s + .2s); }
    .cookie-count { animation: count-pop .5s cubic-bezier(.34,1.56,.64,1) both 2.8s; }
}
@keyframes scan-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes count-pop { from { transform: scale(0); } to { transform: scale(1); } }
.cookie-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cookie-fact { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--white); }
.cookie-fact h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cookie-fact p { margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
    .cookie-facts { grid-template-columns: 1fr; }
    .scan-log li { grid-template-columns: auto 1fr; }
    .scan-log .log-time { display: none; }
}

/* ---------- Cookie notice (homepage, bottom) ---------- */
.cookie-note { position: fixed; left: 50%; bottom: 20px; z-index: 60; width: min(800px, calc(100% - 24px));
    display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px;
    background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.35);
    transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
    transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .4s, visibility 0s linear .6s; }
.cookie-note.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie-note-mark { flex: none; width: 34px; height: 34px; border-radius: 50%; }
.cookie-note-text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #333; }
.cookie-note-chip { display: inline-block; padding: 1px 9px; margin: 0 2px; border-radius: 999px; background: var(--lime);
    color: var(--ink); font-weight: 400; font-size: 0.8rem; white-space: nowrap; }
.cookie-note-actions { flex: none; margin-left: auto; display: flex; gap: 8px; }
.cookie-note-btn { border: 1px solid var(--ink); cursor: pointer; font: inherit; font-weight: 400; font-size: 0.88rem; line-height: 1.2;
    padding: 9px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.cookie-note-really { background: var(--white); color: var(--ink); }
.cookie-note-really:hover { background: var(--alt); }
.cookie-note-close { background: var(--ink); color: var(--white); }
.cookie-note-close:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
@media (max-width: 560px) {
    .cookie-note { bottom: 12px; align-items: flex-start; flex-wrap: wrap; }
    .cookie-note-text { flex: 1 1 calc(100% - 60px); }
    .cookie-note-actions { width: 100%; justify-content: flex-end; }
    .cookie-note-text { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .cookie-note { transition: opacity .2s, visibility 0s linear .2s; transform: translate(-50%, 0); } }

/* ---------- Homepage: nurax Sovereign section ---------- */
.sovereign-section .card h3 { margin-bottom: 8px; }
.sovereign-cta { margin-top: 36px; text-align: center; }
.dark-item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nurax Sovereign page ---------- */
.sov-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sov-note { margin-top: 28px; }
.sov-note p { color: var(--muted); }
.sov-tier { background: var(--ink); color: var(--white); border-radius: 22px; padding: 56px 32px; text-align: center; }
.sov-tier .kicker { color: rgba(255,255,255,.6); }
.sov-tier h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
    max-width: 820px; margin: 0 auto 28px; }
.features:has(.sov-tier) { border-top: 0; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b9e374; }
/* top menu: Sovereign gets a small lime dot so it stands out */
.nav-links .nav-sovereign::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--lime); margin-right: 7px; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- Hero headline swap ("handled by AI." -> "is now DEX as a Service") ----------
   Default (no JS / reduced motion): only the final text shows.
   With html.js-motion, motion.js starts on the old line and swaps to the new one.
   Old and new share one grid cell so the swap never shifts the page. */
.hero-swap > span { display: block; }
.hero-swap > .swap-stage { display: grid; }
.swap-old, .swap-new { grid-area: 1 / 1; }
.swap-line { display: block; }
.swap-sub { font-size: 0.56em; letter-spacing: -0.025em; line-height: 1.2; margin-top: 0.35em; font-weight: 600; }
.swap-old, .swap-comma { display: none; }
.js-motion .swap-comma { display: inline; }
.js-motion .swap-old { display: block; align-self: start; }
.js-motion .swap-new .swap-line { opacity: 0; }
.hero-swap.is-swapped .swap-old, .hero-swap.is-swapped .swap-comma { visibility: hidden; }
