/* Shared styles for every page of the marketing site: colour tokens, base type,
   buttons, the site header and footer, toggles, notices, breadcrumbs, the trust
   pages and print. Page-specific styles stay with their page. */

:root {
  --paper: #F6F4FA;
  --paper-2: #EDE9F5;
  --card: #FFFFFF;
  --ink: #241A3A;
  --ink-2: #5B5272;
  --line: #E1DCEB;
  --plum: #4B2E83;
  --plum-soft: #EEE8F8;
  --on-plum: #FFFFFF;
  --night: #2A1B4A;
  --night-2: #1F1438;
  --night-line: rgba(255,255,255,.14);
  --on-night: #FFFFFF;
  --on-night-2: #CFC6E6;
  --marker: #FFD23F;
  --marker-ink: #241A3A;
  --mint: #12866D; --mint-ink: #0B5C4A;
  --mint-soft: #DDF3EC;
  --coral: #C9472A;
  --coral-soft: #FCE7DF;
  --draft: #FFF3C4;
  --shell: #1B1528;
  --shadow: rgba(38, 29, 58, .30);
  --map-block: #3A2862;
  --map-road: #4A3577;
  --map-water: #2F4E7A;
  --map-park: #2F5446;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14101C; --paper-2: #1A1524; --card: #201A2C; --ink: #F1EEF8; --ink-2: #B6ADC9; --line: #352D47;
    --plum: #BDA3FF; --plum-soft: #2D2444; --on-plum: #1A1326;
    --night: #21153C; --night-2: #170E2B; --night-line: rgba(255,255,255,.12); --on-night: #FFFFFF; --on-night-2: #C9C0E0;
    --marker: #FFD23F; --marker-ink: #241A3A;
    --mint: #4FD4B3; --mint-ink: #4FD4B3; --mint-soft: #173832; --coral: #FF8A66; --coral-soft: #3D2620; --draft: #4A3D10;
    --shell: #050308; --shadow: rgba(0,0,0,.55);
    --map-block: #2E2050; --map-road: #3C2B63; --map-water: #233E63; --map-park: #24443A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14101C; --paper-2: #1A1524; --card: #201A2C; --ink: #F1EEF8; --ink-2: #B6ADC9; --line: #352D47;
  --plum: #BDA3FF; --plum-soft: #2D2444; --on-plum: #1A1326;
  --night: #21153C; --night-2: #170E2B; --night-line: rgba(255,255,255,.12); --on-night: #FFFFFF; --on-night-2: #C9C0E0;
  --marker: #FFD23F; --marker-ink: #241A3A;
  --mint: #4FD4B3; --mint-ink: #4FD4B3; --mint-soft: #173832; --coral: #FF8A66; --coral-soft: #3D2620; --draft: #4A3D10;
  --shell: #050308; --shadow: rgba(0,0,0,.55);
  --map-block: #2E2050; --map-road: #3C2B63; --map-water: #233E63; --map-park: #24443A;
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--night); }
/* pretty, not balance: balance evens the lines by breaking early, which left headings split mid-row with the rest of the row empty. pretty only avoids a lone last word. */
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.08; text-wrap: pretty; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--plum); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--marker); color: var(--marker-ink); font-weight: 700; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* Buttons. Two roles, one size:
   .btn-primary   the main call to action and every form submit
   .btn-secondary the other action beside a primary one; takes the text colour of its surface
   Both read the same on light paper and on night sections: the primary is a solid marker
   fill with no outline, the secondary an outline in the surface's own text colour. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-body); font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; border-radius: 12px; padding: 12px 18px; min-height: 48px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: default; opacity: .6; transform: none; }
