/* ═══════════════════════════════════════════════════════════════════════
   ReturnsDesk design system: "The warehouse floor, documented."
   Ink navy + warm paper + scanner orange. Archivo display, Inter body,
   IBM Plex Mono for labels, stats, and receipt/barcode motifs.
   Class names for header/footer/nav must stay in sync with
   _partials/header.html, _partials/footer.html, _partials/scripts-base.html.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --header-h: 76px;

    /* Palette */
    --ink: #0e1826;
    --ink-2: #16243a;
    --ink-3: #1e3050;
    --paper: #f7f4ee;
    --paper-2: #efeadf;
    --white: #ffffff;
    --orange: #ff5a1f;
    --orange-deep: #dd4712;
    --green: #178a55;
    --text: #1c2634;
    --muted: #56606e;
    --muted-on-ink: #9daabd;
    --line: #e2dccd;
    --line-on-ink: #263650;

    /* Type */
    --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --max-width: 1160px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 2px rgba(14, 24, 38, 0.05), 0 10px 30px -12px rgba(14, 24, 38, 0.12);
    --shadow-pop: 0 2px 4px rgba(14, 24, 38, 0.08), 0 18px 44px -14px rgba(14, 24, 38, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.28rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 860px; }

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

/* ---- Utility text ---- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 10px;
    background: repeating-linear-gradient(90deg,
        var(--orange) 0 2px, transparent 2px 4px,
        var(--orange) 4px 7px, transparent 7px 9px,
        var(--orange) 9px 10px, transparent 10px 13px,
        var(--orange) 13px 15px, transparent 15px 17px,
        var(--orange) 17px 18px, transparent 18px 22px);
}

.on-ink .eyebrow, .eyebrow--light { color: var(--muted-on-ink); }

.lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 46em;
}

.on-ink .lead { color: var(--muted-on-ink); }

.mono-note {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.text-green { color: var(--green); }
.text-orange { color: var(--orange); }

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    padding: 14px 26px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(255, 90, 31, 0.55);
}

.btn--primary:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(255, 90, 31, 0.6);
}

.btn--ghost {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover { background: var(--ink); color: #fff; }

.on-ink .btn--ghost, .btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: transparent;
}

.on-ink .btn--ghost:hover, .btn--ghost-light:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn .arrow { transition: transform 0.12s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header / nav ---- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo svg, .logo img { height: 34px; width: auto; display: block; }

.logo-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.32rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}

.logo-word-accent { color: var(--orange-deep); }

footer .logo-word { color: #fff; }
footer .logo-word-accent { color: var(--orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links > a, .dropdown > a {
    color: var(--ink);
    text-decoration: none !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 0;
}

.nav-links > a:hover, .dropdown > a:hover { color: var(--orange-deep); }
.nav-links > a.active, .dropdown > a.active {
    color: var(--orange-deep);
    box-shadow: inset 0 -2px 0 var(--orange);
}

.nav-links a.cta {
    background: var(--ink);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.12s ease;
}

.nav-links a.cta:hover { background: var(--orange-deep); color: #fff; box-shadow: none; }
.nav-links a.cta.active { box-shadow: none; }

.nav-links a.login-button {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.nav-links a.login-button:hover { color: var(--ink); }

.dropdown { position: relative; }

.dropdown > a::after {
    content: "";
    display: inline-block;
    margin-left: 7px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: -12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 240px;
    box-shadow: var(--shadow-pop);
}

.dropdown::after {
    /* hover bridge so the menu doesn't close crossing the gap */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.dropdown:hover .dropdown-content,
.dropdown.mob-open .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    text-decoration: none !important;
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: 6px;
}

.dropdown-content a small {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 1px;
}

