/* ==========================================================================
   PPC Convert — site.css
   The site that speaks fluent Google.
   Design language: a search results page, done beautifully.
   ========================================================================== */

:root {
    /* Palette */
    --ink: #10151d;
    --ink-2: #4a5568;
    --paper: #ffffff;
    --mist: #f2f5f9;
    --line: #e3e8ef;
    --blue: #2547f4;
    --blue-deep: #1634c4;
    --blue-wash: #eef1ff;
    --green: #077d46;
    --gold: #ffb43a;
    --night: #0c1220;
    --night-ink: #aab4c8;

    /* Type */
    --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
    --body: 'Instrument Sans', -apple-system, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;

    /* Rhythm */
    --radius: 18px;
    --radius-pill: 999px;
    --section: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

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

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--blue); color: var(--paper); }

/* ---------- Layout ---------- */

.wrap {
    max-width: 760px; /* search results column width — the geometry of our trade */
    margin-inline: auto;
    padding-inline: 24px;
}

.wrap--wide { max-width: 1080px; }

section { padding-block: var(--section); }
section + section { padding-top: 0; }

/* ---------- Typography ---------- */

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.9rem, 4.2vw, 2.75rem);
    margin-bottom: 1.1rem;
}

h3 { font-size: 1.15rem; font-weight: 650; }

.lede {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--ink-2);
    max-width: 56ch;
    text-wrap: pretty;
}

/* Breadcrumb eyebrows — every section states where you are, like a good URL */
.crumb {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    color: var(--green);
    margin-bottom: 1.25rem;
    display: block;
}
.crumb b { color: var(--ink); font-weight: 500; }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav__inner {
    max-width: 1080px;
    margin-inline: auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: var(--green); }

.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 3vw, 1.75rem);
}

.nav__links > a:not(.btn) {
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav__links > a:not(.btn):hover { color: var(--ink); text-decoration: none; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--blue);
    color: var(--paper);
    box-shadow: 0 8px 20px -8px rgba(37, 71, 244, 0.55);
}
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 10px 24px -8px rgba(37, 71, 244, 0.6); }

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

.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.9rem; }

.btn--light {
    background: var(--paper);
    color: var(--night);
}
.btn--light:hover { background: #e9edf5; }

.btn--outline-light {
    background: transparent;
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline-light:hover { border-color: var(--paper); }

/* ---------- Hero ---------- */

.hero {
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
    padding-bottom: var(--section);
    background:
        radial-gradient(1100px 500px at 50% -220px, var(--blue-wash), transparent 70%),
        var(--paper);
}

.hero__kicker {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink-2);
    text-align: center;
    margin-bottom: 1.1rem;
}

/* The search bar — where every one of your customers starts their day */
.searchbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 1.15rem 1.65rem;
    box-shadow: 0 14px 40px -18px rgba(16, 21, 29, 0.25);
    max-width: 640px;
    margin-inline: auto;
    transition: box-shadow 0.25s ease;
}
.searchbar:hover { box-shadow: 0 18px 48px -18px rgba(16, 21, 29, 0.32); }

.results-count {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-2);
    text-align: center;
    margin-top: 1rem;
}
.results-count b { color: var(--ink); font-weight: 500; }
.results-count--left { text-align: left; margin-top: 1.25rem; }

.searchbar svg { flex: none; width: 20px; height: 20px; stroke: var(--ink-2); }

.searchbar__q {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
}

.caret {
    flex: none;
    width: 2px;
    height: 1.25em;
    background: var(--blue);
    animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* The result card — the one result on the page that actually converts */
.serp-card {
    margin-top: 2.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 70px -35px rgba(16, 21, 29, 0.3);
}

.serp-card__meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.serp-card__favicon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1rem;
    display: grid;
    place-items: center;
}

.serp-card__site { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.serp-card__url { font-family: var(--mono); font-size: 0.78rem; color: var(--green); line-height: 1.3; }

.serp-card__sponsored {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
}

.serp-card__headline {
    font-family: var(--display);
    font-size: clamp(1.55rem, 4.4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: var(--blue);
    margin-bottom: 0.9rem;
    text-wrap: balance;
}
.serp-card__headline span { color: var(--ink); }

.serp-card__desc {
    color: var(--ink-2);
    font-size: 1.02rem;
    max-width: 58ch;
    text-wrap: pretty;
}

.sitelinks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
}

.sitelinks a {
    font-weight: 600;
    font-size: 0.95rem;
}
.sitelinks a::after { content: ' ›'; color: var(--ink-2); }

.serp-card__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero__wink {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-2);
    text-align: center;
    margin-top: 1.4rem;
}

