@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
}

.landing {
    --primary: #334a7f;
    --primary-deep: #223356;
    --accent: #4d88dd;
    --cta: #3e6cb8;
    --warm: #f58634;
    --green: #6a8537;
    --green-ink: #4c6420;
    --green-soft: #eaf6ec;
    --orange-soft: #fff1e5;
    --orange-ink: #b45309;
    --blue-ink: #2f5fa8;
    --blue-soft: #eaf1ff;
    --red-soft: #fdecea;
    --red-ink: #b42318;
    --ink: #1a2230;
    --muted: #6b7693;
    --rule: #dde5f1;
    --rule-strong: #c2cde2;
    --bg: #f4f7fc;
    --card: #ffffff;
    --gradient: linear-gradient(135deg, #334a7f 0%, #223356 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 12px rgba(34, 51, 86, 0.06), 0 20px 60px -20px rgba(34, 51, 86, 0.22);
    --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body: 'Instrument Sans', 'Segoe UI', sans-serif;

    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    /* clip, not hidden: hidden makes .landing a scroll container, and the sticky header would pin to it instead of the viewport. */
    overflow-x: clip;
}

/* Explicit color: the Bootstrap theme sets a heading color, so inheritance from the dark bands never reaches these. */
.landing h1,
.landing h2,
.landing h3 {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
    line-height: 1.08;
    font-weight: 700;
    text-wrap: balance;
    color: var(--ink);
}

.landing__hero h1,
.landing__tablet-band h2,
.landing__tablet-points h3,
.landing__phone-screen h3,
.landing__goal-card--shop h3,
.landing__cta h2 {
    color: #fff;
}

.landing__wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ────────────────────────────────────────────── */
.landing__btn {
    display: inline-block;
    white-space: nowrap;
    font: 600 1rem var(--font-body);
    padding: 0.78em 1.5em;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.landing__btn:hover {
    transform: translateY(-1px);
}

.landing__btn--lg {
    font-size: 1.1rem;
    padding: 0.9em 1.8em;
}

.landing__btn--cta {
    background: var(--cta);
    color: #fff;
    box-shadow: 0 6px 16px rgba(51, 74, 127, 0.35);
}

.landing__btn--cta:hover {
    background: #3862a8;
    color: #fff;
    box-shadow: 0 8px 20px rgba(51, 74, 127, 0.45);
}

.landing__btn--outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.landing__btn--outline-light:hover {
    border-color: #fff;
    color: #fff;
}

.landing__btn--light {
    background: #fff;
    color: var(--primary-deep);
    box-shadow: 0 6px 16px rgba(10, 18, 34, 0.3);
}

.landing__btn--light:hover {
    color: var(--primary-deep);
}

/* ── Stamps (section chips) ─────────────────────────────── */
.landing__stamp {
    display: inline-block;
    font: 600 0.84rem/1 var(--font-body);
    color: var(--primary);
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 0.42em 0.95em;
    margin-bottom: 1.1rem;
}

.landing__stamp--orange {
    color: var(--orange-ink);
}

.landing__stamp--blue {
    color: var(--blue-ink);
}

.landing__stamp--green {
    color: var(--green-ink);
}

.landing__stamp--ondark {
    color: #cfe0f8;
    border-color: rgba(207, 224, 248, 0.7);
}

/* ── Header ─────────────────────────────────────────────── */
.landing__header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    background: rgba(244, 247, 252, 0.9);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(34, 51, 86, 0.08);
}

@media (min-width: 768px) {
    .landing__header {
        gap: 1.5rem;
        padding: 0.85rem 1.5rem;
    }
}

.landing__brand {
    color: var(--primary-deep);
    flex-shrink: 1;
    min-width: 0;
}

.landing__brand img {
    display: block;
    width: 28px;
    height: 28px;
}

.landing__brand .landing__brand-name {
    font-size: 1.25rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .landing__brand img {
        width: 32px;
        height: 32px;
    }

    .landing__brand .landing__brand-name {
        font-size: 1.6rem;
    }
}

.landing__nav {
    display: none;
    gap: 1.3rem;
    margin-left: auto;
}

@media (min-width: 768px) {
    .landing__nav {
        display: inline-flex;
    }
}

.landing__nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.landing__nav-link:hover {
    color: var(--primary-deep);
}

.landing__navdrop {
    position: relative;
}

.landing__navdrop summary {
    list-style: none;
    cursor: pointer;
}

.landing__navdrop summary::-webkit-details-marker {
    display: none;
}

.landing__navdrop summary i {
    font-size: 0.7em;
    margin-left: 0.15em;
    display: inline-block;
    transition: transform 0.15s ease;
}

.landing__navdrop[open] summary {
    color: var(--primary-deep);
}

.landing__navdrop[open] summary i {
    transform: rotate(180deg);
}

.landing__navdrop-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    min-width: 210px;
    /* Hangs from the sticky header, so on a short window the page can't scroll its last links into view. */
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.landing__navdrop-panel a {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
}

.landing__navdrop-panel a:hover {
    background: var(--bg);
}

.landing__navdrop-panel .landing__navdrop-all {
    margin-top: 0.3rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule);
    border-radius: 0 0 8px 8px;
    color: var(--blue-ink);
}

.landing__navdrop-panel .landing__navdrop-all i {
    margin: 0 0 0 0.35em;
    color: inherit;
}

.landing__header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.landing__signin {
    text-decoration: none;
    font: 600 0.95rem var(--font-body);
    color: var(--muted);
    padding: 0.5em 0.8em;
}

