/* Beakon marketing site.
   Layout: chart-paper pages, left-aligned 1160px measure; the hero pairs the pitch with a
   generated sea chart whose lights are monitored services. Day palette by default, an
   ECDIS-style "night" palette for dark mode. */
:root {
  --paper: #f9fbfc;
  --paper-2: #f0f5f8;
  --sea: #ddebf3;
  --sea-2: #c3dae8;
  --land: #eee2c4;
  --land-line: #cdb98a;
  --ink: #132230;
  --ink-2: #40536a;
  --ink-3: #687b8e;
  --rule: #d3dfe7;
  --surface: #ffffff;
  --magenta: #ae1f69;
  --magenta-2: #8e1755;
  --magenta-tint: #f7e4ef;
  --on-magenta: #ffffff;
  --up: #13804a;
  --down: #c0332b;
  --warn: #8f5e00;
  --up-bar: #2f9d63;
  --down-bar: #d2483f;
  --warn-bar: #d39a2a;
  --none-bar: #cfdbe3;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-note: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --measure: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.35rem + 1.7vw, 2.55rem);
  --step-4: clamp(2.45rem, 1.55rem + 3.4vw, 4.1rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1520;
    --paper-2: #0f1c29;
    --sea: #10263a;
    --sea-2: #17344d;
    --land: #2b281f;
    --land-line: #4a4433;
    --ink: #dce7ef;
    --ink-2: #a3b4c3;
    --ink-3: #7d90a2;
    --rule: #213649;
    --surface: #0f1d2b;
    --magenta: #ee7db6;
    --magenta-2: #f59ac8;
    --magenta-tint: #3a1830;
    --on-magenta: #0b1520;
    --up: #3dc985;
    --down: #f2675d;
    --warn: #e6b04a;
    --up-bar: #2fae6c;
    --down-bar: #e35a50;
    --warn-bar: #d9a441;
    --none-bar: #24384a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1520;
  --paper-2: #0f1c29;
  --sea: #10263a;
  --sea-2: #17344d;
  --land: #2b281f;
  --land-line: #4a4433;
  --ink: #dce7ef;
  --ink-2: #a3b4c3;
  --ink-3: #7d90a2;
  --rule: #213649;
  --surface: #0f1d2b;
  --magenta: #ee7db6;
  --magenta-2: #f59ac8;
  --magenta-tint: #3a1830;
  --on-magenta: #0b1520;
  --up: #3dc985;
  --down: #f2675d;
  --warn: #e6b04a;
  --up-bar: #2fae6c;
  --down-bar: #e35a50;
  --warn-bar: #d9a441;
  --none-bar: #24384a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--magenta-tint); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-stretch: 112%; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 760; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 730; }
h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 680; font-stretch: 106%; letter-spacing: -0.005em; }
p { margin: 0; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.86em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.note { font-family: var(--font-note); font-style: italic; font-weight: 420; color: var(--ink-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }
.todo { background: none; color: var(--magenta); border-bottom: 1px dashed currentColor; font-style: normal; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.6em 1.2em;
  border: 1.5px solid transparent; border-radius: 6px;
  font: inherit; font-weight: 640; font-stretch: 104%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--magenta); color: var(--on-magenta); }
.btn--primary:hover { background: var(--magenta-2); color: var(--on-magenta); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 38px; padding: 0.45em 0.9em; font-size: 0.94rem; }
.btn--block { width: 100%; }
.link-arrowless { font-weight: 600; }

/* Preview notice (only in preview builds) */
.preview-bar { background: var(--ink); color: var(--paper); font-size: var(--step--1); padding-block: 8px; }
.preview-bar p { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 780; font-stretch: 118%; font-size: 1.32rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 4px; color: var(--ink-2); font-size: 0.97rem; font-weight: 520; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .signin { text-decoration: none; font-weight: 560; color: var(--ink-2); padding: 8px 6px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--rule); border-radius: 6px; color: var(--ink); width: 44px; height: 44px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav, .header-actions { display: none; }
  .site-header[data-open="true"] .site-header__inner { flex-wrap: wrap; padding-bottom: 14px; }
  .site-header[data-open="true"] .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; order: 3; }
  .site-header[data-open="true"] .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .site-header[data-open="true"] .header-actions { display: flex; width: 100%; order: 4; justify-content: space-between; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 46em; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.5vw, 40px) clamp(28px, 4vw, 56px); align-items: start; }
.hero__title { grid-column: 1 / -1; font-size: clamp(2.45rem, 1.1rem + 4.7vw, 5.1rem); line-height: 0.98; letter-spacing: -0.03em; font-stretch: 116%; max-width: 15ch; }
.hero__copy { display: grid; gap: 24px; align-content: start; padding-top: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__fine { font-size: var(--step--1); color: var(--ink-3); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The sea chart */
.chart { margin: 0; display: grid; gap: 10px; min-width: 0; }
.chart__frame { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 100%; background: var(--sea); border: 1px solid var(--ink); overflow: hidden; }
.chart__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart__legend { font-size: 0.98rem; line-height: 1.45; }
.chart__legend b { font-family: var(--font-sans); font-style: normal; font-weight: 650; font-size: 0.86rem; color: var(--ink); letter-spacing: 0.01em; }
.light { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; z-index: 2; }
.light__flare { position: absolute; left: -11px; top: -28px; width: 22px; height: 30px; max-width: none; transform-origin: 11px 28px; transform: rotate(35deg); }
.light__flare path { fill: var(--magenta); }
.light__dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--up); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.light[data-status="down"] .light__dot { background: var(--down); }
.light[data-status="warn"] .light__dot { background: var(--warn); }
.light__halo { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--up) 55%, transparent) 0%, transparent 70%); opacity: 0; animation: flash var(--period, 3s) infinite; animation-delay: var(--delay, 0s); }
.light[data-status="down"] .light__halo { background: radial-gradient(circle, color-mix(in srgb, var(--down) 65%, transparent) 0%, transparent 70%); }
.light[data-status="warn"] .light__halo { background: radial-gradient(circle, color-mix(in srgb, var(--warn) 60%, transparent) 0%, transparent 70%); }
.light__label {
  position: absolute; top: -12px; left: 16px;
  display: grid; gap: 0; padding: 5px 8px 6px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--rule); border-radius: 2px;
  font-size: 0.74rem; line-height: 1.3; white-space: nowrap; color: var(--ink);
}
.light[data-side="left"] .light__label { left: auto; right: 16px; text-align: right; }
.light__label strong { font-weight: 650; font-stretch: 100%; font-size: 0.78rem; }
.light__label span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.light[data-status="down"] .light__label span { color: var(--down); font-weight: 600; }
.light[data-status="warn"] .light__label span { color: var(--warn); font-weight: 600; }
.light__label i { font-family: var(--font-note); color: var(--ink-3); font-size: 0.8rem; }
@keyframes flash {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  6% { opacity: 1; transform: scale(1.15); }
  18% { opacity: 0; transform: scale(1.5); }
}
@media (max-width: 560px) {
  .chart__frame { aspect-ratio: 1 / 1; }
  .light[data-minor] { display: none; }
  .light__label { font-size: 0.68rem; padding: 3px 6px 4px; }
  .light__label strong { font-size: 0.72rem; }
  .light__label i { display: none; }
}

