/*
 * THE PUBLIC FACE: the platform's own site on the root domain.
 * docs/design/05-public-face.md is the brief, the research and the reasons.
 *
 * Loaded after platform.css and glass.css. platform.css still carries the
 * pages' own rules and the dark colours; this sheet carries the light ones,
 * the bar and the language panel, and takes over the rest of the pages as
 * they are rebuilt.
 */

/* ---------- colour ----------
   The site follows the device until a visitor picks light or dark in the
   footer (data-mode, kept in their browser). Dark is what platform.css
   declares: the navy and gold of the noir preset. Light is the same preset's light palette, so
   neither is a palette of our own: the storefront already carries both and
   ContrastTest already holds them. Gold stays a fill or a large accent in
   light, never small text, because #f0b90b on white is 1.9:1; text and
   icons take the preset's dark gold, which is 5.6:1 on the page. */
@media (prefers-color-scheme: light) {
    html:not([data-mode="dark"]) {
        --bg: #f4f6fb; --surface: #ffffff; --surface-2: #eaeef6; --text: #0f1624; --muted: #4b5568;
        --border: #d5dbe7; --gold: #8d6200; --gold-2: #8d6200; --gold-ink: #ffffff;
        --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);
        color-scheme: light;
    }
    html:not([data-mode="dark"]) .button-primary:hover { background: #6f4d00; }
}
/* A visitor who picked light, whatever the device says (overnight item 7):
   the same tokens, which SiteThemeTest holds equal, on the customer panel's
   attribute. A visitor who picked dark keeps platform.css's own. */
html[data-mode="light"] {
    --bg: #f4f6fb; --surface: #ffffff; --surface-2: #eaeef6; --text: #0f1624; --muted: #4b5568;
    --border: #d5dbe7; --gold: #8d6200; --gold-2: #8d6200; --gold-ink: #ffffff;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);
    color-scheme: light;
}
html[data-mode="light"] .button-primary:hover { background: #6f4d00; }

/* ---------- the bar ----------
   One row at every width: the name alone on the left; the pages, light or
   dark, the language, Sign in and the one action together on the right,
   as in the owner's reference (7 October). The glass is painted one layer down by
   platform.css (.site-header::before), so the panels that open out of the
   bar can blur the page under them.

   Fixed to the top of the window, edge to edge, at every width, so there is
   never a gap above it at any scroll position; the page starts under it.
   On a phone with a notch the page is drawn under the notch too
   (viewport-fit=cover) and the bar's glass reaches up behind it, its
   contents kept clear of the notch and the rounded corners by the safe-area
   insets (docs/design/06-public-corrections.md, item 2). */
:root { --bar-h: calc(4rem + env(safe-area-inset-top, 0px)); }
body { padding-top: var(--bar-h); }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.bar { display: flex; align-items: center; gap: var(--space-4); height: 4rem; }
/* Every row of the page, the bar's included, keeps clear of a notch at the
   side of a phone held sideways, and of its rounded corners. */
.container { padding-left: max(var(--space-5), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-5), env(safe-area-inset-right, 0px)); }
.brand { margin-inline-end: auto; font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { color: var(--gold); }
.brand-logo { display: block; height: 2.25rem; width: auto; max-width: min(11rem, 26vw); object-fit: contain; }
.brand-rest { display: none; color: var(--muted); font-weight: 600; }
.bar-end { display: flex; align-items: center; gap: var(--space-2); }
/* Light or dark: round, the size of the language switch beside it, and
   easier to tap than it looks. */
.mode-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.mode-button::after { content: ""; position: absolute; inset: -.25rem; }
.mode-button .icon { display: block; width: .625rem; height: .625rem; }
.mode-button:hover { background: var(--surface-2); }
.bar-signin { display: none; }
/* The one action reads at the size and weight of the links beside it. */
.bar-action { min-height: var(--button-height-small); padding: var(--space-2) var(--space-4); font-size: 1rem; font-weight: 600; white-space: nowrap; }
summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* On a phone the pages are in the side drawer every panel opens
   (css/mobile-nav.css), so the bar's own list waits for a wide screen. The
   drawer is the site's gold, and the page behind it holds still. */
.site-nav { display: none; }
.mobile-nav[data-area="site"] { --nav-accent: var(--gold); --nav-ink: var(--gold-ink); }
body.is-locked { overflow: hidden; }
.nav-pages { display: grid; gap: var(--space-1); margin: 0 0 var(--space-4); }
.nav-pages a { display: block; padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); font-size: 1.125rem; font-weight: 700; color: var(--text); }
.nav-pages a:hover { background: var(--surface-2); }
.nav-pages a[aria-current="page"], .bar-signin[aria-current="page"] { color: var(--gold-2); }