.landing__signin:hover {
    color: var(--primary-deep);
}

.landing__header-cta .landing__btn {
    padding: 0.55em 1.2em;
    font-size: 0.95rem;
}

@media (max-width: 575.98px) {
    .landing__signin {
        display: none;
    }
}

/* ── Mobile section menu ────────────────────────────────── */
.landing__menu {
    position: relative;
}

@media (min-width: 768px) {
    .landing__menu {
        display: none;
    }
}

.landing__menu summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    color: var(--primary-deep);
    font-size: 1.5rem;
}

.landing__menu summary::-webkit-details-marker {
    display: none;
}

.landing__menu[open] summary {
    background: var(--blue-soft);
}

.landing__menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    /* The header is sticky, so a panel taller than the screen could never scroll its last links into view. */
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.landing__menu-panel a {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font: 600 0.98rem var(--font-body);
    color: var(--ink);
}

.landing__menu-panel a:hover {
    background: var(--bg);
}

.landing__menu-label {
    padding: 0.6rem 0.9rem 0.2rem;
    font: 600 0.72rem var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.landing__menu-panel .landing__menu-sub {
    padding: 0.45rem 0.9rem 0.45rem 1.6rem;
    font-weight: 500;
    font-size: 0.94rem;
}

/* The panel's Sign in only stands in while the header's own is hidden. */
@media (min-width: 576px) {
    .landing__menu-signin {
        display: none;
    }
}

/* Anchor jumps land under the sticky header without this; structural, so a new anchored section can't be forgotten. */
.landing [id] {
    scroll-margin-top: 72px;
}

/* ── Hero ───────────────────────────────────────────────── */
.landing__hero {
    position: relative;
    padding: 72px 0 84px;
    overflow: hidden;
    background: var(--gradient);
    color: #fff;
}

.landing__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(77, 136, 221, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(245, 134, 52, 0.18) 0%, transparent 50%);
}

.landing__hero .landing__wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 56px;
    align-items: center;
}

.landing__hero h1 {
    font-size: clamp(2.3rem, 4.7vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.landing__hero-sub {
    margin: 1.3rem 0 1.9rem;
    font-size: 1.14rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34em;
}

.landing__hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.landing__hero-foot {
    margin-top: 1.1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
}

/* ── Hero chain (earn → bank → shop → phone) ────────────── */
.landing__chain {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 420px;
    margin-left: auto;
}

.landing__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0.85rem 1.1rem;
}

/* Alternate offsets so the four cards read as links in a chain rather than a list. */
.landing__link:nth-child(odd) {
    margin-right: 2.25rem;
}

.landing__link:nth-child(even) {
    margin-left: 2.25rem;
}

.landing__link + .landing__link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    height: calc(1.4rem + 2px);
    border-left: 2px dashed rgba(207, 224, 248, 0.75);
}

.landing__link-icon {
    width: 2.6rem;
    height: 2.6rem;
    flex: none;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.landing__link-icon--green {
    background: var(--green-soft);
    color: var(--green-ink);
}

.landing__link-icon--blue {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.landing__link-icon--orange {
    background: var(--orange-soft);
    color: var(--orange-ink);
}

.landing__link-what {
    flex: 1;
    min-width: 0;
    font: 700 1.05rem/1.25 var(--font-display);
}

.landing__link-label {
    display: block;
    font: 600 0.7rem/1.4 var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.landing__link-what small {
    display: block;
    font: 500 0.82rem/1.4 var(--font-body);
    color: var(--muted);
}

.landing__link-amt {
    font: 800 1.35rem var(--font-display);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.landing__link-amt--in {
    color: var(--green-ink);
}

.landing__link-amt--out {
    color: var(--orange-ink);
}

.landing__link--phone {
    color: #fff;
    background: #0e1626;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 22px;
}

.landing__link--phone .landing__link-icon {
    background: rgba(106, 133, 55, 0.3);
    color: #c4e39a;
}

.landing__link--phone .landing__link-label {
    color: rgba(255, 255, 255, 0.6);
}

.landing__rule-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.2rem 0 0;
    padding: 0;
}

.landing__rule-chips li {
    font: 600 0.84rem var(--font-body);
    color: #cfe0f8;
    border: 1.5px dashed rgba(207, 224, 248, 0.65);
    border-radius: 999px;
    padding: 0.3em 0.85em;
}

.landing__rule-chips i {
    margin-right: 0.4em;
}

.landing__goal-track {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: #e3eaf5;
    margin-top: 0.35rem;
    overflow: hidden;
}

.landing__goal-fill {
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), #6aa1f0);
}

@media (prefers-reduced-motion: no-preference) {
    .landing__hero-art .landing__link,
    .landing__hero-art .landing__rule-chips {
        opacity: 0;
        animation: landing-post-link 0.5s ease-out forwards;
    }

    .landing__hero-art .landing__link:nth-child(2) {
        animation-delay: 0.55s;
    }

    .landing__hero-art .landing__link:nth-child(3) {
        animation-delay: 1.1s;
    }

    .landing__hero-art .landing__link:nth-child(4) {
        animation-delay: 1.65s;
    }

    .landing__hero-art .landing__rule-chips {
        animation-delay: 2.2s;
    }
}

@keyframes landing-post-link {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── The loop ───────────────────────────────────────────── */
.landing__loop {
    background: #e9eff9;
    border-bottom: 1px solid var(--rule);
    padding: 80px 0;
}

.landing__loop h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    max-width: 18em;
}

.landing__loop-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 3rem 0 0;
    padding: 0;
}

.landing__loop-steps li {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.5rem 1.7rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing__loop-steps li:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(34, 51, 86, 0.12);
}

.landing__loop-num {
    position: absolute;
    top: -1.25rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 1.05rem var(--font-display);
    box-shadow: 0 6px 14px rgba(34, 51, 86, 0.25);
}

.landing__loop-icon {
    flex: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
}

.landing__loop-steps h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    margin-bottom: 0.45rem;
}

