/* ==========================================================================
   Bios Graphy — main stylesheet

   DESIGN RULES (follow these on every page):
   - Text colour is only #000 (on light backgrounds) or #fff (on dark ones).
   - One text size everywhere: var(--fs-body). Headings use var(--h1)…var(--h6).
   - No margins. Space things with a parent wrapper + gap: var(--gap) (20px).
   - Every section gets the same padding: var(--section-space).
   - Sections alternate automatically: light (white) → tint (light brand colour).
   - No box-shadow and no transform, anywhere.
   - Every border / divider line is 1px.
   - No bold text: every font-weight is 400.

   1. Design tokens
   2. Reset & base
   3. Layout (container, sections, stacks)
   4. Buttons & form fields
   5. Header
   6. Hero
   7. Footer
   8. Utilities
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
    /* Colours */
    --white: #fff;
    --black: #000;
    --brand: #111111;              /* main colour (black) */
    --brand-hover: #2b2b2b;
    --brand-tint: #f7f7f7;         /* light grey section / card background */
    --sage: #9a9a9a;               /* decorative accent (dots, icons) */
    --em-on-light: #6b6b6b;        /* italic part of headings on light backgrounds */
    --em-on-dark: #bdbdbd;         /* italic part of headings on dark backgrounds */
    --line: rgba(0, 0, 0, 0.1);
    --line-dark: rgba(255, 255, 255, 0.14);

    /* Type */
    --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-italic: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-serif: "Plus Jakarta Sans", "Inter Tight", system-ui, "Times New Roman", serif;

    --fs-body: 17px;               /* the only text size */
    --lh-body: 1.6;

    --h1: 60px;
    --h2: 56px;
    --h3: 36px;
    --h4: 28px;
    --h5: 22px;
    --h6: 19px;
    --lh-heading: 1.05;

    /* Spacing */
    --gap: 20px;                   /* the gap between elements */
    --section-space: 110px;        /* top & bottom padding of every section */

    /* Shape */
    /* One corner radius for every box on the site */
    --radius-input: 10px;          /* every input, select, textarea and search box */
    --radius: 20px;
    --radius-lg: 20px;
    --radius-xl: 20px;
    --pill: 999px;

    /* Layout */
    --container: 1280px;
    --gutter: 40px;
    --header-h: 76px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t: 0.35s var(--ease);
    --t-card: 0.6s cubic-bezier(0.45, 0, 0.25, 1);   /* slower, smoother fill change on cards */
}

@media (max-width: 1023px) {
    :root {
        --h1: 48px;
        --h2: 42px;
        --h3: 30px;
        --h4: 24px;
        --h5: 20px;
        --h6: 18px;
        --section-space: 84px;
        --gutter: 24px;
    }
}

@media (max-width: 575px) {
    :root {
        --fs-body: 15px;
        --gap: 14px;
        --h1: 38px;
        --h2: 34px;
        --h3: 26px;
        --h4: 22px;
        --h5: 19px;
        --h6: 17px;
        --section-space: 64px;
        --gutter: 20px;
    }
}

/* 2. Reset & base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;             /* no visible scrollbar anywhere */
    -ms-overflow-style: none;
    scroll-padding-top: calc(var(--header-h) + 24px);   /* anchor links stop below the fixed header */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: inherit;
}

/* No bold text anywhere: everything uses the normal weight */
strong, b, th { font-weight: 400; }

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

/* Headings use two colours: normal words + italic words, on the same line */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    color: var(--heading-em, var(--em-on-light));
}

.site-footer { --heading-em: var(--em-on-dark); }

p, li, a, span, label, input, select, textarea, button, small {
    font-size: var(--fs-body);
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;   /* no grey flash on tap (mobile) */
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

button { cursor: pointer; }

/* Elements hidden by the page script stay hidden even if a class sets display */
[hidden] { display: none !important; }

::selection { background: var(--black); color: var(--white); }

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 300;
    padding: 8px 16px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
}

.skip-link:focus { top: 16px; }

/* 3. Layout
   ========================================================================== */
.container {
    width: min(100%, var(--container));
    padding-inline: var(--gutter);
}

/* Blocks that hold a .container centre it (instead of auto margins).
   minmax(0, 1fr) keeps wide content (like the footer wordmark) from
   stretching the column past the screen width. */
.section,
.site-header,
.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Every section: same spacing, alternating light / tint background */
.section {
    padding-block: var(--section-space);
    background: var(--white);
    color: var(--black);
}

/* The hero (1st) has its own gradient, so the tint starts from the 3rd:
   hero → white → tint → white → … */
.site-main > .section:nth-of-type(odd):not(.hero) {
    background: var(--brand-tint);
}

/* The hero already ends with bottom space, so the next section needs no top space */
.site-main > .hero + .section {
    padding-top: 0;
}

/* The header is fixed, so the first section starts below it */
.site-main > .section:first-child {
    padding-top: calc(var(--header-h) + var(--section-space) / 2);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

@media (max-width: 1023px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    padding: 6px 16px 6px 8px;
    font-weight: 400;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--white);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-tint) radial-gradient(circle, var(--sage) 0 4px, transparent 5px);
}

/* 4. Buttons & form fields
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 6px 6px 22px;
    font-weight: 400;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--pill);
    white-space: nowrap;
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn__arrow {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

/* Two arrows: on hover the first slides out right, the second slides in */
.btn__arrow svg {
    position: absolute;
    top: calc(50% - 7.5px);
    left: calc(50% - 7.5px);
    width: 15px;
    height: 15px;
    transition: left 0.45s var(--ease);
}

.btn__arrow svg + svg { left: -24px; }

.btn:hover .btn__arrow svg:first-child { left: calc(100% + 10px); }

.btn:hover .btn__arrow svg + svg { left: calc(50% - 7.5px); }

/* Back button: same as the others, arrow on the left and sliding the other way */
.btn--back { padding: 6px 22px 6px 6px; }

.btn--back .btn__arrow svg + svg { left: calc(100% + 10px); }

.btn--back:hover .btn__arrow svg:first-child { left: -24px; }

.btn--back:hover .btn__arrow svg + svg { left: calc(50% - 7.5px); }

/* Buttons on light sections: black with a white arrow circle.
   Hover: turns white with a black border, the arrow circle turns black. */
.btn--primary,
.btn--light {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn--primary .btn__arrow,
.btn--light .btn__arrow {
    background: var(--white);
    color: var(--black);
}

.btn--primary:hover,
.btn--light:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--black);
}

.btn--primary:hover .btn__arrow,
.btn--light:hover .btn__arrow {
    background: var(--black);
    color: var(--white);
}

/* On black areas everything is the other way round */
.site-footer .btn,
.aside-cta .btn,
.audience-card:hover .btn,
.step-card:hover .btn {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.site-footer .btn .btn__arrow,
.aside-cta .btn .btn__arrow,
.audience-card:hover .btn .btn__arrow,
.step-card:hover .btn .btn__arrow {
    background: var(--black);
    color: var(--white);
}

.site-footer .btn:hover,
.aside-cta .btn:hover,
.audience-card:hover .btn:hover,
.step-card:hover .btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--white);
}

.site-footer .btn:hover .btn__arrow,
.aside-cta .btn:hover .btn__arrow,
.audience-card:hover .btn:hover .btn__arrow,
.step-card:hover .btn:hover .btn__arrow {
    background: var(--white);
    color: var(--black);
}

.field {
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color 0.4s ease;
}

.field::placeholder { color: rgba(0, 0, 0, 0.45); }

/* Every input: white with a light line; on click the line turns a soft grey
   (never black) and the change is smooth. No background colour change. */
.field:focus { border-color: rgba(0, 0, 0, 0.3); }

select.field {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
}

/* 5. Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: var(--black);
    background: transparent;
    transition: background-color var(--t);
}

/* Solid white once the page scrolls — no blur band, no line */
.site-header.is-scrolled {
    background: var(--white);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    height: var(--header-h);
}

/* Logo placeholder until the real logo arrives */
.site-logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #111111;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-6deg);
    transition: transform var(--t-card);
}

.site-logo:hover .site-logo__mark { transform: rotate(0deg); }

.site-logo__text {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #111111;
    white-space: nowrap;
}

