/* ==========================================================================
   AirCalendar — holding page
   Standalone static site. Not part of the main app bundle, so CSS lives
   next to index.html rather than in /public_html/assets. Friendly blue
   palette, generous whitespace, Smoobu-ish feel.
   ========================================================================== */

:root {
    --brand:          #2f6fed;
    --brand-dark:     #1f4fcc;
    --brand-soft:     #eaf1ff;
    --brand-softer:   #f5f8ff;
    --accent:         #0ea5b7;
    --ink:            #0e1a33;
    --ink-2:          #31405e;
    --muted:          #6b7a95;
    --line:           #e4e9f2;
    --bg:             #ffffff;
    --bg-alt:         #f7f9fc;
    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      22px;
    --shadow-sm:      0 2px 6px rgba(15, 30, 80, 0.06);
    --shadow-md:      0 8px 26px rgba(15, 30, 80, 0.08);
    --shadow-lg:      0 22px 60px rgba(15, 30, 80, 0.12);
    --container:      1180px;
    --gutter:         24px;
    --font:           -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
                      Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

/* The HTML5 `hidden` attribute should always win — without this, any
   element that also has a custom `display:` rule (e.g. .btn → inline-flex)
   ignores `hidden` and stays visible. The wizard relied on this for its
   stage-4 sub-panels and the "Continue to Stripe" submit button. */
[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Feature-row images bleed past the container edge on desktop;
       clip stops that from spawning a horizontal scrollbar without
       breaking `position: sticky` like `overflow: hidden` would. */
    overflow-x: clip;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    margin: 0 0 0.4em;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
}
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(47, 111, 237, .35);
}
.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(47, 111, 237, .4);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 12px 18px;
}
.btn-ghost:hover { color: var(--brand); }
.btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* ---------- Header ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    /* Solid background — sticky + backdrop-filter triggers a long-
       running WebKit bug where Safari fails to repaint content below
       the header on momentum scroll, leaving blank tiles. The frosted-
       glass look isn't worth the rendering glitch on the most common
       browser, so we go fully opaque. */
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

@media (max-width: 820px) {
    .nav-links { display: none; }
    /* Hero already shows the Get Started CTA, so the duplicate in
       the nav bar just eats horizontal space on phones. */
    .nav-cta [data-checkout="open"] { display: none; }
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
    position: relative;
    padding: 88px 0 72px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(47, 111, 237, 0.14), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(14, 165, 183, 0.10), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--brand-softer) 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--brand-soft);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 183, 0.18);
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub {
    font-size: 19px;
    color: var(--ink-2);
    margin: 0 0 32px;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}
.hero-trust .dot {
    display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: var(--muted); margin-right: 6px; vertical-align: middle;
}

/* Image placeholder — a soft dashed card that asks for a screenshot.
   Every image slot on the page uses the same pattern so the operator
   can drop replacement images in without touching layout. */
.img-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background:
        repeating-linear-gradient(135deg,
            rgba(47, 111, 237, 0.04) 0 14px,
            rgba(47, 111, 237, 0.08) 14px 28px);
    border: 1.5px dashed rgba(47, 111, 237, 0.35);
    border-radius: var(--radius-lg);
    color: var(--brand);
    font-weight: 600;
    text-align: center;
    padding: 24px;
    min-height: 260px;
}
.img-placeholder .ip-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}
.img-placeholder svg { width: 44px; height: 44px; opacity: 0.65; }

/* When a real image is dropped into a placeholder, it fills the slot
   and the dashed-card styling falls away. */
.img-placeholder:has(> img) {
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
}
.img-placeholder > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.hero-figure {
    position: relative;
    aspect-ratio: 16 / 11;
}
.hero-figure > img,
.hero-figure > .img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #fff;
    overflow: hidden;
    object-fit: cover;
    display: block;
}
.hero-figure > .img-placeholder {
    border: 0;
}
/* Decorative floating callout cards that sit over the hero image — they
   make the screenshot slot feel like a product, not a rectangle. */
.float-card {
    position: absolute;
    z-index: 2;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
}
.float-card .fc-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
}
.float-card .fc-icon svg { width: 16px; height: 16px; }
.float-card .muted { color: var(--muted); font-weight: 500; font-size: 12px; }
.float-card-1 { top: 26px; left: -24px; }
.float-card-2 { bottom: 24px; right: -18px; }