.landing__loop-steps p {
    color: var(--muted);
    font-size: 0.99rem;
    margin: 0;
}

/* ── Feature rows (copy left, vignette right) ───────────── */
.landing__feature {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}

.landing__feature .landing__wrap {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 10fr);
    gap: 64px;
    align-items: center;
}

.landing__feature h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    margin-bottom: 1rem;
}

.landing__feature p {
    color: var(--muted);
    max-width: 32em;
}

.landing__feature p + p {
    margin-top: 0.9rem;
}

.landing__leadline {
    color: var(--ink);
    font-weight: 500;
}

.landing__fine-list {
    list-style: none;
    margin: 1.3rem 0 0;
    padding: 0;
}

.landing__fine-list li {
    padding: 0.55rem 0;
    border-top: 1px dashed var(--rule);
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    font-size: 0.99rem;
}

.landing__fine-list li::before {
    content: '✓';
    color: var(--green-ink);
    font-weight: 700;
    flex: none;
}

.landing__andbadge {
    display: inline-block;
    font: 600 0.8rem var(--font-body);
    background: var(--ink);
    color: var(--bg);
    padding: 0.3em 0.75em;
    border-radius: 6px;
    margin-right: 0.45em;
    vertical-align: 0.1em;
}

/* ── Vignette shells ────────────────────────────────────── */
.landing__vignette {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.3rem 1.4rem;
}

.landing__vig-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.2rem;
    border-bottom: 1px dashed var(--rule);
}

.landing__vig-row:last-child {
    border-bottom: 0;
}

.landing__vig-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.landing__vig-amount {
    font: 700 1.35rem var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.landing__tag {
    font: 600 0.8rem var(--font-body);
    padding: 0.25em 0.7em;
    border-radius: 999px;
    white-space: nowrap;
}

.landing__tag--green {
    background: var(--green-soft);
    color: var(--green-ink);
}

.landing__tag--blue {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.landing__tag--orange {
    background: var(--orange-soft);
    color: var(--orange-ink);
}

.landing__ring {
    width: 3.5rem;
    height: 3.5rem;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--green) 78%, rgba(106, 133, 55, 0.18) 0);
    display: grid;
    place-items: center;
}

.landing__ring span {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    background: var(--card);
    display: grid;
    place-items: center;
    font: 700 0.8rem var(--font-body);
    color: var(--green-ink);
}

/* ── Goals & shop ───────────────────────────────────────── */
.landing__goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.landing__goal-card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 1rem 1.1rem;
}

.landing__goal-emoji {
    font-size: 1.6rem;
}

.landing__goal-card h3 {
    font-size: 1.02rem;
    margin: 0.4rem 0 0.5rem;
}

.landing__goal-meta {
    font: 600 0.84rem var(--font-body);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    margin-top: 0.45rem;
}

.landing__goal-card .landing__goal-track {
    margin-top: 0;
}

.landing__goal-card--shop {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
}

.landing__goal-card--shop p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0.3rem 0 0;
    max-width: none;
}

/* ── Screen-time economy ────────────────────────────────── */
.landing__lockpair {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
}

.landing__phone {
    position: relative;
    width: 15rem;
    height: 30rem;
    background: #1a2230;
    border-radius: 2.5rem;
    padding: 0.75rem;
    box-shadow: 0 30px 60px rgba(34, 51, 86, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    transform: rotate(-3deg);
    display: flex;
}

.landing__phone-notch {
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 1.25rem;
    background: #1a2230;
    border-radius: 0 0 1rem 1rem;
    z-index: 2;
}

.landing__phone-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(160deg, #334a7f 0%, #15203b 100%);
    border-radius: 1.875rem;
    padding: 3.4rem 1.3rem 1.6rem;
    text-align: center;
    color: #fff;
}

.landing__phone-time {
    font: 400 2.9rem/1 var(--font-body);
    margin-bottom: 0.4rem;
}

.landing__phone-glyph {
    font-size: 2rem;
    line-height: 1;
    color: var(--warm);
}

.landing__phone-screen h3 {
    font-size: 1.2rem;
}

.landing__phone-screen p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.45;
}

.landing__phone-pbtn {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    font: 500 0.9rem var(--font-body);
    padding: 0.75rem 1.5rem;
}

.landing__timebank {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.landing__timebank .landing__vignette {
    padding: 0.95rem 1.1rem;
}

.landing__timebank .landing__vig-row {
    padding: 0.3rem 0;
    border: 0;
    /* Narrow column beside the phone: amounts stay whole, the tag drops to its own line. */
    flex-wrap: wrap;
    row-gap: 0.3rem;
}

.landing__timebank .landing__vig-amount {
    white-space: nowrap;
}

/* ── Family tablet band ─────────────────────────────────── */
.landing__tablet-band {
    position: relative;
    background: var(--gradient);
    color: #fff;
    padding: 96px 0;
    overflow: hidden;
}

.landing__tablet-band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 15%, rgba(77, 136, 221, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(245, 134, 52, 0.16) 0%, transparent 50%);
}

