/* ==========================================================================
   Blue Pea — shared styles: tokens, base, components, nav, footer.
   Page-specific styles live in css/pages/*.css.
   ========================================================================== */

:root {
    /* Brand (Brand Style Guide: purple Pantone 2098 C, green Pantone 2292 C) */
    --purple: #462EAC;
    --purple-deep: #2A1773;
    --ink: #140B33;
    --green: #9BC923;
    --sprout: #B4D65A; /* lighter tint of the brand green, for hovers and highlights on dark surfaces */
    --lavender: #BEB3E4;
    --lime-mist: #E0F8B9;
    --paper: #FAFAF7;

    /* Supporting */
    --ink-soft: #2B2347;
    --muted: #5A5375;
    --lavender-light: #ECE8FA;
    --lilac: #F1EFF7;
    --line: #E4E0F0;
    --field: #DAD6E6;
    --rule: rgba(20, 11, 51, 0.1);
    --error: #A32020;
    --success: #3D6B00;

    /* The guide's primary font, Langith, isn't available as a web font yet, so headings keep Bricolage Grotesque.
       Body text is the guide's secondary font, Verdana (DejaVu Sans stands in on Linux; elsewhere the system font). */
    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: Verdana, "DejaVu Sans", Geneva, system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(64px, 9vw, 120px);
    --header-h: 72px;
    --tab-bar-h: 0px; /* height of the bottom tab bar; set on small screens below */
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* In-page links (Work, Get my quote, …) glide to their section; the reduced-motion block below turns this off. */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); scroll-padding-bottom: var(--tab-bar-h); }

/* No grey or blue box on tapped cards, steppers and buttons; each control shows its own pressed and selected
   states, and keyboard users still get the :focus-visible ring below. */
html { -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--sprout); outline-offset: 3px; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--paper); padding: 8px 16px; border-radius: 999px; }

/* Layout ----------------------------------------------------------------- */

.wrap { max-width: 1280px; margin: 0 auto; }
.wrap--narrow { max-width: 1240px; }
.wrap--tight { max-width: 1080px; }

.section { padding: var(--section-y) var(--gutter); }
.section--flush-top { padding-top: 0; }
.section--hero { padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(40px, 6vw, 72px); overflow-x: clip; }

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min, 420px)), 1fr));
    gap: clamp(32px, 5vw, 80px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 260px)), 1fr));
    gap: var(--grid-gap, 16px);
}

.section-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 16px 24px; margin-bottom: 36px;
}

/* Surfaces */
.bg-lilac { background: var(--lilac); }
.bg-mist { background: var(--lime-mist); }
.bg-purple { background: var(--purple); color: #fff; }
.bg-deep { background: var(--purple-deep); color: #fff; }
.bg-dotgrid {
    background-image: radial-gradient(rgba(190, 179, 228, 0.14) 1px, transparent 1.4px);
    background-size: 28px 28px;
}

/* Typography ------------------------------------------------------------- */

.display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
    text-wrap: balance;
}
.display--hero { font-size: clamp(44px, 8vw, 112px); line-height: 0.92; letter-spacing: -0.04em; margin: 24px 0 32px; }
.display--lg { font-size: clamp(34px, 5vw, 68px); }
.display--md { font-size: clamp(32px, 4.4vw, 58px); }

.title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

.lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 28px;
    max-width: 34em;
    text-wrap: pretty;
}
.sub { font-size: 18px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.on-dark .lead, .on-dark .sub { color: var(--lavender-light); }

.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--purple);
    margin: 0;
}
.on-dark .eyebrow { color: var(--lavender); }

.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Pea dots: <span class="dots"><i></i><i class="g"></i>…</span> ---------- */

.dots { --size: 9px; display: flex; gap: calc(var(--size) * 0.45); flex-shrink: 0; }
.dots > i { width: var(--size); height: var(--size); border-radius: 50%; background: var(--purple); }
.dots > .g { background: var(--green); }
.dots > .s { background: var(--sprout); }
.dots > .l { background: var(--lavender); }
.dots--col { flex-direction: column; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 56px; padding: 0 28px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 17px; line-height: 1.2;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
/* Long labels wrap rather than push the page sideways on the narrowest phones. */
@media (max-width: 420px) { .btn { max-width: 100%; white-space: normal; text-align: center; text-wrap: balance; padding-block: 8px; } }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* Ink text on green: white on the brand green fails contrast. */
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: var(--sprout); color: var(--ink); }
.btn--sprout { background: var(--sprout); color: var(--ink); }
.btn--sprout:hover { background: var(--lime-mist); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); font-weight: 600; font-size: 16px; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: #fff; font-weight: 600; font-size: 16px; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--ghost-purple { border-color: var(--purple); color: var(--purple); min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--ghost-purple:hover { background: var(--purple); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Badges ----------------------------------------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
    background: var(--lime-mist); color: var(--purple-deep);
}
.badge--sprout { background: var(--sprout); color: var(--ink); }