@media (max-width: 960px) {
    .hero { padding: 60px 0 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .float-card-1, .float-card-2 { display: none; }
}

/* ---------- Section scaffolding ----------------------------------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: linear-gradient(135deg, #10204a 0%, #1f3876 100%);
    color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.76); }
.eyebrow-on-dark {
    background: #ffffff;
    color: #10204a;
    border-color: #ffffff;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head .eyebrow {
    background: var(--brand-soft);
    border-color: transparent;
    box-shadow: none;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 18px; margin: 0; }

/* ---------- Three-point value strip ------------------------------------- */
.value-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0 0;
}
.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card .icon-box {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
    margin-bottom: 14px;
}
.value-card .icon-box svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 18px; margin-bottom: 6px; }
.value-card p   { margin: 0; font-size: 15px; }

@media (max-width: 820px) {
    .value-strip { grid-template-columns: 1fr; }
}

/* ---------- Feature rows (alternating image / copy) --------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 64px;
    align-items: center;
}
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.reverse { grid-template-columns: 0.6fr 1.4fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-copy .eyebrow {
    background: var(--brand-soft);
    border-color: transparent;
    box-shadow: none;
}
.feature-copy h2 { font-size: 34px; margin-bottom: 16px; }
.feature-copy p  { font-size: 17px; }

.feature-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink-2);
    font-size: 15px;
}
.feature-list li::before {
    content: '';
    width: 22px; height: 22px; flex-shrink: 0;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6fed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    margin-top: 2px;
}

.feature-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: #fff;
    min-width: 0;            /* default `min-content` would clip the bleed */
}
.feature-media > img,
.feature-media .img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    display: block;
}

/* Off-page bleed: the image extends past the container on whichever
   side it sits on. Negative margin is the gap from container to
   viewport, plus a small overshoot so it actually exits the viewport. */
