:root {
    --color-bg: #faf7f2;            /* brand paper */
    --color-surface: #f3ede2;       /* warm card surface */
    --color-text: #14110d;          /* brand ink */
    --color-text-muted: #5c5650;    /* warm muted */
    --color-border: #e6dfd2;        /* warm border */
    --color-accent: #b85c38;        /* terracotta */
    --color-accent-hover: #9c4a2a;
    --color-accent-tint: #f4e4dc;
    --color-success: #2f6f4e;
    --color-warning: #a16207;       /* amber, distinct from terracotta */
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --max-width: 760px;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.05);
    --shadow-md: 0 2px 8px rgba(20, 17, 13, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.site-header-inner {
    margin: 0;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.brand-mark {
    color: var(--color-accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* Active page: the nav link for the page the visitor is currently on
   keeps the terracotta accent instead of the muted default. The active
   link is marked with aria-current="page" in each page's markup. */
.site-nav a[aria-current="page"] {
    color: var(--color-accent);
}

/* Primary navbar CTA. Pill button so it doesn't crowd the text nav,
   but the only filled affordance in the header so visitors who don't
   already know the product can find a single "where do I go next?"
   click target. Used by the "Get started" link, which routes to
   /get-started (a static disambiguation page that splits museum
   self-onboarding from sponsor self-onboarding). The "Curator login"
   link in the same nav drops the .nav-cta class so the two CTAs
   don't compete; curators looking for a sign-in still see a plain
   text link. */
.site-nav a.nav-cta {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    padding: 3px 12px;
    line-height: 1.4;
    font-weight: 600;
    margin-left: 4px;
    transition: background-color 120ms ease, color 120ms ease;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
    background: var(--color-accent);
    color: #ffffff;
}

/* Hamburger toggle. Hidden on desktop; flipped to flex via media query.
   The three .nav-toggle-bar spans morph into an X when .site-header
   gets the .is-open class (added/removed by /assets/nav.js). */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px 8px;
    margin: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 24px;
}

h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Centered section title with a short terracotta accent rule below
   (for /for-museums, /for-sponsors, /how-it-works). The rule reads
   more editorial than a text-underline and avoids any "this is a
   link" affordance the underline would imply. */
.page-title {
    text-align: center;
    margin-bottom: 28px;
}

.page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
    margin: 14px auto 0;
    border-radius: 1px;
}

h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.6rem;
    margin: 36px 0 12px;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.15rem;
    margin: 24px 0 8px;
    color: var(--color-text);
}

p {
    margin: 0 0 14px;
    color: var(--color-text);
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--color-accent-hover);
}

.lead {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.78;
    margin-bottom: 28px;
}

.meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

ul, ol {
    padding-left: 24px;
    margin: 0 0 14px;
}

li {
    margin-bottom: 6px;
}