.site-logo__text em { font-family: var(--font-italic); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.01em; color: #6b6b6b; }

.site-logo--light .site-logo__text { color: #fff; }
.site-logo--light .site-logo__text em { color: #bdbdbd; }
.site-logo--light .site-logo__mark { background: #fff; color: #111111; }

@media (max-width: 575px) {
    .site-logo__mark { width: 34px; height: 34px; font-size: 20px; }
    .site-logo__text { font-size: 25px; }
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.site-nav__list {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

/* Underline that draws in from the left (background-size, no transform) */
.site-nav__link {
    display: block;
    padding-block: 6px;
    font-weight: 400;
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background-size: 100% 1px;
}

.site-header .btn__arrow {
    width: 34px;
    height: 34px;
}

/* Mobile toggle */
.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 5px 5px 5px 18px;
    font-weight: 400;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--pill);
}

.nav-toggle__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
}

.nav-toggle__icon svg { width: 14px; height: 14px; }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1199px) {
    .nav-toggle { display: inline-flex; }

    /* backdrop-filter would trap the fixed overlay inside the header */
    .site-header,
    .site-header.is-scrolled {
        background: var(--white);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* Full-screen menu, revealed top-down with clip-path */
    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 40px;
        padding: calc(var(--header-h) + var(--gap)) var(--gutter) var(--gutter);
        background: var(--white);
        overflow-y: auto;
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path 0.6s var(--ease), visibility 0.6s;
    }

    .site-nav.is-open {
        clip-path: inset(0 0 0 0);
        visibility: visible;
    }

    .site-nav__list {
        flex: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__item {
        border-bottom: 1px solid var(--line);
        opacity: 0;
        transition: opacity 0.5s var(--ease);
        transition-delay: calc(0.2s + var(--i, 0) * 0.06s);
    }

    .site-nav.is-open .site-nav__item { opacity: 1; }

    .site-nav__link {
        padding-block: 18px;
        font-family: var(--font-serif);
        font-size: var(--h4);
        font-weight: 400;
        letter-spacing: -0.02em;
        background: none;
    }

    body.nav-open { overflow: hidden; }
}

/* 6. Hero
   ========================================================================== */
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.hero__lead { max-width: 520px; }

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gap);
}

.hero__sources {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero__sources > p { font-weight: 400; }

.hero__source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.hero__source-list li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero__source-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
}

.hero__source-icon svg {
    width: 20px;
    height: 20px;
}

/* Hero background: light base + 3 soft colour blobs that drift around.
   Movement uses top/left animation (no transform). */
.site-main > .hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--white);
}

/* Blobs fade out towards the bottom so the hero melts into the white
   section below — no hard edge */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.hero__blob--1 {
    width: 560px;
    height: 560px;
    top: -12%;
    left: -8%;
    background: #ececec;
    animation: blob-one 14s ease-in-out infinite alternate;
}

.hero__blob--2 {
    width: 520px;
    height: 520px;
    top: 10%;
    left: 62%;
    background: #f1f1f1;
    animation: blob-two 17s ease-in-out infinite alternate;
}

.hero__blob--3 {
    width: 420px;
    height: 420px;
    top: 55%;
    left: 30%;
    background: #f3f3f3;
    animation: blob-three 12s ease-in-out infinite alternate;
}

@keyframes blob-one {
    0%   { top: -12%; left: -8%; }
    50%  { top: 20%;  left: 25%; }
    100% { top: 45%;  left: 5%; }
}

@keyframes blob-two {
    0%   { top: 10%;  left: 62%; }
    50%  { top: 45%;  left: 48%; }
    100% { top: -10%; left: 72%; }
}

@keyframes blob-three {
    0%   { top: 55%; left: 30%; }
    50%  { top: 5%;  left: 45%; }
    100% { top: 60%; left: 65%; }
}

@media (max-width: 767px) {
    .hero__blob--1 { width: 360px; height: 360px; }
    .hero__blob--2 { width: 320px; height: 320px; }
    .hero__blob--3 { width: 280px; height: 280px; }
}

/* Phone showing the alerts (illustration, example data) */
.hero__visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);   /* keep the rings from widening the page */
    place-items: center;
    width: 100%;
    min-height: 700px;
}

/* Soft rings behind the phone */
.hero__visual::before,
.hero__visual::after {
    content: "";
    grid-area: 1 / 1;
    width: 560px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.1);
}

.hero__visual::after {
    width: 420px;
    background: radial-gradient(closest-side, rgba(150, 150, 150, 0.28), rgba(150, 150, 150, 0));
}

.phone {
    position: relative;
    z-index: 1;
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 360px;
    height: 680px;
    padding: 16px 14px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(420px 360px at 50% 10%, rgba(150, 150, 150, 0.55), rgba(150, 150, 150, 0) 70%),
        linear-gradient(180deg, #2a2a2a 0%, var(--brand) 60%);
    border: 10px solid var(--black);
    border-radius: 54px;
}

.phone__island {
    align-self: center;
    flex-shrink: 0;
    width: 100px;
    height: 30px;
    border-radius: var(--pill);
    background: var(--black);
}

.phone__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-block: 10px 6px;
}

.phone__clock {
    font-family: var(--font-sans);
    font-size: var(--h1);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.phone__live {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--pill);
}

.phone__live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9d9d9;
    animation: blink 1.4s ease-in-out infinite;
}

/* Live feed: newest notification on top */
.phone__feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each item grows open (grid rows 0fr → 1fr) and fades in — no transform */
.feed-item {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--ease), opacity 0.5s var(--ease);
}

.feed-item.is-in {
    grid-template-rows: 1fr;
    opacity: 1;
}

.feed-item > .notice { min-height: 0; overflow: hidden; }

.notice {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--black);
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius);
}

.notice--muted { background: rgba(255, 255, 255, 0.72); }

.notice--alert {
    background: var(--white);
    outline: 1px solid #d9d9d9;
    outline-offset: -1px;
}

.notice__app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* The brand icon (same as the favicon), like a real app notification */
.notice__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--white) url("../images/favicon.svg") center / cover no-repeat;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.notice strong { font-weight: 400; }

/* Floating cards around the phone */
.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    line-height: 1.35;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.float-card--left  { top: 22%; left: 0; }
.float-card--right { bottom: 20%; right: 0; }

.float-card__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
}

.float-card__icon svg { width: 20px; height: 20px; }

.float-card__text {
    display: flex;
    flex-direction: column;
}

.float-card__text strong { font-weight: 400; }

@media (max-width: 767px) {
    .float-card { display: none; }
}

/* minmax(0, 1fr) stops the decorative rings from forcing the column wider than the screen */
@media (max-width: 1199px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
    .hero__visual { min-height: 600px; }

    .phone {
        width: 100%;
        max-width: 340px;
        height: 640px;
    }

}

/* Shared section heading: eyebrow, then heading + intro side by side */
.section-head {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.section-head__row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
}

@media (max-width: 1023px) {
    .section-head__row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gap);
    }
}

/* How it works — 3 step cards */
.steps__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.step-card {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 32px;
    color: var(--black);
    background: var(--brand-tint);
    border-radius: var(--radius-lg);
    transition: background-color var(--t-card), color var(--t-card);
}

/* Hover: card fills with the brand colour, text turns white */
.step-card:hover {
    background: var(--brand);
    color: var(--white);
}

.step-card:hover .step-card__icon {
    background: var(--white);
    color: var(--brand);
}

.step-card:hover .step-card__num { color: var(--white); }

.step-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-bottom: 8px;
}

.step-card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    transition: background-color var(--t-card), color var(--t-card);
}

.step-card__icon svg {
    width: 24px;
    height: 24px;
}

.step-card__num {
    font-family: var(--font-serif);
    font-size: var(--h3);
    line-height: 1;
    color: var(--black);
    transition: color var(--t-card);
}

.step-card__title { font-size: var(--h5); }

@media (max-width: 1023px) {
    .steps__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
    .steps__inner { gap: 32px; }
    .step-card { padding: 22px; }
    .step-card__icon { width: 48px; height: 48px; }
}

/* Who it's for — two audience cards */
.audience__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.audience__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.audience-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
    padding: 40px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: background-color var(--t-card), color var(--t-card);
}

/* Hover: fill with the brand colour, text turns white */
.audience-card:hover {
    background: var(--brand);
    color: var(--white);
}

.audience-card__tag {
    padding: 6px 14px;
    font-weight: 400;
    background: var(--brand-tint);
    border-radius: var(--pill);
    transition: background-color var(--t-card), color var(--t-card);
}

.audience-card:hover .audience-card__tag {
    background: rgba(255, 255, 255, 0.12);
}

.audience-card__title { font-size: var(--h4); }

.audience-card__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding-block: 4px 8px;
}

.audience-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audience-card__list svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    transition: background-color var(--t-card), color var(--t-card);
}

.audience-card:hover .audience-card__list svg {
    background: var(--white);
    color: var(--brand);
}

@media (max-width: 1023px) {
    .audience__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
    .audience__inner { gap: 32px; }
    .audience-card { padding: 24px; }
    .audience-card .btn { white-space: normal; }
}

/* Why us — heading on the left, 6 feature cards on the right */
.features__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 64px;
}

.features__head {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    color: var(--black);
    background: var(--brand-tint);
    border-radius: var(--radius-lg);
    transition: background-color var(--t-card), color var(--t-card);
}