@media (min-width: 961px) {
    .feature-row:not(.reverse) .feature-media {
        margin-right: calc((100vw - var(--container)) / -2 - 180px);
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .feature-row.reverse .feature-media {
        margin-left: calc((100vw - var(--container)) / -2 - 180px);
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 960px) {
    .feature-row,
    .feature-row.reverse { grid-template-columns: 1fr; gap: 36px; }
    .feature-row + .feature-row { margin-top: 72px; }
    .feature-row.reverse .feature-copy { order: 0; }
    .feature-row.reverse .feature-media { order: 0; }
}

/* ---------- Feature grid (small tiles) ---------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-tile .icon-box {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
    margin-bottom: 14px;
}
.feature-tile .icon-box svg { width: 20px; height: 20px; }
.feature-tile h3 { font-size: 17px; margin-bottom: 6px; }
.feature-tile p  { font-size: 14px; margin: 0; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Booking flow timeline -------------------------------------- */
/* A "beeline" of 9 steps: numbered bubbles strung along a vertical spine,
   alternating left/right of centre on desktop, single-column on mobile. */
.flow-line {
    list-style: none;
    margin: 64px auto 0;
    padding: 0;
    position: relative;
    max-width: 980px;
}
.flow-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
    transform: translateX(-1px);
    pointer-events: none;
}
.flow-step {
    position: relative;
    width: calc(50% - 36px);
    padding: 0 28px;
    margin-bottom: 56px;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step:nth-child(odd)  { margin-left: 0;   text-align: right; }
.flow-step:nth-child(even) { margin-left: calc(50% + 36px); text-align: left; }

.flow-num {
    position: absolute;
    top: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--bg-alt, #f6f7f9);
    z-index: 1;
}
.flow-step:nth-child(odd)  .flow-num { right: -58px; }
.flow-step:nth-child(even) .flow-num { left:  -58px; }

.flow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 12px;
}
.flow-icon svg { width: 22px; height: 22px; }
.flow-step:nth-child(odd) .flow-icon  { margin-left: auto; }
.flow-step:nth-child(even) .flow-icon { margin-right: auto; }

.flow-body h3 { font-size: 18px; margin: 0 0 6px; }
.flow-body p  { font-size: 14.5px; margin: 0; line-height: 1.55; color: var(--text-2, #555); }

@media (max-width: 760px) {
    .flow-line { max-width: 560px; padding-left: 16px; }
    .flow-line::before { left: 22px; transform: none; }
    .flow-step,
    .flow-step:nth-child(odd),
    .flow-step:nth-child(even) {
        width: auto;
        margin-left: 56px;
        text-align: left;
        padding: 0;
    }
    .flow-step:nth-child(odd)  .flow-num,
    .flow-step:nth-child(even) .flow-num { left: -56px; right: auto; top: 0; }
    .flow-step:nth-child(odd)  .flow-icon { margin-left: 0; }
}

/* ---------- Gallery strip ---------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.gallery .img-placeholder { aspect-ratio: 1 / 1; min-height: 0; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Waitlist / CTA block --------------------------------------- */
.cta-block {
    position: relative;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-block::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 340px; height: 340px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.cta-block::before {
    content: '';
    position: absolute;
    bottom: -160px; left: -120px;
    width: 360px; height: 360px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.cta-block h2 { color: #fff; font-size: 34px; margin-bottom: 10px; }
.cta-block p  { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin: 0 auto 28px; max-width: 560px; }

/* Contact form on the dark CTA panel. White inputs on the panel
   gradient, brand button at the foot, inline thank-you state. */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
}
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.contact-field { display: grid; gap: 6px; }
.contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.contact-form .contact-error input,
.contact-form .contact-error textarea {
    border-color: #fda4af;
    box-shadow: 0 0 0 3px rgba(253, 164, 175, 0.18);
}
.contact-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.contact-foot .btn {
    background: #ffffff;
    color: var(--brand);
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
}
.contact-foot .btn:hover { transform: translateY(-1px); background: #fff; color: var(--brand-dark); }
.contact-foot .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.contact-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}
.contact-status.is-error   { color: #fda4af; }
.contact-status.is-success { color: #d1fae5; }

/* Honeypot — visually hidden but still in the DOM so bots see it. */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .contact-row { grid-template-columns: 1fr; }
}

/* Confirmation modal: centered on desktop, bottom sheet on mobile. */
.contact-sent {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}
.contact-sent[hidden] { display: none; }
.contact-sent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 80, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: auto;
    cursor: pointer;
}
.contact-sent-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(15, 26, 51, 0.45);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
    pointer-events: auto;
}
.contact-sent.is-open .contact-sent-backdrop { opacity: 1; }
.contact-sent.is-open .contact-sent-dialog { opacity: 1; transform: none; }

.contact-sent-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.contact-sent-icon svg { width: 28px; height: 28px; }
.contact-sent-dialog h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.contact-sent-dialog p {
    color: var(--ink-2);
    margin: 0 0 22px;
    line-height: 1.55;
}
.contact-sent-dialog .btn {
    padding: 12px 28px;
    border-radius: 999px;
}

@media (max-width: 540px) {
    .contact-sent {
        align-items: flex-end;
        padding: 0;
    }
    .contact-sent-dialog {
        width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
        transform: translateY(100%);
    }
    .contact-sent.is-open .contact-sent-dialog { transform: none; }
    .contact-sent-dialog::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: var(--line);
    }
}

@media (max-width: 560px) {
    .cta-block { padding: 40px 24px; }
    .waitlist-form { flex-direction: column; background: transparent; border: 0; padding: 0; gap: 12px; }
    .waitlist-form input { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); }
}

/* ---------- Stat strip -------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 0 0;
}
.stat {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.stat-label { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Automation grid (dark band, 3 × 2) -------------------------- */
.automation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 16px 0 0;
}
.automation-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.automation-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}
.automation-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 14px;
}
.automation-icon svg { width: 20px; height: 20px; }
.automation-card h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.automation-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 960px) { .automation-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .automation-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ----------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 8px 0 0;
}
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card-featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, var(--brand-softer) 0%, #fff 70%);
}
.pricing-card-featured:hover { box-shadow: var(--shadow-lg); }
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.pricing-head h3 {
    font-size: 20px;
    margin-bottom: 4px;
}
.pricing-tag {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--muted);
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.pricing-amount {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.pricing-period {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
}
.pricing-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}
.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-2);
}
.pricing-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-top: 1px;
}
.pricing-check svg { width: 13px; height: 13px; }
.pricing-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
}
.pricing-foot {
    margin: 28px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
    .pricing-card-featured { order: -1; }
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
    padding: 56px 0 32px;
    background: #0b1530;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}
.site-footer .brand { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: #fff; }
.footer-tagline { margin-top: 14px; max-width: 320px; color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom .small { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------------------------------------------
   Opt-in reveal — apply `.reveal` to a specific small block (a card, a
   feature row, a section heading) and the JS toggles `.visible` when it
   enters the viewport. Sized this way (per-block, not per-section), the
   compositor only juggles a small painted area at a time, which is what
   keeps Safari from going patchy on long pages. */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
                transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Gentle image grow on hover --------------------------------- */
.feature-media > img,
.hero-figure > img,
.gallery .img-placeholder > img {
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.feature-media:hover > img,
.hero-figure:hover > img,
.gallery .img-placeholder:hover > img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .feature-media > img,
    .hero-figure > img,
    .gallery .img-placeholder > img { transition: none; }
    .feature-media:hover > img,
    .hero-figure:hover > img,
    .gallery .img-placeholder:hover > img { transform: none; }
}

/* ==========================================================================
   CHECKOUT WIZARD MODAL
   --------------------------------------------------------------------------
   Centered dialog on desktop, iOS-style bottom sheet on mobile (≤640px).
   The modal body scrolls; head and foot are sticky inside the dialog.
   ========================================================================== */

body.modal-open { overflow: hidden; }

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}
.checkout-modal[hidden] { display: none; }

.checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 51, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: auto;
}
.checkout-modal.is-open .checkout-backdrop { opacity: 1; }

.checkout-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(840px, calc(100vh - 24px));
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 40px 80px -20px rgba(15, 26, 51, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: opacity .25s ease, transform .28s cubic-bezier(.2, .7, .2, 1);
}
.checkout-modal.is-open .checkout-dialog {
    transform: none;
    opacity: 1;
}

@media (max-width: 640px) {
    .checkout-modal {
        align-items: flex-end;
        padding: 0;
    }
    .checkout-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
        transition: transform .34s cubic-bezier(.2, .7, .2, 1);
        opacity: 1;
    }
    .checkout-modal.is-open .checkout-dialog { transform: none; }
    .checkout-dialog::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        border-radius: 999px;
        background: var(--line);
    }
}