.landing__tablet-band .landing__wrap {
    position: relative;
    display: block;
}

.landing__tablet-band h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    max-width: 14em;
}

.landing__band-lede {
    color: rgba(255, 255, 255, 0.78);
    max-width: 36em;
    margin-top: 1.1rem;
    font-size: 1.12rem;
}

.landing__band-lede strong {
    color: #fff;
    font-weight: 600;
}

.landing__tablet-grid {
    display: grid;
    grid-template-columns: minmax(0, 12fr) minmax(0, 8fr);
    gap: 56px;
    align-items: center;
    margin-top: 3rem;
}

.landing__tablet {
    background: #0f1730;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.landing__tablet-screen {
    background: var(--bg);
    border-radius: 12px;
    color: var(--ink);
    padding: 1rem 1.1rem;
}

.landing__tscreen-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.landing__tscreen-date {
    font: 700 0.95rem var(--font-display);
}

.landing__tscreen-weather {
    margin-left: auto;
    font: 600 0.8rem var(--font-body);
    color: var(--muted);
}

.landing__member-strip {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.landing__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font: 600 0.62rem var(--font-body);
    color: var(--muted);
}

.landing__member-face {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--member-color, var(--primary));
    color: #fff;
    font: 700 0.85rem var(--font-body);
}

.landing__tcal {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.55rem 0.65rem;
}

.landing__tcal-head {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    text-align: center;
    font: 600 0.6rem var(--font-body);
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.landing__tcal-head .landing__tcal-today {
    color: var(--primary);
    font-weight: 700;
}

.landing__tcal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    min-height: 88px;
}

.landing__tcal-col {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    border-radius: 6px;
    padding: 2px;
}

.landing__tcal-col--today {
    background: var(--blue-soft);
}

/* Wraps rather than truncates: on a phone's narrow days a week of "Walk …" pills says nothing. */
.landing__tpill {
    display: block;
    font: 600 0.56rem/1.3 var(--font-body);
    border-radius: 4px;
    padding: 0.25em 0.35em;
    overflow: hidden;
}

.landing__tpill--chore {
    background: var(--green-soft);
    color: var(--green-ink);
}

.landing__tpill--job {
    background: var(--blue-soft);
    color: var(--blue-ink);
}

.landing__tcal-col--today .landing__tpill--job {
    background: #d9e6fa;
}

.landing__tpill--allowance {
    background: var(--orange-soft);
    color: var(--orange-ink);
}

.landing__tpill--plain {
    background: #eef1f7;
    color: var(--muted);
}

.landing__tstrip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--card);
    font: 600 0.7rem var(--font-body);
    color: var(--ink);
}

.landing__tscreen-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.landing__tablet-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing__tablet-points li {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.landing__tablet-points li:first-child {
    border-top: 0;
}

.landing__tablet-points h3 {
    font-size: 1.12rem;
    margin-bottom: 0.2rem;
}

.landing__tablet-points p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* ── Everything else (index) ────────────────────────────── */
.landing__index {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}

.landing__index h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.landing__index-lede {
    color: var(--muted);
    margin-top: 0.7rem;
    max-width: 34em;
}

.landing__index-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 64px;
    margin-top: 2.4rem;
}

.landing__index-row {
    padding: 0.95rem 0.1rem;
    border-bottom: 1px solid var(--rule);
}

.landing__index-row strong {
    font: 600 1.03rem var(--font-body);
}

.landing__index-sub {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

/* ── Privacy ────────────────────────────────────────────── */
.landing__privacy {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
    background: #e9eff9;
}

.landing__privacy .landing__wrap {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    gap: 56px;
    align-items: start;
}

.landing__privacy h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.landing__privacy-lede {
    color: var(--muted);
    margin-top: 0.9rem;
    max-width: 26em;
}

.landing__privacy-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing__privacy-list li {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--rule-strong);
}

.landing__privacy-list li:last-child {
    border-bottom: 0;
}

.landing__privacy-check {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-ink);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.landing__privacy-list h3 {
    font-size: 1.08rem;
    margin-bottom: 0.15rem;
}

.landing__privacy-list p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

/* ── Pricing (the receipt) ──────────────────────────────── */
.landing__pricing {
    padding: 92px 0;
    border-bottom: 1px solid var(--rule);
}

.landing__pricing .landing__wrap {
    display: grid;
    grid-template-columns: minmax(0, 10fr) minmax(0, 10fr);
    gap: 64px;
    align-items: center;
}

.landing__pricing h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.landing__pricing-lede {
    color: var(--muted);
    margin: 1rem 0 1.4rem;
    max-width: 30em;
}

.landing__stack-line {
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
    max-width: 28em;
    padding: 1rem 1.2rem;
    background: #e9eff9;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
}

.landing__stack-line s {
    color: var(--muted);
    font-weight: 400;
}

.landing__perkid {
    margin-top: 1.2rem;
    font-size: 1rem;
    color: var(--muted);
}

.landing__perkid strong {
    color: var(--green-ink);
}

.landing__plan {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    max-width: 420px;
    margin: 0 auto;
    padding: 1.8rem 1.7rem 2rem;
    box-shadow: var(--shadow-card);
    font-variant-numeric: tabular-nums;
    border-radius: var(--radius);
}

.landing__plan-head {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ink);
}

.landing__plan-head h3 {
    font-size: 1.35rem;
}

