/* =========================================================
   GLOBAL DESIGN TOKENS — Streamlined Modularism (Bento Box)
   ========================================================= */
:root {
    --hue-foundation: #475569;
    --hue-foundation-soft: #64748b;
    --hue-foundation-dim: #334155;
    --hue-clarity: #f0fff4;
    --hue-clarity-deep: #e8fbef;
    --hue-action: #f87171;
    --hue-action-deep: #ef4d4d;
    --hue-paper: #ffffff;
    --hue-ink: #1f2937;
    --hue-mist: #cbd5e1;
    --hue-line: #e2e8f0;
    --hue-cream: #fff8f0;

    --shade-soft: 0 4px 16px rgba(71, 85, 105, 0.08);
    --shade-mid: 0 10px 28px rgba(71, 85, 105, 0.14);
    --shade-deep: 0 18px 42px rgba(71, 85, 105, 0.22);

    --type-display: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    --type-body: 'Lexend', 'Segoe UI', system-ui, sans-serif;

    --beat-2xs: 0.25rem;
    --beat-xs: 0.5rem;
    --beat-sm: 0.875rem;
    --beat-md: 1.25rem;
    --beat-lg: 2rem;
    --beat-xl: 3rem;
    --beat-2xl: 4.5rem;

    --curve-sm: 10px;
    --curve-md: 18px;
    --curve-lg: 28px;
    --curve-pill: 999px;

    --pulse-fast: 0.22s ease;
    --pulse-mid: 0.36s ease;
    --pulse-slow: 0.6s ease;

    --frame-max: 1240px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--type-body);
    color: var(--hue-ink);
    background: var(--hue-clarity);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--type-display);
    color: var(--hue-foundation-dim);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 600;
}

p {
    color: var(--hue-foundation);
    font-size: 1rem;
}

main {
    flex: 1;
    display: block;
}

/* =========================================================
   FRAME / CONTAINER
   ========================================================= */
.frame-bound {
    width: 100%;
    max-width: var(--frame-max);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.section-cell {
    padding: var(--beat-xl) 0;
}

.section-tagline {
    display: inline-flex;
    align-items: center;
    gap: var(--beat-xs);
    padding: 0.4rem 0.9rem;
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    border-radius: var(--curve-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--hue-line);
}

.section-heading {
    margin-top: var(--beat-sm);
    max-width: 680px;
}

.section-lead {
    margin-top: var(--beat-sm);
    max-width: 640px;
    color: var(--hue-foundation);
}

.section-headline-zone {
    text-align: center;
    margin-bottom: var(--beat-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   CTA BUTTONS
   ========================================================= */
.cta-coral,
.cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--beat-xs);
    padding: 0.85rem 1.6rem;
    border-radius: var(--curve-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--pulse-fast), box-shadow var(--pulse-fast), background var(--pulse-fast);
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.1;
}

.cta-coral {
    background: var(--hue-action);
    color: #fff;
    box-shadow: 0 8px 22px rgba(248, 113, 113, 0.32);
}

.cta-coral:hover {
    background: var(--hue-action-deep);
    transform: translateY(-2px);
}

.cta-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--hue-foundation-dim);
    border-color: var(--hue-line);
    backdrop-filter: blur(10px);
}

.cta-ghost:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shade-soft);
}

/* =========================================================
   HEADER (creative, non-sticky, bento bar)
   ========================================================= */
.top-rail {
    position: relative;
    width: 100%;
    z-index: 40;
    background: linear-gradient(135deg, rgba(240, 255, 244, 0.92), rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hue-line);
}

.top-rail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--beat-md);
    padding: var(--beat-sm) 1.25rem;
    max-width: var(--frame-max);
    margin: 0 auto;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--type-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--hue-foundation-dim);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-mark-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--hue-action), var(--hue-foundation));
    box-shadow: var(--shade-soft);
}

.rail-link-set {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.rail-link {
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--hue-foundation);
    border-radius: var(--curve-sm);
    transition: background var(--pulse-fast), color var(--pulse-fast);
}

.rail-link:hover,
.rail-link.is-active {
    color: var(--hue-foundation-dim);
    background: var(--hue-clarity-deep);
}