.checkout-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--bg-alt);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.checkout-close svg { width: 18px; height: 18px; }
.checkout-close:hover { background: var(--line); color: var(--brand-dark); }

.checkout-head {
    padding: 22px 60px 4px 28px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.checkout-progress-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 6px;
}
.checkout-head h2 {
    font-size: 22px;
    margin: 10px 0 0;
    line-height: 1.25;
}
.checkout-progress-bar {
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    position: relative;
    margin-top: 14px;
}
.checkout-progress-fill {
    position: absolute;
    inset: 0;
    background: var(--brand);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.checkout-banner {
    /* Hidden entirely when there's no message — using display:none so
       it can't reserve any vertical space (max-height:0 still left a
       sliver in some browsers). The banner only appears when JS adds
       .is-visible. */
    display: none;
    margin: 12px 28px 0;
    background: rgba(220, 38, 38, 0.08);
    color: #b1170c;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}
.checkout-banner.is-visible { display: block; }

.checkout-body {
    padding: 8px 28px 24px;
    overflow-y: auto;
    flex: 0 1 auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth size transition between stages — JS sets `height` after
       each stage swap, this transition does the visual easing. */
    transition: height .35s cubic-bezier(.2, .7, .2, 1);
}
.checkout-lead {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 12px;
}

.checkout-foot {
    padding: 16px 28px 22px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
}
.checkout-foot .btn { min-width: 130px; padding: 12px 22px; }
.checkout-foot .btn-ghost { padding: 12px 16px; min-width: 0; }

@media (max-width: 540px) {
    .checkout-head { padding: 64px 20px 12px; }
    .checkout-progress-text { right: 20px; }
    .checkout-body { padding: 12px 20px 18px; }
    .checkout-foot { padding: 14px 20px 18px; }
    .checkout-foot .btn[data-action="next"],
    .checkout-foot .btn[data-action="submit"] { flex: 1; min-width: 0; }
}

/* ---------- stage transitions ----------------------------------------- */
.checkout-stage { display: none; }
.checkout-stage.is-active {
    display: block;
    animation: stageIn .3s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes stageIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .checkout-stage.is-active { animation: none; }
    .checkout-modal,
    .checkout-modal .checkout-dialog,
    .checkout-modal .checkout-backdrop,
    .checkout-progress-fill { transition: none; }
}

.shake { animation: shake .35s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* ---------- plan cards (stage 1) -------------------------------------- */
/* Currency picker — pill toggle above the plan cards. Active tab is
   filled brand colour, inactive tabs are transparent inside a soft
   pill. Click switches the wizard's currency state which re-renders
   prices on stage 1, the summary on stage 5, and the Pay button on 6. */
.currency-tabs {
    display: inline-flex;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 16px;
}
/* Public-page variant — centered above the pricing-grid section. */
.currency-tabs-public {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 28px;
}
.currency-tab {
    padding: 7px 16px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.currency-tab:hover { color: var(--ink); }
.currency-tab.is-active {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(47, 111, 237, 0.25);
}

.plan-cards { display: grid; gap: 10px; }
.plan-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    width: 100%;
    align-items: center;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.plan-card:hover { border-color: rgba(47, 111, 237, 0.45); }
.plan-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}
.plan-card-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line);
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s ease;
}
.plan-card.is-selected .plan-card-radio { border-color: var(--brand); }
.plan-card.is-selected .plan-card-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand);
}
.plan-card-info { flex: 1; min-width: 0; }
.plan-card-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 2px;
}
.plan-card-tag {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.3;
}
.plan-card-price {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    font-size: 17px;
    flex-shrink: 0;
}
.plan-card-price .plan-period {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}
.plan-badge {
    display: inline-block;
    background: rgba(14, 165, 183, 0.12);
    color: #0a8895;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* ---------- form fields (stage 2) ------------------------------------- */
.checkout-form { display: grid; gap: 11px; }
.checkout-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.checkout-row-3 { grid-template-columns: 1.1fr 1fr 1.4fr; }
/* Drop to one column at 620px so on-edge dialog widths get
   comfortable inputs even on tablets. */
@media (max-width: 620px) {
    .checkout-row,
    .checkout-row-3 { grid-template-columns: 1fr; }
}
.checkout-form { min-width: 0; }
.checkout-field { min-width: 0; }
.checkout-field input,
.checkout-field select { max-width: 100%; }
.checkout-field { display: grid; gap: 4px; }
.checkout-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}
.checkout-field .field-help {
    font-weight: 500;
    color: var(--muted);
}
.checkout-field input,
.checkout-field select {
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 14.5px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}
.checkout-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.checkout-field input:focus,
.checkout-field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.checkout-field.has-error input,
.checkout-field.has-error select { border-color: #dc2626; }

/* ---------- terms (stage 3) ------------------------------------------- */
.terms-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-alt);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}
.terms-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.terms-scroll h4 { margin: 14px 0 4px; font-size: 14px; color: var(--ink); }
.terms-scroll h4:first-child { margin-top: 0; }
.terms-scroll p { margin: 0 0 10px; color: var(--ink-2); }
.terms-scroll .terms-foot { font-size: 12px; color: var(--muted); margin-top: 14px; }