.chip { padding: 8px 14px; border-radius: 999px; background: var(--lilac); font-size: 14px; font-weight: 500; }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* Cards ------------------------------------------------------------------ */

.card {
    border-radius: 24px; padding: 28px;
    background: #fff; border: 1.5px solid var(--rule);
    display: flex; flex-direction: column; gap: 10px;
}
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card--dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(190, 179, 228, 0.25); }
.card--dark p { color: var(--lavender-light); line-height: 1.6; }

.lift { transition: transform 0.25s ease-out, box-shadow 0.25s, border-color 0.25s; }
.lift:hover { transform: translateY(-4px); }

/* Striped placeholder for photos and screenshots still to come. */
.placeholder {
    display: grid; place-items: center; text-align: center;
    border-radius: 14px;
    background: repeating-linear-gradient(135deg, #E9E5F4 0 10px, #F4F2FA 10px 20px);
    font: 500 13px var(--font-mono); color: var(--muted);
}
.placeholder--warm { background: repeating-linear-gradient(135deg, #EFEBE2 0 10px, #F7F4EE 10px 20px); color: #6B6458; font-size: 11px; }

/* Stat strip (hero <dl>) */
.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0;
    background: rgba(20, 11, 51, 0.12); border: 1px solid rgba(20, 11, 51, 0.12);
    border-radius: 20px; overflow: hidden;
}
.stats > div { background: var(--paper); padding: 20px 18px; }
.stats dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stats dd {
    margin: 0; font-family: var(--font-display); font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.on-dark .stats { background: rgba(190, 179, 228, 0.3); border-color: rgba(190, 179, 228, 0.3); }
.on-dark .stats > div { background: var(--purple); }
.on-dark .stats dt { color: var(--lavender); }

/* Long-form text: the privacy policy and other legal pages */
.prose { max-width: 46em; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 48px 0 12px;
}
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--ink); }

/* Point list with a rule on top (speed story, reports) */
.points { --grid-min: 240px; --grid-gap: 28px 32px; }
.point { border-top: 2px solid var(--purple); padding-top: 18px; }
.point h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.point p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.on-dark .point { border-top: 1.5px solid rgba(190, 179, 228, 0.35); }
.on-dark .point h3 { font-size: 22px; }
.on-dark .point p { color: var(--lavender-light); }

/* Dark summary panel (quote builder) --------------------------------------- */

.summary {
    flex: 1 1 320px; min-width: 0;
    position: sticky; top: 96px;
    border-radius: 24px; padding: 28px;
    background: var(--purple-deep); color: #fff;
    display: flex; flex-direction: column; gap: 16px;
}
.summary__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.summary__group { font-size: 13px; font-weight: 700; color: var(--sprout); }
.summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.summary__line span:last-child { white-space: nowrap; }
.summary__line--save { color: var(--sprout); font-weight: 700; }
[data-up-lines], [data-mo-lines] { display: flex; flex-direction: column; gap: 8px; }
.summary__totals { border-top: 1px solid rgba(190, 179, 228, 0.3); padding-top: 18px; }
.summary__caption { font-size: 14px; color: var(--lavender); }
.summary__big {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
    font-variant-numeric: tabular-nums; margin-top: 6px;
    font-size: clamp(28px, 3vw, 36px);
}
.summary__note { font-size: 14px; color: var(--lavender-light); margin: 0; }
.summary__fine { font-size: 13px; line-height: 1.5; color: var(--lavender); }
.summary .badge { align-self: flex-start; font-size: 14px; padding: 6px 12px; }


/* FAQ accordion ---------------------------------------------------------- */

.faq details { border-bottom: 1.5px solid rgba(20, 11, 51, 0.12); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 0;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 22px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: 0 0 36px; height: 36px; border-radius: 50%;
    background: var(--lilac); color: var(--purple);
    display: grid; place-items: center;
    font: 600 20px var(--font-body);
    transition: transform 0.2s ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 44em; }

/* Forms ------------------------------------------------------------------ */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select {
    min-height: 52px; padding: 0 16px; border-radius: 14px;
    border: 2px solid var(--field); background: #fff; color: var(--ink); font-size: 16px;
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 14px; font-weight: 600; color: var(--error); }

/* Header & nav ----------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 250, 247, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20, 11, 51, 0.08);
}
.site-nav {
    max-width: 1320px; height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 52px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav-link:hover { color: var(--purple); }
.nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: -6px;
    width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--green);
}

/* Small screens: a bottom tab bar within thumb reach. */
.tab-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    padding: 6px max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    background: var(--purple-deep);
    box-shadow: 0 -8px 24px rgba(20, 11, 51, 0.18);
}
.tab {
    position: relative; min-height: 52px; padding: 6px 0; border: 0; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: none; color: var(--lavender); text-decoration: none; cursor: pointer;
    font: 600 clamp(10px, 3.2vw, 12px)/1 var(--font-body);
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover, .tab:active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.tab[aria-current="page"] { color: var(--sprout); }
.tab[aria-current="page"]::after {
    content: ""; position: absolute; top: 2px; left: 50%;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sprout);
}
.tab--quote { background: var(--sprout); color: var(--purple-deep); }
.tab--quote:hover, .tab--quote:active { background: #fff; color: var(--purple-deep); }

@media (max-width: 999px) {
    :root { --tab-bar-h: calc(64px + env(safe-area-inset-bottom)); }
    body { padding-bottom: var(--tab-bar-h); }
    .nav-desktop { display: none; }
    /* The on-screen keyboard pushes fixed elements up over the form, so step aside while typing. */
    body.is-typing { --tab-bar-h: 0px; }
    body.is-typing .tab-bar { display: none; }
}
@media (min-width: 1000px) {
    .tab-bar { display: none !important; }
}

/* Full-screen pages on phones and tablets (js/lib/mobile-page.js) ------------ */

html.has-mobile-page { overflow: hidden; }
.mpage {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
}
.mpage[open] { display: flex; flex-direction: column; animation: mpage-up 0.32s var(--ease); }
.mpage::backdrop { background: rgba(20, 11, 51, 0.45); }
@keyframes mpage-up { from { transform: translateY(32px); opacity: 0; } }

.mpage__head {
    display: flex; align-items: center; gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
}
.mpage__heading { flex: 1; min-width: 0; }
.mpage__title { margin: 0; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.01em; }
.mpage__step { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.mpage__icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--lilac); color: var(--ink);
}
.mpage__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mpage__progress { display: flex; gap: 4px; padding: 10px 20px 0; background: var(--paper); }
.mpage__progress > i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mpage__progress > i::after {
    content: ""; display: block; height: 100%; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.mpage__progress > i.on::after { transform: scaleX(1); }
.mpage__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px 28px; }
.mpage__foot {
    display: flex; flex-direction: column; gap: 10px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px rgba(20, 11, 51, 0.06);
}

