/* Base — what every page shares and nothing else.
 *
 * Scope rules (HAVC discipline carried into static pages): this file owns
 * tokens' consumption, the reset, typography, nav, footer, buttons, the
 * generic section/card shells and the cookie bar. Every page ships its own
 * stylesheet with a page prefix (home-, faq-, price-, legal-, sec-) and no
 * page ever reaches into another page's classes.
 */

@import url("/assets/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

/* A display face at 3.5rem punishes a bad break: "lands." alone on a third
   line is the difference between a headline and a paragraph that happens to be
   large. `balance` evens the line lengths; `pretty` only pulls the last word
   back. Neither is load-bearing — a browser without them wraps as before. */
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
p, .lede, li { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p  { color: var(--muted); }
a  { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .92em; }
/* A 52-character kubectl -o jsonpath=... has no break opportunity in it, and
   one of those in a list item made security.html 523px wide on a 390px phone —
   the whole page scrolled sideways. Inline code may break anywhere; copying it
   still yields the unbroken string. */
:where(p, li, td, dd) > code { overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.mono { font-family: var(--mono); }

/* Visible only to a screen reader — used for the skip link and for labels that
   the layout carries visually but the markup still owes an assistive user. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--accent); color: #0B1B2B; font-weight: 600;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ── navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 14px; font-family: var(--disp); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; }
/* One ground, so one wordmark: the white lockup. It carries the company name,
   so it is sized to be read rather than to be a bullet beside the nav. */
.brand-mark { height: 70px; width: auto; }
/* The mark carries the identity and the product name sits beside it, so the
   parent brand stays legible without repeating itself in a wordmark. */
.nav__lockup { display: grid; gap: 1px; line-height: 1.1; }
.nav__parent { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.nav__product { font-family: var(--disp); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 700px) { .nav__product { font-size: 1.25rem; } }
.foot__brand .brand-mark { height: 76px; }
@media (max-width: 700px) { .brand-mark { height: 52px; } }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__link { color: var(--muted); font-size: .94rem; transition: color .15s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__tools { display: flex; align-items: center; gap: 8px; }

.nav__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--muted);
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.nav__icon:hover { border-color: var(--line-2); color: var(--text); }
.nav__icon svg { width: 17px; height: 17px; }

.nav__lang {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding-inline: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: .84rem; font-weight: 600; letter-spacing: .04em;
}
.nav__lang:hover { border-color: var(--line-2); color: var(--text); }

.nav__burger { display: none; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .nav__links[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__burger { display: grid; margin-left: auto; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #0B1B2B; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 38px; padding-inline: 16px; font-size: .89rem; }
.btn svg { width: 16px; height: 16px; }

/* ── generic shells ─────────────────────────────────────────────────────── */

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint { background: var(--bg-raise); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 62ch; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.pill--ok   { color: var(--green);    background: var(--green-soft);    border-color: var(--green-bd); }
.pill--err  { color: var(--red);   background: var(--red-soft);   border-color: var(--red-bd); }
.pill--amber{ color: var(--accent); background: var(--accent-soft); border-color: var(--accent-bd); }

/* ── footer ─────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); background: var(--bg-raise); padding-block: 56px 32px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 28px; }
.foot__brand .brand-mark { margin-bottom: 14px; }
.foot__note { font-size: .9rem; max-width: 34ch; }
.foot__title { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot__list { list-style: none; display: grid; gap: 9px; }
.foot__list a { color: var(--muted); font-size: .93rem; }
.foot__list a:hover { color: var(--accent); }
.foot__bar {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  color: var(--faint); font-size: .86rem;
}
.foot__bar a { color: var(--faint); }
.foot__bar a:hover { color: var(--muted); }
.foot__sep { margin-left: auto; }

@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__sep { margin-left: 0; }
  /* A 0.93rem link is an 18px-tall target, and a thumb is not a mouse
     pointer. The row keeps its rhythm because the gap gives back what the
     padding takes: the links grow into the space between them, not below it.
     Inline links inside a sentence are left alone — WCAG exempts them, and
     padding one would break the line box around it. */
  .foot__list { gap: 0; }
  .foot__list a { display: inline-block; padding-block: 11px; }
  .foot__bar { gap: 4px 20px; }
  .foot__bar a { display: inline-block; padding-block: 12px; }
}


/* Deployment marker: this site is running as a dev preview. Remove the tag
   (layout.html + this rule) at launch. */
.dev-tag {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--accent-bd); background: var(--bg-raise);
  color: var(--accent); font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}