.landing__plan-head p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.2rem 0 0;
}

.landing__plan-items {
    list-style: none;
    margin: 0.8rem 0;
    padding: 0;
}

.landing__plan-items li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.42rem 0;
    font-size: 0.93rem;
}

.landing__plan-dots {
    flex: 1;
    border-bottom: 2px dotted var(--rule-strong);
    transform: translateY(-3px);
    min-width: 16px;
}

.landing__plan-incl {
    color: var(--green-ink);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.landing__plan-total {
    border-top: 2px solid var(--ink);
    padding-top: 0.9rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.landing__plan-total-label {
    font: 700 1rem var(--font-body);
}

.landing__plan-price {
    text-align: right;
}

.landing__plan-price .landing__money {
    font: 800 2rem var(--font-display);
}

.landing__plan-price .landing__money small {
    font: 600 1rem var(--font-display);
}

.landing__plan-price > small {
    display: block;
    font: 600 0.85rem var(--font-body);
    color: var(--muted);
}

.landing__plan-foot {
    margin: 0.9rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.landing__plan .landing__btn {
    display: block;
    text-align: center;
    margin-top: 1.3rem;
}

.landing__trial-stamp {
    position: absolute;
    top: -24px;
    right: 14px;
    font: 700 0.95rem var(--font-display);
    color: var(--green-ink);
    border: 2.5px solid currentColor;
    border-radius: 10px;
    padding: 0.5em 0.85em;
    background: rgba(234, 246, 236, 0.96);
    box-shadow: var(--shadow-card);
}

/* ── FAQ ────────────────────────────────────────────────── */
.landing__closing {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}

.landing__faq h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    margin-bottom: 1.4rem;
}

.landing__faq details {
    border-top: 1px solid var(--rule);
}

.landing__faq details:last-child {
    border-bottom: 1px solid var(--rule);
}

.landing__faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font: 600 1.06rem var(--font-body);
    padding: 1rem 0.2rem;
}

.landing__faq summary::-webkit-details-marker {
    display: none;
}

.landing__faq summary::after {
    content: '+';
    font: 600 1.3rem var(--font-display);
    color: var(--blue-ink);
    flex: none;
}

.landing__faq details[open] summary::after {
    content: '–';
}

.landing__faq-a {
    padding: 0 0.2rem 1.1rem;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 42em;
    margin: 0;
}

/* ── Final CTA ──────────────────────────────────────────── */
.landing__cta {
    position: relative;
    padding: 110px 0 120px;
    text-align: center;
    background: var(--gradient);
    color: #fff;
    overflow: hidden;
}

.landing__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 50%, rgba(245, 134, 52, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(77, 136, 221, 0.3) 0%, transparent 50%);
}

.landing__cta .landing__wrap {
    position: relative;
}

.landing__cta h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    letter-spacing: -0.02em;
    max-width: 16em;
    margin: 0 auto;
}

.landing__cta p {
    color: rgba(255, 255, 255, 0.82);
    margin: 1.1rem auto 1.8rem;
    max-width: 30em;
}

/* Two classes so it outranks the .landing__cta p margin without !important. */
.landing__cta .landing__cta-foot {
    margin-top: 1.2rem;
    font-size: 0.95rem;
}

.landing__cta-foot a {
    color: #cfe0f8;
    font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */
.landing__footer {
    padding: 36px 0 48px;
}

.landing__footer .landing__wrap {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.landing__footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font: 700 1.05rem var(--font-display);
    color: var(--primary-deep);
}

.landing__footer-nav {
    display: flex;
    gap: 1.3rem;
    margin-left: auto;
}

.landing__footer-nav a {
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
}

.landing__footer-nav a:hover {
    color: var(--primary-deep);
}

.landing__footer-copy {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

/* ── Learn more links ───────────────────────────────────── */
.landing__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 1.4rem;
    font: 600 1rem var(--font-body);
    color: var(--blue-ink);
    text-decoration: none;
}

.landing__more i {
    transition: transform 0.15s ease;
}

.landing__more:hover {
    color: var(--primary-deep);
}

.landing__more:hover i {
    transform: translateX(3px);
}

.landing__more--ondark,
.landing__more--ondark:hover {
    color: #cfe0f8;
}

/* ── The tour and the hub (ten feature cards) ───────────── */
.landing__tour {
    padding: 88px 0;
    border-bottom: 1px solid var(--rule);
}

.landing__tour h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    max-width: 18em;
}

.landing__hub {
    padding: 72px 0 88px;
    border-bottom: 1px solid var(--rule);
}

.landing__cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.4rem 0 0;
    padding: 0;
}

.landing__hub .landing__cards {
    margin-top: 0;
}

.landing__cards > li {
    display: flex;
}

.landing__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.2rem 1.15rem 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

.landing__card h3 {
    font-size: 1.08rem;
    margin: 0.85rem 0 0.35rem;
}

.landing__card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
}

.landing__card-more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.9rem;
    font: 600 0.88rem var(--font-body);
    color: var(--blue-ink);
    text-decoration: none;
}

.landing__card-more i {
    transition: transform 0.15s ease;
}

.landing__card-more:hover {
    color: var(--primary-deep);
}

.landing__card-more:hover i {
    transform: translateX(3px);
}

/* ── The breadth band (three pillars) ───────────────────── */
.landing__breadth {
    padding: 80px 0;
    background: #e9eff9;
    border-bottom: 1px solid var(--rule);
}