.dropdown-content a:hover { background: var(--paper); color: var(--orange-deep); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Sections ---- */

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #e8ecf3; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--ink .section-head p { color: var(--muted-on-ink); }

/* ---- Hero (dark, homepage) ---- */

.hero-dark {
    background:
        radial-gradient(1100px 500px at 85% -10%, rgba(255, 90, 31, 0.14), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #e8ecf3;
    position: relative;
    overflow: hidden;
}

.hero-dark::before {
    /* faint floor grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 95%);
    pointer-events: none;
}

.hero-dark .container { position: relative; }

.hero-inner {
    padding: 96px 0 72px;
    max-width: 880px;
}

.hero-dark h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    margin-bottom: 24px;
}

.hero-dark h1 .dim { color: var(--muted-on-ink); }
.hero-dark h1 .hot { color: var(--orange); }

.hero-sub {
    font-size: 1.22rem;
    line-height: 1.55;
    color: var(--muted-on-ink);
    max-width: 42em;
    margin-bottom: 34px;
}

.hero-meta {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--muted-on-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.hero-meta span::before { content: "▸ "; color: var(--orange); }

/* ---- Page hero (light, interior pages) ---- */

.page-hero {
    background: linear-gradient(180deg, var(--paper-2), var(--paper));
    border-bottom: 1px solid var(--line);
    padding: 76px 0 60px;
}

.page-hero h1 { max-width: 20em; }
.page-hero .lead { margin-bottom: 28px; }

/* ---- Barcode decorative strip ---- */

.barcode-strip {
    height: 26px;
    background: repeating-linear-gradient(90deg,
        currentColor 0 2px, transparent 2px 6px,
        currentColor 6px 9px, transparent 9px 12px,
        currentColor 12px 13px, transparent 13px 19px,
        currentColor 19px 24px, transparent 24px 27px,
        currentColor 27px 28px, transparent 28px 34px);
    opacity: 0.14;
}

/* ---- Stat strip ---- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-on-ink);
    border-top: 1px solid var(--line-on-ink);
}

.stat-strip .stat {
    background: var(--ink);
    padding: 30px 26px;
    text-align: left;
}

.stat .stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.05;
}

.stat .stat-num.green { color: #3ecf8e; }
.stat .stat-num.orange { color: var(--orange); }

.stat .stat-label {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-on-ink);
}

/* Stat cards on light background */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    box-shadow: var(--shadow-card);
}

.stat-card .stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.05;
}

.stat-card .stat-num.green { color: var(--green); }
.stat-card .stat-num.orange { color: var(--orange-deep); }

.stat-card .stat-label {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.5;
}

/* ---- Grids & cards ---- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.99rem; margin-bottom: 0; }
.card p + p { margin-top: 0.8em; }

.card--link { transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease; }
.card--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
    border-color: #d5cebc;
}

a.card { text-decoration: none !important; color: inherit; }

.card .card-cta {
    margin-top: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--orange-deep);
}

.card .card-cta::after { content: " →"; }

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--orange-deep);
}

.card-icon svg { width: 24px; height: 24px; }

.card--ink {
    background: var(--ink-2);
    border-color: var(--line-on-ink);
    color: #dfe5ee;
}
.card--ink h3 { color: #fff; }
.card--ink p { color: var(--muted-on-ink); }

.card-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-deep);
    background: rgba(255, 90, 31, 0.09);
    border: 1px solid rgba(255, 90, 31, 0.25);
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 16px;
}

/* ---- Workflow steps ---- */

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.step {
    counter-increment: step;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.step::before {
    content: "0" counter(step);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--orange-deep);
    background: rgba(255, 90, 31, 0.09);
    border: 1px dashed rgba(255, 90, 31, 0.45);
    border-radius: 6px;
    padding: 3px 9px;
    display: inline-block;
    margin-bottom: 14px;
}

.step h3, .step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 18px;
    border-top: 2px dashed #cfc7b4;
}

/* ---- Receipt / proof card ---- */

.receipt {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow-pop);
    padding: 34px 34px 28px;
    position: relative;
    font-family: var(--font-mono);
    color: var(--text);
}

.receipt::before, .receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background-image: radial-gradient(circle at 6px 4px, var(--paper) 4px, transparent 4.5px);
    background-size: 14px 8px;
    background-repeat: repeat-x;
}

.receipt::before { top: -1px; }
.receipt::after { bottom: -1px; transform: scaleY(-1); }

.receipt .receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.receipt .receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dotted var(--line);
    font-size: 0.92rem;
}

.receipt .receipt-row:last-of-type { border-bottom: none; }

.receipt .receipt-row .val {
    font-weight: 600;
    white-space: nowrap;
}

.receipt .receipt-row .val.green { color: var(--green); }