/* The narrowest phones. The bar holds the name, the globe, the action and
   the menu on one row at 360 and up; under that the action and the gaps
   tighten, so "Request access" in French still fits at 320. */
@media (max-width: 359px) {
    .bar { gap: var(--space-2); }
    .bar-end { gap: var(--space-1); }
    .bar-action { padding: var(--space-2) var(--space-3); font-size: .875rem; }
}

@media (min-width: 900px) {
    .brand-rest { display: inline; }
    .site-nav { display: block; }
    .nav-pages { display: flex; margin: 0; }
    .nav-pages a { position: relative; padding: var(--space-2) var(--space-3); font-size: 1rem; font-weight: 600; color: var(--muted); }
    .nav-pages a:hover { color: var(--text); background: none; }
    /* Where you are: the text in full colour and a bar under it. Not an
       underline: no link on any surface is underlined (LinkStatesTest). */
    .nav-pages a[aria-current="page"] { color: var(--text); }
    .nav-pages a[aria-current="page"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); }
    .bar-signin { display: inline-flex; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-weight: 600; color: var(--text); }
    .bar-signin:hover { background: var(--surface-2); }
    .menu-button { display: none; }
}

/* ---------- the language switch ----------
   x-language-switch, styled in css/language-switch.css for every layout;
   here only the site's gold for the language you are reading. */
.lang-switch-list [aria-current] { color: var(--gold-2); }

/* ---------- the footer ----------
   The site's main set of internal links (D2): the name, what we are, the
   social accounts that exist and the language, then the groups, as many
   columns as the width allows. */
.site-footer { margin-top: auto; padding: var(--space-8) 0 calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--surface); }
.footer-main { display: grid; gap: var(--space-7); }
.footer-about { display: grid; gap: var(--space-4); align-content: start; justify-items: start; max-width: 26rem; }
.footer-about p { margin: 0; }
.footer-about .brand-rest { display: inline; }
.footer-groups { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.footer-title { margin: 0 0 var(--space-3); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.footer-group ul { display: grid; gap: var(--space-2); }
.footer-group a, .footer-group .consent-link { color: var(--muted); text-decoration: none; }
.footer-group a:hover, .footer-group .consent-link:hover { color: var(--text); }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.footer-social a:hover { color: var(--text); background: var(--surface-2); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; }

@media (min-width: 900px) {
    .footer-main { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); gap: var(--space-8); }
}

/* ---------- the page ----------
   One type scale and one rhythm for every public page (D3): a 72rem
   container, sections padded 24px on a phone and 48px from 900px (half of
   what they were, owner, 18 Oct 2026), headings that tighten as they grow. */
.container { max-width: 72rem; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
.section-title { margin: 0 0 var(--space-7); text-align: center; }
.section-title:has(+ .section-lead) { margin-bottom: var(--space-3); }
.section-lead { max-width: 40rem; margin: 0 auto var(--space-7); text-align: center; }
.section-head { align-items: end; margin-bottom: var(--space-7); }
.section-head h2, .section-head p { margin: 0; }
.section-head p { margin-top: var(--space-2); }
.section-more { margin: var(--space-7) 0 0; text-align: center; }
.narrow > h2 { margin-bottom: var(--space-5); }
.button-large { min-height: var(--button-height-large); padding: var(--space-3) var(--space-6); font-size: 1.05rem; }
@media (min-width: 900px) {
    .section { padding: var(--space-8) 0; }
}

/* The hero: one promise, the answer, one action, and the picture slot. */
.hero-text { display: grid; gap: var(--space-5); justify-items: start; }
.hero-text h1, .hero-text p { margin: 0; }
.answer { max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) {
    .hero { padding: 2.5rem 0 4rem; }
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-8); }
}

