/* ════════════════════════════════════════════════════════════════════════
   The apex marketing site: the landing page, the long documents (/money,
   /guides, the legal pages), the 404, and the header and footer they all
   share. Loaded after base.css by layouts/marketing.php and by nothing else.

   ── The idea ─────────────────────────────────────────────────────────────

   A lintel is the beam over a doorway, and the logo is that beam with the
   courses stepping down under it. The page uses that one shape and nothing
   else as ornament:

     THE HERO is a full-bleed field of emerald, the same ground as the
     closing call so the page opens and ends on it, with the mark's
     courses laid very large and faint across its right side. They slide
     into place one course at a time on load, then drift. That movement is
     the hero's "video", and it is the same idea as Pilaster's hero
     (/var/www/chambers), which is what this page was redesigned toward.

     A SECTION opens with one lintel: a single rounded bar of the mark, long
     enough to work as a partial-width rule (.lintel). Not a numbered label,
     not an eyebrow, not a heavy black rule. All three were tried and turned
     down, and an eyebrow over a heading is the first thing that creeps back.

     THE TICKET survives from the previous design in exactly one place: the
     price list, because a price is what an admission ticket actually prints.
     Its notches are PAINTED, not cut (a circle in the colour of the ground,
     sitting over the paper), so a ticket must sit on a flat ground. Put a
     gradient or an image behind one and the notches show as dots of the
     wrong colour.

   ── What went ────────────────────────────────────────────────────────────

   "Box office" (2026-08 to 2026-10): a dark green room, cream tickets on it,
   amber as the only button, marquee bulbs on a rail over the header, mono
   eyebrows over every heading, and a chip cloud of event types. It read as
   too dark and too green-and-gold. The amber re-pointing of --brand-fill is
   gone from base.css with it, so .btn-primary is the ordinary emerald button
   here as everywhere else. A scrolling strip of event types was tried in its
   place and dropped too: the h1 already says "any event".

   Layout primitives and the type scale live here; colours are tokens from
   base.css's body.marketing-layout block, which carries the contrast table.
   ════════════════════════════════════════════════════════════════════════ */


/* ── Shell ───────────────────────────────────────────────────────────── */

body.marketing-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: var(--ink);
}

/* main is itself a column, so a short page still pushes the footer down. */
body.marketing-layout main { flex: 1; display: flex; flex-direction: column; }

.marketing-layout .wrap {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--space-5);
    padding-right: var(--space-5);
}

.marketing-section { padding: clamp(3.5rem, 9vw, 6rem) 0; }

/* The header is sticky, so an in-page jump must land below it. */
.marketing-layout [id] { scroll-margin-top: 84px; }

/* An anchor glides to its section rather than cutting to it, which also lets
   the scroll reveals play on the way down. Scoped to this site's pages with
   :has() because the rule has to sit on <html>, and base.css already turns it
   back to an instant jump for anyone who asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html:has(body.marketing-layout) { scroll-behavior: smooth; }
}

.marketing-layout a:focus-visible,
.marketing-layout summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }


/* ── Header ──────────────────────────────────────────────────────────── */

/* Sticky, and the hero's own top colour at 86% over a blur, so at the top of
   the landing page it reads as part of the hero and lower down it is a quiet
   bar the page passes under. On the white documents the same tint is barely
   there, which is fine: it is one header on every page. */
.marketing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 249, 245, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
            backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(16, 32, 27, 0.08);
    transition: box-shadow .3s ease;
}
/* Set by marketing.js once the page has scrolled. */
.marketing-header.is-stuck { box-shadow: 0 8px 24px -14px rgba(16, 32, 27, 0.28); }