.landing__breadth h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    max-width: 18em;
}

.landing__pillars {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 2.6rem 0 0;
    padding: 0;
}

.landing__pillars h3 {
    font-size: 1.3rem;
    margin: 0.9rem 0 0.4rem;
}

.landing__pillars p {
    color: var(--muted);
    font-size: 0.99rem;
    margin: 0;
}

/* ── Feature pages ──────────────────────────────────────── */
.landing__hero--feature h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
}

.landing__hero--solo .landing__wrap {
    grid-template-columns: minmax(0, 1fr);
}

.landing__hero--solo .landing__hero-sub {
    max-width: 40em;
}

.landing__crumbs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    font: 600 0.9rem var(--font-body);
    color: rgba(255, 255, 255, 0.6);
}

.landing__crumbs a {
    color: #cfe0f8;
    text-decoration: none;
}

.landing__crumbs a:hover {
    color: #fff;
}

/* The hero sets white text for its dark band; a card in it is light and needs the ink back. */
.landing__hero--feature .landing__hero-art .landing__vignette {
    max-width: 440px;
    margin-left: auto;
    color: var(--ink);
}

/* Wide screens alternate the vignette's side, so a page of feature rows doesn't read as one long column. */
@media (min-width: 961px) {
    .landing__feature--flip .landing__wrap > :first-child {
        order: 2;
    }
}

.landing__ledger {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
}

.landing__ledger li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.2rem;
    border-bottom: 1px dashed var(--rule);
    font-size: 0.95rem;
}

.landing__ledger li span:last-child {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.landing__ledger-in {
    color: var(--green-ink);
}

.landing__ledger-out {
    color: var(--orange-ink);
}

/* A missed opportunity cost nothing, so it reads as struck through, not as money out. */
.landing__ledger li span.landing__ledger-missed {
    color: var(--muted);
    font-weight: 600;
    text-decoration: line-through;
}

.landing__vig-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font: 700 1.05rem var(--font-display);
}

.landing__vig-title .bi {
    color: var(--muted);
}

/* Drawn buttons inside a vignette: they look like the app's, and are not controls. */
.landing__fauxbtn {
    font: 600 0.8rem var(--font-body);
    padding: 0.35em 0.9em;
    border-radius: 999px;
    background: var(--cta);
    color: #fff;
    white-space: nowrap;
}

/* Outlined, so a drawn Approve never reads as one of the green amount tags beside it. */
.landing__fauxbtn--quiet {
    background: var(--card);
    color: var(--cta);
    box-shadow: inset 0 0 0 1.5px var(--cta);
}

.landing__tcal--large {
    margin-top: 0.6rem;
}

.landing__tcal--large .landing__tcal-head {
    font-size: 0.72rem;
}

.landing__tcal--large .landing__tcal-grid {
    min-height: 120px;
}

.landing__tcal--large .landing__tpill {
    font-size: 0.66rem;
}

/* On the dark hero the bezel matches the background, so the phone gets a lighter frame and a pale rim. */
.landing__hero .landing__phone,
.landing__hero .landing__phone-notch {
    background: #2b3446;
}

.landing__hero .landing__phone {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}

/* A feature hero's lone card is capped and pushed right; the phone's cards fill their column instead. */
.landing__hero--feature .landing__hero-art .landing__timebank .landing__vignette {
    max-width: none;
    margin: 0;
}

/* Just above the one-column break the hero's art column is under 410px, too narrow for the phone and its cards side by side, so the cards sit in a row beneath it. */
@media (min-width: 961px) and (max-width: 1023.98px) {
    .landing__hero .landing__lockpair {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .landing__hero .landing__timebank {
        flex-direction: row;
        width: 100%;
    }

    .landing__hero .landing__timebank .landing__vignette {
        flex: 1;
    }
}

/* Without it the screen grows to fit an over-wide button row instead of holding the row to the screen. */
.landing__phone-screen:has(> .landing__phone-actions) {
    min-width: 0;
}

.landing__phone-actions {
    margin-top: auto;
    display: flex;
    gap: 0.35rem;
    width: 100%;
}

/* Sized to fit the screen, with the middle one shrinking to an ellipsis: a row wider than the screen would paint over the phone's bezel. */
.landing__phone-actions .landing__phone-pbtn {
    margin-top: 0;
    padding: 0.6rem 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.landing__phone-actions .landing__phone-pbtn:not(:nth-child(2)) {
    padding-inline: 0.45rem;
}

.landing__phone-actions .landing__phone-pbtn:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.landing__push {
    margin-top: 0.9rem;
}

.landing__push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.6rem;
}

/* A screensaver slide: the photos are drawn scenes, since the page has no family photos of its own to show. */
.landing__slide {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1730;
}

.landing__slide-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 100%;
}

.landing__slide-photo {
    position: absolute;
    inset: 0;
}

.landing__slide-pair .landing__slide-photo {
    position: static;
}