.btn-primary { background: var(--marker); color: var(--marker-ink); border-color: transparent; }
.btn-primary:hover { background: #FFDB63; }
.btn-secondary { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }
.btn-secondary:hover { border-color: currentColor; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Site header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line); }
.top-in { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; flex: none; }
.brand svg.pinmark { width: 30px; height: 33px; }
.brand svg.wm { height: 21px; width: 163px; fill: var(--on-night); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--on-night-2); text-decoration: none; white-space: nowrap; font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current] { color: var(--on-night); background: rgba(255,255,255,.08); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--on-night); border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; padding: 10px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: rgba(255,255,255,.1); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 8px; display: grid; min-width: 220px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.menu nav a { color: var(--on-night); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.menu nav a:hover, .menu nav a[aria-current] { background: rgba(255,255,255,.08); }
.nav-find { color: var(--marker) !important; border: 1.5px solid color-mix(in srgb, var(--marker) 55%, transparent); }
.nav-find:hover { border-color: var(--marker); }
body.on-find .nav-find { background: var(--marker); color: var(--marker-ink) !important; border-color: var(--marker); }
.menu nav a.nav-find { border: 0; }
.menu-cta { display: none; }
@media (max-width: 1240px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .top .btn-primary { display: none; } .menu-cta { display: block; } .brand svg.wm { width: 140px; height: 18px; } }

/* Site footer: the page fills the window, so on a short page the footer sits at the bottom. */
body > main { flex: 1 0 auto; }
.site-foot { margin-top: auto;  background: var(--night-2); color: var(--on-night-2); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; padding-block: 28px 36px; }
.foot-in .brand svg.wm { fill: var(--on-night); }
.foot-in p { max-width: 70ch; }
.foot-co { font-weight: 700; color: var(--on-night); }
.foot-support a { color: inherit; text-decoration: underline; }
.foot-support a:hover { color: var(--on-night); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: inherit; }
.foot-links a:hover { color: var(--on-night); }

/* Toggles and tabs: one look for tab lists, either-or switches and filters.
   Selected is aria-selected (tabs) or aria-pressed (switches, filters). */
.pills { display: flex; flex-wrap: wrap; gap: 8px; --pill-ink: var(--ink); --pill-bg: var(--card); --pill-line: var(--line); --pill-on-bg: var(--plum); --pill-on-ink: var(--on-plum); }
.pills button { font: 700 15px/1.25 var(--f-body); color: var(--pill-ink); background: var(--pill-bg); border: 1.5px solid var(--pill-line); border-radius: 12px; padding: 10px 16px; min-height: 44px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pills button:hover { border-color: var(--pill-on-bg); }
.pills button[aria-selected="true"], .pills button[aria-pressed="true"] { background: var(--pill-on-bg); border-color: var(--pill-on-bg); color: var(--pill-on-ink); }
.pills button small { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; }
.on-night .pills, .pills.on-night { --pill-ink: var(--on-night); --pill-bg: rgba(255,255,255,.06); --pill-line: var(--night-line); --pill-on-bg: var(--marker); --pill-on-ink: var(--marker-ink); }

/* Notices: short messages in a tinted box. Add .notice-ok, .notice-warn or .notice-draft. */
.notice { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; background: var(--plum-soft); color: var(--ink); }
.notice > svg { width: 44px; height: 33px; flex: none; }
.notice > span { flex: 1 1 14em; min-width: 0; }
.notice-ok { background: var(--mint-soft); }
.notice-warn { background: var(--coral-soft); }
.notice-draft { background: var(--draft); }

/* Breadcrumb */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: baseline; }
.crumbs li + li::before { content: "/"; content: "/" / ""; margin-right: 8px; }
.crumbs a { color: var(--plum); }
.crumbs a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* Trust pages and other plain text pages */
.page { padding-block: 28px 72px; min-height: 60vh; }
.doc { max-width: 44rem; overflow-wrap: break-word; }
.doc > * + * { margin-top: 1rem; }
.doc h1 { font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin-top: 1.25rem; }
.doc h2 { font-size: 1.45rem; font-weight: 750; margin-top: 2.25rem; }
.doc h2 + * { margin-top: .6rem; }
.doc ul { margin-bottom: 0; padding-left: 1.3rem; }
.doc li + li { margin-top: .35rem; }
.doc .company { font-weight: 700; margin-top: .5rem; }
.doc .muted { color: var(--ink-2); }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--f-display); font-size: 1rem; }
.doc-links { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.doc-links li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 !important; }
.doc-links a { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; }
.doc-links p { color: var(--ink-2); margin-top: 4px; }
@media screen and (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc tr { border-bottom: 1px solid var(--line); padding: .5rem 0 .75rem; }
  .doc td { border: 0; padding: .3rem 0; }
  .doc td:first-child { font-weight: 700; }
  .doc td::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
}

/* Print: black on white, no navigation, forms or decoration. */
@media print {
  @page { margin: 16mm 15mm; }
  :root { color-scheme: light; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  body { font-size: 11pt; line-height: 1.45; }
  body::before { display: none; }
  a { text-decoration: underline; }
  .top { position: static; border-bottom: 1pt solid #000; }
  .top-in { padding-block: 0 8pt; }
  .brand svg.wm { fill: #000 !important; }
  .nav, .menu, .top .btn, .skip, .crumbs, .foot-links, form, .form, .btn, .pills, .aud-pick, .scan-sw, .dial,
  .hero-map, .phone-stage, .peeker-float, .cert-float, .studio, .fvis, .m-map, .bigcard, .printset, .peek, .faq-side svg, .empty svg,
  [aria-hidden="true"]:not(.pinmark):not(.wm):not(.sprite) { display: none !important; }
  .aud-panel[hidden], .lv-panel[hidden] { display: grid !important; }
  .site-foot { border-top: 1pt solid #000; }
  .foot-in { padding-block: 8pt 0; }
  .notice, .notice-draft { border: 1pt solid #000; }
  .doc a[href]:not([href^="#"])::after { content: " (" attr(href) ")"; font-size: 90%; }
  .doc-links li { border: 1pt solid #000; }
  .doc th, .doc td, .doc tr { border-color: #000 !important; }
  section.sec, .hero-in, .cta-in, .find-in { padding-block: 12pt !important; }
  .hero-in, .cta-in { grid-template-columns: minmax(0, 1fr) !important; }
  h1, h2, h3, h4 { break-after: avoid; }
  tr, li, .notice, .tier, .cl, .ft, .vn, .th, .wh, .len, .box, .qa, .aud-panel, .mc { break-inside: avoid; }
}
/* A pin on a map fills its keyhole, so map labels behind it don't show through as word fragments. Logos keep the cut-out. */
svg use[href="#pin"][x] { --pin-hole: var(--night); }