.feature-card:hover {
    background: var(--brand);
    color: var(--white);
}

.feature-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    transition: background-color var(--t-card), color var(--t-card);
}

.feature-card:hover .feature-card__icon {
    background: var(--white);
    color: var(--brand);
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card__title { font-size: var(--h5); }

@media (max-width: 1199px) {
    .features__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .features__head { position: static; }
}

@media (max-width: 575px) {
    .features__inner { gap: 32px; }
    .features__grid { grid-template-columns: minmax(0, 1fr); }
    .feature-card { padding: 22px; }
}

/* FAQs — full-width heading on top, accordion below */
.faq__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: background-color var(--t-card), color var(--t-card);
}

.faq-item__q {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: 0;
}

.faq-item__q button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    width: 100%;
    padding: 22px 24px;
    font-weight: 400;
    text-align: left;
    background: none;
    border: 0;
}

.faq-item__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    transition: background-color var(--t-card), color var(--t-card);
}

.faq-item__icon svg { width: 14px; height: 14px; }

.faq-item__v { transition: opacity var(--t-card); }

/* Answer opens smoothly (grid rows 0fr → 1fr) */
.faq-item__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-card);
}

.faq-item__a > div {
    min-height: 0;
    overflow: hidden;
}

.faq-item__a p { padding: 0 24px 22px; }

/* Open: card fills with the brand colour, plus turns into minus */
.faq-item.is-open {
    background: var(--brand);
    color: var(--white);
}

.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

.faq-item.is-open .faq-item__icon {
    background: var(--white);
    color: var(--brand);
}

.faq-item.is-open .faq-item__v { opacity: 0; }

@media (max-width: 575px) {
    .faq__inner { gap: 32px; }
    .faq__list { gap: 10px; }
    .faq-item__q button { padding: 18px; }
    .faq-item__a p { padding: 0 18px 18px; }
}

/* Guides — one featured guide + a clean list (no boxes) */
.guides__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.guides__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
}

/* Featured guide: dark panel with a large faded number */
.guide-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: var(--gap);
    min-height: 460px;
    padding: 40px;
    overflow: hidden;
    isolation: isolate;
    color: var(--white);
    background:
        radial-gradient(420px 320px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius-xl);
    --heading-em: var(--em-on-dark);
    transition: background-color var(--t-card);
}

.guide-feature__num {
    position: absolute;
    top: 10px;
    right: 28px;
    z-index: -1;
    font-family: var(--font-serif);
    font-size: 200px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    transition: color var(--t-card);
}

.guide-feature:hover .guide-feature__num { color: rgba(255, 255, 255, 0.16); }

.guide-feature__tag {
    padding: 5px 14px;
    font-weight: 400;
    border: 1px solid var(--line-dark);
    border-radius: var(--pill);
}

.guide-feature__title { font-size: var(--h3); }

/* Right side: numbered list with dividing lines */
.guides__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.guides__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--line);
}

.guides__list li { border-bottom: 1px solid var(--line); }

.guide-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 44px;
    align-items: center;
    gap: var(--gap);
    padding: 26px 4px;
}

.guide-row__num {
    font-family: var(--font-serif);
    font-size: var(--h4);
    line-height: 1;
}

.guide-row__title {
    font-family: var(--font-serif);
    font-size: var(--h5);
    line-height: 1.3;
}

.guide-row__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color var(--t-card), color var(--t-card), border-color var(--t-card);
}

.guide-row__arrow svg { width: 15px; height: 15px; }

.guide-row:hover .guide-row__arrow {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

@media (max-width: 1023px) {
    .guides__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .guide-feature { min-height: 380px; }
}

@media (max-width: 575px) {
    .guides__inner { gap: 32px; }

    .guide-feature {
        min-height: 340px;
        padding: 24px;
    }

    .guide-feature__num { font-size: 140px; }

    .guide-row {
        grid-template-columns: 36px minmax(0, 1fr) 38px;
        gap: 12px;
        padding: 20px 6px;
    }



    .guide-row__arrow { width: 38px; height: 38px; }
}

/* Browse by state — tile map of the U.S. + a finder panel */
.states__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.states__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 48px;
}

.states__map-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gap);
}

.states__hover {
    font-family: var(--font-serif);
    font-size: var(--h4);
    line-height: 1.2;
}

/* Each state is a tile placed on an 11 × 8 grid shaped like the U.S. */
.tile-map {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    grid-template-rows: repeat(8, auto);
    gap: 6px;
}

.tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.tile:hover,
.tile:focus-visible {
    background: var(--brand);
    color: var(--white);
}

/* Finder panel */
.states__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    color: var(--white);
    background:
        radial-gradient(380px 300px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius-xl);
    --heading-em: var(--em-on-dark);
}

.states__panel h3 { font-size: var(--h3); }

.states__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.states__form .field { border-color: transparent; }

.states__form .btn { justify-content: space-between; }

.states__popular {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
}

.states__popular > p { font-weight: 400; }

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--pill);
    transition: background-color var(--t-card), color var(--t-card), border-color var(--t-card);
}

.pill:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

@media (max-width: 1199px) {
    .states__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .tile-map { gap: 4px; }
}

/* On small phones the tiles get too small to tap, so only the finder shows */
@media (max-width: 575px) {
    .states__inner { gap: 32px; }
    .states__map-wrap { display: none; }
    .states__panel { padding: 24px; }
}

/* Why monitor — "before vs after" panels with a round VS badge between */
.compare__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.vs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.vs-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 48px;
    border-radius: var(--radius-xl);
}

.vs-panel--before {
    color: var(--black);
    background: var(--brand-tint);
}

.vs-panel--after {
    color: var(--white);
    background:
        radial-gradient(420px 320px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    --heading-em: var(--em-on-dark);
}

.vs-panel__tag {
    padding: 6px 16px;
    font-weight: 400;
    border-radius: var(--pill);
}

.vs-panel--before .vs-panel__tag { background: var(--white); }

.vs-panel--after .vs-panel__tag { border: 1px solid var(--line-dark); }

.vs-panel__title { font-size: var(--h3); }

.vs-panel__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.vs-panel__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}

.vs-panel--after .vs-panel__list li { border-top-color: var(--line-dark); }

.vs-panel__mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.vs-panel__mark svg { width: 16px; height: 16px; }

.vs-panel--before .vs-panel__mark {
    background: var(--white);
    color: var(--black);
}

.vs-panel--after .vs-panel__mark {
    background: var(--white);
    color: var(--brand);
}

/* Round "vs" badge sitting on the seam between the two panels */
.vs__badge {
    position: absolute;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    font-family: var(--font-serif);
    font-size: var(--h5);
    font-style: italic;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
}

@media (max-width: 1023px) {
    .vs { grid-template-columns: minmax(0, 1fr); }

    /* Badge sits between the stacked panels */
    .vs__badge {
        position: static;
        justify-self: center;
    }

    .vs-panel { padding: 36px; }
}

@media (max-width: 575px) {
    .compare__inner { gap: 32px; }
    .vs-panel { padding: 24px; gap: 18px; }
    .vs-panel__list li { padding-block: 12px; }
    .vs__badge { width: 60px; height: 60px; }
    .vs-panel--after .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* Pricing — 3 plans, the middle one highlighted */
.pricing__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Monthly / yearly switch */
.pricing__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.pricing__note { font-weight: 400; }

.billing-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--white);
    border-radius: var(--pill);
}

.billing-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 400;
    color: var(--black);
    background: transparent;
    border: 0;
    border-radius: var(--pill);
    transition: background-color var(--t-card), color var(--t-card);
}

.billing-toggle button.is-active {
    background: var(--brand);
    color: var(--white);
}

.billing-toggle__save {
    padding: 2px 8px;
    color: var(--black);
    background: var(--brand-tint);
    border-radius: var(--pill);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--gap);
}

.pricing__grid--single {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

.plan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
    padding: 32px 28px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius-xl);
}

.plan--featured {
    color: var(--white);
    background:
        radial-gradient(380px 300px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
}

.plan__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.plan__name { font-size: var(--h4); }

.plan__badge {
    padding: 5px 14px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border-radius: var(--pill);
}

.plan__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding-bottom: var(--gap);
    border-bottom: 1px solid var(--line);
}

.plan--featured .plan__price { border-bottom-color: var(--line-dark); }

.plan__amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan__price strong {
    font-family: var(--font-serif);
    font-size: var(--h3);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.plan__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.plan__list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan__list svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.plan--featured .plan__list svg {
    color: var(--brand);
    background: var(--white);
}

.plan--free .plan__amount strong { font-size: clamp(2.8rem, 6vw, 4.25rem); }
.plan__approval-note { margin: 16px 0 0; font-size: 0.9rem; opacity: 0.82; }

.plan .btn {
    width: 100%;
    justify-content: space-between;
}

/* Business plan: full-width strip under the 3 plans, content centred */
.plan--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 48px;
    text-align: center;
}

