/* Public site chrome (design v2, 2026-10-13): the header, the phone drawer and the footer shared by the
   public pages that own their <head> (Pricing.html, Terms.html, Privacy_Policy.html). Tokens come from
   fragments/design_system.html, included by each of these pages. No hex. The only shadow is the one the
   canvas draws under the phone drawer (Phone_Public_Drawer). */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--ink-900); font-family: var(--font-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 10200; background: var(--blue-600); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 8px; }

/* 1200px of content at 1440, 16px gutter on a phone. */
.ps-container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 32px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.ps-header { position: relative; z-index: 10102; height: 68px; background: var(--white); border-bottom: 1px solid var(--line); }
.ps-header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.ps-logo { display: flex; align-items: center; flex-shrink: 0; }
.ps-logo img { height: 28px; width: auto; }
.ps-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.ps-nav a { color: var(--ink-500); }
.ps-nav a:hover { color: var(--ink-900); }
.ps-nav a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
.ps-header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
/* FR | EN: the canonical .seg-toggle (grey track, the current language in
   white, rule of 2026-10-14). */
.ps-login { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.ps-login:hover { color: var(--blue-600); }
.ps-header .btn { font-size: 14px; padding: 0 18px; }
.ps-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink-900); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ps-burger svg { width: 22px; height: 22px; }
.ps-burger .ps-burger__close { display: none; }
.ps-burger[aria-expanded="true"] .ps-burger__open { display: none; }
.ps-burger[aria-expanded="true"] .ps-burger__close { display: block; }

/* ── Phone drawer: a panel under the top bar, over a scrim that closes it ── */
.ps-drawer { display: none; }
.ps-drawer.is-open { display: block; }
.ps-drawer__scrim { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 10100; background: rgba(10, 23, 51, .45); }
.ps-drawer__panel { position: fixed; top: 68px; left: 16px; right: 16px; z-index: 10101; max-height: calc(100vh - 84px); overflow-y: auto;
  padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column;
  box-shadow: 0 12px 32px rgba(10, 23, 51, .12); }
.ps-drawer .ps-lang { align-self: center; margin: 2px 0 8px; }
.ps-drawer__links { display: flex; flex-direction: column; gap: 2px; }
.ps-drawer__links a { height: 46px; padding: 0 14px; border-radius: var(--r-sm); color: var(--ink-700); font-size: 15px; font-weight: 500;
  display: flex; align-items: center; }
.ps-drawer__links a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
/* "I'm a..." group: the three landing views, as in Phone_Public_Drawer. */
.ps-drawer__audience { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.ps-drawer__label { padding: 0 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.ps-drawer__account { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.ps-drawer__account .btn { min-height: 44px; border-radius: 12px; }
body.ps-drawer-open { overflow: hidden; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.ps-footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.ps-footer__inner { padding-top: 48px; padding-bottom: 28px; }
.ps-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ps-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.ps-footer__brand img { height: 26px; width: auto; align-self: flex-start; }
.ps-footer__brand p { max-width: 340px; font-size: 13px; color: var(--ink-400); }
.ps-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ps-footer__col h2 { font-size: 12px; font-weight: 600; color: var(--ink-900); text-transform: uppercase; letter-spacing: .06em; }
.ps-footer__col a { color: var(--ink-500); }
.ps-footer__col a:hover, .ps-footer__bottom a:hover { color: var(--blue-600); }
.ps-footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  gap: 8px 18px; font-size: 12px; color: var(--ink-400); }
.ps-footer__bottom nav { display: flex; gap: 18px; }

/* Width-dependent only: the header folds into the drawer, the footer columns stack. */
@media (max-width: 980px) {
  .ps-header { position: sticky; top: 0; height: 60px; }
  .ps-header .ps-container { padding: 0 8px 0 16px; }
  .ps-header__inner { gap: 8px; }
  .ps-logo img { height: 24px; }
  .ps-nav, .ps-header__actions .ps-lang, .ps-header__actions .ps-login { display: none; }
  .ps-header__actions { gap: 8px; }
  .ps-header .btn { font-size: 13px; padding: 0 12px; }
  .ps-burger { display: flex; }
}
@media (max-width: 640px) {
  .ps-container { padding: 0 16px; }
  .ps-footer__inner { padding-top: 32px; padding-bottom: 24px; }
  .ps-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .ps-footer__brand { grid-column: 1 / -1; }
  .ps-footer__col { gap: 0; }
  .ps-footer__col h2 { margin-bottom: 6px; }
  .ps-footer__col a { min-height: 30px; display: flex; align-items: center; }
  .ps-footer__bottom { flex-direction: column; margin-top: 24px; }
}
