/* ==========================================================================
   VirtualMachine.gr - main stylesheet
   No external resources. Fonts are self-hosted (see /assets/fonts/README.md).
   ========================================================================== */

/* ---- Fonts (self-hosted; falls back to the system stack if absent) ------ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter/InterVariable-Italic.woff2") format("woff2");
}

/* ---- Design tokens: light ------------------------------------------------ */
:root {
  color-scheme: light;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f5f7fa;
  --bg-elev: #ffffff;
  --bg-sunken: #eceff4;
  --bg-grid: rgba(15, 23, 42, 0.045);
  --border: #d9dee7;
  --border-strong: #c3cad6;
  --text: #0f172a;
  --text-muted: #4a5568;
  --text-faint: #6b7686;

  --accent: #0b7a75;
  --accent-strong: #075e5a;
  --accent-soft: #d8f1ef;
  --accent-contrast: #ffffff;

  --ok: #12804a;
  --ok-soft: #dcf4e6;
  --bad: #b42318;
  --bad-soft: #fde4e1;
  --warn: #a15c07;
  --warn-soft: #fdf0d5;
  --holiday: #6941c6;
  --holiday-soft: #ebe4fb;

  --sea: #dbe8f3;
  --land: #eef1f5;

  /* Animated rack background */
  --rack-opacity: 0.75;
  --rack-frame: #c3ccd8;
  --rack-rail: #e4e9ef;
  --rack-hole: #b3bdca;
  --rack-server: #f4f6f9;
  --rack-edge: #b4bfcd;
  --rack-detail: #9ba7b8;
  --rack-port: #6f7d90;
  --led-ok: #16a34a;
  --led-act: #0284c7;
  --led-warn: #d97706;
  --fiber-a: #0fb3ab;
  --fiber-b: #d9a400;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.18);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

/* ---- Design tokens: dark (system preference unless user forced light) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1017;
    --bg-elev: #121924;
    --bg-sunken: #0e141d;
    --bg-grid: rgba(148, 163, 184, 0.06);
    --border: #222c3a;
    --border-strong: #2f3b4d;
    --text: #e6ebf2;
    --text-muted: #a3afc0;
    --text-faint: #8391a5;

    --accent: #3cc7bd;
    --accent-strong: #6fdcd3;
    --accent-soft: #0f2e2d;
    --accent-contrast: #04211f;

    --ok: #4ade80;
    --ok-soft: #0f2a1b;
    --bad: #f87171;
    --bad-soft: #351616;
    --warn: #fbbf24;
    --warn-soft: #33260a;
    --holiday: #b69cff;
    --holiday-soft: #261d42;

    --sea: #0f2233;
    --land: #151d29;

    --rack-opacity: 0.85;
    --rack-frame: #2a3647;
    --rack-rail: #121a25;
    --rack-hole: #070b10;
    --rack-server: #1c2633;
    --rack-edge: #33425a;
    --rack-detail: #4b5c75;
    --rack-port: #67799a;
    --led-ok: #4ade80;
    --led-act: #38bdf8;
    --led-warn: #fbbf24;
    --fiber-a: #3ee6da;
    --fiber-b: #facc15;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1017;
  --bg-elev: #121924;
  --bg-sunken: #0e141d;
  --bg-grid: rgba(148, 163, 184, 0.06);
  --border: #222c3a;
  --border-strong: #2f3b4d;
  --text: #e6ebf2;
  --text-muted: #a3afc0;
  --text-faint: #8391a5;

  --accent: #3cc7bd;
  --accent-strong: #6fdcd3;
  --accent-soft: #0f2e2d;
  --accent-contrast: #04211f;

  --ok: #4ade80;
  --ok-soft: #0f2a1b;
  --bad: #f87171;
  --bad-soft: #351616;
  --warn: #fbbf24;
  --warn-soft: #33260a;
  --holiday: #b69cff;
  --holiday-soft: #261d42;

  --sea: #0f2233;
  --land: #151d29;

  --rack-opacity: 0.85;
  --rack-frame: #2a3647;
  --rack-rail: #121a25;
  --rack-hole: #070b10;
  --rack-server: #1c2633;
  --rack-edge: #33425a;
  --rack-detail: #4b5c75;
  --rack-port: #67799a;
  --led-ok: #4ade80;
  --led-act: #38bdf8;
  --led-warn: #fbbf24;
  --fiber-a: #3ee6da;
  --fiber-b: #facc15;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-bg { fill: var(--accent); }
.brand-mark .bm-fg { fill: none; stroke: var(--accent-contrast); stroke-width: 2; }
.brand-mark .bm-dot { fill: var(--accent-contrast); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); letter-spacing: -0.022em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--bg-sunken); border: 1px solid var(--border); padding: 0.05em 0.35em; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast);
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 1.05rem; }
.brand-name span { color: var(--accent); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 11px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; font-size: 0.93rem; font-weight: 500;
}
.nav-list a:hover { color: var(--text); background: var(--bg-sunken); }

.header-tools { display: flex; align-items: center; gap: 8px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis;
}
.status-pill:hover { color: var(--text); border-color: var(--border-strong); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.status-pill.is-open { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); background: var(--ok-soft); }
.status-pill.is-open .status-dot { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.2s infinite; }
.status-pill.is-closed { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); background: var(--bad-soft); }
.status-pill.is-closed .status-dot { background: var(--bad); }
.status-pill.is-vacation { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--border)); background: var(--warn-soft); }
.status-pill.is-vacation .status-dot { background: var(--warn); }
.status-pill.is-limited { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.status-pill.is-limited .status-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a, .lang-switch span { padding: 5px 9px; text-decoration: none; color: var(--text-muted); }
.lang-switch a:hover { color: var(--text); background: var(--bg-sunken); }
.lang-switch [aria-current="true"] { background: var(--text); color: var(--bg); }
.lang-switch .sep { padding: 0; width: 1px; align-self: stretch; background: var(--border); }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--text-muted); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .nav { margin-left: auto; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 0.98rem; }
  .status-pill .status-text-long { display: none; }
  .status-pill { max-width: 150px; }
  .header-inner { gap: 10px; }
  .header-tools { gap: 6px; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}

/* ---- Notice banner ------------------------------------------------------- */
.notice-banner {
  background: var(--warn-soft); color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, var(--border));
  font-size: 0.93rem;
}
.notice-banner .container { display: flex; gap: 12px; align-items: flex-start; padding-top: 11px; padding-bottom: 11px; }
.notice-banner svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.notice-banner strong { color: var(--warn); }
.notice-banner p { margin: 0; }
.notice-banner a { font-weight: 600; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Animated racks + fiber (assets/js/rack-bg.js). Faded on the left so text stays readable. */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg canvas {
  display: block; width: 100%; height: 100%;
  opacity: var(--rack-opacity);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.75) 55%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.75) 55%, #000 75%);
}
@media (max-width: 900px) {
  .hero-bg canvas {
    opacity: calc(var(--rack-opacity) * 0.45);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 60%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 60%);
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.03rem, 0.95rem + 0.4vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text-muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

.console {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; font-family: var(--font-mono); font-size: 0.84rem;
}
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-sunken); color: var(--text-faint); font-size: 0.76rem; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.console-bar span { margin-left: 8px; }
.console-body { padding: 16px 18px 18px; }
.console-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.console-row:last-child { border-bottom: 0; }
.console-row dt { color: var(--text-faint); }
.console-row dd { margin: 0; color: var(--text); }
.console .ok { color: var(--ok); }
.console .bad { color: var(--bad); }
.console .warn { color: var(--warn); }
.console dl { margin: 0; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-sunken); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--text-muted); font-size: 1.04rem; margin: 0; }
.kicker { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }

/* ---- Services ------------------------------------------------------------ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); }
.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text-muted); }
.card-flag { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--warn); }
.card-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad);
  font-size: 0.8rem; font-weight: 600; line-height: 1.45;
}
.card-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ---- Update policy ------------------------------------------------------- */
.policy {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 40px);
  padding: clamp(20px, 3vw, 32px); background: var(--bg-elev); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .policy { grid-template-columns: 1fr; } }
.policy-quote { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 14px; color: var(--text); }
.policy-quote s { color: var(--bad); text-decoration-thickness: 2px; font-weight: 700; }
.policy p { color: var(--text-muted); }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; align-content: center; }
.policy-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.policy-list .card-icon { width: 38px; height: 38px; margin: 0; }
.policy-list strong { display: block; color: var(--text); font-size: 0.97rem; }
.policy-list span { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Coverage / map ------------------------------------------------------ */
.coverage-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .coverage-grid { grid-template-columns: 1fr; } }

.map-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.map-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.map-card-head h3 { margin: 0; font-size: 0.98rem; }
.map-card-head span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.map-svg { width: 100%; height: auto; background: var(--sea); }
.map-svg .land { fill: var(--land); stroke: var(--border-strong); stroke-width: 1.5; }
.map-svg .coast { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.map-svg .zone { stroke-width: 1.5; stroke-linejoin: round; }
.map-svg .zone-full { fill: color-mix(in srgb, var(--accent) 26%, transparent); stroke: var(--accent); }
.map-svg .zone-partial { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-dasharray: 5 4; }
.map-svg .zone-base { fill: color-mix(in srgb, var(--accent) 42%, transparent); stroke: var(--accent-strong); stroke-width: 2.2; }
.map-svg .zone-label { fill: var(--text); font-family: var(--font-sans); font-size: 13px; font-weight: 700; }
.map-svg .zone-sub { fill: var(--text-muted); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; }
.map-svg .sea-label { fill: var(--text-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em; }
.map-svg .ctx-label { fill: var(--text-faint); font-family: var(--font-sans); font-size: 11px; font-style: italic; }
.map-svg .pin { fill: var(--accent-strong); stroke: var(--bg-elev); stroke-width: 2; }
.map-svg .pin-ring { fill: none; stroke: var(--accent-strong); stroke-width: 1.5; opacity: .5; }
.map-svg .compass { fill: var(--text-faint); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.map-svg .compass-line { stroke: var(--text-faint); stroke-width: 1.5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--border); list-style: none; margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 12px; border-radius: 3px; border: 1.5px solid var(--accent); flex: none; }
.swatch-base { background: color-mix(in srgb, var(--accent) 42%, transparent); border-color: var(--accent-strong); }
.swatch-full { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.swatch-partial { background: color-mix(in srgb, var(--accent) 10%, transparent); border-style: dashed; }
.map-note { padding: 0 18px 14px; margin: 0; font-size: 0.78rem; color: var(--text-faint); }

.area-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.area-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.area-list .area-name { font-weight: 600; }
.badge { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge-base { background: var(--accent); color: var(--accent-contrast); }
.badge-full { background: var(--accent-soft); color: var(--accent); }
.badge-partial { background: var(--bg-sunken); color: var(--text-muted); border: 1px dashed var(--border-strong); }

.callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  font-size: 0.93rem; color: var(--text-muted);
}
.callout svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; }
.callout strong { color: var(--text); }
.callout-warn { border-left-color: var(--warn); }
.callout-warn svg { color: var(--warn); }
.callout-bad { border-left-color: var(--bad); }
.callout-bad svg { color: var(--bad); }

/* ---- Hours & calendar ---------------------------------------------------- */
.hours-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .hours-grid { grid-template-columns: 1fr; } }

.panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.panel h3 { display: flex; align-items: center; gap: 10px; }
.panel h3 svg { width: 19px; height: 19px; color: var(--accent); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table th, .hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; }
.hours-table th { font-weight: 500; color: var(--text-muted); }
.hours-table td { text-align: right; font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--bad); }
.hours-table .limited { color: var(--accent); }
.hours-table th { padding-right: 12px; }
.limited-note { margin-top: 14px; }
.hours-table tr.is-today th { color: var(--text); font-weight: 700; }
.hours-table tr.is-today th::after { content: " ●"; color: var(--accent); font-size: 0.7em; vertical-align: middle; }
.tz-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--text-faint); }