/* ---------- Proof chips (ad extensions, basically) ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.chip {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}
.chip b { color: var(--blue); font-weight: 600; }

/* ---------- Card grids ---------- */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-top: 2.25rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -24px rgba(37, 71, 244, 0.35);
}

.card__tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    display: block;
    margin-bottom: 0.7rem;
}
.card__tag--loss { color: #b42318; }

.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- Knowledge panel (the solo section) ---------- */

.kp-section .wrap--wide {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.kp-copy p { color: var(--ink-2); margin-top: 1rem; max-width: 56ch; text-wrap: pretty; }
.kp-copy p strong { color: var(--ink); }

.kpanel {
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: sticky;
    top: 96px;
}

.kpanel__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.kpanel__avatar {
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--night);
    color: var(--paper);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
}

.kpanel__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.kpanel__role { font-size: 0.88rem; color: var(--ink-2); }

.kpanel dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem 1.25rem;
    padding-block: 1.25rem;
    font-size: 0.92rem;
}
.kpanel dt { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); padding-top: 0.15em; white-space: nowrap; }
.kpanel dd { font-weight: 550; }

.kpanel__footer {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--ink-2);
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
}

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

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    margin-top: 2.25rem;
}

.fit {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.fit--yes { background: var(--paper); }
.fit--no { background: var(--mist); }

.fit h3 { margin-bottom: 0.9rem; }

.fit ul { list-style: none; display: grid; gap: 0.6rem; }
.fit li {
    padding-left: 1.6rem;
    position: relative;
    color: var(--ink-2);
    font-size: 0.98rem;
}
.fit li::before {
    position: absolute;
    left: 0;
    font-family: var(--mono);
    font-weight: 600;
}
.fit--yes li::before { content: '✓'; color: var(--green); }
.fit--no li::before { content: '×'; color: #b42318; }

/* ---------- Process steps ---------- */

.steps {
    list-style: none;
    counter-reset: step;
    margin-top: 2.25rem;
    display: grid;
    gap: 0;
}

.step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 1.25rem;
    position: relative;
    padding-bottom: 2rem;
}
.step:last-child { padding-bottom: 0; }

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-wash);
    border: 1px solid #d5dcff;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
}

.step::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: 4px;
    width: 1px;
    background: var(--line);
}
.step:last-child::after { display: none; }

/* pin content to column 2 so it never auto-places into the number column */
.step h3, .step p { grid-column: 2; }
.step h3 { padding-top: 0.35rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); font-size: 0.98rem; max-width: 54ch; }
.step__meta { font-family: var(--mono); font-size: 0.76rem; color: var(--green); margin-left: 0.6rem; }

/* ---------- People also ask ---------- */

.paa { margin-top: 2.25rem; border-top: 1px solid var(--line); }

.paa details { border-bottom: 1px solid var(--line); }

.paa summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0.25rem;
    font-weight: 600;
    font-size: 1.02rem;
    transition: color 0.15s ease;
}
.paa summary:hover { color: var(--blue); }
.paa summary::-webkit-details-marker { display: none; }

.paa summary .chev {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    transition: transform 0.25s ease;
}
.paa summary .chev svg { width: 10px; height: 10px; stroke: var(--ink-2); }
.paa details[open] summary .chev { transform: rotate(180deg); border-color: var(--blue); }
.paa details[open] summary { color: var(--blue); }

.paa .paa__a {
    padding: 0 0.25rem 1.4rem;
    color: var(--ink-2);
    max-width: 62ch;
    text-wrap: pretty;
}

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

.cta-band {
    background: var(--night);
    color: var(--paper);
    padding-block: var(--section);
}

.cta-band .crumb { color: #79dfa9; }
.cta-band .crumb b { color: var(--paper); }

.cta-band h2 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    max-width: 18ch;
}

.cta-band .lede { color: var(--night-ink); margin-top: 0.4rem; }

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2.25rem;
}

.cta-band__note {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--night-ink);
    margin-top: 1.75rem;
}
.cta-band__note a { color: #8fa4ff; }

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

footer {
    border-top: 1px solid var(--line);
    padding-block: 2.5rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.footer__inner {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

.cta-band + footer { border-top: none; }

/* ---------- Page headers (inner pages) ---------- */

.page-head {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background:
        radial-gradient(900px 400px at 50% -200px, var(--blue-wash), transparent 70%),
        var(--paper);
}

.page-head h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.4rem);
    margin-bottom: 1rem;
}

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

.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 70px -40px rgba(16, 21, 29, 0.25);
    margin-top: 2.5rem;
}