.receipt .receipt-total {
    margin-top: 14px;
    border-top: 2px solid var(--ink);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
}

.receipt .receipt-foot {
    margin-top: 18px;
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ---- Quote ---- */

.quote {
    border-left: 3px solid var(--orange);
    padding: 6px 0 6px 26px;
    margin: 0;
}

.quote p {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 16px;
}

.section--ink .quote p, .on-ink .quote p { color: #fff; }

.quote cite {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--muted);
}

.section--ink .quote cite, .on-ink .quote cite { color: var(--muted-on-ink); }

/* ---- Split layout ---- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split--wide-left { grid-template-columns: 1.2fr 1fr; }

.split h2 { margin-bottom: 18px; }
.split .body-col p { color: var(--muted); }

/* ---- Checklist ---- */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    padding: 10px 0 10px 36px;
    position: relative;
    color: var(--text);
}

.checklist li + li { border-top: 1px solid var(--line); }

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--green);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center/contain no-repeat, linear-gradient(#000 0 0);
    -webkit-mask-composite: destination-out;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center/contain no-repeat, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.section--ink .checklist li { color: #dfe5ee; }
.section--ink .checklist li + li { border-color: var(--line-on-ink); }

/* ---- Feature rows (icon + text list) ---- */

.feature-list { display: grid; gap: 4px; }

.feature-row {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 20px 0;
}

.feature-row + .feature-row { border-top: 1px solid var(--line); }

.feature-row .card-icon { margin: 0; }

.feature-row h4 { margin-bottom: 4px; }
.feature-row p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---- Chips (integrations, tags) ---- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 7px 16px;
}

.on-ink .chip, .section--ink .chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-on-ink);
    color: #dfe5ee;
}

/* ---- Comparison table ---- */

.compare-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.compare-block + .compare-block { margin-top: 22px; }

.compare-q {
    padding: 24px 30px 18px;
    border-bottom: 1px solid var(--line);
}

.compare-q .num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--orange-deep);
    display: block;
    margin-bottom: 6px;
}

.compare-q h3 { margin: 0 0 4px; }
.compare-q p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.compare-answers { display: grid; grid-template-columns: 1fr 1fr; }

.compare-answers > div { padding: 22px 30px; }

.compare-answers .us {
    background: rgba(23, 138, 85, 0.05);
    border-right: 1px solid var(--line);
}

.compare-answers .label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.compare-answers .us .label { color: var(--green); }
.compare-answers .them .label { color: var(--muted); }

.compare-answers p { margin: 0; font-size: 0.96rem; color: var(--text); }
.compare-answers .them p { color: var(--muted); }

/* ---- FAQ ---- */

.faq-list {
    border-top: 1px solid var(--line);
    max-width: 780px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--orange-deep);
    transition: transform 0.15s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.6;
    max-width: 62ch;
}

