/* Wardstop site. Every style lives here (the CSP forbids inline styles); fonts are served from /assets/fonts. */
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/sg-latin-700.woff2') format('woff2'); }

:root {
    --ink: #14202E;
    --ink-2: #1D2B3C;
    --signal: #D9480F;
    --signal-hover: #BF3E0C;
    --paper: #F4F3EF;
    --white: #FFFFFF;
    --text: #14202E;
    --text-2: #5B6673;
    --on-ink-2: #B7C0CA;
    --line: #DEDCD5;
    --line-ink: #2C3B4D;
    --focus: 0 0 0 3px rgba(217, 72, 15, 0.35);
    --ok: #2B8A3E;
    --focus-ok: 0 0 0 3px rgba(43, 138, 62, 0.3);
    --radius: 10px;
    --wrap: 72rem;
    --narrow: 46rem;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--signal); text-underline-offset: 0.18em; }
a:hover { color: var(--signal-hover); }
a:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-top: 0.5rem; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 0.875rem; }
pre { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.6; margin: 0 0 1.5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--narrow); }
.site-main { flex: 1; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-name-small { font-size: 1.05rem; line-height: 1.2; }
.slogan, .eyebrow {
    font-family: var(--font);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    margin: 0 0 1rem;
}
p.slogan, p.eyebrow { color: var(--signal); }
.slogan-small { font-size: 0.66rem; margin: 0; color: var(--text-2); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.site-nav { display: flex; gap: 1.5rem; flex: 1; }
.site-nav a, .link-quiet { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.site-nav a:hover, .link-quiet:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }

/* Buttons */
.button {
    display: inline-block;
    background: var(--signal);
    color: var(--white);
    border: 1px solid var(--signal);
    border-radius: 8px;
    padding: 0.75rem 1.35rem;
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: var(--white); }
.button-small { padding: 0.5rem 0.95rem; font-size: 0.9rem; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.button-on-dark { color: var(--paper); border-color: var(--line-ink); }
.button-on-dark:hover { background: var(--ink-2); color: var(--white); border-color: var(--on-ink-2); }

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding: 5.5rem 0 5rem; overflow: hidden; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lead { color: var(--on-ink-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 1rem; }
.hero-note { color: var(--on-ink-2); font-size: 0.88rem; margin: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 16rem); padding: 2.25rem; background: var(--paper); border-radius: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }

.lead { font-size: 1.07rem; color: var(--text-2); max-width: 40rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-paper { background: var(--paper); }
.page-head { padding-top: 4rem; padding-bottom: 1.5rem; }
.meta { color: var(--text-2); font-size: 0.92rem; }

.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.1rem; }
.card p { color: var(--text-2); }
.section-paper .card { border-color: transparent; box-shadow: 0 1px 2px rgba(20, 32, 46, 0.06); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
.split p { color: var(--text-2); }
.guarantees { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.guarantees li { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.25rem 3.2rem; position: relative; box-shadow: 0 1px 2px rgba(20, 32, 46, 0.06); }
.guarantees li::before {
    content: '';
    position: absolute;
    left: 1.3rem;
    top: 1.55rem;
    width: 0.85rem;
    height: 0.45rem;
    border-left: 2.5px solid var(--signal);
    border-bottom: 2.5px solid var(--signal);
    transform: rotate(-45deg);
}
.guarantees strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.guarantees span { color: var(--text-2); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--paper); border-radius: 16px; padding: 2.5rem 3rem; }
.cta p { color: var(--text-2); margin: 0; }
.cta .button { flex-shrink: 0; }

/* The interaction diagram (two SVGs: wide, and narrow up to 900px) */
.diagram { margin: 1rem 0 0; }
.diagram-title { margin-top: 3rem; }
.diagram picture, .diagram-img { display: block; width: 100%; }
.diagram-img { max-width: 1190px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.diagram figcaption { color: var(--text-2); font-size: 0.92rem; margin-top: 0.75rem; max-width: var(--narrow); }
@media (max-width: 900px) { .diagram-img { max-width: 400px; } }

/* Plain lists in narrow pages */
.list { padding-left: 1.25rem; margin: 0 0 1rem; color: var(--text-2); }
.list li { margin-bottom: 0.4rem; }
.list strong { color: var(--ink); }

/* How it works */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 4rem; }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 3.75rem; border-left: 1px solid var(--line); margin-left: 1.1rem; }
.steps li:last-child { border-left-color: transparent; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: -1.15rem;
    top: -0.1rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps h2 { font-size: 1.15rem; margin: 0 0 0.5rem; padding-top: 0.15rem; }
.steps p { color: var(--text-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1rem 0 2rem; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 2rem; display: flex; flex-direction: column; }
.plan h2 { font-size: 1.2rem; margin: 0; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 1.75rem; color: var(--ink); margin: 0.5rem 0 1.25rem; }
.plan .button { align-self: flex-start; margin-top: auto; }
.plan-featured { background: var(--ink); border-color: var(--ink); }
.plan-featured h2, .plan-featured .plan-price { color: var(--white); }
.plan-featured .checks li { color: var(--on-ink-2); }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--text-2); }
.checks li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.5rem;
    width: 0.7rem;
    height: 0.38rem;
    border-left: 2px solid var(--signal);
    border-bottom: 2px solid var(--signal);
    transform: rotate(-45deg);
}
.fine-print { color: var(--text-2); font-size: 0.92rem; max-width: var(--narrow); margin-bottom: 4rem; }
.needs { max-width: var(--narrow); background: var(--paper); border-left: 4px solid var(--signal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; }
.needs h2, .narrow .needs h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.needs p { color: var(--text); margin: 0 0 1rem; }
.needs .button-ghost { background: var(--white); }
.steps + .needs { margin-top: -2.5rem; margin-bottom: 4rem; }

/* Empty states, legal pages, tables */
.empty { background: var(--paper); border-radius: var(--radius); padding: 2rem; margin: 1rem 0 3rem; }
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--text-2); margin: 0; }
.narrow h2 { margin-top: 2.5rem; }
.narrow .empty h2 { margin-top: 0; }
.draft {
    display: inline-block;
    background: #FFF1E8;
    color: #9A3209;
    border: 1px solid #F5C3A6;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.prose { padding-bottom: 4rem; }
.prose h2 { font-size: 1.15rem; margin-top: 2.25rem; }
.prose p, .prose li { color: #2E3A47; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: 0.94rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; color: var(--ink); background: var(--paper); }
.table td:first-child { color: var(--ink); width: 45%; }

/* Forms: sign-in, registration, password */
.auth .lead { margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.1rem; max-width: 28rem; margin: 0 0 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 500; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea, .field select {
    font: inherit;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { min-height: calc(1.6em + 1.2rem + 2px); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--signal); box-shadow: var(--focus); }
/* New passwords turn green once they reach the minimum length (minlength in the markup; no script). */
.field input[autocomplete="new-password"]:valid { border-color: var(--ok); color: var(--ok); }
.field input[autocomplete="new-password"]:valid:focus-visible { border-color: var(--ok); box-shadow: var(--focus-ok); }
.field input[autocomplete="new-password"]:valid + .field-hint { color: var(--ok); }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.6rem; }
.field-check input { margin-top: 0.35rem; }
.field-check .field-error { grid-column: 1 / -1; }
.field-hint, .optional { color: var(--text-2); font-size: 0.88rem; font-weight: 400; margin: 0; }
.field-error { color: #9A3209; font-size: 0.9rem; font-weight: 500; margin: 0; }
.form-alert { max-width: 28rem; background: #FFF1E8; color: #9A3209; border: 1px solid #F5C3A6; border-radius: 8px; padding: 0.75rem 1rem; margin: 0 0 1.25rem; font-weight: 500; }
.form-alert p { margin: 0 0 0.75rem; }
.form-foot { color: var(--text-2); font-size: 0.94rem; margin-bottom: 4rem; }

.error-page { padding-bottom: 5rem; }

/* Rows of buttons (account area and panel) */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.actions form { margin: 0; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: auto; }
.footer-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem 1.4rem; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-note { grid-column: 1 / -1; color: var(--text-2); font-size: 0.82rem; margin: 0.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Narrow screens */
@media (max-width: 960px) {
    .header-row { flex-wrap: wrap; gap: 0.25rem 1.5rem; padding-top: 0.75rem; }
    .header-actions { margin-left: auto; }
    .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; padding: 0.4rem 0 0.75rem; gap: 1.25rem; white-space: nowrap; }
    .hero-grid, .split, .grid-3, .grid-2, .plans { grid-template-columns: minmax(0, 1fr); }
    .hero-art { display: none; }
    .split { gap: 2.5rem; }
    .footer-row { grid-template-columns: minmax(0, 1fr); }
    .footer-nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 1.1rem; }
    .hero { padding: 3.5rem 0; }
    .section { padding: 3.5rem 0; }
    .cta { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
    .header-actions .link-quiet { display: none; }
    .table td:first-child { width: auto; }
}