.form-grid { display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: var(--body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.field .hint {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-2);
    margin-top: 0.35rem;
}

.field--check label {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink-2);
    cursor: pointer;
}
.field--check input { width: auto; margin-top: 0.25rem; accent-color: var(--blue); }

.form-foot {
    font-size: 0.85rem;
    color: var(--ink-2);
    margin-top: 1.2rem;
}

/* ---------- Pricing calculator ---------- */

.calc {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 70px -40px rgba(16, 21, 29, 0.25);
    margin-top: 2.5rem;
}

.calc__input label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.calc__field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0.9rem 1.4rem;
    font-family: var(--mono);
    font-size: 1.15rem;
    transition: border-color 0.15s ease;
}
.calc__field:focus-within { border-color: var(--blue); }
.calc__field .currency { color: var(--ink-2); }
.calc__field input {
    border: none;
    outline: none;
    width: 100%;
    font-family: var(--mono);
    font-size: 1.15rem;
    color: var(--ink);
    background: transparent;
}
/* hide number spinners */
.calc__field input::-webkit-outer-spin-button,
.calc__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__field input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

.calc__result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--night);
    color: var(--paper);
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin-top: 1.5rem;
}
.calc__result .label { font-family: var(--mono); font-size: 0.82rem; color: var(--night-ink); }
.calc__result .amount { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; }

.calc__breakdown { margin-top: 1.75rem; }
.calc__breakdown h3 { margin-bottom: 0.8rem; }

.calc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.calc th {
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
}
.calc td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.88rem;
}
.calc td.no-data { color: var(--ink-2); font-family: var(--body); }
.calc tr:last-child td { border-bottom: none; }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.tier {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    transition: border-color 0.2s ease;
}
.tier:hover { border-color: var(--blue); }
.tier .range { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }
.tier .rate { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--blue); }

.note { font-size: 0.85rem; color: var(--ink-2); margin-top: 1.1rem; }

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 860px) {
    .kp-section .wrap--wide { grid-template-columns: 1fr; }
    .kpanel { position: static; }
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .grid-2, .fit-grid, .form-row { grid-template-columns: 1fr; }
    .step { grid-template-columns: 44px 1fr; gap: 1rem; }
    .step::before { width: 44px; height: 44px; }
    .step::after { left: 22px; top: 48px; }
    .serp-card__sponsored { display: none; }
    .nav__links > a:not(.btn):not(.nav__keep) { display: none; }
}

@media (max-width: 480px) {
    .tier-grid { grid-template-columns: 1fr 1fr; }
    .searchbar { padding: 0.85rem 1.1rem; }
}

/* ==========================================================================
   V2 — the whole page is one search session
   ========================================================================== */

/* ---------- Hero boot sequence ---------- */

@keyframes bootUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.boot { animation: bootUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }
.boot-1 { animation-delay: 0.05s; }
.boot-2 { animation-delay: 0.18s; }
.boot-3 { animation-delay: 0.34s; }
.boot-4 { animation-delay: 0.5s; }
.boot-5 { animation-delay: 0.72s; }

/* ---------- Type interludes: big statements between SERP modules ---------- */

.interlude {
    background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
    background-size: 26px 26px;
}