.plan__wide-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.plan__list--inline {
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
}

.plan--wide .btn {
    width: auto;
    gap: 14px;
}

@media (max-width: 1023px) {
    .pricing__grid { grid-template-columns: minmax(0, 1fr); }

    .plan--wide {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap);
        text-align: left;
    }

    .plan__wide-head { align-items: flex-start; }

    .plan__list--inline {
        flex-direction: column;
        justify-content: flex-start;
    }

    .plan--wide .btn {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 575px) {
    .pricing__inner { gap: 32px; }
    .billing-toggle button {
        padding: 9px 12px;
        white-space: nowrap;
    }
    .plan { padding: 26px 22px; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Page hero: same drifting background as the home hero, centred text */
.page-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    text-align: center;
}

.page-hero__lead { max-width: 680px; }

.breadcrumb {
    max-width: 100%;
    min-width: 0;
}

/* Always one line: the current page (then the others) shortens with "..." when space runs out */
.breadcrumb ol {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--pill);
}

.breadcrumb li {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.breadcrumb li[aria-current] { flex-shrink: 100; }

.breadcrumb li + li::before {
    content: "/";
    padding-right: 8px;
    opacity: 0.4;
}

.breadcrumb a {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t);
}

.breadcrumb a:hover { background-size: 100% 1px; }

.breadcrumb [aria-current] { font-weight: 400; }

/* About — hero: text left, bento of facts right */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.about-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.about-hero__content .breadcrumb ol { justify-content: flex-start; }

.about-hero__lead { max-width: 540px; }

.bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bento__tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 180px;
    padding: 24px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.bento__tile--tint {
    background: var(--brand-tint);
    border-color: transparent;
}

.bento__tile--dark {
    color: var(--white);
    background:
        radial-gradient(300px 240px at 100% 0%, rgba(150, 150, 150, 0.5), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-color: transparent;
}

.bento__tile--tall { grid-row: span 2; }

.bento__tile--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 0;
}

.bento__big {
    font-family: var(--font-serif);
    font-size: var(--h2);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
}

.bento__live {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--line-dark);
    border-radius: var(--pill);
}

.bento__tile--tall { justify-content: space-between; }

.bento__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento__live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9d9d9;
    animation: blink 1.4s ease-in-out infinite;
}

.bento__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.bento__icon svg { width: 22px; height: 22px; }

.bento__tile strong:not(.bento__big) { font-weight: 400; }

/* About — story: diagram left, text right */
.story__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 72px;
}

.story__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

.story__quote {
    padding: 4px 0 4px 24px;
    font-family: var(--font-serif);
    font-size: var(--h5);
    font-style: italic;
    line-height: 1.4;
    border-left: 1px solid var(--brand);
}

/* Flow diagram */
.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px;
    text-align: center;
    background: var(--brand-tint);
    border-radius: var(--radius-xl);
}

.flow__title {
    padding-bottom: 20px;
    font-weight: 400;
}

.flow__sources {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.flow__sources li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    font-weight: 400;
    background: var(--white);
    border-radius: var(--radius);
}

.flow__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.flow__icon svg { width: 20px; height: 20px; }

.flow__icon--light {
    color: var(--brand);
    background: var(--white);
}

/* Dashed connector with a dot moving down it (animates `top`, no transform) */
.flow__line {
    position: relative;
    width: 2px;
    height: 44px;
    background: repeating-linear-gradient(180deg, var(--brand) 0 5px, transparent 5px 10px);
}

.flow__line::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage);
    animation: flow-dot 1.8s ease-in-out infinite;
}

@keyframes flow-dot {
    0%   { top: 0; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: calc(100% - 10px); opacity: 0; }
}

.flow__hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 22px;
    color: var(--white);
    background: var(--brand);
    border-radius: var(--radius-lg);
}

.flow__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.flow__hub strong {
    padding-top: 6px;
    font-family: var(--font-serif);
    font-size: var(--h5);
    font-weight: 400;
}

.flow__inbox {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    text-align: left;
    line-height: 1.4;
    background: var(--white);
    border-radius: var(--pill);
}

.flow__inbox .flow__icon {
    color: var(--white);
    background: var(--brand);
}

.flow__inbox strong { font-weight: 400; }

/* About — values: 2×2 grid split by lines (no boxes); hover fills white */
.values__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.value {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color var(--t-card);
}

.value:hover { background: var(--white); }

.value__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-bottom: 8px;
}

.value__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.value__icon svg { width: 22px; height: 22px; }

.value__num {
    font-family: var(--font-serif);
    font-size: var(--h3);
    line-height: 1;
}

.value__title { font-size: var(--h4); }

/* About — mission: one dark panel, quote left, details right */
.mission__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 56px;
    padding: 64px;
    color: var(--white);
    background:
        radial-gradient(520px 380px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius-xl);
    --heading-em: var(--em-on-dark);
}

.mission__quote {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

.eyebrow--dark {
    color: var(--white);
    background: transparent;
    border-color: var(--line-dark);
}

.mission__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

.mission__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-block: 4px;
}

.mission__list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission__list svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--white);
}

@media (max-width: 1199px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 1023px) {
    .story__inner,
    .mission__panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .mission__panel { padding: 40px; }
}

@media (max-width: 575px) {
    /* Bento: big tile on top, two small side by side, wide tile at the bottom */
    .bento { gap: 10px; }

    .bento__tile {
        min-height: 0;
        padding: 18px;
    }

    .bento__tile--tall {
        grid-row: auto;
        grid-column: 1 / -1;
        gap: 28px;
    }

    .bento__big { font-size: var(--h3); }

    .bento__tile--wide { align-items: flex-start; }

    .bento__icon { width: 40px; height: 40px; }

    /* Flow: sources become a simple list of rows */
    .flow { padding: 18px; }

    .flow__sources {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .flow__sources li {
        flex-direction: row;
        padding: 10px 14px;
        text-align: left;
    }

    .flow__icon { width: 38px; height: 38px; }
    .flow__line { height: 32px; }
    .flow__hub { padding: 18px; }

    .flow__inbox {
        width: 100%;
        border-radius: var(--radius);
    }

    .story__inner { gap: 32px; }

    /* Values: stacked, separated by a line on top only */
    .values__inner { gap: 32px; }

    .values__grid {
        grid-template-columns: minmax(0, 1fr);
        border: 0;
    }

    .value {
        padding: 22px 0;
        border-right: 0;
        border-bottom: 0;
        border-top: 1px solid var(--line);
    }

    .value:hover { background: none; }

    .value__icon { width: 44px; height: 44px; }

    .mission__panel { padding: 24px; }

    .mission__side .btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* How It Works — hero timeline card */
.journey {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.journey__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.journey__head strong {
    padding-top: 8px;
    font-family: var(--font-serif);
    font-size: var(--h4);
    font-weight: 400;
    line-height: 1.2;
}

.journey__label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 4px 12px;
    background: var(--brand-tint);
    border-radius: var(--pill);
}

.journey__label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: blink 1.4s ease-in-out infinite;
}

/* Vertical line with a dot per event */
.journey__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.journey__list::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
    background: var(--brand-tint);
}

.journey__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 36px;
    line-height: 1.45;
}

.journey__item strong { font-weight: 400; }

.journey__dot {
    position: absolute;
    top: 4px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--brand);
}

.journey__day { font-weight: 400; }

.journey__item--found .journey__dot {
    background: var(--sage);
    border-color: var(--sage);
}

.journey__item--alert .journey__dot {
    background: var(--brand);
    border-color: var(--brand);
}

.journey__item--alert strong {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 10px;
    color: var(--white);
    background: var(--brand);
    border-radius: var(--pill);
}

/* How It Works — process steps as rows split by lines */
.process__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.process__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.process__step {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    padding-block: 40px;
    border-bottom: 1px solid var(--line);
}

.process__num {
    font-family: var(--font-serif);
    font-size: var(--h1);
    line-height: 0.9;
    color: var(--brand);
}

.process__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process__title { font-size: var(--h4); }

.process__points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.process__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.process__points svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

/* How It Works — sources: 3 columns split by lines (no boxes) */
.sources__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.sources__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.source {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 28px;
    border-top: 1px solid var(--brand);
}

.source__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.source__icon svg { width: 24px; height: 24px; }

.source__title { font-size: var(--h5); }

/* How It Works — name variations inside the dark panel */
.mission__quote > p:not(.eyebrow) { max-width: 520px; }

.name-pairs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.name-pairs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.name-pairs li:hover {
    color: var(--black);
    background: var(--white);
}