.rail-tail {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rail-cta {
    display: none;
    padding: 0.55rem 1.05rem;
    background: var(--hue-foundation);
    color: #fff;
    border-radius: var(--curve-pill);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background var(--pulse-fast), transform var(--pulse-fast);
}

.rail-cta:hover {
    background: var(--hue-foundation-dim);
    transform: translateY(-1px);
}

/* burger button — last element of header, only ≤1023 */
.lattice-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--curve-sm);
    background: var(--hue-clarity-deep);
    border: 1px solid var(--hue-line);
    color: var(--hue-foundation-dim);
    transition: background var(--pulse-fast);
}

.lattice-toggle:hover {
    background: #fff;
}

.lattice-toggle-icon,
.lattice-toggle-icon::before,
.lattice-toggle-icon::after {
    content: "";
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--pulse-fast), opacity var(--pulse-fast);
    position: relative;
    display: block;
}

.lattice-toggle-icon::before {
    position: absolute;
    top: -7px;
    left: 0;
}

.lattice-toggle-icon::after {
    position: absolute;
    top: 7px;
    left: 0;
}

/* =========================================================
   DRAWER (separate from header, opens as overlay)
   ========================================================= */
.lattice-veil {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--pulse-mid);
    z-index: 90;
}

.lattice-veil.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lattice-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    background: var(--hue-paper);
    box-shadow: var(--shade-deep);
    transform: translateX(105%);
    transition: transform var(--pulse-mid);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: var(--beat-md) var(--beat-md) var(--beat-lg);
    overflow-y: auto;
}

.lattice-drawer.is-open {
    transform: translateX(0);
}

.lattice-drawer-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--beat-md);
}

.lattice-drawer-shut {
    width: 38px;
    height: 38px;
    border-radius: var(--curve-sm);
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
}

.lattice-drawer-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lattice-drawer-link {
    padding: 0.85rem 0.9rem;
    border-radius: var(--curve-md);
    font-weight: 500;
    color: var(--hue-foundation);
    transition: background var(--pulse-fast), color var(--pulse-fast);
    border: 1px solid transparent;
}

.lattice-drawer-link:hover,
.lattice-drawer-link.is-active {
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    border-color: var(--hue-line);
}

.lattice-drawer-cta {
    margin-top: var(--beat-md);
    padding: 0.85rem 1.2rem;
    background: var(--hue-action);
    color: #fff;
    text-align: center;
    border-radius: var(--curve-pill);
    font-weight: 600;
}

/* =========================================================
   FULL-WIDTH BANNER (image lives under text)
   ========================================================= */
.banner-spread {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: clamp(440px, 56vh, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.banner-spread-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-spread-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.78), rgba(71, 85, 105, 0.32) 60%, rgba(240, 255, 244, 0.18));
    z-index: 2;
}

.banner-spread-message {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--frame-max);
    margin: 0 auto;
    padding: var(--beat-2xl) 1.25rem;
    color: #fff;
}

.banner-spread-tag {
    display: inline-flex;
    padding: 0.3rem 0.85rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--curve-pill);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.banner-spread-title {
    margin-top: var(--beat-md);
    color: #fff;
    max-width: 720px;
    text-shadow: 0 4px 24px rgba(15, 23, 42, 0.35);
}

.banner-spread-text {
    margin-top: var(--beat-sm);
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    font-size: 1.02rem;
}

.banner-spread-buttons {
    margin-top: var(--beat-md);
    display: flex;
    gap: var(--beat-sm);
    flex-wrap: wrap;
}

.banner-spread-mini {
    margin-top: var(--beat-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--beat-md);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
}

.banner-spread-mini span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.banner-spread-mini span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hue-action);
    display: inline-block;
}

/* compact banner variant for inner pages */
.banner-spread.is-compact {
    min-height: clamp(320px, 40vh, 420px);
}

.banner-spread.is-compact .banner-spread-message {
    padding: var(--beat-xl) 1.25rem;
}

/* =========================================================
   ENERGY SLIDER (homepage interactive)
   ========================================================= */
.mood-meter {
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    box-shadow: var(--shade-mid);
    display: grid;
    gap: var(--beat-md);
    border: 1px solid var(--hue-line);
}

.mood-meter-head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mood-meter-title {
    font-family: var(--type-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--hue-foundation-dim);
}

.mood-meter-pull {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mood-meter-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e5e7eb, var(--hue-action) 50%, var(--hue-foundation));
    outline: none;
}