.landing__slide-photo--sunset {
    background:
        radial-gradient(circle at 68% 56%, #ffe9a8 0 6%, rgba(255, 233, 168, 0.35) 6.5% 11%, transparent 11.5%),
        linear-gradient(to bottom, #fbb36b 0%, #f2797d 42%, #a65d8f 58%, #2c5d8c 58.5%, #173a63 100%);
}

.landing__slide-photo--forest {
    background:
        conic-gradient(from 150deg at 30% 38%, #2f5b40 0 60deg, transparent 60deg),
        conic-gradient(from 150deg at 72% 46%, #264c35 0 60deg, transparent 60deg),
        linear-gradient(to bottom, #cfe6d8 0%, #8fbf9f 55%, #4d7a5c 100%);
}

.landing__slide-photo--snow {
    background:
        /* The lower slope is listed first so it paints over the peak's base, leaving a snow cap. */
        conic-gradient(from 130deg at 50% 52%, #6f8dab 0 100deg, transparent 100deg),
        conic-gradient(from 145deg at 50% 30%, #f4f7fb 0 70deg, transparent 70deg),
        linear-gradient(to bottom, #8fbbe6 0%, #c9def2 100%);
}

.landing__slide-over {
    position: absolute;
    left: 4%;
    bottom: 6%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    color: #fff;
    font: 500 0.78rem/1.3 var(--font-body);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.landing__slide-clock {
    font: 600 1.6rem/1.1 var(--font-body);
}

@media (max-width: 600px) {
    .landing__tcal-grid,
    .landing__tcal-head {
        gap: 0.15rem;
    }

    .landing__tcal-col {
        padding: 1px;
    }

    .landing__tpill {
        font-size: 0.5rem;
        padding: 0.25em 0.15em;
    }

    .landing__tcal--large .landing__tpill {
        font-size: 0.55rem;
    }
}

/* An iPhone SE's 320px leaves each day about 34px: the cards and the week give back their padding so a pill's word still fits. */
@media (max-width: 380px) {
    .landing__hero--feature .landing__hero-art .landing__vignette:has(.landing__tcal--large) {
        padding: 1rem 0.7rem;
    }

    .landing__tablet {
        padding: 8px;
    }

    .landing__tablet-screen {
        padding: 0.8rem 0.6rem;
    }

    .landing__tcal {
        padding: 0.4rem 0.3rem 0.5rem;
    }

    .landing__tcal-grid,
    .landing__tcal-head {
        gap: 0.1rem;
    }

    .landing__tcal-col {
        padding: 0;
    }

    .landing__tpill {
        padding: 0.25em 0.1em;
    }

    .landing__tcal--large .landing__tpill {
        font-size: 0.5rem;
    }
}

.landing__theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.landing__theme {
    display: flex;
    align-items: flex-end;
    min-height: 92px;
    padding: 0.7rem 0.8rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--theme-a) 0%, var(--theme-b) 100%);
    box-shadow: var(--shadow-card);
}

/* A card-coloured chip, so the name reads on the palest preset and the brightest neon alike. */
.landing__theme-name {
    padding: 0.2em 0.6em;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font: 700 0.8rem var(--font-display);
}

.landing__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 110px;
    padding: 1rem 0.2rem 0;
}

.landing__bars span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #6aa1f0, var(--accent));
}

.landing__term {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px dashed var(--rule);
}

.landing__term-head {
    display: flex;
    justify-content: space-between;
    font: 600 0.85rem var(--font-body);
    color: var(--muted);
}

.landing__goal-emoji i {
    color: var(--blue-ink);
}

.landing__goal-card--shop .landing__goal-emoji i {
    color: #c4e39a;
}

/* ── Recipes & the dinner vote ──────────────────────────── */
.landing__dinner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.landing__vote {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.75rem;
}

.landing__vote .landing__goal-track {
    margin-top: 0;
}

.landing__vote-dish {
    font: 600 0.98rem var(--font-body);
}

.landing__vote-count {
    font: 700 1.1rem var(--font-display);
    font-variant-numeric: tabular-nums;
}

.landing__recipe-card .landing__vig-amount {
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.landing__recipe-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.landing__rule-chips--ink {
    justify-content: flex-start;
}

.landing__rule-chips--ink li {
    color: var(--blue-ink);
    border-color: var(--rule-strong);
}

.landing__vignette .landing__rule-chips {
    margin: 0.45rem 0 0.9rem;
}

.landing__vignette .landing__rule-chips:last-child {
    margin-bottom: 0;
}

.landing__ballot {
    border-top: 1px solid var(--rule);
    padding: 0.75rem 0;
}

.landing__ballot:last-child {
    padding-bottom: 0;
}

.landing__ballot--leading .landing__ballot-dish {
    color: var(--green-ink);
}

.landing__ballot-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.landing__ballot-dish {
    font: 700 1rem var(--font-display);
}

.landing__ballot-top .landing__tag {
    margin-left: auto;
}

.landing__ballot-voters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font: 600 0.85rem var(--font-body);
    color: var(--muted);
}

.landing__ballot-faces {
    display: flex;
}

.landing__ballot-faces .landing__member-face {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    box-shadow: 0 0 0 2px var(--card);
}

.landing__ballot-faces .landing__member-face + .landing__member-face {
    margin-left: -6px;
}

/* ── The family tablet page ─────────────────────────────── */
.landing__today-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.35rem 0 0.7rem;
}

.landing__today-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 0.45rem 0.5rem;
}

.landing__today-title {
    font: 700 0.68rem/1.25 var(--font-body);
}

.landing__today-who {
    font: 600 0.6rem var(--font-body);
    color: var(--muted);
}

.landing__today-card .landing__fauxbtn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
}

.landing__day {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.landing__day-row {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
}

.landing__day-time {
    font: 600 0.6rem var(--font-body);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.landing__pair-code {
    font: 700 1.6rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    margin: 0.3rem 0 0.1rem;
}

.landing__pair-code + .landing__vig-label {
    margin-bottom: 0.6rem;
}

.landing__picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.landing__picker-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    font: 600 0.9rem var(--font-body);
}

.landing__picker-tile .landing__member-face {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
}

.landing__picker-bal {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font: 700 0.7rem var(--font-body);
    font-variant-numeric: tabular-nums;
}

/* ── The shop and shopping list pages ───────────────────── */
.landing__trade {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.landing__trade .bi {
    color: var(--muted);
}

.landing__grow {
    flex: 1;
    min-width: 0;
}

.landing__grow .landing__goal-track {
    margin: 0.5rem 0 0.35rem;
}

.landing__list-section {
    font: 700 0.8rem var(--font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.9rem;
}

.landing__list-done .landing__vig-title {
    color: var(--muted);
}

.landing__list-photo {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--orange-soft);
}

/* ── The investing page ─────────────────────────────────── */
.landing__tag--down {
    background: var(--red-soft);
    color: var(--red-ink);
}

.landing__tag--wrap {
    white-space: normal;
}

.landing__invest-gain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.5rem 0 0.35rem;
}

.landing__invest-chart {
    display: block;
    width: 100%;
    height: 7.5rem;
    margin: 0.9rem 0 0.7rem;
}

.landing__invest-area {
    fill: var(--blue-soft);
}

.landing__invest-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.landing__invest-basis {
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    vector-effect: non-scaling-stroke;
}

/* A drawn two-way toggle, like the trade sheet's; landing__seg-on marks the chosen option. */
.landing__seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    margin: 0.7rem 0;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--rule);
}

.landing__seg span {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.5rem;
    border-radius: 7px;
    font: 600 0.88rem var(--font-body);
    color: var(--muted);
    text-align: center;
}

.landing__seg small {
    font: 400 0.75rem var(--font-body);
}

.landing__seg .landing__seg-on {
    background: var(--card);
    color: var(--blue-ink);
    box-shadow: 0 1px 3px rgba(34, 51, 86, 0.12);
}

.landing__invest-input {
    margin-bottom: 0.6rem;
}

.landing__invest-estimate {
    margin-top: 0.6rem;
}

.landing__invest-tip {
    margin-bottom: 0.9rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--orange-soft);
}

