/* Shared chrome for the inner pages.
   Every inner page carried its own inline styles and a header that was just
   the wordmark linking home - no navigation and no call to action, so each one
   was a dead end for anyone arriving from search. This file gives them one
   header, one spacing scale and one set of brand colours.

   Selectors are class-based on purpose. The pages define bare `header { }`
   rules inline; a class beats an element selector, so this wins without having
   to touch or reorder their existing CSS. */

:root {
    --vs-primary: #FF6B35;
    --vs-primary-hover: #E85A28;
    /* Fluid, so gaps shrink on small screens instead of keeping the desktop
       figure. Matches the homepage scale. */
    --section-y: clamp(48px, 6vw, 76px);
    --section-x: clamp(20px, 4vw, 32px);
    /* Matches the homepage type system. The pages load the webfonts
       themselves; these tokens only name them. */
    --font-display: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
    --vs-rule: rgba(255, 255, 255, 0.09);
    /* The site has one theme and it is dark. Declaring it lets the browser
       render the parts it draws itself - form fields, the FAQ search box and
       its caret, scrollbars, autofill - in their dark variants, rather than
       the light defaults it otherwise assumes. */
    color-scheme: dark;
}

/* Element selectors, deliberately: no inner page sets font-family on its
   headings, so these apply without competing with the inline rules that set
   their size and colour.

   h1 takes the uppercase display treatment because page titles are short.
   h2 keeps sentence case - the legal pages run to headings like "Limitation
   of Liability", which in 800-weight caps would be a wall. */
h1,
h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    text-transform: uppercase;
}

.site-header {
    /* about.html sets header { display: grid } inline, which made the inner
       flex row a grid item sized to its content. Declaring display here means
       the shared header does not inherit whatever each page set on the
       element. */
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vs-rule);
    padding: 14px clamp(16px, 4vw, 32px);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px clamp(16px, 2.5vw, 28px);
    /* Wraps rather than collapsing into a menu: the inner pages have no
       dropdown script, so hiding the links would leave mobile with no nav. */
    flex-wrap: wrap;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--vs-primary);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px clamp(14px, 2vw, 22px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--vs-primary); }

/* The page you are on, so the header orients rather than just links away. */
.site-nav a[aria-current="page"] {
    color: var(--vs-primary);
    font-weight: 600;
}

.site-cta {
    margin-left: auto;
    background: var(--vs-primary);
    color: #0A0A0A;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.site-cta:hover { background: #FF8257; }

@media (max-width: 560px) {
    /* Two rows rather than three: the wordmark and the button share the first,
       the links take the second. Stacked, this header was 140px of a 812px
       phone screen before it had scrolled anything.

       Order is set explicitly because the nav sits between them in the markup,
       where it belongs for reading and tab order. */
    .site-logo { order: 1; }
    .site-cta { order: 2; margin-left: auto; }
    .site-header-inner > nav { order: 3; flex-basis: 100%; }
}

/* ---------------------------------------------------------------------------
   Page furniture, shared with the homepage's visual language.

   These classes exist so the inner pages stop each inventing their own card,
   heading and label styles inline. about.html and delivery-areas.html use them;
   the remaining pages can adopt them as they are touched.
   --------------------------------------------------------------------------- */

.vs-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-x);
}

/* Monospace micro-label. Orients the reader before a heading without
   competing with it. */
.vs-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vs-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--vs-primary);
    flex: none;
}

/* Page title block. The inner pages had no real title - just an 18px or 28px
   heading - so arriving from search landed you in body copy with no anchor. */
.vs-page-hero {
    padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}

.vs-page-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.75rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1.25rem;
}

.vs-page-hero h1 .accent { color: var(--vs-primary); }

.vs-lede {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    max-width: 56ch;
    margin: 0;
}

/* Asymmetric section: mono label in a narrow left column, content in a wider
   right one, divided from the section above by a hairline. */
.vs-block {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: clamp(16px, 3vw, 48px);
    align-items: start;
    padding: clamp(32px, 4vw, 56px) 0;
    border-top: 1px solid var(--vs-rule);
}

.vs-block > .vs-eyebrow {
    margin: 0;
    padding-top: 0.4em;
}

.vs-block-body { max-width: 68ch; }

/* The measure is right for prose and wrong for a card grid, which should use
   the whole content column. */
.vs-block-body.is-wide { max-width: none; }

.vs-block-body > h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin: 0 0 1rem;
    color: #fff;
}

.vs-block-body > :last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .vs-block {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Flat panel on a hairline, squared off. Replaces the rounded filled cards. */
.vs-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--vs-rule);
    border-radius: 4px;
    padding: clamp(18px, 2.2vw, 26px);
}

.vs-panel-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.vs-panel-link:hover,
.vs-panel-link:focus-visible {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.03);
}