.mood-meter-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--hue-foundation);
    box-shadow: var(--shade-soft);
    cursor: pointer;
}

.mood-meter-range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--hue-foundation);
    cursor: pointer;
}

.mood-meter-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--hue-foundation);
    font-weight: 500;
}

.mood-meter-result {
    display: grid;
    gap: 0.6rem;
    background: var(--hue-clarity-deep);
    border-radius: var(--curve-md);
    padding: var(--beat-md);
    border: 1px solid var(--hue-line);
}

.mood-meter-result-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hue-foundation-soft);
    font-weight: 600;
}

.mood-meter-result-title {
    font-family: var(--type-display);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--hue-foundation-dim);
}

.mood-meter-result-text {
    font-size: 0.94rem;
    color: var(--hue-foundation);
}

/* =========================================================
   BENTO GRID — modular tiles
   ========================================================= */
.bento-collection {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
}

.bento-tile {
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    border: 1px solid var(--hue-line);
    box-shadow: var(--shade-soft);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
    transition: transform var(--pulse-fast), box-shadow var(--pulse-fast);
    overflow: hidden;
    position: relative;
}

.bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shade-mid);
}

.bento-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--curve-md);
    background: linear-gradient(135deg, var(--hue-clarity-deep), #fff);
    border: 1px solid var(--hue-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--hue-foundation);
}

.bento-tile-title {
    font-family: var(--type-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--hue-foundation-dim);
}

.bento-tile-text {
    font-size: 0.95rem;
    color: var(--hue-foundation);
}

.bento-tile-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.bento-tile-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--hue-foundation);
}

.bento-tile-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--hue-action);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.bento-tile.is-feature {
    background: linear-gradient(135deg, var(--hue-foundation-dim), var(--hue-foundation));
    color: #fff;
    border-color: transparent;
}

.bento-tile.is-feature .bento-tile-title,
.bento-tile.is-feature .bento-tile-text {
    color: #fff;
}

.bento-tile.is-feature .bento-tile-icon {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bento-tile.is-feature .bento-tile-list li {
    color: rgba(255, 255, 255, 0.88);
}

.bento-tile-photo {
    width: 100%;
    height: 180px;
    border-radius: var(--curve-md);
    object-fit: cover;
}

/* image bento with image hero */
.bento-tile.has-canvas {
    padding: 0;
}

.bento-tile.has-canvas .bento-tile-photo {
    height: 200px;
    border-radius: 0;
}

.bento-tile.has-canvas .bento-tile-body {
    padding: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-xs);
}

/* =========================================================
   FLOW / STEPS
   ========================================================= */
.flow-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
    counter-reset: flow;
}

.flow-stop {
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    border: 1px solid var(--hue-line);
    counter-increment: flow;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--beat-xs);
}

.flow-stop::before {
    content: counter(flow, decimal-leading-zero);
    font-family: var(--type-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hue-action);
    letter-spacing: 0.04em;
}

.flow-stop-title {
    font-family: var(--type-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--hue-foundation-dim);
}

.flow-stop-text {
    font-size: 0.94rem;
    color: var(--hue-foundation);
}

/* =========================================================
   PLAN CARDS / PRODUCTS
   ========================================================= */
.plan-rack {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
}

.plan-card {
    display: flex;
    flex-direction: column;
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    overflow: hidden;
    border: 1px solid var(--hue-line);
    box-shadow: var(--shade-soft);
    transition: transform var(--pulse-fast), box-shadow var(--pulse-fast);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shade-mid);
}

.plan-card-canvas {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.plan-card-body {
    padding: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-xs);
    flex: 1;
}

.plan-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--hue-foundation-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card-price {
    color: var(--hue-action);
    font-family: var(--type-display);
    font-size: 1rem;
    font-weight: 700;
}

.plan-card-title {
    font-family: var(--type-display);
    font-weight: 600;
    color: var(--hue-foundation-dim);
    font-size: 1.18rem;
}

.plan-card-text {
    font-size: 0.95rem;
    color: var(--hue-foundation);
}

.plan-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: var(--beat-xs);
}

.plan-card-tags span {
    font-size: 0.74rem;
    padding: 0.25rem 0.6rem;
    background: var(--hue-clarity-deep);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-pill);
    color: var(--hue-foundation-dim);
    font-weight: 500;
}