/* On the landing page, at the very top, the header is part of the emerald hero
   under it, so the page opens on one green field rather than a pale bar over
   a green one. Once the page scrolls (.is-stuck) or the menu opens, it is the
   ordinary light bar again. Without JS it stays green, which is still right
   at the top, and the shadow it would have taken is the only thing missing. */
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) {
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border-bottom-color: transparent;
}
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .marketing-brand,
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .marketing-menu-btn { color: #fff; }
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .marketing-nav a:not(.btn) { color: #d1fae5; }
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .marketing-nav a:not(.btn):hover { color: #fff; }
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .btn-primary {
    background: #fff; border-color: #fff; color: var(--accent-hover);
}
.marketing-header.on-hero:not(.is-stuck):not(:has(.marketing-menu:not([hidden]))) .marketing-brand-mark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.marketing-header { transition: box-shadow .3s ease, background-color .25s ease; }

.marketing-header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 14px var(--space-5);
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.marketing-brand:hover { color: var(--ink); }
.marketing-brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.marketing-brand .wordmark { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }

.marketing-nav { display: flex; align-items: center; gap: var(--space-5); flex: 1; }
.marketing-nav-page { display: flex; align-items: center; gap: 28px; margin-left: var(--space-3); }
.marketing-nav-account { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.marketing-nav a:not(.btn) { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.marketing-nav a:not(.btn):hover { color: var(--accent); }
.marketing-nav .btn { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.95rem; font-weight: 600; border-radius: 10px; }


/* The menu: below 900px, where the page links hide. A button of two lines
   that cross into an X, and a panel of the same links under the header.
   marketing.js unhides the button; without the script the footer carries
   every link and there is no button promising a menu that cannot open. */
.marketing-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
/* base.css's `button:hover` turns every button dark grey, and on a touch screen
   hover sticks after a tap, so the open menu's X sat in a grey box. */
.marketing-menu-btn:hover { background: transparent; color: var(--ink); }
@media (hover: hover) { .marketing-menu-btn:hover { background: rgba(16, 32, 27, 0.06); } }
.marketing-menu-btn svg { display: block; width: 24px; height: 24px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.marketing-menu-btn path { transform-origin: 12px 12px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.marketing-menu-btn[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.marketing-menu-btn[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }

.marketing-menu {
    background: #fff;
    border-top: 1px solid var(--hairline);
    box-shadow: 0 18px 30px -18px rgba(16, 32, 27, 0.35);
    padding: var(--space-2) 0 var(--space-5);
}
.marketing-menu a {
    display: block;
    width: min(1240px, 100% - 3rem);
    margin-inline: auto;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--hairline);
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}
.marketing-menu a:hover { color: var(--accent); }
.marketing-menu .marketing-menu-signin { border-bottom: 0; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.marketing-menu[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .marketing-menu:not([hidden]) { animation: marketing-menu-in .22s cubic-bezier(.16, 1, .3, 1); }
}
@keyframes marketing-menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px) {
    .marketing-menu-btn:not([hidden]) { display: block; }
}
@media (min-width: 901px) {
    .marketing-menu { display: none !important; }
}


/* ── Typography, shared by every page here ───────────────────────────── */

.marketing-layout h1,
.marketing-layout h2,
.marketing-layout h3,
.marketing-layout .wordmark {
    font-family: 'Archivo', system-ui, sans-serif;
}

.marketing-section h1 {
    margin: 0 0 var(--space-4);
    font-size: clamp(2.5rem, 7vw, 4.6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.marketing-section .lede {
    max-width: 48ch;
    margin: 0 0 var(--space-5);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.6;
    color: var(--ink-muted);
}

/* One bar of the mark, over a heading. .lintel is the landing page's long one,
   a partial-width rule; .beam is the short one the documents put over their h1
   (two dozen views carry the class, so it keeps its name). */
.lintel,
.beam {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: var(--brand);
}
.lintel { width: min(100%, 360px); margin-bottom: var(--space-6); }
.beam   { width: 96px; }

.marketing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.marketing-cta .btn { padding: 0.6rem 1.4rem; font-size: 0.95rem; }
/* Scoped as well as bare: `.btn-lg` alone is (0,1,0) and loses to the rule
   above it, which once left every large button on this site small. */
.marketing-cta .btn-lg,
.btn-lg {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
}

/* A text link with an arrow, beside a button. */
.marketing-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}
.marketing-more:hover { color: var(--accent); }
.marketing-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.marketing-more:hover svg { transform: translateX(3px); }


/* ════════════════════════════════════════════════════════════════════════
   The landing page
   ════════════════════════════════════════════════════════════════════════ */

.home { flex: 1; overflow-x: clip; }
/* clip, not hidden: the scroll-in tilt on the embed picture swings it past a
   phone's edge mid-animation, which scrolled the whole page sideways. clip cuts
   that off without making .home a scroll container. */

/* ── Hero ────────────────────────────────────────────────────────────── */

.home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    --hero-pad: clamp(4rem, 9vw, 8rem);
    padding: var(--hero-pad) 0 0;
    /* The hero runs up under the sticky header, so at the top of the page the
       transparent header sits on the hero's own gradient instead of a band of
       flat green with a seam under it. --header-h is the header's height. */
    --header-h: 72px;
    margin-top: calc(-1 * var(--header-h));
    padding-top: calc(var(--hero-pad) + var(--header-h));
    /* The closing call's ground, turned so the deep end is under the copy. White body text on
       --brand is 3.8:1 and fails; on --accent it is 5.5:1, so the lighter emerald is kept to the
       far right, behind the courses, where nothing small is set on it. */
    background:
        radial-gradient(55% 90% at 92% 0%, rgba(14, 165, 233, 0.28), transparent 62%),
        linear-gradient(250deg, var(--brand) 0%, var(--accent) 55%, var(--accent) 100%);
    color: #fff;
}

/* The mark's courses, very large and faint, fading out toward the copy.

   The field lives inside .home-hero-text (the headline, lede and buttons)
   so it can be placed against THAT block rather than the whole hero, whose
   foot is the facts row. It is centred on the text when the hero has room
   above the headline for that, and otherwise sits flush with the top of the
   hero, never above it. That is the max() in `top`: half the field's height
   is worked out from its width and the viewBox (520 / 820 / 2 = 0.317), and
   the floor is the hero's own top padding. Horizontally it still bleeds off
   the right of the window, which from inside .wrap is the wrap's outer
   margin plus its padding.

   The drift's end point is two custom properties because the keyframe has
   to end wherever the field is placed, and a phone places it differently
   (below). */
.home-hero-text { position: relative; }
.home-field {
    --field-w: min(70vw, 1040px);
    --wrap-edge: calc(max(0px, (100vw - 1240px) / 2) + var(--space-5));
    --field-y-to: -2%;
    --field-x-to: -3%;
    position: absolute;
    z-index: -1;
    top: max(-1 * var(--hero-pad), 50% - var(--field-w) * 0.317);
    right: calc(-1 * var(--wrap-edge) - 6vw);
    width: var(--field-w);
    opacity: 0.3;
    -webkit-mask: linear-gradient(100deg, transparent 4%, #000 52%);
            mask: linear-gradient(100deg, transparent 4%, #000 52%);
    animation: home-drift 26s ease-in-out infinite alternate;
}
@media (max-width: 900px) {
    /* Behind the headline and bleeding off the right, large enough that the
       courses still read as the mark's, fading downward so the lede and the
       facts under it sit on a clean ground. Centred on a phone it was a
       postage stamp, since 70vw of a phone is not much. */
    .home-field {
        --field-w: clamp(560px, 150vw, 1100px);
        --field-x-to: -4%;
        top: -48px;
        right: calc(-1 * var(--wrap-edge) - 38vw);
        opacity: 0.2;
        -webkit-mask: linear-gradient(195deg, #000 30%, transparent 78%);
                mask: linear-gradient(195deg, #000 30%, transparent 78%);
    }
}
.home-field rect { transform-box: fill-box; animation: home-lay 1.1s cubic-bezier(.16, 1, .3, 1) both; }
/* On the emerald ground the courses are the mark's light tones, the way the
   closing call draws it, rather than its greens, which vanish into it. */
.home-field .c1 { fill: #fff; }
.home-field .c2 { fill: #a7f3d0; }
.home-field .c3 { fill: #6ee7b7; }
/* Now and then one course lights up, the way a sign-up lands. */
.home-field .glint {
    animation:
        home-lay 1.1s cubic-bezier(.16, 1, .3, 1) both,
        home-glint 7s ease-in-out infinite;
}
@keyframes home-lay   { from { opacity: 0; transform: translateX(90px); } }
@keyframes home-drift { to { transform: translate(var(--field-x-to), var(--field-y-to)); } }
@keyframes home-glint { 0%, 70%, 100% { fill: #a7f3d0; } 80% { fill: #bae6fd; } }

.home-hero h1 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.8rem, 0.8rem + 5.6vw, 6.6rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
    color: #fff;
}
/* An event-type page's headline is a sentence rather than four words, so it
   sets smaller and wider than the landing page's. */
.home-hero--type h1 { max-width: 19ch; font-size: clamp(2.4rem, 0.9rem + 4.2vw, 5.2rem); line-height: 0.98; }
.home-hero .lede {
    max-width: 56ch;
    margin: 30px 0 0;
    font-size: clamp(1.08rem, 1rem + 0.4vw, 1.32rem);
    line-height: 1.6;
    color: #e7f8f0;
}
.home-hero .marketing-cta { margin-top: 36px; }
/* The closing call's button and link, for the same ground. */
.home-hero .btn-primary { background: #fff; border-color: #fff; color: var(--accent-hover); }
.home-hero .btn-primary:hover { background: #ecfdf5; border-color: #ecfdf5; color: var(--accent-hover); }
.home-hero .marketing-more { color: #fff; }
.home-hero .marketing-more:hover { color: #d1fae5; }
.home-hero a:focus-visible { outline-color: #fff; }

/* Four facts along the foot of the hero, hairlines between. */
.home-facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(3.5rem, 7vw, 6.5rem) 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.home-facts li { padding: 22px 22px 26px; font-size: 0.95rem; line-height: 1.5; color: #d1fae5; }
.home-facts li:first-child { padding-left: 0; }
.home-facts li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.home-facts b {
    display: block;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

/* The hero's load-in: each child rises a little after the last. */
.home-hero-text > :not(.home-field),
.home-facts { animation: home-rise .9s cubic-bezier(.16, 1, .3, 1) both; }
.home-hero-text > :nth-child(3) { animation-delay: .1s; }
.home-hero-text > :nth-child(4) { animation-delay: .2s; }
.home-facts { animation-delay: .32s; }
@keyframes home-rise { from { opacity: 0; transform: translateY(16px); } }


/* ── Sections ────────────────────────────────────────────────────────── */

.home-section { padding: clamp(4.5rem, 9vw, 8rem) 0 0; }
.home-section--last { padding-bottom: clamp(4.5rem, 9vw, 8rem); }

.home-section h2,
.home-price h2,
.home-close h2 {
    margin: 0;
    font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.home-intro {
    max-width: 60ch;
    margin: 22px 0 0;
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--ink-soft);
}


/* ── Setting up: three steps beside a worked example ─────────────────── */

.home-setup {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 56px;
    margin-top: 48px;
}

.home-steps { flex: 1 1 340px; min-width: 0; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline); }
.home-steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--hairline); }
.home-steps .ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-band); color: var(--accent); }
.home-steps .ic svg { width: 22px; height: 22px; }
.home-steps h3 { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
.home-steps p { margin: 8px 0 0; line-height: 1.6; color: var(--ink-soft); }

/* The example: the app's New event dialog part way through its interview, drawn from
   views/partials/event-describe-modal.php and app.css (.describe-box, .rp-chip, .ed-said),
   with what setup really asked for this description. */
.home-example {
    flex: 1 1 400px;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px -32px rgba(16, 32, 27, 0.28);
}
.home-modal { padding: clamp(22px, 3vw, 34px); }
.home-modal-title { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.home-modal-lede { margin: 8px 0 0; line-height: 1.55; color: var(--ink-soft); }
.home-modal-said { margin: 22px 0 0; line-height: 1.6; color: var(--ink-soft); }
.home-modal-said span { margin-right: 12px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8a958f; }
.home-modal-q { margin: 22px 0 10px; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.home-modal-box { border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15); }
.home-modal-field { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px 18px 26px; color: #8a958f; }
.home-modal-field svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.home-modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 16px; }
.home-modal-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 0.875rem; color: var(--ink); }
.home-modal-btn { margin-left: auto; padding: 8px 18px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.home-modal-enough { margin: 18px 0 0; text-align: center; font-size: 0.9rem; text-decoration: underline; color: var(--ink-soft); }


/* ── Inside Lintel: the collage ──────────────────────────────────────── */

.home-collage { margin: 48px 0 0; }
.home-collage a { display: block; cursor: zoom-in; }
.home-collage img { display: block; width: 100%; height: auto; aspect-ratio: 3000 / 1830; }
.home-collage figcaption { margin-top: var(--space-4); font-size: 0.95rem; color: var(--ink-soft); }
/* On a phone the collage is too small to read; the hint says the image opens full size. */
.home-collage-hint { display: none; }


/* An event-type page's "describe it" copy, beside the same example card. */
.home-setup-copy { flex: 1 1 340px; min-width: 0; }
.home-setup-copy .home-intro:first-child { margin-top: 0; }

/* The other event-type pages, at the foot of each. */
.home-others {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.home-others .marketing-more { font-size: 1.125rem; }


/* ── On its own page, or on yours ────────────────────────────────────── */

.home-embed { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.home-embed-copy { flex: 1 1 360px; min-width: 0; }
.home-embed-ways { display: block; margin: 32px 0 24px; border-bottom: 1px solid var(--hairline); }
.home-embed-ways > div { display: block; padding: 16px 0; border-top: 1px solid var(--hairline); }
.home-embed-ways dt { font-family: 'Archivo', system-ui, sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.home-embed-ways dd { margin: 4px 0 0; line-height: 1.55; color: var(--ink-soft); }
.home-embed-shot { flex: 1.4 1 480px; min-width: 0; margin: 0; }
/* A collage with its own window frames and shadows (scripts/dev/capture-site-screens.py). */
.home-embed-shot img { display: block; width: 100%; height: auto; }


/* ── What it handles: a ruled index ──────────────────────────────────── */

.home-index { margin-top: 40px; border-bottom: 1px solid var(--hairline); }
.home-index > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 32px;
    padding: 26px 0;
    border-top: 1px solid var(--hairline);
}
.home-index h3 { flex: 1 1 240px; margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
.home-index p { flex: 3 1 360px; min-width: 0; margin: 0; line-height: 1.6; color: var(--ink-soft); }
.home-index .eg { flex: 1 1 200px; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; color: var(--accent); }


/* ── Price: the one ticket ───────────────────────────────────────────── */

/* A flat band, because the ticket's notches are painted in its colour. */
.home-price {
    margin-top: clamp(5rem, 10vw, 9rem);
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    background: var(--mint-band);
}
.home-price h2 { max-width: 18ch; }

.ticket {
    position: relative;
    margin-top: 52px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 1px 0 #d6e3dd;
}
.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 999px;
    background: var(--mint-band);
}
.ticket::before { left: -18px; }
.ticket::after  { right: -18px; }

.ticket-main { flex: 999 1 520px; min-width: 0; padding: clamp(28px, 4vw, 52px); }
.ticket-side {
    display: flex;
    flex: 1 1 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 4vw, 52px);
    border-left: 2px dashed var(--perf);
}
.ticket-print {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b5a3c;
}
.ticket-fee {
    margin: 22px 0 0;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: clamp(3.4rem, 2rem + 5vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
}
.ticket-fee-note { margin: 12px 0 0; font-size: 1.125rem; color: var(--ink-soft); }
.ticket-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 30px 0 0;
    border-top: 1px dashed var(--perf);
}
.ticket-rules > div { padding: 18px 18px 0 0; }
.ticket-rules dt { font-family: 'Archivo', system-ui, sans-serif; font-size: 1.625rem; font-weight: 700; }
.ticket-rules dd { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.ticket-free { margin: 10px 0 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ticket-side p:not(.ticket-print):not(.ticket-free) { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.ticket-side .marketing-more { align-self: flex-start; color: var(--accent); font-weight: 600; font-size: 1rem; }

/* The tear-off stub: the fee calculator torn along a second perforation. Shown by
   public/js/fee-calculator.js, and only then do the notches leave the ticket's middle for the
   tear, so without the script the ticket is unchanged. */
.ticket-body { display: flex; flex-wrap: wrap; }
.ticket:has(> .ticket-stub:not([hidden]))::before,
.ticket:has(> .ticket-stub:not([hidden]))::after { display: none; }
.ticket-stub {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px 40px;
    padding: 32px clamp(28px, 4vw, 52px) 40px;
    border-top: 2px dashed var(--perf);
}
.ticket-stub[hidden] { display: none; }
.ticket-stub::before,
.ticket-stub::after {
    content: "";
    position: absolute;
    top: -19px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--mint-band);
}
.ticket-stub::before { left: -18px; }
.ticket-stub::after  { right: -18px; }
.ticket-stub .ticket-print { flex: 1 1 100%; }
.ticket-stub-field { display: flex; flex: 0 1 180px; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.ticket-stub-box {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 48px;
    border-bottom: 2px solid var(--ink);
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
}
/* As many :not()s as base.css's input rule, which otherwise outranks this and boxes the field. */
.ticket-stub-box input:not([type=submit]):not([type=checkbox]):not([type=radio]) {
    width: 100%;
    min-width: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}
.ticket-stub-box:focus-within { border-bottom-color: var(--accent); }
.ticket-stub-box input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ticket-stub-out { display: flex; flex: 1 1 420px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 16px 36px; margin: 0; }
.ticket-stub-out dt { font-size: 0.8125rem; color: var(--ink-soft); }
.ticket-stub-out dd { margin: 2px 0 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticket-stub-net dd { font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }


/* ── Questions ───────────────────────────────────────────────────────── */

.marketing-faq { margin-top: 32px; border-bottom: 1px solid var(--hairline); }
.marketing-faq details { padding: 4px 0; border-top: 1px solid var(--hairline); }
.marketing-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 44px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 1.3125rem;
    font-weight: 700;
}
.marketing-faq summary::-webkit-details-marker { display: none; }
.marketing-faq summary::after {
    content: "+";
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent);
    transition: transform .2s;
}
.marketing-faq details[open] summary::after { transform: rotate(45deg); }
.marketing-faq p { margin: 0 0 22px; line-height: 1.65; color: var(--ink-soft); }


/* ── The closing call ────────────────────────────────────────────────── */

.home-close {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
    background:
        radial-gradient(60% 120% at 85% 0%, rgba(14, 165, 233, 0.25), transparent 60%),
        linear-gradient(160deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
}
.home-close-mark { position: absolute; z-index: -1; right: -4%; bottom: -30%; width: min(48vw, 560px); opacity: 0.18; }
.home-close h2 { max-width: 14ch; color: #fff; }
.home-close p { max-width: 52ch; margin: 22px 0 0; font-size: 1.1875rem; line-height: 1.6; color: #e7f8f0; }
.home-close .marketing-cta { margin-top: 32px; }
.home-close .btn-primary { background: #fff; border-color: #fff; color: var(--accent-hover); }
.home-close .btn-primary:hover { background: #ecfdf5; border-color: #ecfdf5; color: var(--accent-hover); }
.home-close-note { font-size: 0.95rem; color: #d1fae5; }
.home-close a:focus-visible { outline-color: #fff; }


/* ── Footer ──────────────────────────────────────────────────────────── */

/* Dark, to close the page the way the hero opens it: a solid ground at both
   ends with light sections between. Near-black with a trace of the emerald in
   it rather than a dark green, which is the "Box office" room this site moved
   away from (see the header of this file); the green stays in the mark and the
   hover, as an accent and never as the ground.

   Contrast on #0f1513: headings #fff 18:1, links #c3cec9 12:1, the line under
   the brand and the copyright #93a29c 7:1. */
.marketing-footer {
    --foot-ground: #0f1513;
    --foot-ink:    #fff;
    --foot-link:   #c3cec9;
    --foot-soft:   #93a29c;
    --foot-line:   rgba(255, 255, 255, 0.10);
    padding: clamp(3rem, 6vw, 4.5rem) 0 var(--space-6);
    background: var(--foot-ground);
    color: var(--foot-link);
}
.marketing-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: var(--space-6);
}
.marketing-footer .marketing-brand,
.marketing-footer .marketing-brand:hover { color: var(--foot-ink); }
.marketing-footer-brand p {
    max-width: 34ch;
    margin: var(--space-3) 0 0;
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--foot-soft);
}
/* display:contents, so the columns are grid items of .marketing-footer-grid
   itself -- the grid has to be on the element its columns are counted against. */
.marketing-footer-links { display: contents; }
.marketing-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.marketing-footer-col h3 { margin: 0 0 var(--space-1); font-size: 0.95rem; font-weight: 700; color: var(--foot-ink); }
.marketing-footer-col a { font-size: 0.9rem; color: var(--foot-link); text-decoration: none; }
.marketing-footer-col a:hover { color: #6ee7b7; }
.marketing-footer a:focus-visible { outline-color: #fff; }
.marketing-footer-legal {
    grid-column: 1 / -1;
    margin-top: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--foot-line);
    font-size: var(--text-sm);
    color: var(--foot-soft);
}


/* ════════════════════════════════════════════════════════════════════════
   The long documents: /money, /guides, /guides/*, /privacy, /terms,
   /accessibility. Ink on white under the same chrome. These are read, not
   scanned, so they carry none of the landing page's vocabulary beyond the
   lintel over each heading.
   ════════════════════════════════════════════════════════════════════════ */

.marketing-doc { max-width: 46rem; margin: 0 auto; }
.marketing-doc h1 {
    margin: 0 0 var(--space-4);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.marketing-doc > .beam { margin-bottom: var(--space-5); }
.marketing-doc h2 {
    position: relative;
    margin: var(--space-6) 0 var(--space-3);
    padding-top: calc(var(--space-5) + 4px);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}
.marketing-doc h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-pale);
}
.marketing-doc p,
.marketing-doc li { line-height: 1.65; color: var(--ink); }
.marketing-doc p { margin: 0 0 var(--space-4); }
.marketing-doc ul { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
.marketing-doc li { margin-bottom: var(--space-2); }
.marketing-doc a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.marketing-doc code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: var(--mint-band);
}
.marketing-doc .guide-list,
.doc-related .guide-list { margin: 0 0 var(--space-4); list-style: none; padding-left: 0; }
.marketing-doc .guide-list li,
.doc-related .guide-list li { margin-bottom: var(--space-4); line-height: 1.55; }
.marketing-doc .guide-list a,
.doc-related .guide-list a { font-size: 1.05rem; font-weight: 600; }
.marketing-doc .guide-blurb,
.doc-related .guide-blurb { display: block; margin-top: var(--space-1); color: var(--ink-subtle); }

/* A guide's trail above it and its related guides below, both outside the
   document itself (see MarketingController::guidePage) but in its column. */
.doc-crumbs { padding-top: var(--space-6); }
.doc-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    max-width: 46rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: var(--ink-subtle);
}
.doc-crumbs li + li::before { content: "/"; margin-right: var(--space-2); }
.doc-crumbs a { color: var(--accent); }
.doc-crumbs + .marketing-section { padding-top: var(--space-5); }
.marketing-section:has(+ .doc-related) { padding-bottom: var(--space-6); }
.doc-related { padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.doc-related-inner {
    max-width: 46rem;
    margin: 0 auto;
    padding-top: var(--space-5);
    border-top: 1px solid var(--hairline);
}
.doc-related h2 { margin: 0 0 var(--space-4); font-size: 1.3rem; font-weight: 700; }
.doc-related a { color: var(--accent); }
.marketing-doc .doc-snippet {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #f6faf8;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-all;
    user-select: all;
}
.marketing-doc .doc-lede {
    padding: var(--space-4) var(--space-5);
    border-radius: 16px;
    background: var(--mist);
    font-size: 1.05rem;
    color: var(--ink);
}
.marketing-doc .doc-meta { font-size: var(--text-sm); color: var(--ink-subtle); }
.marketing-doc strong { font-weight: 700; color: var(--ink); }
.marketing-doc .doc-cta {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--hairline);
}
.marketing-doc .doc-review {
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    border: 2px dashed var(--danger);
    border-radius: 8px;
    background: #fef2f2;
    color: #7f1d1d;
}
.marketing-doc .doc-review code { background: rgba(220, 38, 38, 0.1); }

.doc-table-scroll { overflow-x: auto; margin: 0 0 var(--space-4); border-radius: 14px; border: 1px solid var(--hairline); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.doc-table th,
.doc-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--hairline);
    text-align: left;
    vertical-align: top;
}
.doc-table thead th { background: #f6faf8; font-weight: 700; white-space: nowrap; color: var(--accent); }
.doc-table tbody tr:last-child td { border-bottom: none; }
.doc-table .doc-table-mark td { background: var(--brand-paper); font-weight: 600; }

/* The fee calculator on /money. Drawn hidden; fee-calculator.js shows it. */
.fee-calc { margin: 0 0 var(--space-5); padding: var(--space-5); border: 1px solid var(--hairline); border-radius: 14px; background: #f6faf8; }
.fee-calc[hidden] { display: none; }
.marketing-doc .fee-calc h3 { margin: 0 0 var(--space-4); font-size: 1.1rem; }
.fee-calc-inputs { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); }
.fee-calc-inputs label { display: flex; flex-direction: column; gap: var(--space-1); flex: 1 1 200px; font-size: 0.95rem; font-weight: 600; }
.fee-calc-money { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.fee-calc input {
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cfdcd6;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
}
.fee-calc input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.fee-calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin: var(--space-5) 0 var(--space-4); }
.fee-calc-out dt { font-size: var(--text-sm); color: var(--ink-subtle); }
.fee-calc-out dd { margin: 2px 0 0; font-family: 'Archivo', system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.fee-calc-net dd { color: var(--accent); }
.marketing-doc .fee-calc .doc-meta { margin: 0; }

/* The secondary link beside a solid button. */
.marketing-cta-secondary { align-self: center; font-size: var(--text-md); color: var(--accent); font-weight: 600; }


/* ── 404 ─────────────────────────────────────────────────────────────── */

/* views/marketing/404.php: the landing page's hero, reused (.home-hero,
   .home-field), with one course missing from the field. Only what
   differs is here.

   The slot is drawn as an outline where the course would be. It sits inside the
   field, so it inherits the field's fade and drift and stays exactly as faint
   as the courses around it: an absence you notice second, not a graphic. Its
   stroke is heavy because the field is drawn at 30%, and anything finer
   vanishes into the ground. */
.m404 { min-height: calc(100vh - 220px); display: flex; flex-direction: column; justify-content: center; padding-bottom: var(--hero-pad); }
.m404 h1 { max-width: 13ch; text-wrap: balance; }
.home-field .m404-gap {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-dasharray: 14 11;
    stroke-linecap: round;
    animation: m404-gap-in .9s ease-out 1.3s both;
}
/* Fades in after the courses have laid, so the field arrives whole and then
   one of them is plainly not there. */
@keyframes m404-gap-in { from { opacity: 0; } }

/* ── Narrower than a laptop ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .marketing-nav-page { display: none; }
    .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .home-facts li:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
    .marketing-footer-grid { grid-template-columns: repeat(4, 1fr); }
    .marketing-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .home-collage-hint { display: inline; color: var(--accent); }
    .marketing-header-inner { padding: 12px var(--space-4); }
    .marketing-nav-account { gap: var(--space-2); }
    /* Sign in moves into the menu, but only once there is a menu to move into. */
    .has-menu .marketing-signin { display: none; }
    .home-facts { grid-template-columns: 1fr; }
    .home-facts li,
    .home-facts li + li { padding-left: 0; border-left: 0; }
    .home-facts li + li { border-top: 1px solid var(--hairline); }
    /* The tear turns a quarter: the perforation runs across, not down. The
       side notches stay where they are; they are the ticket's edge, not the
       tear's. */
    .ticket-side { border-left: 0; border-top: 2px dashed var(--perf); }
    .ticket-stub-field { flex: 1 1 120px; }
    .ticket-stub-out { justify-content: flex-start; }
    .marketing-footer-grid { grid-template-columns: 1fr 1fr; }
    .marketing-cta .btn-lg { width: 100%; justify-content: center; }
}

/* ── Motion on scroll ───────────────────────────────────────────────────
   After Pilaster's, and kept as small: each section's lintel draws in from
   the left, and its content rises a few pixels a beat behind it, runs of
   siblings one after another (--d, set per element by marketing.js). The
   hidden starting state lives only under html.m-anim, which marketing.js
   sets and never with reduced motion, so nothing is hidden without it. */

.m-anim .m-rv {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity .7s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 120ms),
        transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 120ms);
}
.m-anim .m-rv.is-in { opacity: 1; transform: none; }

.m-anim .lintel.m-rv {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
}
.m-anim .lintel.m-rv.is-in { transform: none; }

/* ── Motion tied to the scroll ─────────────────────────────────────────
   Where the browser can drive an animation from the scroll position, three
   things move WITH the scroll rather than once when they arrive: the collage
   rises and grows into place, the embedded-site picture slides in and
   settles flat, and the ticket rises out of a slight tilt. Elsewhere,
   marketing.js gives these three the ordinary reveal instead (it asks
   CSS.supports the same question), so no browser gets neither.

   The hero's courses do NOT move with the scroll. A parallax was tried and
   turned down: they belong to the hero and stay where they are in it,
   drifting on their own clock and nothing else.

   `translate` and `rotate`/`scale` are their own properties, so none of
   this fights the transform the hero's drift and the reveals animate.

   They move but never fade. Tied to the scroll, a fade is not a moment on
   arrival: it leaves the picture washed out for as long as it sits low on
   the screen, which is where people read it. */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .home-collage img {
            animation: home-assemble linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 40%;
        }
        .home-embed-shot img {
            animation: home-settle linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 45%;
        }
        .ticket {
            animation: home-tilt linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 40%;
        }
    }
}
@keyframes home-assemble { from { translate: 0 80px; scale: 0.92; } }
@keyframes home-settle   { from { translate: 90px 30px; rotate: 2deg; } }
@keyframes home-tilt     { from { translate: 0 70px; rotate: -1.5deg; } }


@media (prefers-reduced-motion: reduce) {
    .home-field,
    .home-field rect,
    .home-field .glint,
    .home-field .m404-gap,
    .home-hero-text > :not(.home-field),
    .home-facts { animation: none; }
    .marketing-header,
    .marketing-more svg { transition: none; }
}