/* Check table ("what Beakon checks") */
.logbook { width: 100%; border-collapse: collapse; }
.logbook th, .logbook td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--rule); }
.logbook thead th { font-size: var(--step--1); font-weight: 600; color: var(--ink-3); border-top: 0; padding-block: 0 10px; }
.logbook tbody th { width: 22%; font-weight: 660; font-stretch: 106%; }
.logbook tbody th small { display: block; font-weight: 450; font-stretch: 100%; color: var(--ink-3); font-size: var(--step--1); margin-top: 2px; }
.logbook td:first-of-type { width: 32%; color: var(--ink-2); }
.reading { font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.5; color: var(--ink); display: flex; gap: 10px; align-items: baseline; }
.reading::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--up); transform: translateY(-1px); }
.reading[data-status="down"]::before { background: var(--down); }
.reading[data-status="warn"]::before { background: var(--warn); }
@media (max-width: 760px) {
  .logbook thead { display: none; }
  .logbook, .logbook tbody, .logbook tr, .logbook th, .logbook td { display: block; width: auto !important; }
  .logbook tr { border-top: 1px solid var(--rule); padding-block: 16px; display: grid; gap: 6px; }
  .logbook th, .logbook td { border: 0; padding: 0; }
}

/* Incident timeline */
.incident { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: calc(6.6em + 8px); top: 10px; bottom: -4px; width: 1px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.timeline time { font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.timeline .event { position: relative; padding-left: 22px; display: grid; gap: 4px; }
.timeline .event::before { content: ""; position: absolute; left: -15px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.timeline li[data-status="down"] .event::before { border-color: var(--down); background: var(--down); }
.timeline li[data-status="up"] .event::before { border-color: var(--up); background: var(--up); }
.timeline li[data-status="sent"] .event::before { border-color: var(--magenta); background: var(--magenta); }
.timeline .event p { color: var(--ink-2); }
.timeline .event code { color: var(--ink); }
.section--tint .timeline .event::before { background: var(--paper-2); }
@media (max-width: 860px) { .incident { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 22px; }
  .timeline li::before { left: 5px; top: 22px; }
  .timeline time { text-align: left; }
  .timeline .event { padding-left: 0; }
  .timeline .event::before { left: -22px; top: -16px; }
}

.chat-mock { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.chat-mock__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.chat-mock__head svg { width: 30px; height: 30px; }
.chat-mock__head div { display: grid; line-height: 1.25; }
.chat-mock__head small { color: var(--ink-3); font-size: 0.8rem; }
.bubble { justify-self: start; max-width: 92%; padding: 10px 12px 8px; border-radius: 4px 14px 14px 14px; background: var(--paper-2); border: 1px solid var(--rule); font-size: 0.93rem; line-height: 1.45; display: grid; gap: 2px; }
.bubble b { font-weight: 680; }
.bubble .down { color: var(--down); }
.bubble .up { color: var(--up); }
.bubble small { color: var(--ink-3); font-size: 0.76rem; justify-self: end; font-variant-numeric: tabular-nums; }
.bubble--mail { border-radius: 4px; background: transparent; }

/* Status page mock */
.statuspage { border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; overflow: hidden; }
.statuspage__top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; padding: 18px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--rule); }
.statuspage__top b { font-stretch: 110%; font-size: 1.1rem; }
.statuspage__url { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); overflow-wrap: anywhere; }
.statuspage__banner { margin: clamp(16px, 3vw, 28px); padding: 14px 18px; border-radius: 6px; background: color-mix(in srgb, var(--up) 14%, var(--surface)); color: var(--ink); font-weight: 640; display: flex; gap: 10px; align-items: center; }
.statuspage__banner::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--up); flex: none; }
.components { display: grid; padding: 0 clamp(16px, 3vw, 28px) 8px; }
.component { display: grid; gap: 8px; padding-block: 14px; border-top: 1px solid var(--rule); }
.component:first-child { border-top: 0; }
.component__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.component__row span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 30px; }
.bars i { background: var(--up-bar); border-radius: 1px; }
.bars i[data-s="d"] { background: var(--down-bar); }
.bars i[data-s="w"] { background: var(--warn-bar); }
.bars i[data-s="n"] { background: var(--none-bar); }
.bars__scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .bars { grid-template-columns: repeat(45, minmax(0, 1fr)); }
  .bars i:nth-child(-n+45) { display: none; }
}
.statuspage__past { padding: 14px clamp(16px, 3vw, 28px) 20px; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 0.93rem; }
.statuspage__past p:first-child { font-weight: 640; }
.statuspage__past .muted { font-size: 0.85rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__text { display: grid; gap: 18px; align-content: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Pay once */
.terms-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(28px, 5vw, 64px); margin: 0; }
.terms-list div { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.terms-list dt { font-weight: 690; font-stretch: 108%; font-size: var(--step-1); }
.terms-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) { .terms-list { grid-template-columns: minmax(0, 1fr); } }

/* Packages table */
.packages { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.packages th, .packages td { padding: 18px 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--rule); }
.packages thead th { border-top: 0; font-size: var(--step--1); color: var(--ink-3); font-weight: 600; padding-block: 0 10px; white-space: nowrap; }
.packages tbody tr:last-child th, .packages tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.packages th:first-child, .packages td:first-child { padding-left: 0; }
.packages td:last-child { padding-right: 0; }
.pkg-name { display: grid; gap: 2px; }
.pkg-name a { font-weight: 720; font-stretch: 110%; font-size: 1.15rem; text-decoration: none; }
.pkg-name a:hover { text-decoration: underline; }
.pkg-name .note { font-size: 0.95rem; }
.pkg-price { font-weight: 720; font-size: 1.12rem; white-space: nowrap; }
.pkg-actions { display: flex; gap: 8px; justify-content: flex-end; }
.packages__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 900px) {
  .packages thead { display: none; }
  .packages, .packages tbody, .packages tr, .packages th, .packages td { display: block; }
  .packages tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding-block: 20px; border-top: 1px solid var(--rule); }
  .packages th, .packages td { border: 0 !important; padding: 0 !important; }
  .packages .pkg-name, .packages .pkg-price, .packages .pkg-actions { grid-column: 1 / -1; }
  .packages .pkg-actions { justify-content: flex-start; }
  .packages td[data-label]::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--ink-3); }
}