/* The typing scene behind the intro (docs/golive/55-hero-scene.md): a box
   site-motion.js fills on a big screen after load, set here from the first
   paint so nothing moves. Its sheet is css/hero-scene.css; phones skip it. */
.hero-backdrop { display: none; }
@media (min-width: 900px) {
    .hero { min-height: calc(100svh - var(--bar-h)); overflow: clip; }
    .hero > .container { position: relative; z-index: 1; }
    .hero-backdrop { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }
    .hero-backdrop.is-ready { opacity: 1; }
}

/* A picture slot: an upload, a shipped screenshot, or the placeholder, all
   drawn at their own size so nothing moves when they arrive. */
.picture-slot, .picture-slot img { display: block; width: 100%; height: auto; }
.picture-slot img, svg.picture-slot { border-radius: var(--glass-radius); box-shadow: var(--shadow); }
.placeholder .ph-surface { fill: var(--surface); stroke: var(--border); stroke-width: 2; }
.placeholder .ph-rule { fill: none; stroke: var(--border); stroke-width: 2; }
.placeholder .ph-soft { fill: var(--surface-2); }
.placeholder .ph-muted { fill: var(--border); }
.placeholder .ph-accent { fill: var(--gold); }
.placeholder .ph-accent-soft, .placeholder .ph-area { fill: var(--gold); opacity: .16; }
.placeholder .ph-line { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* The icon grid, centred (the owner's first reference): a Lucide mark over
   a title and a line, three across on a wide screen. */
.icon-grid { display: grid; gap: var(--space-7) var(--space-6); }
.icon-grid li { display: grid; gap: var(--space-3); align-content: start; }
.icon-grid h3, .icon-grid p { margin: 0; }
.icon-grid p { color: var(--muted); }
.icon-grid-centred li { justify-items: center; text-align: center; }
.icon-mark { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.icon-mark .icon { width: 1.75rem; height: 1.75rem; }

/* How it works: numbered steps on a rule. Not .steps, which get-a-domain still draws as cards. */
.step-list { display: grid; gap: var(--space-6); }
.step-list li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-5); border-top: 2px solid var(--border); }
.step-list h3, .step-list p { margin: 0; }
.step-list p { color: var(--muted); }

/* The product, shown. */
.shots { display: grid; gap: var(--space-6); }
.shot { display: grid; gap: var(--space-3); margin: 0; }
.shot figcaption { font-weight: 600; }

/* The plans, previewed. */
.plan-preview { display: grid; gap: var(--space-5); }
.plan-mini { display: grid; gap: var(--space-2); padding: var(--pad-card); border: 1px solid var(--border); border-radius: var(--glass-radius); background: var(--bg); }
.plan-mini.is-highlight { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-mini h3, .plan-mini p { margin: 0; }
.plan-mini-price strong { font-size: 2rem; letter-spacing: -.02em; color: var(--gold-2); }

/* What is behind it: counts read from the platform. */
.facts { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.facts li { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); border: 1px solid var(--border); border-radius: var(--glass-radius); text-align: center; }
.facts .icon { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.facts strong { font-size: 2.25rem; line-height: 1; letter-spacing: -.02em; }
.facts span { color: var(--muted); }

@media (min-width: 640px) {
    .icon-grid, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .plan-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The tile grid (the owner's second reference): a pale square holding the
   mark, then a title and a line, left-aligned, four across where they fit.
   The cells are divided by hairlines, not boxed: each draws its right and
   bottom line, and the grid clips the ones that would fall on its edge. */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); overflow: hidden; }
.tile-grid > li { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6) var(--space-5); box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.tile-grid h2, .tile-grid h3 { margin: 0; font-size: 1.125rem; }
.tile-grid p { margin: 0; color: var(--muted); }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius-sm); color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.tile-icon .icon { width: 1.5rem; height: 1.5rem; }

/* The top of every inner page: the h1, the answer under it, and what the
   page puts beside it. */
.page-head { padding: var(--space-8) 0 var(--space-6); }
.page-head h1 { margin: 0; }
.page-head .answer { margin: var(--space-4) 0 0; }
.page-head .eyebrow { margin-bottom: var(--space-3); }
.page-head .currency-form, .page-head .button { margin-top: var(--space-5); }

/* A check list: the mark beside the first line of its item, not floating
   in the middle of a long one. platform.css said both, in two places. */
.check-list { gap: var(--space-2); }
.check-list li { align-items: flex-start; padding: 0; }
.check-list .icon { flex: none; margin-top: .2rem; }

/* A page whose body is the full width keeps its head on the same left
   edge as the grid under it. */
.page-head.is-wide h1, .page-head.is-wide .answer { max-width: 46rem; }

/* The hero's picture column: it may shrink below its picture's own width. */
.hero-media { min-width: 0; }

/* The section straight under a page head starts close to it: the head has
   already left its own space, and a second full gap read as a hole. */
.page-head + .section { padding-top: var(--space-4); }
.legal-head .answer + .muted { margin-top: var(--space-3); }

/* The features: a group to a section, its line, then its tiles. */
.feature-group { scroll-margin-top: calc(var(--bar-h) + var(--space-6)); }
.feature-group + .feature-group { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.feature-group h2 { margin: 0 0 var(--space-3); }
.feature-intro { max-width: 40rem; margin: 0 0 var(--space-6); color: var(--muted); }

/* ---------- arriving (D5) ----------
   What a section marked data-reveal holds moves with the scroll, both ways
   and every time; the look is css/motion.css, the clock site-motion.js.
   The page clips sideways so nothing on its way in, and no band of words,
   ever widens it, and clip, not hidden, so nothing inside stops being
   sticky. */
main { overflow-x: clip; }

/* ---------- the carousel (D5) ----------
   On a phone and a tablet the product screens are a track that swipes
   sideways with snap points; the track takes focus and the arrow keys, and
   Previous, Next and "n of m" are drawn under it. Where every screen fits,
   site-motion.js marks it static and the controls go. */
.carousel { display: grid; gap: var(--space-4); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.carousel-controls .icon-button:disabled { opacity: .4; cursor: default; }
.carousel-status { min-width: 4.5rem; margin: 0; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
[data-carousel-static] .carousel-controls { display: none; }
.shots:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 899px) {
    .shots { display: flex; gap: var(--space-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .shots::-webkit-scrollbar { display: none; }
    .shots > li { flex: 0 0 85%; scroll-snap-align: start; }
}

/* The features as a carousel of glass cards (docs/design/07-motion.md,
   section 1): three and part of the fourth on a wide screen, one and part
   of the next on a phone. Room all round, so a card that grows under the
   pointer is never cut. In a grey section a card is the raised surface, as
   a card there always is, with the glass's lit edge, gloss and shadow. */
.feature-track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: var(--space-5); margin: calc(var(--space-7) * -1) calc(var(--space-6) * -1) calc(var(--space-8) * -1); padding: var(--space-7) var(--space-6) var(--space-8); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-6); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, black 90%, transparent); mask-image: linear-gradient(90deg, black 90%, transparent); }
.feature-track::-webkit-scrollbar { display: none; }
/* The track's room for a growing card runs under the buttons, and its edge
   fade paints it above them; lifted, the buttons take the click. */
.feature-carousel .carousel-controls { position: relative; z-index: 1; }
.feature-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.feature-card { display: grid; gap: var(--space-3); align-content: start; padding: var(--pad-card); scroll-snap-align: start; border: 1px solid var(--glass-edge); border-radius: var(--glass-radius-lg); background-color: var(--surface-2); background-image: var(--glass-image); box-shadow: var(--glass-shadow); }
.feature-card h3, .feature-card p { margin: 0; }
.feature-card p { color: var(--muted); }
@media (min-width: 900px) {
    .feature-track { grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3.25); }
}

/* ---------- light, dark or the device ----------
   Three small buttons beside the language in the footer (overnight item 7). */
.footer-controls { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.theme-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--text); background: var(--surface-2); }
.theme-switch button[aria-pressed="true"] { color: var(--gold-2); background: var(--surface-2); }
.theme-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