.calendar { padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-title { margin: 0; font-size: 1.08rem; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-dow { text-align: center; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--text-faint); text-transform: uppercase; padding: 4px 0; letter-spacing: .04em; }
.cal-day {
  position: relative; aspect-ratio: 1 / 0.86; min-height: 40px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  padding: 6px 7px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer; text-align: left;
}
.cal-day:hover { border-color: var(--text-faint); }
.cal-day .cal-mark { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; line-height: 1; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-day.is-blank { visibility: hidden; pointer-events: none; }
.cal-day.is-open { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, var(--border)); }
.cal-day.is-open .cal-mark { color: var(--ok); }
.cal-day.is-weekly-closed { background: var(--bg-sunken); color: var(--text-faint); }
.cal-day.is-holiday { background: var(--holiday-soft); border-color: color-mix(in srgb, var(--holiday) 40%, var(--border)); }
.cal-day.is-holiday .cal-mark { color: var(--holiday); }
.cal-day.is-vacation {
  background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 6px, color-mix(in srgb, var(--warn) 14%, var(--warn-soft)) 6px, color-mix(in srgb, var(--warn) 14%, var(--warn-soft)) 12px);
  border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
}
.cal-day.is-vacation .cal-mark { color: var(--warn); }
.cal-day.is-partial { background: linear-gradient(135deg, var(--warn-soft) 50%, var(--ok-soft) 50%); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.cal-day.is-partial .cal-mark { color: var(--warn); }
.cal-day.is-past { opacity: 0.5; }
.cal-day.is-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }
@media (max-width: 520px) {
  .calendar { padding: 12px; }
  .cal-grid { gap: 3px; }
  .cal-day { padding: 4px; font-size: 0.78rem; aspect-ratio: 1 / 1; min-height: 36px; }
  .cal-day .cal-mark { font-size: 0; }
  .cal-day .cal-mark::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .cal-day.is-weekly-closed .cal-mark::before { display: none; }
}

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); display: inline-block; }
.cal-legend .lg-open { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.cal-legend .lg-closed { background: var(--bg-sunken); }
.cal-legend .lg-holiday { background: var(--holiday-soft); border-color: color-mix(in srgb, var(--holiday) 45%, var(--border)); }
.cal-legend .lg-vacation { background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 3px, color-mix(in srgb, var(--warn) 25%, var(--warn-soft)) 3px, color-mix(in srgb, var(--warn) 25%, var(--warn-soft)) 6px); border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
.cal-legend .lg-today { outline: 2px solid var(--accent); outline-offset: 1px; }

.cal-detail {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); border: 1px solid var(--border); font-size: 0.9rem; min-height: 46px;
}
.cal-detail strong { display: block; text-transform: capitalize; }
.cal-detail span { color: var(--text-muted); }
.cal-error { color: var(--bad); font-size: 0.9rem; }