.name-pairs strong {
    font-family: var(--font-serif);
    font-size: var(--h5);
    font-weight: 400;
}

@media (max-width: 1023px) {
    .process__step {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 20px 24px;
    }

    .process__points { grid-column: 2; }

    .sources__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 575px) {
    .journey { padding: 22px; }

    .process__inner,
    .sources__inner { gap: 32px; }

    .process__step {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding-block: 28px;
    }

    .process__points { grid-column: auto; padding: 16px; }

    .process__num { font-size: var(--h2); }

    .name-pairs li {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 14px 18px;
    }
}

/* Pricing page — "in every plan": text + names meter left, features panel right */
.included__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 56px;
}

.included__side {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

/* Dark card showing the only difference between plans */
.names-meter {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 28px;
    color: var(--white);
    background:
        radial-gradient(320px 240px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
}

.names-meter__title { font-weight: 400; }

.names-meter__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.names-meter__list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.names-meter__row {
    display: flex;
    justify-content: space-between;
    gap: var(--gap);
}

.names-meter__row strong { font-weight: 400; }

.names-meter__bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: var(--pill);
    overflow: hidden;
}

/* Bars grow in when the page loads (animates width, no transform) */
.names-meter__bar > span {
    display: block;
    width: var(--fill);
    height: 100%;
    background: #d9d9d9;
    border-radius: var(--pill);
    animation: bar-grow 1.4s var(--ease) both;
}

@keyframes bar-grow {
    from { width: 0; }
    to   { width: var(--fill); }
}

/* One white panel, features in a 2-column grid split by lines */
.included__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
}

.included__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 32px;
    border-bottom: 1px solid var(--line);
    transition: background-color var(--t-card), color var(--t-card);
}

.included__item:nth-child(odd) { border-right: 1px solid var(--line); }

.included__item:nth-last-child(-n + 2) { border-bottom: 0; }

.included__item:hover {
    background: var(--brand);
    color: var(--white);
}

.included__item strong { font-weight: 400; }

.included__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    transition: background-color var(--t-card), color var(--t-card);
}

.included__item:hover .included__icon {
    color: var(--brand);
    background: var(--white);
}

.included__icon svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
    .included__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .included__side { position: static; }
}

@media (max-width: 575px) {
    .names-meter { padding: 22px; }

    .included__panel { grid-template-columns: minmax(0, 1fr); }

    .included__item {
        padding: 22px;
        border-right: 0;
    }

    .included__item:nth-child(odd) { border-right: 0; }
    .included__item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* White sections: components that are white by default switch to the tint
   so they stay visible (plans, billing switch, FAQ items) */
.site-main > .section:nth-of-type(even) .plan:not(.plan--featured),
.site-main > .section:nth-of-type(even) .billing-toggle,
.site-main > .section:nth-of-type(even) .faq-item:not(.is-open) {
    background: var(--brand-tint);
}

.site-main > .section:nth-of-type(even) .billing-toggle__save { background: var(--white); }

.site-main > .section:nth-of-type(even) .read-card:not(:hover) { background: var(--brand-tint); }
.site-main > .section:nth-of-type(even) .tile:not(:hover):not(:focus-visible) { background: var(--brand-tint); }
.site-main > .section:nth-of-type(even) .state-places__block { background: var(--brand-tint); }
.site-main > .section:nth-of-type(even) .read-card__topic { background: var(--white); }

/* Contact page — dark info panel left, form right.
   Spacing uses gap only: 20px between blocks, smaller inside related pairs. */
.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: var(--gap);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 40px;
    color: var(--white);
    background:
        radial-gradient(360px 280px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
    --heading-em: var(--em-on-dark);
}

.contact__info-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.contact__info-head h2 { font-size: var(--h3); }

/* Contact details as soft rows */
.contact__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.contact-card--link:hover {
    color: var(--black);
    background: var(--white);
}

.contact-card__arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    transition: background-color var(--t-card), color var(--t-card), border-color var(--t-card);
}

.contact-card__arrow svg { width: 14px; height: 14px; }

.contact-card--link:hover .contact-card__arrow {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

.contact__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--white);
    transition: background-color var(--t-card), color var(--t-card);
}

.contact-card--link:hover .contact__icon {
    color: var(--white);
    background: var(--brand);
}

.contact__icon svg { width: 20px; height: 20px; }

.contact__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    line-height: 1.35;
}

.contact__text > span:first-child { opacity: 0.75; }

.contact__value { overflow-wrap: anywhere; }

/* Quick answer links: rows split by lines */
.contact__quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line-dark);
}

.quick-links li { border-bottom: 1px solid var(--line-dark); }

.quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-block: 14px;
    transition: padding var(--t-card);
}

.quick-links a:hover { padding-left: 8px; }

.quick-links svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

/* Form */
.contact__form-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.contact-form {
    display: flex;
    flex: 1;                        /* fills the column so both sides are equal height */
    flex-direction: column;
    gap: 26px;
    padding: 40px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.contact-form__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form__title { font-size: var(--h4); }

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
}

/* Label, field and error stay close together */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field__label { font-weight: 400; }

/* Message field grows to use the extra height */
.form-field--grow { flex: 1; }
.form-field--grow .field--area { flex: 1; }

.form-field__error { font-weight: 400; }

.form-field__error::before { content: "! "; }





/* Multi-line field */
.field--area {
    min-height: 160px;
    padding: 16px 18px;
    line-height: var(--lh-body);
    border-radius: var(--radius-input);
    resize: vertical;
}

.contact-form .btn { align-self: flex-start; }

.form-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px;
    color: var(--white);
    background: var(--brand);
    border-radius: var(--radius);
}

.form-success__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--white);
}

.form-success__icon svg { width: 20px; height: 20px; }

.form-success__title { font-size: var(--h5); }

@media (max-width: 1023px) {
    .contact__inner { grid-template-columns: minmax(0, 1fr); }

}

@media (max-width: 575px) {
    .contact__info,
    .contact-form { padding: 24px; }

    .contact__info { gap: 28px; }
    .contact-card { padding: 14px; gap: 12px; }
    .contact__icon { width: 40px; height: 40px; }

    .contact-form { gap: 22px; }
    .contact-form__row { grid-template-columns: minmax(0, 1fr); gap: 22px; }

    .contact-form .btn {
        align-self: stretch;
        justify-content: space-between;
    }
}

/* Guides page — search in the hero */
.guide-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 620px;
    padding: 0 22px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-input);
    transition: border-color 0.4s ease;
}

.guide-search:focus-within { border-color: rgba(0, 0, 0, 0.3); }

.guide-search svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.guide-search__input {
    flex: 1;
    min-width: 0;
    min-height: 58px;
    background: transparent;
    border: 0;
    outline: none;
}

.guide-search__input::placeholder { color: rgba(0, 0, 0, 0.5); }

/* Guides page — featured guide, topic tabs, grid of guides */
.guides-hub__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.guide-feature--wide {
    min-height: 380px;
    padding: 56px;
}

.guide-feature--wide .guide-feature__title { max-width: 760px; }
.guide-feature--wide p { max-width: 620px; }

/* Guides grid: 3 columns, items split by lines (no boxes) */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    border-top: 1px solid var(--line);
}

.guide-grid > li { border-bottom: 1px solid var(--line); }

.guide-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding-block: 32px;
}

.guide-item__topic {
    padding: 4px 12px;
    background: var(--brand-tint);
    border-radius: var(--pill);
}

.guide-item__title {
    font-size: var(--h5);
    line-height: 1.3;
}

.guide-item p { flex: 1; }

.guide-item__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t-card);
}

.guide-item__link svg { width: 14px; height: 14px; }

.guide-item:hover .guide-item__link { background-size: 100% 1px; }

.guide-item:hover .guide-item__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

@media (max-width: 1023px) {
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-feature--wide { padding: 40px; }
}

@media (max-width: 575px) {
    .guides-hub__inner { gap: 32px; }

    .guide-feature--wide {
        min-height: 320px;
        padding: 24px;
    }

    .guide-grid { grid-template-columns: minmax(0, 1fr); }

    .guide-item { padding-block: 24px; }

    .guide-search { padding: 0 16px; }
}

/* Guides page — each topic: heading bar, then guides in 2 columns of numbered rows */
.topic-groups {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.topic-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.topic-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--gap);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--black);
}

.topic-group__title { font-size: var(--h3); }

.topic-group__count {
    flex-shrink: 0;
    padding: 4px 14px;
    background: var(--brand-tint);
    border-radius: var(--pill);
}

/* ==========================================================================
   Guide (article) pages
   ========================================================================== */
/* Meta chips under the guide title */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.article-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--pill);
}

.article-meta svg {
    width: 18px;
    height: 18px;
}

