/* Dykstra Consulting — public design system.
   No framework and no CDN: one stylesheet, served from the same origin, with a
   type scale and colour set chosen for a professional-services practice rather
   than adapted from a component library. */

:root {
    --ink:        #0e1726;
    --ink-2:      #33415a;
    --ink-3:      #5b6b80;   /* was #64748b: 4.41 on sand, just under AA */
    --brand:      #12314f;
    --brand-700:  #0c2440;
    --brand-500:  #1d4a76;
    --brand-100:  #dfe9f2;
    /* Copper, darkened until white text on it clears 4.5:1 and it clears the
       same on white and sand. The original #a97434 measured 4.01 and 3.72 —
       legible to most people, not to everyone, and a Lighthouse failure. */
    --accent:     #8c5f28;
    --accent-600: #744e20;
    --accent-100: #f5ead9;
    --paper:      #ffffff;
    --sand:       #f8f6f2;
    --sand-2:     #f1ece4;
    --line:       #e4ded4;
    --line-2:     #d3cdc2;
    --ok:         #1f7a53;
    --ok-100:     #e2f2ea;
    --warn:       #a8700c;
    --warn-100:   #fbf0d9;
    --risk:       #a63232;
    --risk-100:   #fae5e3;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --shadow-sm: 0 1px 2px rgba(14, 23, 38, .06), 0 1px 3px rgba(14, 23, 38, .05);
    --shadow:    0 4px 16px rgba(14, 23, 38, .07), 0 1px 3px rgba(14, 23, 38, .05);
    --shadow-lg: 0 24px 60px rgba(14, 23, 38, .14);

    --radius: 10px;
    --radius-lg: 16px;
    --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 600;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }
a { color: var(--brand-500); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-600); }
img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--brand-700); color: #cfdcea; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr .8fr; align-items: start; } }
@media (min-width: 900px) { .split-even { grid-template-columns: 1fr 1fr; } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- eyebrow + rule */

.eyebrow {
    font-family: var(--sans);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--accent);
    flex: none;
}
.eyebrow.center-line { justify-content: center; }
.section-ink .eyebrow { color: #d9a35f; }
.section-ink .eyebrow::before { background: #d9a35f; }

.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); }

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; color: var(--ink); font-weight: 600; }
.brand-sub { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a:not(.btn) {
    display: inline-block;
    padding: .55rem .8rem;
    border-radius: 7px;
    font-size: .935rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
}
.nav a:not(.btn):hover { background: var(--sand-2); color: var(--ink); }
.nav a.is-active { color: var(--brand); background: var(--brand-100); }
.nav a.nav-cta {
    background: var(--accent); color: #fff; padding: .6rem 1.1rem; margin-left: .5rem;
    box-shadow: var(--shadow-sm);
}
.nav a.nav-cta:hover { background: var(--accent-600); color: #fff; }

.nav-toggle {
    margin-left: auto; display: none; background: none; border: 1px solid var(--line-2);
    border-radius: 8px; padding: .5rem .6rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 1000px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed; inset: 74px 0 auto; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .75rem 1.25rem 1.25rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--sand-2); border-radius: 0; }
    .nav a.nav-cta { margin: .75rem 0 0; border-radius: 8px; text-align: center; border: 0; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit; font-size: .95rem; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); background: var(--sand); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }
/* .btn-ghost paints near-black text, which is invisible on a dark panel. No
   template does that today, but the editor can move copy around and the failure
   mode is a button nobody can see — so the dark contexts restate it. */