.landing__invest-tip .landing__vig-title {
    font-size: 0.95rem;
}

.landing__invest-tip .bi {
    color: var(--orange-ink);
}

.landing__invest-first {
    margin-top: 0;
}

.landing__invest-pl {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex: none;
}

/* ── Works with (end of every feature page) ─────────────── */
.landing__works {
    padding: 80px 0;
    background: #e9eff9;
    border-bottom: 1px solid var(--rule);
}

.landing__works h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.landing__works-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
}

.landing__works-list > li {
    display: flex;
}

.landing__works-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.landing__works-item strong {
    display: block;
    font: 700 1.02rem var(--font-display);
    color: var(--ink);
    margin-bottom: 0.1rem;
}

/* Only the line links, so the card itself never reads as a button. */
.landing__works-link {
    color: inherit;
    text-decoration: none;
}

.landing__works-link .bi {
    margin-left: 0.35em;
    color: var(--blue-ink);
}

.landing__works-link:hover,
.landing__works-link:focus-visible {
    color: var(--blue-ink);
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
    .landing__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* One row that snaps card to card under the thumb, with the next card peeking so it reads as swipeable. Pure CSS: no script, no arrows. */
    .landing__cards--strip {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 40%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        margin-inline: -20px;
        /* A scroll container clips both axes, so the bottom padding is what leaves room for the cards' shadow. */
        padding: 4px 20px 40px;
        scrollbar-width: none;
    }

    .landing__cards--strip + .landing__more {
        margin-top: 0;
    }

    .landing__cards--strip::-webkit-scrollbar {
        display: none;
    }

    .landing__cards--strip > li {
        scroll-snap-align: start;
    }

    .landing__pillars {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .landing__tour,
    .landing__breadth,
    .landing__works {
        padding: 64px 0;
    }

    .landing__hero--feature .landing__hero-art .landing__vignette {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .landing__cards--strip {
        grid-auto-columns: 78%;
    }

    .landing__works-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 519.98px) {
    .landing__cards:not(.landing__cards--strip) {
        grid-template-columns: 1fr;
    }

    .landing__picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .landing__hero .landing__wrap,
    .landing__feature .landing__wrap,
    .landing__pricing .landing__wrap,
    .landing__privacy .landing__wrap,
    .landing__tablet-grid {
        /* minmax(0, …): with a plain 1fr a wide vignette stretches the one column past the screen, and .landing's clip cuts it off. */
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .landing__chain {
        margin: 0 auto;
    }

    .landing__hero {
        padding: 48px 0 64px;
    }

    .landing__feature,
    .landing__index,
    .landing__privacy,
    .landing__pricing,
    .landing__closing {
        padding: 64px 0;
    }

    .landing__tablet-band {
        padding: 72px 0;
    }

    .landing__index-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .landing__trial-stamp {
        right: 8px;
    }
}

@media (max-width: 560px) {
    .landing__lockpair {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .landing__timebank {
        width: 100%;
    }

    .landing__link:nth-child(odd) {
        margin-right: 1.25rem;
    }

    .landing__link:nth-child(even) {
        margin-left: 1.25rem;
    }
}

@media (max-width: 760px) {
    .landing__loop-steps {
        grid-template-columns: 1fr;
        /* Room for each card's overlapping number badge. */
        gap: 2.6rem;
    }
}