.article__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.article__aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.toc__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: toc;
}

.toc__list li {
    display: flex;
    gap: 10px;
    counter-increment: toc;
    line-height: 1.4;
}

.toc__list li::before {
    content: counter(toc, decimal-leading-zero);
    flex-shrink: 0;
    opacity: 0.5;
}

.toc__list a {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t);
}

.toc__list a:hover { background-size: 100% 1px; }

.aside-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    color: var(--white);
    background:
        radial-gradient(260px 200px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
}

.aside-cta__title {
    font-family: var(--font-serif);
    font-size: var(--h5);
    line-height: 1.2;
}

.aside-cta .btn { width: 100%; justify-content: space-between; }

.aside-cta .text-link { overflow-wrap: anywhere; }

/* Legal and FAQ pages: the side box stays visible on smaller screens */
.legal .aside-cta,
.faq-page .aside-cta { display: flex; }

/* FAQs page: one block per topic */
.faq-group {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.faq-group h2 { font-size: var(--h3); }

.article__main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.key-points__title {
    font-family: var(--font-serif);
    font-size: var(--h5);
}

.key-points ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.key-points svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

/* Article text */
.prose {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.prose h2 { font-size: var(--h3); }

.prose ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prose li {
    position: relative;
    padding-left: 24px;
}

.prose li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.article-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
    padding: 36px;
    color: var(--white);
    background:
        radial-gradient(360px 260px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
    --heading-em: var(--em-on-dark);
}

.article-cta__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-cta h2 { font-size: var(--h4); }

.article-faq {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.article-faq h2 { font-size: var(--h3); }

.article-faq .faq-item:not(.is-open) { background: var(--brand-tint); }

.article__note {
    padding-top: var(--gap);
    border-top: 1px solid var(--line);
    opacity: 0.7;
}

/* Keep reading — 3 numbered cards; hover fills with the brand colour */
.related__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.text-link {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
}

.read-next {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.read-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 28px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.read-card:hover {
    color: var(--white);
    background: var(--brand);
}

.read-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.read-card__num {
    font-family: var(--font-serif);
    font-size: var(--h3);
    line-height: 1;
}

.read-card__topic {
    padding: 4px 12px;
    background: var(--brand-tint);
    color: var(--black);
    border-radius: var(--pill);
}

.read-card__title {
    font-family: var(--font-serif);
    font-size: var(--h5);
    line-height: 1.3;
}

.read-card__desc { flex: 1; }

.read-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-top: 16px;
    border-top: 1px solid var(--line);
    transition: border-color var(--t-card);
}

.read-card:hover .read-card__foot { border-top-color: var(--line-dark); }

.read-card__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    transition: background-color var(--t-card), color var(--t-card);
}

.read-card__arrow svg { width: 14px; height: 14px; }

.read-card:hover .read-card__arrow {
    color: var(--brand);
    background: var(--white);
}

@media (max-width: 1023px) {
    .read-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .article__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .article__aside { position: static; }

    /* On smaller screens the side CTA is dropped; the in-article CTA remains */
    .aside-cta { display: none; }

}

@media (max-width: 575px) {
    .topic-groups { gap: 48px; }

    .read-next { grid-template-columns: minmax(0, 1fr); }
    .read-card { padding: 22px; }

    .toc,
    .key-points { padding: 20px; }

    .article__main { gap: 36px; }

    .article-cta { padding: 24px; }

    .article-cta .btn {
        width: 100%;
        justify-content: space-between;
    }

    .related__inner { gap: 32px; }
}

/* For Families — hero watch-list card */
.family-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.family-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.family-card__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.family-card__row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.family-card__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.family-card__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.35;
}

.family-card__name {
    font-family: var(--font-serif);
    font-size: var(--h6);
}

.family-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--white);
    border-radius: var(--pill);
}

.family-card__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    animation: blink 1.6s ease-in-out infinite;
}

.family-card__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.family-card__foot svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

/* Found state for a row in the watch list */
.family-card__status--found {
    color: var(--white);
    background: var(--brand);
}

.family-card__status--found::before {
    background: #d9d9d9;
    animation: none;
}

/* For Professionals — activity log under the list */
.activity-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.activity-log__title {
    font-family: var(--font-serif);
    font-size: var(--h6);
}

.activity-log ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-log li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding-left: 16px;
    border-left: 1px solid var(--brand);
    line-height: 1.4;
}

.activity-log li > span:first-child { opacity: 0.65; }

/* For Families — reasons grid */
.family-reasons__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.features__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* On tint sections the light "before" panel turns white so it stays visible */
.site-main > .section:nth-of-type(odd):not(.hero) .vs-panel--before { background: var(--white); }
.site-main > .section:nth-of-type(odd):not(.hero) .vs-panel--before .vs-panel__tag,
.site-main > .section:nth-of-type(odd):not(.hero) .vs-panel--before .vs-panel__mark { background: var(--brand-tint); }

@media (max-width: 1023px) {
    .features__grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .family-card { padding: 20px; }

    .family-card__row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .family-card__avatar { width: 40px; height: 40px; }

    .family-card__status {
        grid-column: 2;
        justify-self: start;
    }

    .family-reasons__inner { gap: 32px; }

    .features__grid--three { grid-template-columns: minmax(0, 1fr); }
}

/* Funeral home directory — one white panel per region, states in columns */
.regions__inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.regions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.region {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
}

.region__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.region__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
}

.region__icon svg { width: 22px; height: 22px; }

.region__title {
    flex: 1;
    font-size: var(--h4);
}

.region__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.region__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.region__link::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    transition: background-color var(--t-card);
}

.region__link span {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t-card);
}

.region__link:hover::before { background: var(--brand); }

.region__link:hover span { background-size: 100% 1px; }

.region__link svg { display: none; }

@media (max-width: 1023px) {
    .regions__grid { grid-template-columns: minmax(0, 1fr); }
    .region__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .region__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .regions__inner { gap: 32px; }
    .region { padding: 22px; gap: 18px; }
    .region__head { padding-bottom: 16px; }
    .region__icon { width: 42px; height: 42px; }
}

/* Start Monitoring — progress panel left, step-by-step form right */
.signup__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 40px;
}

.signup__aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.signup-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    color: var(--white);
    background:
        radial-gradient(360px 280px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
    --heading-em: var(--em-on-dark);
}

.signup-panel__title { font-size: var(--h3); }

/* Step list with a connecting line; the current step is filled */
.signup-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.signup-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 17px;
    width: 1px;
    background: var(--line-dark);
}

.signup-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.6;
    transition: opacity var(--t-card);
}

.signup-steps li > span:first-child {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    background: var(--brand);
    transition: background-color var(--t-card), color var(--t-card), border-color var(--t-card);
}

.signup-steps li.is-active,
.signup-steps li.is-done { opacity: 1; }

.signup-steps li.is-active > span:first-child {
    color: var(--brand);
    background: var(--white);
    border-color: var(--white);
}

.signup-steps li.is-done > span:first-child {
    background: var(--sage);
    border-color: var(--sage);
}

.signup-steps__text {
    font-family: var(--font-serif);
    font-size: var(--h6);
}

.signup-panel__points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
}

.signup-panel__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-panel__points svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--white);
}

/* Form card */
.signup-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 44px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.signup-card__title {
    font-family: var(--font-serif);
    font-size: var(--h3);
    line-height: var(--lh-heading);
}

.signup-done { align-items: flex-start; gap: 18px; }

.wizard__progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard__count { opacity: 0.7; }

.wizard__bar {
    height: 6px;
    overflow: hidden;
    background: var(--brand-tint);
    border-radius: var(--pill);
}

/* Width grows as you move through the steps (no transform) */
.wizard__bar > span {
    display: block;
    width: 33.34%;
    height: 100%;
    background: var(--brand);
    border-radius: var(--pill);
    transition: width 0.5s var(--ease);
}

.wizard__step {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.wizard__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.wizard__sub { opacity: 0.75; }

.wizard__fields {
    display: flex;
    flex-direction: column;
    gap: 26px;               /* more space between fields than between a label and its field */
}

.wizard__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
}

.form-field__opt { opacity: 0.6; }



.wizard__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.wizard__note { opacity: 0.75; }

/* With JavaScript on, only the current step is shown */
.wizard.is-ready .wizard__step { display: none; }
.wizard.is-ready .wizard__step.is-current { display: flex; }

/* Without JavaScript the steps are stacked and the Continue/Back buttons hide */
.wizard:not(.is-ready) [data-step-next],
.wizard:not(.is-ready) [data-step-back],
.wizard:not(.is-ready) .wizard__progress { display: none; }

/* Plan choice */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--t), background-color var(--t-card), color var(--t-card);
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option__dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid var(--black);
    border-radius: 50%;
    background: var(--white);
    transition: background-color var(--t), border-color var(--t);
}