/* Square icon chip, tinted rather than filled. */
.vs-chip {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    color: var(--vs-primary);
    font-size: 18px;
}

/* --- Long-form prose (the legal pages) ----------------------------------- */

.vs-prose {
    max-width: 72ch;
}

.vs-prose h2 {
    font-size: clamp(1.1rem, 1.9vw, 1.35rem);
    margin: clamp(32px, 4vw, 48px) 0 1rem;
    padding-top: clamp(24px, 3vw, 32px);
    border-top: 1px solid var(--vs-rule);
    color: #fff;
}

.vs-prose h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 1.75rem 0 0.75rem;
    color: #fff;
}

.vs-prose p,
.vs-prose li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.75;
}

.vs-prose p { margin: 0 0 1rem; }

.vs-prose ul,
.vs-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.vs-prose li { margin-bottom: 0.5rem; }

.vs-prose a {
    color: var(--vs-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}

.vs-prose a:hover { border-bottom-color: var(--vs-primary); }

.vs-prose strong { color: #fff; }

/* Revision date, set as data rather than as a sentence. */
.vs-updated {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin: 1.5rem 0 0;
}

/* --- Accordion ------------------------------------------------------------
   <details>/<summary>, not divs with click handlers: the browser gives it
   keyboard access, the right ARIA and find-in-page for free, and the shared
   name attribute makes it exclusive without any script. */

.vs-accordion {
    border-top: 1px solid var(--vs-rule);
}

.vs-accordion details {
    border-bottom: 1px solid var(--vs-rule);
}

.vs-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    list-style: none;
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    transition: color 0.2s;
}

.vs-accordion summary::-webkit-details-marker { display: none; }

.vs-accordion summary:hover,
.vs-accordion summary:focus-visible { color: var(--vs-primary); }

.vs-accordion summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--vs-primary);
    flex: none;
    transition: transform 0.2s;
}

.vs-accordion details[open] summary::after {
    content: "\2212";
}

.vs-accordion .vs-answer {
    padding: 0 0 20px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 68ch;
}

.vs-accordion .vs-answer p { margin: 0 0 0.75rem; }
.vs-accordion .vs-answer > :last-child { margin-bottom: 0; }
.vs-accordion .vs-answer ul { margin: 0.75rem 0; padding-left: 1.25rem; }
.vs-accordion .vs-answer li { margin-bottom: 0.4rem; }

.vs-accordion .vs-answer a {
    color: var(--vs-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}

/* --- Stacked rows (guidelines, benefits) --------------------------------- */

.vs-rows {
    border-top: 1px solid var(--vs-rule);
}

.vs-row {
    padding: 18px 0;
    border-bottom: 1px solid var(--vs-rule);
}

.vs-row-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 6px;
}

.vs-row-desc {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 68ch;
}

/* --- Callout ------------------------------------------------------------- */

.vs-callout {
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.015));
    border: 1px solid rgba(255, 107, 53, 0.22);
    border-radius: 4px;
    padding: clamp(20px, 2.6vw, 28px);
}

.vs-callout-warn {
    background: linear-gradient(160deg, rgba(255, 76, 76, 0.07), rgba(255, 76, 76, 0.015));
    border-color: rgba(255, 76, 76, 0.3);
}

.vs-callout h2,
.vs-callout h3 {
    font-size: 1.05rem;
    margin: 0 0 10px;
    color: #fff;
}

.vs-callout p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Buttons ------------------------------------------------------------- */

.vs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--vs-primary);
    color: #0A0A0A;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.vs-btn:hover { background: #FF8257; }

.vs-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.vs-btn-ghost:hover {
    background: rgba(255, 107, 53, 0.08);
    border-color: rgba(255, 107, 53, 0.7);
}

/* --- Page footer --------------------------------------------------------- */

.vs-footer {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 28px 0 44px;
    border-top: 1px solid var(--vs-rule);
    margin-top: clamp(32px, 4vw, 56px);
}

.vs-footer p { margin: 0; }

/* --- Contact list -------------------------------------------------------
   Shared by About, Terms, Safety and FAQ, which each had their own copy of
   this with the icons in four different colours. */

.vs-contact {
    display: grid;
    gap: 10px;
    max-width: 48ch;
}

.vs-contact a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid var(--vs-rule);
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.vs-contact a:hover,
.vs-contact a:focus-visible {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.03);
    color: #fff;
}

.vs-contact i {
    color: var(--vs-primary);
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex: none;
}

/* A contact row that is information rather than a link - an emergency number
   you dial yourself, not a tel: we should place for you. */
.vs-contact-static {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.06);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #fff;
}

.vs-contact-static i {
    color: var(--vs-primary);
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex: none;
}

/* A prose link outside .vs-prose. Scoped deliberately: applying .vs-prose to a
   whole block would also pull in its h2 hairline, which lands wrongly inside a
   callout. */