/* Comparison table */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink-2); width: 30%; }
.compare thead th { position: sticky; top: 0; background: var(--surface); font-weight: 720; font-stretch: 108%; vertical-align: bottom; padding-top: 18px; }
.compare thead th a { text-decoration: none; }
.compare thead th small { display: block; font-weight: 600; font-stretch: 100%; color: var(--ink-3); font-size: 0.84rem; }
.compare .group th { text-align: left; background: var(--paper-2); font-weight: 700; color: var(--ink); font-stretch: 106%; padding-top: 16px; }
.compare .yes svg { width: 18px; height: 18px; color: var(--up); vertical-align: middle; }
.compare .no { color: var(--ink-3); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

.upgrade-grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; min-width: 640px; }
.upgrade-grid th, .upgrade-grid td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: right; }
.upgrade-grid th:first-child { text-align: left; }
.upgrade-grid thead th { color: var(--ink-3); font-weight: 600; font-size: var(--step--1); }
.upgrade-grid td.na { color: var(--ink-3); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--rule); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 640; font-stretch: 104%; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; display: grid; gap: 10px; }

/* Call to action band */
.cta { background: var(--ink); color: var(--paper); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 64px); }
.cta h2 { max-width: 18ch; color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); margin-top: 10px; }
.cta .btn--ghost { border-color: var(--paper); color: var(--paper); }
.cta .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--rule); font-size: 0.94rem; color: var(--ink-2); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 0.95rem; font-stretch: 104%; margin-bottom: 10px; color: var(--ink); letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--ink-3); }
.site-footer__about { display: grid; gap: 12px; max-width: 30em; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__about { grid-column: 1 / -1; } }