.plan-option__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.plan-option__name {
    font-family: var(--font-serif);
    font-size: var(--h5);
}

.plan-option__price { white-space: nowrap; }

.plan-option:hover { border-color: var(--black); }

.plan-option:has(input:checked) {
    color: var(--white);
    background: var(--brand);
}

.plan-option input:checked + .plan-option__dot {
    border-color: var(--white);
    background: radial-gradient(circle, var(--brand) 0 4px, var(--white) 5px);
}

.plan-option input:focus-visible + .plan-option__dot {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 1023px) {
    .signup__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gap);
    }

    .signup__aside { position: static; }

    /* Compact panel on smaller screens: steps side by side, points hidden */
    .signup-panel { gap: 20px; padding: 28px; }

    .signup-steps {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .signup-steps::before {
        top: 17px;
        bottom: auto;
        left: 18px;
        right: 18px;
        width: auto;
        height: 1px;
    }

    .signup-steps li {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .signup-panel__points { display: none; }
}

@media (max-width: 575px) {
    .signup-panel { padding: 22px; }
    .signup-steps__text { font-size: var(--fs-body); }

    .signup-card { padding: 22px; gap: 24px; }
    .wizard__step { gap: 24px; }
    .wizard__fields { gap: 22px; }
    .wizard__row { grid-template-columns: minmax(0, 1fr); gap: 22px; }

    .plan-option {
        flex-wrap: wrap;
        padding: 16px;
    }

    .plan-option__price { padding-left: 38px; width: 100%; }

    .wizard__nav .btn { flex: 1; justify-content: space-between; }
}

/* 404 page */
.not-found__code {
    font-family: var(--font-serif);
    font-size: clamp(96px, 18vw, 180px);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(180deg, #111 0%, rgba(17, 17, 17, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.not-found__name em {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.01em;
    color: var(--em-on-light);
}

.not-found__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.not-found__title { font-size: var(--h3); }

.not-found__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    border-top: 1px solid var(--line);
}

.not-found__grid li { border-bottom: 1px solid var(--line); }

.not-found__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-block: 22px;
}

.not-found__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.not-found__name {
    font-family: var(--font-serif);
    font-size: var(--h5);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
}

.not-found__link:hover .guide-row__arrow {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 1023px) {
    .not-found__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .not-found__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   State pages (funeral home directory)
   ========================================================================== */

/* Hero */
.state-search { max-width: 520px; }

.state-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

/* Mini U.S. map with the current state highlighted, plus two floating stat cards */
.state-visual {
    position: relative;
    display: grid;
    place-items: center;
    padding: 56px 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mini-map {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    grid-template-rows: repeat(8, auto);
    gap: 5px;
    width: 100%;
}

.mini-map__tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    color: var(--black);
    background: var(--brand-tint);
    border-radius: var(--radius-input);
    transition: background-color var(--t-card), color var(--t-card);
}

.mini-map__tile:hover {
    color: var(--white);
    background: var(--sage);
}

.mini-map__tile.is-current {
    color: var(--white);
    background: var(--brand);
    animation: tile-pulse 2.4s ease-in-out infinite;
}

@keyframes tile-pulse {
    0%, 100% { background-color: var(--brand); }
    50%      { background-color: var(--sage); }
}

.state-visual .float-card--left  { top: -20px; left: -20px; }
.state-visual .float-card--right { right: -20px; bottom: -20px; }

/* Dark band of four key numbers */
.state-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
    color: var(--white);
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
}

.state-band li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
}

.state-band li + li { border-left: 1px solid var(--line-dark); }

.state-band strong {
    font-family: var(--font-serif);
    font-size: var(--h2);
    line-height: 1;
}

.state-band span {
    opacity: 0.8;
    overflow-wrap: break-word;
    hyphens: auto;   /* long state names on small phones */
}

/* Top city cards (built on the feature card) */
.state-cities__inner,
.state-directory__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.city-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.city-card { cursor: pointer; }

.city-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.city-card__count {
    font-family: var(--font-serif);
    font-size: var(--h2);
    line-height: 1;
}

.city-card__meta { opacity: 0.75; }

.city-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    transition: border-color var(--t-card);
}

.city-card__link svg { width: 14px; height: 14px; }

.city-card:hover .city-card__link { border-top-color: var(--line-dark); }

/* On tint sections these cards turn white so they stand out */
.site-main > .section:nth-of-type(odd):not(.hero) .feature-card:not(:hover) { background: var(--white); }

/* Funeral home cards */
.fh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.fh-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.site-main > .section:nth-of-type(even) .fh-card:not(:hover) { background: var(--brand-tint); }

.fh-card:hover {
    color: var(--white);
    background: var(--brand);
}

.fh-card.is-later { display: none; }

.fh-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

.fh-card__avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    transition: background-color var(--t-card), color var(--t-card);
}

.fh-card:hover .fh-card__avatar {
    color: var(--brand);
    background: var(--white);
}

.fh-card__rating {
    padding: 4px 12px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--pill);
}

.fh-card__name {
    flex: 1;
    font-size: var(--h5);
    line-height: 1.3;
}

.fh-card__place {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.fh-card__place span { opacity: 0.75; overflow-wrap: anywhere; }

.fh-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    transition: border-color var(--t-card);
}

.fh-card:hover .fh-card__foot { border-top-color: var(--line-dark); }

.fh-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fh-card__phone svg { flex-shrink: 0; width: 18px; height: 18px; }

.fh-card__arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand);
    transition: background-color var(--t-card), color var(--t-card);
}

.fh-card__arrow svg { width: 14px; height: 14px; }

.fh-card:hover .fh-card__arrow {
    color: var(--brand);
    background: var(--white);
}

/* Obituary cards: the date pill stays visible on a white card */
.fh-card--obit .fh-card__rating { background: var(--brand-tint); }

.site-main > .section:nth-of-type(even) .fh-card--obit:not(:hover) .fh-card__rating,
.fh-card--obit:hover .fh-card__rating { background: var(--white); }

/* Obituary cards: photo (saved on our server) or the memorial placeholder, date pill on top */
.obit-photo {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1 / 1;
    background: var(--brand-tint);
    border-radius: calc(var(--radius) - 6px);
}

.obit-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.obit-photo .fh-card__rating {
    position: absolute;
    top: 12px;
    left: 12px;
}

.fh-card--obit .obit-photo .fh-card__rating,
.fh-card--obit:hover .obit-photo .fh-card__rating { background: var(--white); }

.obit-meta { opacity: 0.75; }

.obit-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.fh-card--obit .fh-card__name { flex: 0 0 auto; }

.fh-card--obit .fh-card__place { margin-top: auto; }

.fh-card--obit .fh-card__phone { color: inherit; }

/* Funeral home page with no recent obituaries */
.obit-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px;
    color: var(--black);
    background: var(--white);
    border-radius: var(--radius);
}

.site-main > .section:nth-of-type(even) .obit-empty { background: var(--brand-tint); }

.obit-empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--white);
    background: var(--brand);
    border-radius: 50%;
}

.obit-empty__icon svg { width: 24px; height: 24px; }

.obit-empty__title { font-size: var(--h4); }

.obit-empty p { max-width: 640px; }

.obit-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

@media (max-width: 767px) {
    .obit-empty { padding: 28px 22px; }

    .obit-empty__title { font-size: var(--h5); }
}

.state-more {
    display: flex;
    justify-content: center;
}

/* Filter bar above the cards */
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--gap);
    padding: 22px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.filter-bar__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.state-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 14px 18px;
    background: var(--brand-tint);
    border-radius: var(--radius-input);
}

.state-filter__clear {
    padding: 0;
    background: none;
    border: 0;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 1px;
}

.state-credit {
    text-align: center;
    opacity: 0.7;
}

/* Obituary alerts: compact dark panel, short text left, notification preview right */
.alert-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 48px;
    color: var(--white);
    background:
        radial-gradient(520px 380px at 100% 0%, rgba(150, 150, 150, 0.45), rgba(150, 150, 150, 0) 70%),
        var(--brand);
    border-radius: var(--radius);
    --heading-em: var(--em-on-dark);
}

.alert-panel__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.alert-panel__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--white);
}

.alert-panel__icon svg { width: 24px; height: 24px; }

.alert-panel__title { font-size: var(--h3); }

.alert-panel__text p { max-width: 420px; opacity: 0.85; }

.alert-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 1199px) {
    .state-band strong { font-size: var(--h3); }
    .city-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .state-visual .float-card--left  { left: 12px; }
    .state-visual .float-card--right { right: 12px; }
}

@media (max-width: 1023px) {
    .alert-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px; }
    .state-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .state-band li:nth-child(3) { border-left: 0; }
    .state-band li:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
    .fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .float-card { display: none; }
}