.section--ink .faq-item, .on-ink .faq-item { border-color: var(--line-on-ink); }
.section--ink .faq-item summary, .on-ink .faq-item summary { color: #fff; }

/* ---- CTA band ---- */

.band {
    background:
        radial-gradient(800px 380px at 15% 120%, rgba(255, 90, 31, 0.18), transparent 60%),
        var(--ink);
    color: #e8ecf3;
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.band h2 { color: #fff; margin-bottom: 12px; }
.band p { color: var(--muted-on-ink); margin: 0; }
.band .btn-row { justify-content: flex-end; }

/* ---- Blog ---- */

.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.blog-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

.blog-card-art {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.blog-card-art--fraud {
    background:
        radial-gradient(500px 220px at 80% -20%, rgba(255, 90, 31, 0.35), transparent 60%),
        var(--ink);
}

.blog-card-art--cost {
    background:
        radial-gradient(500px 220px at 20% 120%, rgba(62, 207, 142, 0.3), transparent 60%),
        var(--ink-2);
}

.blog-card-art svg { width: 84px; height: 84px; opacity: 0.95; }

.blog-card-body { padding: 26px 28px 24px; display: flex; flex-direction: column; flex: 1; }

.blog-card-meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.blog-card .card-cta { margin-top: auto; }

/* ---- Article ---- */

.article-hero {
    background: linear-gradient(180deg, var(--paper-2), var(--paper));
    border-bottom: 1px solid var(--line);
    padding: 64px 0 48px;
}

.article-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 21em; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 18px;
}

.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px 32px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.article h2 {
    font-size: 1.55rem;
    margin: 1.8em 0 0.7em;
}

.article h3 { font-size: 1.18rem; margin: 1.6em 0 0.5em; }

.article p { margin-bottom: 1.25em; }

.article .article-callout {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 26px;
    margin: 2em 0;
    font-size: 1rem;
}

.article .article-callout p:last-child { margin-bottom: 0; }

.article ol.numbered { padding-left: 0; list-style: none; counter-reset: item; }

.article ol.numbered > li {
    counter-increment: item;
    padding: 20px 0 20px 58px;
    position: relative;
}

.article ol.numbered > li + li { border-top: 1px solid var(--line); }

.article ol.numbered > li::before {
    content: "0" counter(item);
    position: absolute;
    left: 0;
    top: 22px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--orange-deep);
    background: rgba(255, 90, 31, 0.09);
    border: 1px dashed rgba(255, 90, 31, 0.45);
    border-radius: 6px;
    padding: 3px 8px;
}

.article ol.numbered > li strong:first-child { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: 4px; }

/* ---- Forms ---- */

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    padding: 38px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
    background: #fff;
}

.form-status {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

.form-status.error { color: #c0392b; }

/* ---- Footer ---- */

footer {
    background: var(--ink);
    color: #cfd6e1;
}

footer .barcode-strip { color: #fff; }

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
}

.footer-section h4 {
    color: #fff;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer-section p { color: var(--muted-on-ink); font-size: 0.95rem; }

.footer-brand-line {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-on-ink);
    margin-top: 18px;
}

.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: 10px; }

.footer-section a {
    color: #cfd6e1;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-section a:hover { color: var(--orange); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid var(--line-on-ink);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 24px 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-on-ink);
}

.footer-bottom a { color: var(--muted-on-ink); }
.footer-bottom a:hover { color: var(--orange); }

/* ---- Cookie consent banner ---- */

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--ink);
    border-top: 1px solid var(--line-on-ink);
    box-shadow: 0 -8px 30px rgba(14, 24, 38, 0.35);
}

.consent-banner[hidden] { display: none; }

.consent-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.consent-banner-inner p {
    margin: 0;
    color: var(--muted-on-ink);
    font-size: 0.92rem;
    line-height: 1.5;
}

.consent-banner-inner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .consent-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 20px 20px;
    }
    .consent-banner-actions .btn { flex: 1; }
}

/* ---- Helpers ---- */

.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---- Responsive ---- */

@media (max-width: 1020px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .step:not(:last-child)::after { display: none; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .section { padding: 64px 0; }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .nav-links.nav-open { display: flex; }
    .nav-links > a, .dropdown { width: 100%; padding: 12px 0; }
    .nav-links > a.active, .dropdown > a.active { box-shadow: none; }
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 4px 0 4px 14px;
        min-width: 0;
    }
    .dropdown.mob-open .dropdown-content { display: block; }
    .nav-links a.cta { text-align: center; width: 100%; margin-top: 6px; }

    .grid-2, .grid-3, .blog-grid, .split, .split--wide-left { grid-template-columns: 1fr; }
    .split { gap: 40px; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .band { grid-template-columns: 1fr; padding: 44px 32px; }
    .band .btn-row { justify-content: flex-start; }
    .compare-answers { grid-template-columns: 1fr; }
    .compare-answers .us { border-right: none; border-bottom: 1px solid var(--line); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
    .form-grid { grid-template-columns: 1fr; }
    .hero-inner { padding: 72px 0 56px; }
}

@media (max-width: 560px) {
    .grid-4, .stat-cards, .steps, .stat-strip { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .nav-links a.login-button { padding: 12px 0; }
}

/* ---- Article featured image + 2x2 card grid (blog migration + landing pages) ---- */
.article-figure { margin: 0 0 1.8em; }
.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .grid-2x2 { grid-template-columns: 1fr; } }

/* Blog cards that use a real featured image instead of the SVG art. */
.blog-card-art { overflow: hidden; }
.blog-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