.callout {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-warning {
    border-left-color: var(--color-warning);
}

.kvp {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    background: var(--color-surface);
}

.kvp dt {
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kvp dt:first-child { margin-top: 0; }

.kvp dd {
    margin: 4px 0 0;
    color: var(--color-text);
}

.sample-messages {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.sms-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 80%;
    box-shadow: var(--shadow-sm);
}

.sms-inbound {
    background: #e9ecef;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.sms-outbound {
    background: var(--color-accent);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.sms-bubble .sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sign-mockup {
    max-width: 380px;
    margin: 24px 0;
    background: #ffffff;
    border: 2px solid var(--color-text);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.sign-mockup::before {
    content: "MUSEUM TABLETOP SIGN — MOCKUP";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg);
    padding: 0 10px;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.sign-mockup .sign-headline {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.sign-mockup .sign-instructions {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.sign-mockup .sign-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 14px 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.sign-mockup .sign-disclosure {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 14px;
    border-top: 1px solid var(--color-border);
    padding-top: 12px;
}

/* In-page CTA buttons. Larger than the navbar .nav-cta pill so they
   read as primary actions when embedded in body copy (homepage
   section CTAs, /for-museums "Sign up your museum", /for-sponsors
   "Choose a museum to sponsor"). The .cta-row wrapper keeps a button
   and its secondary text on one line on desktop and stacks them on
   narrow screens. */
.btn-primary,
.btn-secondary {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    padding: 12px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid var(--color-accent);
    transition: background-color 120ms ease, color 120ms ease,
        box-shadow 120ms ease, transform 120ms ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent-tint);
    color: var(--color-accent-hover);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin: 18px 0 8px;
}

.cta-row .cta-aside {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* /get-started disambiguation cards. Each card is a single big anchor
   so the entire surface is clickable, with a heading, a paragraph,
   and a faux-button label that mirrors .btn-primary visuals. The
   cards stack on mobile and sit side-by-side from ~720px up. */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 28px 0 32px;
}

@media (min-width: 720px) {
    .choice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.choice-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 120ms ease, transform 120ms ease,
        box-shadow 120ms ease;
}

.choice-card:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.choice-card .choice-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.choice-card h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.4rem;
    margin: 0;
    color: var(--color-text);
}

.choice-card p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    margin: 0;
    flex: 1;
}

.choice-card .choice-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
}

.choice-card:hover .choice-action {
    color: var(--color-accent-hover);
}

.choice-fallback {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin: 12px 0 0;
}

/* Public museum directory at /museums. The grid renders one card per
   live museum row from the public_museum_directory view (fetched
   client-side via the Supabase anon key). Each card links to
   app.textthepast.com/sponsor/{slug}. The .museum-list wrapper has
   three render states the inline script swaps between: loading,
   populated, and empty/error. */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

.museum-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 120ms ease, transform 120ms ease,
        box-shadow 120ms ease;
}

.museum-card:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.museum-card .museum-name {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.museum-card .museum-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.92rem;
    margin-top: auto;
}

.museum-card:hover .museum-action {
    color: var(--color-accent-hover);
}

.museum-list-status {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 24px 0;
    text-align: center;
}

.museum-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
}

.museum-skeleton .skeleton-card {
    height: 132px;
    background: linear-gradient(
        90deg,
        var(--color-surface) 0%,
        #ece6da 50%,
        var(--color-surface) 100%
    );
    background-size: 200% 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================================
   Homepage (index.html only). The shared `main` rule caps width at
   760px and pads for document-style pages; the homepage opts out with
   `.home` so its hero and section bands can run full-bleed with their
   own inner containers. None of the classes below are used by the
   other (document-style) marketing pages, so they stay unaffected.
   ===================================================================== */
main.home {
    max-width: none;
    margin: 0;
    padding: 0;
}

.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 14px;
}

/* ---- Hero -------------------------------------------------------- */
.hero {
    background:
        radial-gradient(1100px 520px at 82% -8%, var(--color-accent-tint) 0%, rgba(244, 228, 220, 0) 60%),
        linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* min-width:0 lets the copy column shrink below its content's intrinsic
   width, so a no-wrap headline can never stretch the grid track and
   blow out the two-column layout. */
.hero-copy {
    min-width: 0;
}

.hero-copy h1 {
    font-size: 3.1rem;
    line-height: 1.08;
    margin: 0 0 18px;
}

/* Homepage headline: always one line, scaled by viewport so it fits the
   copy column at every width without wrapping. Scoped to .hero-oneliner
   so the longer How It Works hero headline (same markup) still wraps. */
.hero-copy h1.hero-oneliner {
    white-space: nowrap;
    /* One line at every width. On phones the phone mockup is a background
       watermark so the headline has the full content width; the 6.6vw term
       scales it up to nearly fill that width (it stays one line because the
       rendered text is ~12.9em wide). The 2rem cap holds it within the
       narrower two-column copy track on desktop. */
    font-size: clamp(1.25rem, 6.6vw, 2.0rem);
    letter-spacing: -0.025em;
}

.hero-copy .lead {
    font-size: 1.18rem;
    line-height: 1.55;
    opacity: 0.82;
    margin-bottom: 26px;
    max-width: 34em;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ---- Phone / SMS mockup ----------------------------------------- */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone {
    width: 300px;
    max-width: 100%;
    background: #14110d;
    border-radius: 38px;
    padding: 12px;
    box-shadow:
        0 30px 60px -20px rgba(20, 17, 13, 0.35),
        0 10px 20px -12px rgba(20, 17, 13, 0.25);
    transform: rotate(1.2deg);
}

.phone-screen {
    background: var(--color-bg);
    border-radius: 28px;
    overflow: hidden;
    height: 540px;
    display: flex;
    flex-direction: column;
}

.phone-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 18px 12px;
    text-align: center;
}

.phone-bar-name {
    display: block;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--color-text);
}