.interlude h2 {
    font-size: clamp(2.4rem, 6vw, 4.3rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
    max-width: 16ch;
    margin-bottom: 1.5rem;
}
.interlude h2 em { font-style: normal; color: var(--blue); }

.interlude .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

/* ---------- Organic results (the 3am rabbit hole) ---------- */

.results { margin-top: 2.5rem; display: grid; gap: 1rem; }

.result {
    padding: 1.5rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color 0.2s ease;
}
.result:hover { border-color: #c9d2e0; }

.result__url {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.result__dot {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mist);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-family: var(--body);
    font-weight: 700;
    color: var(--ink-2);
}

.result__title {
    font-family: var(--body);
    font-weight: 600;
    font-size: 1.18rem;
    line-height: 1.35;
    color: var(--blue);
    margin-bottom: 0.35rem;
    text-wrap: pretty;
}
.result--visited .result__title { color: #681da8; }

.result__snippet { color: var(--ink-2); font-size: 0.95rem; max-width: 60ch; }
.result__snippet b { color: var(--ink); font-weight: 600; }

.result__note {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    background: var(--blue-wash);
    border-left: 3px solid var(--blue);
    border-radius: 0 12px 12px 0;
    font-size: 0.92rem;
    color: var(--ink);
}
.result__note b {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    display: block;
    margin-bottom: 0.25rem;
}

/* Dim results — page 2, where the excuses live */
.result--dim { opacity: 0.62; background: transparent; }
.result--dim .result__title { color: var(--ink-2); }
.result--dim:hover { border-color: var(--line); }
.result__err {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: #b42318;
}

/* ---------- Shopping carousel (the fix) ---------- */

.shop-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.shop-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -24px rgba(37, 71, 244, 0.4);
}

.shop-card__art {
    background: var(--blue-wash);
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
}
.shop-card__art svg { width: 64px; height: 64px; stroke: var(--blue); }

.shop-card__body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }

.shop-card__title { font-weight: 650; font-size: 0.98rem; line-height: 1.35; }

.shop-card__stars {
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}
.shop-card__stars span { color: var(--ink-2); font-size: 0.78rem; letter-spacing: 0; margin-left: 0.3rem; }

.shop-card__desc { color: var(--ink-2); font-size: 0.88rem; flex: 1; }

.shop-card__price {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--green);
    padding-top: 0.6rem;
    border-top: 1px dashed var(--line);
}

/* ---------- About this result (the trust panel) ---------- */

.trust-panel {
    margin-top: 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 30px 70px -40px rgba(16, 21, 29, 0.25);
    overflow: hidden;
}

.trust-panel__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--mist);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-2);
}
.trust-panel__bar svg { width: 15px; height: 15px; stroke: var(--ink-2); flex: none; }
.trust-panel__bar .dots { margin-left: auto; letter-spacing: 2px; color: var(--ink-2); }

.trust-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem;
    align-items: start;
}
.trust-row + .trust-row { border-top: 1px solid var(--line); }

.trust-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-wash);
    border: 1px solid #d5dcff;
    display: grid;
    place-items: center;
}
.trust-row__icon svg { width: 20px; height: 20px; stroke: var(--blue); }

.trust-row h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.trust-row p { color: var(--ink-2); font-size: 0.95rem; max-width: 58ch; }

.trust-panel__foot {
    padding: 1.1rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--mist);
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-2);
}

/* ---------- Search filters (who this is for) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 550;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--paper);
}
.filter::before {
    font-family: var(--mono);
    font-weight: 600;
}
.filter--yes::before { content: '✓'; color: var(--green); }
.filter--no { color: var(--ink-2); background: transparent; text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, 0.55); text-decoration-thickness: 1.5px; }
.filter--no::before { content: '×'; color: #b42318; }

.filters-label {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-2);
    margin-top: 2rem;
}

/* ---------- Search history (the process, told forwards) ---------- */

.history {
    list-style: none;
    margin-top: 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.history li {
    display: grid;
    grid-template-columns: 108px 20px 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1.15rem 1.4rem;
    position: relative;
}
.history li + li { border-top: 1px solid var(--line); }
.history li:hover { background: var(--mist); }

.history__when {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-2);
    white-space: nowrap;
}

.history__fav {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--blue-wash);
    border: 1px solid #d5dcff;
    align-self: start;
    margin-top: 0.3rem;
}
.history li:last-child .history__fav { background: var(--gold); border-color: var(--gold); }

.history__what { font-size: 0.98rem; }
.history__what b { font-weight: 650; }
.history__what .u { font-family: var(--mono); font-size: 0.8rem; color: var(--green); }
.history__what small { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- End-of-results CTA search bar ---------- */

.cta-search {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    padding: 1.05rem 1.5rem;
    max-width: 560px;
    margin-top: 2.25rem;
}
.cta-search svg { flex: none; width: 18px; height: 18px; stroke: var(--night-ink); }
.cta-search .q { font-family: var(--mono); font-size: 0.92rem; color: var(--paper); overflow: hidden; white-space: nowrap; }
.cta-search .caret { background: var(--gold); }

/* ---------- V2 responsive ---------- */

@media (max-width: 900px) {
    .shop-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .history li { grid-template-columns: 20px 1fr; }
    .history__when { grid-column: 2; order: 3; margin-top: 0.2rem; }
    .history__fav { grid-row: 1; align-self: baseline; margin-top: 0.2rem; }
    .interlude h2 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
}

@media (max-width: 520px) {
    .shop-row { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .shop-card__body { padding: 0.9rem 0.95rem 1.05rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .boot { animation: none; }
}