.vs-link {
    color: var(--vs-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}

.vs-link:hover,
.vs-link:focus-visible { border-bottom-color: var(--vs-primary); }

/* --- Anchor targets -------------------------------------------------------
   The header is sticky, so anything jumped to lands underneath it without an
   offset. Kept with the header rules because it has to track their height. */

:root { --vs-anchor-offset: 80px; }

@media (max-width: 560px) {
    :root { --vs-anchor-offset: 112px; }
}

[id] { scroll-margin-top: var(--vs-anchor-offset); }

/* --- Print ----------------------------------------------------------------
   Terms and Privacy are the pages someone actually prints or saves as a PDF,
   and on paper this design is a black rectangle: either a wasted cartridge or,
   where the browser drops the background, pale grey text on white.

   So printing gets its own palette rather than the screen one. Black on white,
   the chrome dropped - a sticky header is meaningless on paper, and so are the
   buttons - and the hairlines darkened to something that actually shows. */

@media print {
    :root {
        color-scheme: light;
        --vs-rule: #cfcfcf;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
    }

    /* Navigation, calls to action and decoration have no function on paper. */
    .site-header,
    .site-cta,
    .vs-btn,
    .search-box,
    .no-results,
    .vs-eyebrow::before,
    .social-links {
        display: none !important;
    }

    .vs-main {
        max-width: none;
        padding: 0;
    }

    h1,
    h2,
    h3,
    .vs-page-hero h1,
    .vs-block-body > h2,
    .vs-row-title,
    .zone-name,
    .info-title,
    .spec-name {
        color: #000 !important;
    }

    p,
    li,
    .vs-lede,
    .vs-prose p,
    .vs-prose li,
    .vs-row-desc,
    .zone-suburbs,
    .info-text,
    .vs-contact a {
        color: #000 !important;
    }

    /* The label column reads as a heading in print, where there is no colour
       to set it apart. */
    .vs-eyebrow,
    .vs-updated,
    .zone-eta,
    .spec-meta {
        color: #444 !important;
    }

    /* Panels and cards lose their fills; a rule is enough to group them. */
    .vs-panel,
    .vs-callout,
    .vs-callout-warn,
    .zone-card,
    .info-card,
    .feature-card,
    .vs-contact a,
    .vs-contact-static,
    .inquiry {
        background: none !important;
        border-color: #cfcfcf !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    /* .vs-prose sets strong to white for the dark ground. On paper that is
       white on white: the company name vanished mid-sentence in the Terms.
       The accent goes black too - a half-orange heading reads oddly without
       the dark ground behind it, and it spends colour ink on a legal page. */
    strong,
    b,
    .accent,
    .vs-page-hero h1 .accent {
        color: #000 !important;
    }

    /* Every FAQ question is a summary, and they were all white: printing the
       FAQ would have produced answers with nothing above them. The careers
       selectors are specific because the page sets those to white with
       !important of its own, which a bare h3 cannot outrank. */
    .vs-accordion summary,
    .vs-contact-static,
    .job-title,
    .job-description h3,
    .job-description strong,
    .benefit-item strong {
        color: #000 !important;
    }

    /* The open/close marker means nothing on paper, and the answers have to be
       there whether or not the reader expanded them on screen. */
    .vs-accordion summary::after { content: none !important; }


    /* A phone mockup is a drawing of dark UI; on white it falls apart. A
       cookie banner on paper is nonsense, and the menu it opens doubly so. */
    .app-mockup,
    .hero-image,
    .cookie-consent,
    .cookie-settings-modal {
        display: none !important;
    }

    /* The store badges still say where to get the app, so they stay - but
       their text is white for the dark ground. */
    .app-button,
    .app-button-text,
    .app-button-text small,
    .app-button-text strong {
        color: #000 !important;
    }

    /* Translucent white is the design's way of saying quieter. Composited
       over white paper it says nothing at all, so each of these is restated
       as a real grey. Checked by contrast against white, not by matching
       colours: these all passed a pure-white test while printing unreadably. */
    .vs-accordion .vs-answer,
    .vs-accordion .vs-answer p,
    .vs-accordion .vs-answer li {
        color: #000 !important;
    }

    .job-meta-item,
    .code {
        color: #444 !important;
    }

    /* The homepage marks the unreleased iOS build with an inline #888. */
    .step-content span[style] {
        color: #444 !important;
    }

    /* The legal pages are the reason this block exists: keep a clause with the
       text under it and let the measure use the page. */
    .vs-prose { max-width: none; }

    .vs-prose h2,
    .vs-prose h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .vs-block,
    .vs-row,
    .zone-card,
    .info-card,
    li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Worth keeping: it says who the document belongs to. */
    .vs-footer {
        color: #444 !important;
        border-top: 1px solid #cfcfcf !important;
    }
}