.plan-card-foot {
    margin-top: auto;
    padding-top: var(--beat-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--hue-line);
}

.plan-card-link {
    font-weight: 600;
    color: var(--hue-foundation-dim);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--pulse-fast);
}

.plan-card-link:hover {
    color: var(--hue-action);
}

/* =========================================================
   STAT BAND
   ========================================================= */
.stat-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-sm);
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    border: 1px solid var(--hue-line);
}

.stat-cell {
    padding: var(--beat-sm);
    border-radius: var(--curve-md);
    background: var(--hue-clarity-deep);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-cell-num {
    font-family: var(--type-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--hue-foundation-dim);
}

.stat-cell-label {
    font-size: 0.85rem;
    color: var(--hue-foundation);
}

/* =========================================================
   QUOTE STRIP
   ========================================================= */
.quote-strip {
    background: linear-gradient(135deg, var(--hue-clarity-deep), #fff);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    display: grid;
    gap: var(--beat-sm);
}

.quote-strip-mark {
    color: var(--hue-action);
    font-family: var(--type-display);
    font-size: 2.5rem;
    line-height: 1;
}

.quote-strip-text {
    font-size: 1.05rem;
    color: var(--hue-foundation-dim);
    font-style: italic;
    line-height: 1.5;
}

.quote-strip-source {
    font-size: 0.88rem;
    color: var(--hue-foundation);
    font-weight: 500;
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
    background: linear-gradient(135deg, var(--hue-foundation-dim), var(--hue-foundation));
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    color: #fff;
    display: grid;
    gap: var(--beat-md);
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 80% 20%, rgba(248, 113, 113, 0.35), transparent 60%);
    pointer-events: none;
}

.cta-strip-text h2 {
    color: #fff;
}

.cta-strip-text p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--beat-xs);
    max-width: 500px;
}

.cta-strip-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--beat-sm);
    z-index: 2;
    position: relative;
}

/* =========================================================
   ABOUT — TWO-COLUMN BENTO STORY
   ========================================================= */
.story-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
    align-items: stretch;
}

.story-canvas {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: var(--curve-lg);
}

.story-text-block {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
}

.story-text-block .section-tagline {
    align-self: flex-start;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
}

.contact-info {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    display: flex;
    flex-direction: column;
    gap: var(--beat-md);
}

.contact-info-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.contact-info-row-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--curve-md);
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    border: 1px solid var(--hue-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-info-row-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hue-foundation-soft);
    font-weight: 600;
}

.contact-info-row-value {
    color: var(--hue-foundation-dim);
    font-weight: 500;
    margin-top: 0.1rem;
    font-size: 0.98rem;
    word-break: break-word;
}

.contact-info-row-value a:hover {
    color: var(--hue-action);
}

.contact-form {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hue-foundation-dim);
}

.contact-form-field input,
.contact-form-field textarea {
    padding: 0.85rem 1rem;
    border-radius: var(--curve-md);
    border: 1px solid var(--hue-line);
    background: var(--hue-clarity);
    font-family: var(--type-body);
    font-size: 0.95rem;
    color: var(--hue-ink);
    transition: border-color var(--pulse-fast), background var(--pulse-fast);
    width: 100%;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: var(--hue-foundation);
    background: #fff;
}

.contact-form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--hue-foundation);
}

.contact-form-consent input {
    margin-top: 0.25rem;
    accent-color: var(--hue-action);
}

.contact-form button {
    margin-top: var(--beat-xs);
}

.map-frame {
    width: 100%;
    border: 0;
    border-radius: var(--curve-lg);
    height: 380px;
    background: var(--hue-clarity-deep);
}

.map-card {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    box-shadow: var(--shade-soft);
}

/* =========================================================
   TABLES (Swap engine)
   ========================================================= */
.swap-frame {
    overflow-x: auto;
    border-radius: var(--curve-lg);
    border: 1px solid var(--hue-line);
    background: var(--hue-paper);
    box-shadow: var(--shade-soft);
}

.swap-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 540px;
}

.swap-grid th,
.swap-grid td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--hue-line);
    vertical-align: top;
}

.swap-grid th {
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    font-weight: 600;
    font-family: var(--type-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.swap-grid tbody tr:hover {
    background: rgba(240, 255, 244, 0.6);
}

.swap-grid td:first-child {
    font-weight: 600;
    color: var(--hue-foundation-dim);
}

.swap-grid .swap-tag {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: var(--curve-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    border: 1px solid var(--hue-line);
}

/* =========================================================
   SMART LIST  (aisle list + staples toggle)
   ========================================================= */
.aisle-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-md);
}

.aisle-card {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-xs);
}