/* Final CTA + footer ----------------------------------------------------- */

.cta { padding: clamp(64px, 10vw, 128px) var(--gutter); }
.cta__title { font-size: clamp(46px, 7.5vw, 96px); line-height: 0.94; letter-spacing: -0.035em; margin: 24px 0; }
.cta .lead { color: var(--lavender-light); max-width: 30em; margin-bottom: 32px; }
.cta .dots { --size: 12px; gap: 6px; }
.call-card { border-radius: 24px; background: var(--paper); color: var(--ink); padding: clamp(24px, 3.5vw, 36px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45); }
.call-card form { display: flex; flex-direction: column; gap: 16px; }
.call-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.call-card__intro { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
.call-card__about { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--lime-mist); font-size: 15px; font-weight: 600; color: var(--purple-deep); }
.call-card__done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 12px 0; }
.call-card__done h3 { font-weight: 800; font-size: 32px; }
.call-card__done p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.call-card__done:focus { outline: none; }

/* Phones and tablets: the call card opens as a full-screen page, so the section keeps just the button. */
@media (max-width: 999px) {
    .cta--paged .call-card, .cta--paged .cta__quote { display: none; }
    .cta--paged .cta__call { background: var(--sprout); border-color: var(--sprout); color: var(--ink); font-weight: 700; }
    .cta--paged .cta__call:hover { background: var(--lime-mist); color: var(--ink); }
}
.mpage .call-card { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.mpage .call-card h3 { font-size: 28px; }

.site-footer { padding: clamp(56px, 7vw, 88px) var(--gutter) 32px; color: var(--lavender-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand { grid-column: span 2; min-width: 0; max-width: 380px; }
@media (max-width: 499px) { .footer-brand { grid-column: auto; } } /* one column: spanning 2 would overflow */
.footer-logo { display: block; height: 72px; width: auto; }
.footer-mission {
    font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em;
    color: #fff; margin: 20px 0 24px; text-wrap: balance;
}
.footer-col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #fff; }
.footer-col a { color: #fff; text-decoration: none; overflow-wrap: anywhere; } /* the email address is wider than the column at some widths */
.footer-col a:hover { color: var(--sprout); }
.footer-bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(190, 179, 228, 0.25);
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
    font-size: 14px; color: var(--lavender);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: var(--lavender); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__link { padding: 0; border: 0; background: none; font: inherit; color: var(--lavender); text-decoration: underline; cursor: pointer; }
.footer-bottom__link:hover { color: #fff; }

/* Cookie choice for Google Analytics: a small card at the bottom left, above the tab bar on phones and tablets. */
.consent-banner {
    position: fixed; z-index: 150; left: var(--gutter); right: var(--gutter); bottom: calc(var(--tab-bar-h) + 16px);
    max-width: 440px; padding: 20px; border-radius: 20px;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--purple-deep); color: #fff; box-shadow: 0 24px 60px -16px rgba(20, 11, 51, 0.6);
}
.consent-banner p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lavender-light); }
.consent-banner a { color: #fff; }
.consent-banner__actions { display: flex; gap: 10px; }
.consent-banner .btn { flex: 1 1 0; min-height: 46px; padding: 0 16px; font-size: 15px; }

/* Quote builder (shared by Websites and Online Stores) -------------------- */

.qb__layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.qb__steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.qb__step {
    margin: 0; border: 0; padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: #fff;
    display: flex; flex-direction: column; gap: 16px;
    min-width: 0; /* fieldsets default to min-content width, which overflows on narrow phones */
}
.qb__step legend { display: contents; }
.qb__step-title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.qb__step-title b {
    width: 32px; height: 32px; border-radius: 50%; background: var(--purple); color: #fff;
    display: grid; place-items: center; font: 700 15px var(--font-body);
}
.qb__step-title small { font: 500 15px var(--font-body); color: var(--muted); }
.qb__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--opt-min, 200px)), 1fr)); gap: 12px; }