.phone-bar-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.phone-thread {
    flex: 1;
    overflow: hidden;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-bubble {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.photo-bubble svg {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.photo-bubble .photo-caption {
    font-size: 0.95rem;
    padding: 0 4px 2px;
}

/* ---- Generic section bands -------------------------------------- */
.section {
    padding: 72px 0;
}

.section-tint {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-title-lg {
    font-size: 2.1rem;
    margin: 0;
}

.section-foot {
    text-align: center;
    margin: 40px 0 0;
}

.section-foot a {
    font-weight: 600;
}

/* ---- How-it-works steps ----------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.step {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.step p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

/* ---- Audience split cards --------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.audience-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}

.audience-card h2 {
    margin: 0 0 14px;
    font-size: 1.7rem;
}

.audience-card p {
    color: var(--color-text-muted);
}

.audience-highlight {
    color: var(--color-text) !important;
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
    padding-left: 14px;
    margin: 16px 0 22px;
}

/* ---- Closing CTA band ------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    padding: 76px 0;
    color: #ffffff;
    text-align: center;
}

.cta-band-inner {
    max-width: 680px;
}

.cta-band h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin: 0 0 14px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    margin: 0 0 26px;
}

.cta-row-center {
    justify-content: center;
}

/* On the accent band the buttons need their own treatment so they
   read against terracotta rather than the warm paper field. */
.cta-band .btn-primary {
    background: #ffffff;
    color: var(--color-accent);
    border-color: #ffffff;
}

.cta-band .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-accent-hover);
    border-color: var(--color-bg);
}

.cta-band .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.cta-band .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.cta-band + .section-inner {
    padding-top: 32px;
    padding-bottom: 8px;
}

/* ---- Centered hero variant (pitch pages with no phone mockup) --- */
.hero-centered-inner {
    display: block;
    text-align: center;
    padding-top: 64px;
    padding-bottom: 64px;
}

.hero-centered-inner .hero-copy {
    max-width: 720px;
    margin: 0 auto;
}

.hero-centered-inner .lead {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered-inner .cta-row {
    justify-content: center;
}

/* ---- Two-column media row (copy beside a phone mockup) ---------- */
.media-row {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.media-row .media-copy .lead {
    opacity: 0.82;
    max-width: 38em;
}

/* ---- Flexible card grid (feature lists, compliance, etc.) ------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
    gap: 22px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}

/* On a tinted band the cards flip to paper so they still separate. */
.section-tint .card {
    background: var(--color-bg);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.card p + p {
    margin-top: 10px;
}

/* ---- Numbered vertical timeline (onboarding / how-to steps) ----- */
.timeline {
    max-width: 720px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding: 0 0 30px 60px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 8px;
    bottom: -8px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
}

.timeline-item h3 {
    margin: 0 0 6px;
    font-size: 1.22rem;
}

.timeline-item p {
    margin: 0;
    color: var(--color-text-muted);
}

.timeline-item p + p {
    margin-top: 10px;
}

/* ---- Big "free" figure ------------------------------------------ */
.figure-band {
    text-align: center;
}

.big-figure {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.figure-band .figure-copy {
    max-width: 640px;
    margin: 0 auto 14px;
    color: var(--color-text-muted);
}

/* Definition-style cost table, centered within its band. */
.kvp-centered {
    max-width: 640px;
    margin: 0 auto;
}

/* ---- How-it-works extras ---------------------------------------- */
/* Centers a fixed-width block (e.g. the .sign-mockup) within a band. */
.center-block {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
}

/* Two SMS example threads side by side; stacks on narrow screens. The
   inner .sample-messages keep their own max-width / bubble styling. */
.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.example-grid .example {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 22px 22px 26px;
    box-shadow: var(--shadow-sm);
}

.example .example-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}

.example .sample-messages {
    margin: 0;
    max-width: none;
}

/* Lead paragraph centered under a section head (narrower measure). */
.section-head .lead {
    margin: 0 auto;
    opacity: 0.82;
}

/* ---- Homepage responsive ---------------------------------------- */
@media (max-width: 880px) {
    /* On phones the hero fills the viewport (minus a sliver so the next
       section peeks at the bottom to invite scrolling), with the copy
       vertically centered. */
    .hero {
        min-height: calc(100vh - 128px);
        min-height: calc(100svh - 128px);
        display: flex;
        align-items: center;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 28px;
        padding-bottom: 28px;
        width: 100%;
    }
    .hero-copy h1 { font-size: 2.5rem; }
    /* Across the whole phone range, drop the desktop single-line lock so a
       longer headline wraps instead of bleeding past the viewport edge. */
    .hero-copy h1.hero-oneliner {
        white-space: normal;
        overflow-wrap: break-word;
        font-size: clamp(1.6rem, 7vw, 2.3rem);
        text-align: center;
    }
    /* On phones, break the headline into two explicit lines: a smaller
       lead-in line and a larger emphasis word on its own line. */
    .hero-copy h1.hero-oneliner .ho-line1,
    .hero-copy h1.hero-oneliner .ho-line2 {
        display: block;
    }
    .hero-copy h1.hero-oneliner .ho-line1 {
        font-size: clamp(2rem, 8.5vw, 2.8rem);
    }
    .hero-copy h1.hero-oneliner .ho-line2 {
        font-size: clamp(2.7rem, 11.5vw, 3.7rem);
    }
    /* The phone mockup is centered behind the copy as a faint, full
       (un-clipped) watermark, so it can be seen in its entirety. */
    .hero .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(5deg) scale(0.82);
        opacity: 0.16;
        z-index: 0;
        pointer-events: none;
    }
    .hero .hero-copy {
        position: relative;
        z-index: 1;
    }
    .steps { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .example-grid { grid-template-columns: 1fr; }
    .media-row { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
    .section-inner { padding: 0 20px; }
    .section { padding: 52px 0; }
    .hero-copy h1 { font-size: 2.1rem; }
    /* Allow the one-liner headline to wrap onto two lines on phones so a
       longer headline does not bleed past the viewport edge. */
    .hero-copy h1.hero-oneliner { white-space: normal; overflow-wrap: break-word; font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .hero-copy .lead { font-size: 1.05rem; }
    .section-title-lg { font-size: 1.7rem; }
    .cta-band { padding: 56px 0; }
    .cta-band h2 { font-size: 1.7rem; }
    .audience-card { padding: 28px 22px; }
    .phone { width: 270px; }
    .big-figure { font-size: 3.4rem; }
    .hero-centered-inner { padding-top: 44px; padding-bottom: 44px; }
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    margin-top: 80px;
}

.site-footer-inner {
    margin: 0;
    padding: 28px 32px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: var(--color-text-muted);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Below 820px the seven nav items + brand stop fitting on one line, so
   we collapse to a hamburger. Brand stays inline on the top row, the
   nav becomes a vertical stack that drops below when toggled open. */
@media (max-width: 820px) {
    .site-header-inner {
        padding: 16px 24px;
    }
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--color-border);
    }
    .site-nav a {
        padding: 10px 0;
        font-size: 1rem;
        width: 100%;
    }
    .site-nav a.nav-cta {
        align-self: flex-start;
        margin: 8px 0 2px;
    }
    .site-header.is-open .site-nav {
        display: flex;
    }
}

@media (max-width: 600px) {
    main { padding: 32px 20px 16px; }
    h1 { font-size: 1.65rem; }
    .site-header-inner { padding: 14px 20px; }
    .site-footer-inner { flex-direction: column; align-items: flex-start; }
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-secondary {
        text-align: center;
        width: 100%;
    }
    .cta-row .cta-aside {
        text-align: center;
    }
}