.aisle-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--beat-xs);
}

.aisle-card-name {
    font-family: var(--type-display);
    font-weight: 600;
    color: var(--hue-foundation-dim);
    font-size: 1rem;
}

.aisle-card-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--curve-pill);
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-soft);
    font-weight: 600;
}

.aisle-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--curve-md);
    background: var(--hue-clarity);
    border: 1px solid var(--hue-line);
}

.aisle-line input {
    accent-color: var(--hue-foundation);
    width: 16px;
    height: 16px;
}

.aisle-line-name {
    flex: 1;
    color: var(--hue-foundation-dim);
    font-size: 0.94rem;
}

.aisle-line-meta {
    color: var(--hue-foundation-soft);
    font-size: 0.82rem;
}

.aisle-line.is-staple[data-hidden="true"] {
    display: none;
}

.aisle-toolbar {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
}

.aisle-toolbar-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.aisle-toolbar-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--hue-foundation-dim);
}

.aisle-toolbar-switch input {
    appearance: none;
    width: 42px;
    height: 24px;
    background: var(--hue-line);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background var(--pulse-fast);
}

.aisle-toolbar-switch input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 999px;
    transition: transform var(--pulse-fast);
    box-shadow: var(--shade-soft);
}

.aisle-toolbar-switch input:checked {
    background: var(--hue-foundation);
}

.aisle-toolbar-switch input:checked::after {
    transform: translateX(18px);
}

/* =========================================================
   PREP DAY (progress + tasks)
   ========================================================= */
.prep-progress {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
}

.prep-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--beat-xs);
}

.prep-progress-title {
    font-family: var(--type-display);
    font-weight: 600;
    color: var(--hue-foundation-dim);
}

.prep-progress-percent {
    font-family: var(--type-display);
    font-weight: 700;
    color: var(--hue-action);
    font-size: 1.2rem;
}

.prep-progress-rail {
    width: 100%;
    height: 10px;
    background: var(--hue-line);
    border-radius: 999px;
    overflow: hidden;
}

.prep-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--hue-foundation), var(--hue-action));
    transition: width var(--pulse-mid);
    border-radius: 999px;
}

.prep-task-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.prep-task {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-md);
    transition: background var(--pulse-fast), border-color var(--pulse-fast);
    cursor: pointer;
}

.prep-task:hover {
    background: var(--hue-clarity-deep);
}

.prep-task input {
    margin-top: 0.2rem;
    accent-color: var(--hue-foundation);
    width: 16px;
    height: 16px;
}

.prep-task-text {
    color: var(--hue-foundation-dim);
    font-size: 0.95rem;
}

.prep-task-time {
    color: var(--hue-foundation-soft);
    font-size: 0.82rem;
    margin-left: auto;
    flex-shrink: 0;
}

.prep-task.is-done .prep-task-text {
    color: var(--hue-foundation-soft);
    text-decoration: line-through;
}

.prep-task.is-done {
    background: var(--hue-clarity-deep);
}

/* =========================================================
   FAQ-LIKE NOTES
   ========================================================= */
.note-stack {
    display: grid;
    gap: var(--beat-sm);
}

.note-card {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-md);
    padding: var(--beat-md);
}

.note-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hue-foundation-dim);
    margin-bottom: 0.4rem;
}

.note-card p {
    font-size: 0.94rem;
}

/* =========================================================
   THANKS / 404
   ========================================================= */
.solo-pad {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: var(--beat-xl) 1.25rem;
    background: var(--hue-clarity);
}

.solo-card {
    max-width: 580px;
    text-align: center;
    background: var(--hue-paper);
    border-radius: var(--curve-lg);
    padding: var(--beat-xl) var(--beat-lg);
    border: 1px solid var(--hue-line);
    box-shadow: var(--shade-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--beat-sm);
}

.solo-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--curve-pill);
    background: linear-gradient(135deg, var(--hue-clarity-deep), #fff);
    border: 1px solid var(--hue-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hue-action);
    font-size: 1.8rem;
}

.solo-card h1 {
    margin-top: var(--beat-xs);
}