.qb-plan {
    position: relative; text-align: left;
    display: flex; flex-direction: column; gap: 8px; padding: 18px;
    border-radius: 18px; border: 2px solid rgba(20, 11, 51, 0.12);
    background: #fff; color: var(--ink); cursor: pointer;
    transition: background-color 0.2s ease-out, border-color 0.2s, color 0.2s;
}
.qb-plan .badge { position: absolute; top: -11px; right: 14px; font-size: 11px; padding: 4px 10px; }
.qb-plan__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qb-plan__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.qb-plan__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lavender); display: grid; place-items: center; }
.qb-plan__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.qb-plan__price { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qb-plan__meta { font-size: 13px; color: var(--muted); }
.qb-plan__blurb { font-size: 14px; line-height: 1.45; color: var(--muted); }
.qb-plan[aria-checked="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.qb-plan[aria-checked="true"] .qb-plan__meta,
.qb-plan[aria-checked="true"] .qb-plan__blurb { color: var(--lavender-light); }
.qb-plan[aria-checked="true"] .qb-plan__radio { border-color: var(--sprout); }
.qb-plan[aria-checked="true"] .qb-plan__radio::after { background: var(--sprout); }

.qb-plan__care { font-size: 14px; font-weight: 600; color: var(--purple); }
.qb-plan[aria-checked="true"] .qb-plan__care { color: var(--sprout); }

/* Monthly marketing packages: radio cards, the first being "No marketing for now". */
.qb-packages { display: flex; flex-direction: column; gap: 10px; }
.qb-package {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 50px;
    border-radius: 16px; border: 2px solid rgba(20, 11, 51, 0.12); background: #fff; cursor: pointer;
}
.qb-package input { position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; margin: 0; accent-color: var(--purple); }
.qb-package:has(input:checked) { border-color: var(--purple); background: var(--lilac); }
.qb-package:has(input:focus-visible) { outline: 3px solid var(--sprout); outline-offset: 2px; }
.qb-package__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.qb-package__head strong { font-size: 16px; }
.qb-package__head .badge { font-size: 11px; padding: 3px 9px; }
.qb-package__price { margin-left: auto; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--purple); }
.qb-package__includes { font-size: 14px; line-height: 1.5; color: var(--muted); }
.qb__subhead { margin: 14px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qb__more { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.qb__intro { margin: 6px 0 8px; font-size: 15px; color: var(--ink-soft); }
.qb-addon { border-top: 1px solid var(--rule); padding: 14px 0; }
.qb-addon > label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.qb-addon input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--purple); flex-shrink: 0; }
.qb-addon__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qb-addon__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.qb-addon__head strong { font-size: 16px; }
.qb-addon__price { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--purple); }
.qb-addon__body { font-size: 14px; line-height: 1.5; color: var(--muted); }