@media (max-width: 575px) {
    .state-visual { padding: 20px; }

    .mini-map { gap: 4px; }

    /* Smaller letters so the abbreviations fit the small tiles */
    .mini-map__tile {
        font-size: 10px;
        border-radius: 5px;
    }

    .state-band li { padding: 18px; }
    .state-band strong { font-size: var(--h3); }

    .state-cities__inner,
    .state-directory__inner { gap: 24px; }

    .state-more .btn { width: 100%; justify-content: space-between; }

    /* City cards: compact, two per row */
    .city-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .city-card {
        gap: 4px;
        padding: 16px;
    }

    .city-card .feature-card__icon,
    .city-card__link { display: none; }

    .city-card__count { font-size: var(--h3); }

    .city-card__meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Funeral home cards: tighter, one per row */
    .fh-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .fh-card {
        gap: 10px;
        padding: 18px;
    }

    .fh-card__avatar {
        width: 40px;
        height: 40px;
    }

    .fh-card__name { font-size: var(--h6); }

    .fh-card__foot { padding-top: 12px; }

    .fh-card__arrow {
        width: 36px;
        height: 36px;
    }

    /* Filters: labels hidden (placeholders say it), fields stacked */
    .filter-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .filter-bar .form-field__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .state-filter { padding: 12px 14px; }

    .fh-card { padding: 22px; }

    .alert-panel { padding: 24px; }
    .alert-panel .btn { width: 100%; justify-content: space-between; }
}

/* All cities of a state: one panel, cities in columns, the rest open with "Show all" */
.city-index__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.city-index__list li { min-width: 0; }

.city-index .region__link { align-items: baseline; }

.city-index .region__link::before { align-self: center; }

.city-index .region__link span { overflow-wrap: anywhere; }

.city-index .region__link .city-index__count {
    flex-shrink: 0;
    background: none;
    opacity: 0.6;
}

/* Panels and filters keep their contrast whichever background the section has */
.site-main > .section:nth-of-type(even) .region { background: var(--brand-tint); }
.site-main > .section:nth-of-type(even) .region .topic-group__count { background: var(--white); }
.site-main > .section:nth-of-type(odd):not(.hero) .filter-bar,
.site-main > .section:nth-of-type(odd):not(.hero) .state-filter { background: var(--white); }

/* City pages: search on its own, nearby city cards */
.filter-bar--single { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1023px) {
    .city-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .city-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .city-index__list { gap: 10px 16px; }
    .city-index .state-more .btn { width: 100%; justify-content: space-between; }
}

/* Very small phones: long city names get the full width */
@media (max-width: 379px) {
    .city-cards { grid-template-columns: minmax(0, 1fr); }
}

/* 7. Footer
   ========================================================================== */
.site-footer {
    background: var(--brand);
    color: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
    padding-top: var(--section-space);
}

.site-footer__cta {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 40px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line-dark);
}

.site-footer__cta-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
}

.site-footer__col,
.site-footer__news {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.site-footer__heading {
    font-family: var(--font-serif);
    font-size: var(--h6);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__list a {
    display: inline-block;
    transition: padding var(--t);
}

.site-footer__list a:hover { padding-left: 6px; }

.newsletter {
    display: flex;
    gap: var(--gap);
    max-width: 380px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color var(--t);
}

.newsletter:focus-within { border-color: var(--white); }

.newsletter__input {
    flex: 1;
    min-width: 0;
    padding-block: 12px;
    color: var(--white);
    background: transparent;
    border: 0;
    outline: none;
}

.newsletter__input::placeholder { color: rgba(255, 255, 255, 0.55); }

.newsletter__btn {
    font-weight: 400;
    color: var(--white);
    background: none;
    border: 0;
}

.site-footer__news p { max-width: 380px; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding-block: var(--gap);
    border-top: 1px solid var(--line-dark);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.site-footer__legal a {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
    transition: background-size var(--t);
}

.site-footer__legal a:hover { background-size: 100% 1px; }

/* Bottom bar + wordmark sit together with no gap */
.site-footer__end {
    display: flex;
    flex-direction: column;
}

/* Oversized fading wordmark — JS sizes it to span the full container width */
.site-footer__wordmark {
    display: flex;
    justify-content: center;
    padding-top: var(--gap);
    font-family: var(--font-serif);
    font-size: 15vw;
    font-weight: 700;
    line-height: 0.74;
    letter-spacing: -0.045em;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.site-footer__wordmark span {
    font-size: inherit;             /* override the global span size */
    padding-right: 0.045em;         /* gives back the last letter's negative letter-spacing so it isn't clipped */
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.04) 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 1023px) {
    .site-footer__cta { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__news { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .site-footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile: tighter spacing everywhere, legal links above the copyright */
@media (max-width: 575px) {
    .hero__content,
    .hero__cta,
    .hero__sources { gap: var(--gap); }

    .hero__sources { padding-top: var(--gap); }

    .site-footer__inner { gap: 32px; }

    .site-footer__cta {
        gap: var(--gap);
        padding-bottom: 32px;
    }

    .site-footer__grid { gap: 28px var(--gap); }

    .site-footer__list { gap: 10px; }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-footer__legal { order: -1; }
}

/* 8. Utilities
   ========================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }

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

/* Sign-up: email already has an account (message + Sign In button in one tint box) */
.form-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 16px 16px 16px 20px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

@media (max-width: 575px) {
    .form-alert { flex-direction: column; align-items: stretch; padding: 16px; }
    .form-alert .btn { justify-content: space-between; }
}


/* State page: every city as a small box (name + count), hover fills green; find-a-city search */
.city-index__search { max-width: none; }

.city-index__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.city-index__list li { min-width: 0; }

.city-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    padding: 12px 12px 12px 16px;
    color: var(--black);
    background: var(--brand-tint);
    border-radius: var(--radius);
    transition: background-color var(--t-card), color var(--t-card);
}

.city-chip__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.city-chip__count {
    flex-shrink: 0;
    padding: 3px 10px;
    white-space: nowrap;
    color: var(--black);
    background: var(--white);
    border-radius: var(--pill);
    transition: background-color var(--t-card), color var(--t-card);
}

.city-chip:hover {
    color: var(--white);
    background: var(--brand);
}

.city-chip:hover .city-chip__count {
    color: var(--brand);
    background: var(--white);
}

.site-main > .section:nth-of-type(even) .city-index .city-chip:not(:hover) { background: var(--white); }

.city-index__empty { opacity: 0.7; }

@media (max-width: 1023px) {
    .city-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .city-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .city-index__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (hover: none) {
    .city-chip:hover { color: var(--black); background: var(--brand-tint); }
    .city-chip:hover .city-chip__count { color: var(--black); background: var(--white); }
}


/* Guide pages: short list of official sources (outbound links) */
.article-resources {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 28px;
    background: var(--brand-tint);
    border-radius: var(--radius);
}

.article-resources h2 { font-size: var(--h4); }

.article-resources__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-resources__list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-resources__list li span { opacity: 0.7; }

@media (max-width: 575px) {
    .article-resources { padding: 20px; }
}

/* About us: story numbers */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.story-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    background: var(--brand-tint);
    border-radius: var(--radius-lg);
}

.story-card__num {
    font-family: var(--font-serif);
    font-size: var(--h2);
    line-height: 1;
    color: var(--brand);
}

.story-card__title { font-size: var(--h5); }

@media (max-width: 1023px) {
    .story-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
    .story-card { padding: 22px; }
}

/* About us: categories as pills */
.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-chips li {
    padding: 12px 22px;
    font-family: var(--font-serif);
    font-size: var(--h5);
    line-height: 1.2;
    color: var(--brand);
    background: var(--white);
    border: 1px solid var(--brand-tint);
    border-radius: var(--pill);
}

.site-main > .section:nth-of-type(even) .topic-chips li { background: var(--brand-tint); }

/* Contact us: 2 x 2 cards + email link */
.steps__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid currentColor;
    border-top-color: rgba(17, 17, 17, 0.15);
}

.contact-link svg { width: 16px; height: 16px; transition: transform var(--t-card); }
.contact-link:hover svg { transform: translateX(4px); }
.step-card:hover .contact-link { border-top-color: rgba(255, 255, 255, 0.25); }

@media (max-width: 1023px) {
    .steps__list--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Footer wordmark: same two styles as the headings */
.site-footer__wordmark em {
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 400;
    font-size: inherit;
    padding-right: 0.14em;             /* room for the italic "y" tail so it is not cut on the right */
    color: transparent;                /* same faded gradient as "Bios" (inherited from the span) */
}

/* Hidden scrollbars (page and every inner scroll box) */
*, *::before, *::after { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; background: transparent; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