.solo-card p {
    color: var(--hue-foundation);
}

.solo-actions {
    margin-top: var(--beat-sm);
    display: flex;
    gap: var(--beat-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.lex-bound {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--beat-xl) 1.25rem;
}

.lex-head {
    text-align: center;
    margin-bottom: var(--beat-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--beat-xs);
}

.date {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    background: var(--hue-clarity-deep);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-pill);
    font-size: 0.82rem;
    color: var(--hue-foundation-dim);
    font-weight: 500;
}

.lex-block {
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    padding: var(--beat-lg);
    margin-bottom: var(--beat-md);
    display: flex;
    flex-direction: column;
    gap: var(--beat-sm);
}

.lex-block h2 {
    color: var(--hue-foundation-dim);
    font-size: 1.3rem;
}

.lex-block p,
.lex-block li {
    color: var(--hue-foundation);
    font-size: 0.96rem;
    line-height: 1.7;
}

.lex-block ul {
    padding-left: 1.2rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lex-block ul li::marker {
    color: var(--hue-action);
}

.lex-block strong {
    color: var(--hue-foundation-dim);
}

/* =========================================================
   FOOTER
   ========================================================= */
.bottom-rail {
    background: var(--hue-foundation-dim);
    color: rgba(255, 255, 255, 0.86);
    padding: var(--beat-xl) 0 var(--beat-md);
    margin-top: var(--beat-xl);
}

.bottom-rail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--beat-lg);
    max-width: var(--frame-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.bottom-rail-mark {
    font-family: var(--type-display);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: var(--beat-xs);
}

.bottom-rail-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 320px;
}

.bottom-rail-col h4 {
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: var(--beat-xs);
    font-family: var(--type-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bottom-rail-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-rail-list a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    transition: color var(--pulse-fast);
}

.bottom-rail-list a:hover {
    color: var(--hue-action);
}

.bottom-rail-line {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: var(--beat-lg);
    padding-top: var(--beat-md);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: var(--frame-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* =========================================================
   COOKIE POPUP
   ========================================================= */
.crumb-popup {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: var(--hue-paper);
    border: 1px solid var(--hue-line);
    border-radius: var(--curve-lg);
    box-shadow: var(--shade-deep);
    padding: var(--beat-md);
    display: none;
    flex-direction: column;
    gap: var(--beat-sm);
    z-index: 80;
    max-width: 720px;
    margin: 0 auto;
}

.crumb-popup.is-open {
    display: flex;
}

.crumb-popup-text {
    font-size: 0.92rem;
    color: var(--hue-foundation);
}

.crumb-popup-text a {
    color: var(--hue-foundation-dim);
    text-decoration: underline;
}

.crumb-popup-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.crumb-popup-actions button {
    padding: 0.55rem 1.1rem;
    border-radius: var(--curve-pill);
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform var(--pulse-fast);
}

.crumb-popup-actions .crumb-yes {
    background: var(--hue-action);
    color: #fff;
}

.crumb-popup-actions .crumb-no {
    background: var(--hue-clarity-deep);
    color: var(--hue-foundation-dim);
    border: 1px solid var(--hue-line);
}

/* =========================================================
   RESPONSIVE GRIDS — progressive enhancement
   ========================================================= */
@media (min-width: 560px) {
    .stat-band {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 640px) {
    .bento-collection {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-rack {
        grid-template-columns: repeat(2, 1fr);
    }

    .aisle-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-strip {
        grid-template-columns: 2fr 1fr;
    }

    .stat-band {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 820px) {
    .bento-collection {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow-track {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-rack {
        grid-template-columns: repeat(3, 1fr);
    }

    .aisle-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-pair {
        grid-template-columns: 1fr 1.1fr;
    }

    .contact-pair {
        grid-template-columns: 1fr 1.1fr;
    }

    .bottom-rail-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* show inline nav at 1024+ ; burger is hidden at 1024+ */
@media (min-width: 1024px) {
    .rail-link-set {
        display: flex;
    }

    .rail-cta {
        display: inline-flex;
    }

    .lattice-toggle {
        display: none;
    }

    .banner-spread-message {
        padding: var(--beat-2xl) 2rem;
    }
}

@media (min-width: 1100px) {
    .bento-collection.is-quartet {
        grid-template-columns: repeat(4, 1fr);
    }
}