.panel-ink .btn-ghost,
.section-ink .btn-ghost,
.cta-band .btn-ghost,
.result-hero .btn-ghost,
.hero .btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
}
.panel-ink .btn-ghost:hover,
.section-ink .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.result-hero .btn-ghost:hover,
.hero .btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 78% -10%, rgba(169, 116, 52, .22), transparent 62%),
        linear-gradient(158deg, #0d2340 0%, #12314f 46%, #17405f 100%);
    color: #c9d8e8;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: url("../img/hero-pattern.svg");
    background-size: cover; background-position: right center;
    opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #c3d3e4; max-width: 60ch; }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; } }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.5rem; }
.hero-stat strong {
    display: block; font-family: var(--serif); font-size: 1.9rem; color: #fff; line-height: 1;
}
.hero-stat span { font-size: .82rem; color: #9db3c9; letter-spacing: .04em; }

.trust-strip {
    background: var(--brand-700);
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 1rem 0;
    color: #9db3c9;
    font-size: .85rem;
}
.trust-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0; padding: 0; justify-content: center; }
.trust-strip li { display: flex; align-items: center; gap: .5rem; }
.trust-strip svg { color: #d9a35f; }

/* ---------------------------------------------------------------- cards */

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: .4rem; }
.card > :last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }

.icon-badge {
    width: 46px; height: 46px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--brand-100); color: var(--brand);
    margin-bottom: 1rem;
}
.icon-badge.accent { background: var(--accent-100); color: var(--accent-600); }

.panel {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel-accent { background: var(--accent-100); border-color: #e8d6bb; }
.panel-ink { background: var(--brand-700); color: #c9d8e8; border-color: transparent; }
.panel-ink h2, .panel-ink h3 { color: #fff; }

/* ---------------------------------------------------------------- lists */

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.checks svg { color: var(--ok); margin-top: .28rem; }
.checks.risk svg { color: var(--risk); }

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; }
.numbered li::before {
    content: counter(n, decimal-leading-zero);
    font-family: var(--serif); font-size: 1.1rem; color: var(--accent);
    border: 1px solid var(--line-2); border-radius: 50%;
    width: 44px; height: 44px; display: grid; place-items: center;
}
.numbered h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.numbered p { margin: 0; }

/* ---------------------------------------------------------------- prose */

.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
    margin: 2rem 0; padding: .3rem 0 .3rem 1.5rem;
    border-left: 3px solid var(--accent);
    font-family: var(--serif); font-size: 1.18rem; color: var(--ink);
}
.prose strong { color: var(--ink); }

.pull {
    font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
    line-height: 1.4; color: var(--ink); margin: 0;
}

/* ---------------------------------------------------------------- badges */

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .22rem .6rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--sand-2); color: var(--ink-2);
}
.badge-ok { background: var(--ok-100); color: var(--ok); }
.badge-warn { background: var(--warn-100); color: var(--warn); }
.badge-risk { background: var(--risk-100); color: var(--risk); }
.badge-brand { background: var(--brand-100); color: var(--brand); }
.badge-accent { background: var(--accent-100); color: var(--accent-600); }

/* ---------------------------------------------------------------- listings */

.listing-card { display: flex; flex-direction: column; height: 100%; }
.listing-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .8rem; }
.listing-ref { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .05em; }
.listing-figures {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: .9rem 0; margin: 1.1rem 0;
}
.listing-figures div { text-align: center; }
.listing-figures dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.listing-figures dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.listing-card .btn { margin-top: auto; }

.filters {
    display: grid; gap: .8rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}

/* ---------------------------------------------------------------- forms */

.field { margin-bottom: 1.15rem; }
.field label, .label {
    display: block; font-size: .87rem; font-weight: 600; color: var(--ink);
    margin-bottom: .35rem;
}
.field .hint { font-size: .8rem; color: var(--ink-3); margin: .3rem 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="url"], input[type="password"], input[type="search"], input[type="date"],
select, textarea {
    width: 100%;
    padding: .72rem .85rem;
    font: inherit; font-size: .95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat; background-position: right .8rem center;
    padding-right: 2.2rem;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(29, 74, 118, .14);
}
input.has-error, select.has-error, textarea.has-error { border-color: var(--risk); }
.error-text { color: var(--risk); font-size: .82rem; margin: .3rem 0 0; }

.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.check {
    display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start;
    font-size: .92rem; margin-bottom: .7rem; cursor: pointer;
}
.check input { margin: .28rem 0 0; width: 18px; height: 18px; accent-color: var(--brand-500); }
.check span strong { display: block; color: var(--ink); }

.choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice {
    border: 1px solid var(--line-2); border-radius: 10px; padding: .85rem 1rem;
    cursor: pointer; display: flex; gap: .65rem; align-items: start; background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--brand-500); }
.choice input { margin-top: .2rem; accent-color: var(--brand-500); }
.choice:has(input:checked) { border-color: var(--brand-500); background: var(--brand-100); }

/* The honeypot must be reachable by a bot parsing the DOM and invisible to a
   human — display:none is the one thing that makes a script skip it. */
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
legend {
    font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
    padding: 0 0 .3rem; margin-bottom: 1rem; width: 100%;
    border-bottom: 1px solid var(--line);
}

.form-note {
    display: flex; gap: .7rem; align-items: start;
    background: var(--sand); border: 1px solid var(--line);
    border-radius: 10px; padding: .9rem 1rem; font-size: .87rem;
}
.form-note svg { color: var(--brand-500); flex: none; margin-top: .15rem; }

/* ------------------------------------------------- post-submission / errors */

code, .mono { font-family: var(--mono); font-size: .88em; }

/* The reference number, sat where someone can find it again. */
.ref-chip {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem;
    background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
    padding: .7rem 1rem; margin-top: 1.4rem;
}
.ref-chip .mono { font-size: 1rem; color: var(--ink); letter-spacing: .04em; }

/* The "when" line of a step, above its explanation. Scoped to beat
   `.numbered p { margin: 0 }`, which would otherwise close the gap. */
.numbered .step-when {
    font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: .25rem;
}

/* ---------------------------------------------------------------- flash */