.qb__totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* Form plumbing ---------------------------------------------------------- */

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: var(--error); font-size: 14px; font-weight: 600; }
.field textarea {
    min-height: 96px; padding: 12px 16px; border-radius: 14px; resize: vertical;
    border: 2px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field small { font-size: 13px; color: var(--muted); font-weight: 400; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
button[type=submit][disabled] { opacity: 0.7; cursor: progress; }

/* Phones and tablets: the section shows a "Build my quote" button, and the builder opens as a full-screen
   stepper (quote-builder.js adds .qb-section--paged and .is-paged). */
.qb__intro-block { margin-bottom: 36px; }
.qb__launch, .qb__paged-only, .summary__close { display: none; }
@media (max-width: 999px) {
    .qb-section--paged .qb__intro-block { margin-bottom: 0; }
    .qb-section--paged .qb__launch { display: inline-flex; margin-top: 24px; }
    .qb-section--paged .qb:not(.is-paged) { display: none; }
}
.qb.is-paged .qb__layout { display: block; }
.qb.is-paged [data-qb-page]:not(.is-current, .is-sheet) { display: none; }
.qb.is-paged p.qb__paged-only { display: block; }
.qb.is-paged button.qb__paged-only { display: inline-flex; }
.qb.is-paged .qb__step { padding: 20px; }
.qb.is-paged .qb__step-title b, .qb.is-paged .summary__submit { display: none; }
.qb.is-paged [data-page-title]:focus { outline: none; }
.qb__contact-intro { margin: -6px 0 0; font-size: 15px; color: var(--muted); }
.summary__review { margin: 0; font-size: 15px; line-height: 1.55; color: var(--lavender-light); }
.summary__review strong { color: var(--sprout); }
.qb.is-paged .summary { position: static; }

/* Pages 1–3: the summary is a sheet that slides up from the footer's price bar. */
.qb.is-paged .summary.is-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
    max-height: min(85dvh, 680px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 24px 24px 0 0; padding-bottom: max(28px, env(safe-area-inset-bottom));
    box-shadow: 0 -20px 60px rgba(20, 11, 51, 0.35);
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.qb.is-paged .summary.is-sheet.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.qb.is-paged .summary.is-sheet .summary__close { display: grid; }
.qb.is-paged .summary.is-sheet .summary__review { display: none; }
.summary__close {
    width: 40px; height: 40px; flex-shrink: 0; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.12); color: #fff;
}
.summary__close svg, .qb-peek svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qb-scrim { position: fixed; inset: 0; z-index: 2; background: rgba(20, 11, 51, 0.45); }

.qb-peek {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 16px;
    border: 0; border-radius: 16px; background: var(--purple-deep); color: #fff; text-align: left; cursor: pointer;
}
.qb-peek__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qb-peek__label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lavender); }
.qb-peek__totals { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qb-peek__view { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--sprout); }
.qb-peek__view svg { transform: rotate(180deg); }
.qb-nav { display: flex; gap: 10px; }
.qb-nav .btn--green { flex: 1; }
.qb-nav .btn { min-height: 52px; font-size: 16px; }
.qb-nav .btn--ghost { padding: 0 20px; }

.qb__done {
    border-radius: 24px; background: #fff; padding: clamp(28px, 4vw, 48px);
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 720px;
}
.qb__done h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.02em; }
.qb__done p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.qb__done:focus { outline: none; }