/* ---- Contact & support --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.panel-title-row h3 { margin: 0; }
.pill { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-muted { background: var(--bg-sunken); color: var(--text-muted); border: 1px solid var(--border); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 0.94rem; color: var(--text-muted); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-sunken); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.steps strong { color: var(--text); }

.email-big {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius); background: var(--bg-sunken); border: 1px solid var(--border); margin-bottom: 18px;
}
.email-big a { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; text-decoration: none; word-break: break-all; }

.builder { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.builder h4 { font-size: 1rem; margin-bottom: 4px; }
.builder > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: 0.76rem; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.94rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 9px 11px; min-width: 0;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8699' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.field-req { color: var(--bad); }
.builder-warning { margin: 0 0 12px; }
.builder-warning[hidden] { display: none; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.builder-feedback { margin: 10px 0 0; font-size: 0.86rem; min-height: 1.4em; color: var(--ok); font-weight: 600; }
.builder-feedback.is-error { color: var(--bad); }
.builder-preview { margin-top: 14px; }
.builder-preview summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.builder-preview pre {
  margin: 10px 0 0; padding: 14px; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; color: var(--text);
}
.privacy-mini { margin: 12px 0 0; font-size: 0.76rem; color: var(--text-faint); }

.support-stack { display: grid; gap: 16px; }
.channel { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.channel:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.channel .card-icon { margin: 0; }
.channel h4 { margin: 0 0 4px; font-size: 0.98rem; }
.channel p { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-muted); }
.channel .big-link { font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; text-decoration: none; }

.nogo { border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); }
.nogo h3 svg { color: var(--bad); }
.nogo-list { list-style: none; padding: 0; margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.nogo-list li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--bad-soft); color: var(--bad); font-size: 0.82rem; font-weight: 600;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.nogo-list svg { width: 13px; height: 13px; }
.nogo p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.lang-band { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.lang-band p { margin: 0; color: var(--text-muted); max-width: 70ch; }
.lang-chips { display: flex; gap: 8px; }
.lang-chips span { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-elev); }

/* ---- Legal pages --------------------------------------------------------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 10px; }
.legal-meta { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.legal section { margin-bottom: 30px; }
.legal h2 { font-size: 1.22rem; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.legal h2 .num { font-family: var(--font-mono); color: var(--accent); font-size: 0.95rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.legal-toc { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 32px; font-size: 0.92rem; }
.legal-toc ol { margin: 6px 0 0; }
.legal-toc li { margin-bottom: 3px; }
.legal-crumb { font-size: 0.86rem; margin-bottom: 18px; }
.legal-crumb a { text-decoration: none; }

/* ---- 404 ----------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.error-code { font-family: var(--font-mono); font-size: clamp(3.5rem, 10vw, 6rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { padding: 40px 0 32px; font-size: 0.9rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { margin: 12px 0 0; max-width: 36ch; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--text-faint); }
.footer-legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-weight: 600; }

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .notice-banner, .site-footer, .builder, .cal-nav, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .legal { padding: 16px 0; border: 0; }
  a { color: #000; }
}