.terms-agree {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 14px;
    background: var(--brand-softer);
    border: 1px solid rgba(47, 111, 237, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
}
.terms-agree input { margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); width: 18px; height: 18px; }

/* ---------- option cards (stage 4 — payment method) ------------------- */
.option-cards { display: grid; gap: 10px; }
.option-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.option-card:hover { border-color: rgba(47, 111, 237, 0.45); }
.option-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}
.option-card .opt-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.option-card .opt-icon svg { width: 20px; height: 20px; }
.option-card .opt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.option-card .opt-info strong { font-size: 15px; color: var(--ink); font-weight: 700; }
.option-card .opt-sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
.option-card .opt-tick {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s ease;
}
.option-card .opt-tick svg { width: 14px; height: 14px; }
.option-card.is-selected .opt-tick { opacity: 1; transform: none; }

/* ---------- hosting addon (stage 4 — perpetual variant) --------------- */
.addon-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    align-items: flex-start;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.addon-card:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.12);
}
.addon-card input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--brand);
    width: 20px;
    height: 20px;
}
.addon-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.addon-card-info strong { font-size: 15px; color: var(--ink); font-weight: 700; }
.addon-card-amount {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
    flex-shrink: 0;
}
.addon-card-amount .plan-period { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.addon-skip { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- summary (stage 5) ----------------------------------------- */
.summary-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 4px 18px 14px;
    background: #fff;
}
.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.summary-list li:last-child { border-bottom: 0; }
.summary-label { font-weight: 600; color: var(--ink); font-size: 15px; }
.summary-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.summary-amount { font-weight: 700; color: var(--ink); font-size: 15px; white-space: nowrap; }
.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
    font-weight: 700;
    color: var(--ink);
    font-size: 17px;
}
.summary-meta {
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 22px;
}
.summary-meta div { min-width: 0; }
.summary-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.summary-meta dd {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    word-break: break-word;
}
@media (max-width: 540px) {
    .summary-meta { grid-template-columns: 1fr; }
}