.flash { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .93rem; }
.flash-success { background: var(--ok-100); color: #14563a; border: 1px solid #bfe0ce; }
.flash-error { background: var(--risk-100); color: #7c2222; border: 1px solid #eec4c0; }
.flash-info { background: var(--brand-100); color: var(--brand-700); border: 1px solid #c9dbea; }
.flash-warning { background: var(--warn-100); color: #7a5109; border: 1px solid #ecd7a6; }

/* ---------------------------------------------------------------- results (valuation / readiness) */

.result-hero {
    background: linear-gradient(150deg, #0d2340, #17405f);
    color: #c9d8e8; border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 4vw, 2.8rem);
}
.result-hero h1, .result-hero h2 { color: #fff; }
.result-range {
    font-family: var(--serif); color: #fff;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); line-height: 1.1;
}

.meter { height: 10px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--brand-500); }
.meter.strong > span { background: var(--ok); }
.meter.watch > span { background: var(--warn); }
.meter.risk > span { background: var(--risk); }

.driver {
    display: grid; grid-template-columns: 26px 1fr; gap: .9rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.driver:last-child { border-bottom: 0; }
.driver-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .42rem; }
.driver-dot.strong { background: var(--ok); }
.driver-dot.watch { background: var(--warn); }
.driver-dot.risk { background: var(--risk); }
.driver h4 { margin: 0 0 .25rem; }
.driver p { margin: 0; font-size: .93rem; }

.score-ring { display: grid; place-items: center; position: relative; width: 132px; height: 132px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring b {
    position: absolute; font-family: var(--serif); font-size: 2.1rem; color: var(--ink); line-height: 1;
}
.score-ring small { position: absolute; bottom: 26px; font-size: .7rem; color: var(--ink-3); letter-spacing: .08em; }

/* ---------------------------------------------------------------- people */

.person-card { text-align: left; }
.person-photo {
    width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
    background: var(--brand-100); margin-bottom: 1rem;
}
.person-monogram {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 1.6rem; margin-bottom: 1rem;
}
.person-monogram.open { background: var(--sand-2); color: var(--ink-3); border: 1px dashed var(--line-2); }

/* ---------------------------------------------------------------- tables */

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- accordion */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
    list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0;
    font-family: var(--serif); font-size: 1.1rem; color: var(--ink); position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
    content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
    font-family: var(--sans); font-size: 1.4rem; color: var(--accent); line-height: 1;
}
.acc details[open] summary::after { content: "\2212"; }
.acc .acc-body { padding: 0 2.5rem 1.3rem 0; }
.acc .acc-body > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- cta band */

.cta-band {
    background: linear-gradient(150deg, #0d2340, #17405f);
    color: #c9d8e8;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3.2rem);
    display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.2fr .8fr; } }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--brand-700); color: #93a9c0; padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer h2 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
/* :not(.btn) matters. A bare `.site-footer a` outranks `.btn-primary` on
   specificity (0,0,1,1 beats 0,0,1,0), so the footer's call-to-action button was
   drawing pale blue text on copper — 3.64:1 — while every other button on the
   site was fine. Excluding buttons here fixes it once, rather than re-stating a
   colour for each variant that ever lands in a footer. */
.site-footer a:not(.btn) { color: #c3d3e4; text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .84rem;
}

/* ---------------------------------------------------------------- misc */

.breadcrumbs { font-size: .84rem; color: var(--ink-3); padding: 1rem 0 0; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-600); }

/* Visible to assistive technology, not on screen. Used where a heading or a
   legend already carries the text visually but a control still needs its own
   accessible name. */
.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 {
    position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
    padding: .7rem 1.2rem; z-index: 200;
}
.skip:focus { left: 0; }

.empty {
    text-align: center; padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--sand);
}

@media print {
    .site-header, .site-footer, .btn, .cta-band { display: none !important; }
    body { font-size: 12pt; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- guided intake */

.guided[data-js="on"] .guided-fallback { display: none; }

.chat {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.chat-head {
    display: flex; align-items: center; gap: .8rem;
    padding: .9rem 1.1rem;
    background: var(--brand-700); color: #fff;
}
.chat-head strong { display: block; font-size: .95rem; }
.chat-sub { font-size: .75rem; color: #9db3c9; }
.chat-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: grid; place-items: center; flex: none;
}
.chat-restart { margin-left: auto; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.chat-restart:hover { background: rgba(255,255,255,.18); }

.chat-log {
    padding: 1.2rem;
    max-height: 46vh;
    min-height: 240px;
    overflow-y: auto;
    background: var(--sand);
    display: flex; flex-direction: column; gap: .55rem;
    scroll-behavior: smooth;
}

.bubble {
    max-width: 86%;
    padding: .7rem .95rem;
    border-radius: 14px;
    font-size: .95rem;
    line-height: 1.5;
    animation: bubble-in .22s ease both;
}
.bubble-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble-me {
    background: var(--brand); color: #fff;
    border-bottom-right-radius: 4px; align-self: flex-end;
}

@keyframes bubble-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.bubble-typing { display: flex; gap: 4px; align-items: center; padding: .85rem .95rem; }
.bubble-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
    animation: typing 1.1s infinite ease-in-out;
}
.bubble-typing span:nth-child(2) { animation-delay: .18s; }
.bubble-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes typing {
    0%, 60%, 100% { opacity: .25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chat-progress { height: 3px; background: var(--sand-2); }
.chat-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

.chat-input {
    padding: 1rem 1.1rem;
    display: flex; flex-wrap: wrap; gap: .5rem;
    border-top: 1px solid var(--line);
    background: #fff;
}
.chat-input:empty { display: none; }

.chip {
    font: inherit; font-size: .89rem; font-weight: 500;
    padding: .55rem .95rem;
    border: 1px solid var(--line-2); border-radius: 999px;
    background: #fff; color: var(--ink); cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .1s ease;
    text-align: left;
}
.chip:hover { border-color: var(--brand-500); background: var(--brand-100); }
.chip:active { transform: scale(.98); }
.chip.is-on { border-color: var(--brand-500); background: var(--brand-100); color: var(--brand); font-weight: 600; }
.chip.is-on::before { content: "✓ "; }

.chip-set { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.chip-actions { display: flex; gap: .5rem; width: 100%; align-items: center; }
.chat-back { margin-left: auto; color: var(--ink-3); }

.chat-textarea {
    width: 100%; font: inherit; font-size: .95rem;
    padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 10px;
    resize: vertical; min-height: 84px;
}
.chat-textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(29,74,118,.14); }

.chat-done { font-size: .86rem; color: var(--ink-3); }
.chat-done strong { color: var(--ok); }

@media (max-width: 600px) {
    .chat-log { max-height: 56vh; }
    .bubble { max-width: 94%; }
    .chip { width: 100%; }
}

/* ---------------------------------------------------------------- option grid
   Multi-select options that stay on one line with their checkbox. The label sits
   in a grid cell beside the input rather than after it, so a two-line option
   wraps under its own text instead of under the box. */

.opt-grid {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.opt {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: .7rem;
    align-items: start;
    padding: .8rem .9rem;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
}
.opt:hover { border-color: var(--brand-500); }
.opt:has(input:checked) { border-color: var(--brand-500); background: var(--brand-100); }

.opt input {
    width: 18px; height: 18px; margin: .12rem 0 0;
    accent-color: var(--brand-500);
}

.opt-body { display: block; min-width: 0; }
.opt-title { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.opt-note { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .15rem; line-height: 1.4; }

/* ---------------------------------------------------------------- hero card
   The "two conversations" panel. Previously a generic .panel with inline colour
   overrides and a nested .numbered list, which put two same-size h3s inside one
   card and left the counter circles wearing the light theme's tan border on a
   dark background — legible, but visually a mess. This is its own component so
   the hierarchy is deliberate: a small label, then two clearly separated paths. */

.hero-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2rem);
    backdrop-filter: blur(6px);
}

.hero-card-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #d9a35f;
    margin: 0 0 1.4rem;
}

.path {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1.1rem;
    align-items: start;
}

/* A hairline between the two, rather than relying on gap alone to separate
   blocks of similar-looking text. */
.path + .path {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.path-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: #d9a35f;
    background: rgba(217, 163, 95, .12);
    border: 1px solid rgba(217, 163, 95, .4);
}

.path-body { min-width: 0; }

.path-title {
    font-size: 1.2rem;
    color: #fff;
    margin: .15rem 0 .35rem;
    line-height: 1.25;
}

.path-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: #c3d3e4;
}
.path-text em { color: #fff; font-style: italic; }

/* Below the two-column hero breakpoint the card is full width, so the number
   sits inline with the title instead of holding open a column of its own. */
@media (max-width: 560px) {
    .path { grid-template-columns: 1fr; gap: .6rem; }
    .path-num { width: 38px; height: 38px; font-size: .92rem; }
}

/* ---------------------------------------------------------------- service list
   A member's offering, grouped by theme. Sixteen individually-linked paragraphs
   read as a wall and put the same call to action on screen sixteen times; four
   themed groups of one-liners scan in a few seconds and carry one CTA. */

.service-group { margin-top: 2rem; }

.service-group-title {
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: .6rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--line);
}

.service-grid {
    display: grid;
    gap: 1.1rem 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-item { min-width: 0; }

.service-title {
    font-family: var(--serif);
    font-size: 1.02rem;
    color: var(--ink);
    margin: 0 0 .2rem;
    line-height: 1.3;
}

.service-blurb {
    margin: 0;
    font-size: .89rem;
    line-height: 1.55;
    color: var(--ink-2);
}

.service-cta { margin: 2.2rem 0 0; }

/* ---------------------------------------------------------------- state chips */

.state-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

.state-chip {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    padding: .35rem .55rem;
    border-radius: 7px;
    background: var(--brand);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---------------------------------------------------------------- reach cards
   Cards on the dark band. A plain .card is white-on-white here, so this is the
   translucent equivalent rather than an override of .card that would leak into
   every light section. */

.reach-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}
.reach-card h3 { color: #fff; margin-bottom: .5rem; }
.reach-card p { color: #c3d3e4; margin: 0; }
.reach-card .icon-badge { background: rgba(217, 163, 95, .16); color: #d9a35f; }