/* Page header for inner pages */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.crumbs { font-size: var(--step--1); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

/* Package detail page */
.pkg-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pkg-hero__copy { display: grid; gap: 18px; }
.buybox { border: 1.5px solid var(--ink); border-radius: 8px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; background: var(--surface); }
.buybox__price { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 760; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.buybox__price small { display: block; margin-top: 8px; font-size: 0.95rem; font-weight: 450; letter-spacing: 0; font-stretch: 100%; color: var(--ink-3); line-height: 1.4; }
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.limits div { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0; }
.limits div:nth-child(odd) { padding-right: 12px; }
.limits dt { font-size: 0.82rem; color: var(--ink-3); }
.limits dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.buybox .fine { font-size: 0.86rem; color: var(--ink-3); }
@media (max-width: 860px) { .pkg-hero { grid-template-columns: minmax(0, 1fr); } }
.feature-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.feature-list svg { width: 18px; height: 18px; margin-top: 4px; color: var(--up); }
.feature-list b { font-weight: 640; }
.feature-list span { display: block; color: var(--ink-2); font-size: 0.95rem; }
.feature-list--new svg { color: var(--magenta); }
@media (max-width: 760px) { .feature-cols { grid-template-columns: minmax(0, 1fr); } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-weight: 760; font-stretch: 112%; font-size: 1.4rem; color: var(--magenta); }
.steps b { font-weight: 660; }
.steps span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.neighbours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.neighbour { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; background: var(--surface); }
.neighbour:hover { border-color: var(--ink); color: var(--ink); }
.neighbour small { color: var(--ink-3); font-size: 0.85rem; }
.neighbour b { font-stretch: 108%; font-size: 1.1rem; }
.neighbour span { color: var(--ink-2); font-size: 0.95rem; }
.neighbour--next { text-align: right; }
@media (max-width: 640px) { .neighbours { grid-template-columns: minmax(0, 1fr); } .neighbour--next { text-align: left; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field small { color: var(--ink-3); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 6px; padding: 11px 12px; width: 100%; min-width: 0;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--magenta-tint); }
.field [aria-invalid="true"] { border-color: var(--down); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper-2); }
.form__status[data-kind="ok"] { border-color: color-mix(in srgb, var(--up) 45%, var(--rule)); }
.form__status[data-kind="error"] { border-color: color-mix(in srgb, var(--down) 50%, var(--rule)); }
.aside { display: grid; gap: 22px; }
.aside section { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }
.aside h2 { font-size: 1.05rem; letter-spacing: 0; }
.aside p { color: var(--ink-2); font-size: 0.97rem; }
.copyable { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copyable code { user-select: all; }
.copyable button { font: inherit; font-size: 0.82rem; padding: 3px 9px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; }

/* Long-form documents (legal) */
.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.doc__toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); font-size: 0.92rem; display: grid; gap: 4px; }
.doc__toc p { font-weight: 650; margin-bottom: 6px; }
.doc__toc a { text-decoration: none; color: var(--ink-2); padding: 3px 0; }
.doc__toc a:hover { color: var(--magenta); }
.prose { max-width: 42em; display: grid; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 22px; scroll-margin-top: 96px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose .updated { color: var(--ink-3); font-size: var(--step--1); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc__toc { position: static; } }

/* 404 */
.lost { padding-block: clamp(64px, 12vw, 140px); display: grid; gap: 18px; }

/* Chat assistant */
.ask { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.ask__launcher {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; min-height: 50px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 640; cursor: pointer; box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 18%, transparent);
}
.ask__launcher svg { width: 28px; height: 28px; }
.ask__launcher:hover { border-color: var(--magenta); }
.ask[data-open="true"] .ask__launcher { display: none; }
.ask__panel {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 60px color-mix(in srgb, var(--ink) 28%, transparent);
}
.ask__panel[hidden] { display: none; }
.ask__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--rule); }
.ask__head svg { width: 30px; height: 30px; flex: none; }
.ask__head div { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.ask__head strong { font-stretch: 108%; }
.ask__head small { color: var(--ink-3); font-size: 0.8rem; }
.ask__close { background: none; border: 0; color: var(--ink-2); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.ask__close:hover { background: var(--paper-2); color: var(--ink); }
.ask__close svg { width: 20px; height: 20px; }
.ask__log { overflow-y: auto; padding: 16px; display: grid; align-content: start; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; display: grid; gap: 8px; overflow-wrap: anywhere; }
.msg--bot { justify-self: start; background: var(--paper-2); border: 1px solid var(--rule); border-top-left-radius: 4px; }
.msg--user { justify-self: end; background: var(--ink); color: var(--paper); border-top-right-radius: 4px; }
.msg a { color: var(--magenta); font-weight: 600; }
.msg ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; }
.msg table { border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.msg td { padding: 2px 10px 2px 0; }
.msg td:last-child { text-align: right; padding-right: 0; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bob 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-self: start; max-width: 100%; }
.chip { font: inherit; font-size: 0.86rem; font-weight: 560; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--magenta); color: var(--magenta); background: transparent; cursor: pointer; }
.chip:hover { background: var(--magenta); color: var(--on-magenta); }
.ask__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--rule); }
.ask__form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); }
.ask__form input:focus { outline: none; border-color: var(--magenta); }
.ask__form button { font: inherit; font-weight: 640; border: 0; border-radius: 10px; padding: 0 14px; background: var(--magenta); color: var(--on-magenta); cursor: pointer; }
.ticket-form { display: grid; gap: 8px; }
.ticket-form input, .ticket-form textarea { font: inherit; font-size: 0.93rem; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.ticket-form textarea { min-height: 84px; resize: vertical; }
.ticket-form button { justify-self: start; }
.ticket-form .err { color: var(--down); font-size: 0.86rem; }
@media (max-width: 520px) {
  .ask__launcher span { display: none; }
  .ask__launcher { padding: 10px; }
  .ask__panel { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light__halo { animation: none; opacity: 0.55; transform: none; }
  .typing i { animation: none; opacity: 0.7; }
  .btn, .faq summary::after { transition: none; }
}