/* ---------- Payment Element (stage 6) -------------------------------- */

.payment-element-shell {
    position: relative;
    min-height: 240px;
    margin-top: 8px;
}
.payment-element {
    /* Stripe injects an iframe here. min-height keeps the modal stable
       between "loading" and "loaded" so the dialog doesn't snap. */
    min-height: 240px;
}

/* Centred spinner overlay shown while we mint the PaymentIntent and
   Stripe.js mounts its Element. Removed once Stripe fires `ready`. */
.payment-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
    z-index: 2;
}
.payment-loader.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity .15s ease, visibility 0s;
}
.payment-loader-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(47, 111, 237, 0.15);
    border-top-color: var(--brand);
    animation: payment-spin .8s linear infinite;
}
.payment-loader-msg {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    letter-spacing: 0.01em;
}
@keyframes payment-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .payment-loader-spinner { animation-duration: 2.4s; }
}
.payment-element-error {
    margin-top: 12px;
    color: #b1170c;
    font-size: 13px;
    line-height: 1.45;
    min-height: 0;
}
.payment-element-error:empty { display: none; }
.payment-element-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.payment-element-trust svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- In-modal confirmation (stage 7) -------------------------- */

.checkout-confirm {
    text-align: center;
    padding: 8px 4px 4px;
}
.checkout-confirm-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(14, 165, 183, 0.14);
    color: #0a8895;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.checkout-confirm-icon svg { width: 26px; height: 26px; }
.checkout-confirm-title { font-size: 22px; margin: 0 0 12px; }
.checkout-confirm-line {
    color: var(--ink-2);
    margin: 0 0 12px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}
.checkout-confirm-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 22px;
}
.checkout-confirm .btn { padding: 12px 28px; }

/* ==========================================================================
   Cookie consent banner — bottom-right card on desktop, full-width
   bottom sheet on mobile (iOS-style slide up). Driven by public.js.
   ========================================================================== */
.cookie-banner {
    position: fixed;
    z-index: 200;
    bottom: 24px;
    right: 24px;
    width: min(360px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 60px -16px rgba(15, 30, 80, 0.28), 0 4px 12px rgba(15, 30, 80, 0.08);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-body {
    padding: 20px 22px 18px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
}
.cookie-banner-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-weight: 700;
}
.cookie-banner-body p {
    margin: 0 0 14px;
    color: var(--ink-2);
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
}
.cookie-banner-actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 999px;
}

@media (max-width: 540px) {
    .cookie-banner {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        transform: translateY(100%);
        box-shadow: 0 -12px 40px -8px rgba(15, 30, 80, 0.28);
    }
    .cookie-banner.is-visible {
        transform: translateY(0);
    }
    .cookie-banner-body {
        padding: 22px 22px calc(20px + env(safe-area-inset-bottom));
    }
    /* Sheet drag handle, like an iOS bottom sheet. */
    .cookie-banner::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 999px;
        background: var(--line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { transition: opacity .15s ease; }
}

/* ==========================================================================
   Legal pages — Terms, Privacy. Plain prose, generous reading width.
   ========================================================================== */
.legal-page { padding: 104px 0 96px; }
.legal-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.legal-head h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 8px;
}
.legal-head p { margin: 0; }
.legal-body h2,
.legal-body h3 { text-align: center; }

.legal-body {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
}
.legal-body h2 {
    margin: 32px 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.legal-body h3 {
    margin: 26px 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul,
.legal-body ol { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin: 0 0 6px; }
.legal-body a { color: var(--brand); text-decoration: underline; }
.legal-body a:hover { color: var(--brand-dark); }
.legal-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    background: var(--bg-alt);
    color: var(--ink);
    padding: 2px 6px;
    border-radius: 4px;
}
.footer-bottom {
    margin: 0;
    padding: 24px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.footer-bottom a { color: inherit; text-decoration: underline; }

