/* OneXWave Technologies: site styles.
   Layout, scale, spacing and colours reproduce what was measured on hashicorp.com (see notes/hashicorp-measure.md).
   Written from scratch; no HashiCorp CSS is used. */

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/inter-tight.woff2) format('woff2'); }

/* ------------------------------------------------------------------ Tokens (measured) */
:root {
  --bg: #0d0e12;
  --bg-raised: #15181e;
  --bg-raised-2: #2b303c;
  --text-strong: #efeff1;
  --text: #d5d7db;
  --text-muted: #b2b6bd;
  --line: rgba(178, 182, 189, .1);
  --line-strong: rgba(178, 182, 189, .4);

  --nav-bg: #ffffff;
  --nav-ink: #0c0c0e;
  --nav-link: #3b3d45;
  --nav-muted: #656a76;
  --nav-hover: #f1f2f3;
  --nav-line: #e5e6e9;
  --nav-foot: #fafafa;

  --blue: #1060ff;
  --blue-border: #0c56e9;
  --blue-hover: #0c56e9;
  --blue-dark-ui: #2b89ff;
  --blue-dark-ui-border: #389aff;
  --blue-logo: #2264d6;

  --btn-light: #fafafa;
  --btn-light-text: #3b3d45;
  --btn-light-border: rgba(59, 61, 69, .4);
  --btn-shadow: rgba(97, 104, 117, .05) 0 1px 1px 0, rgba(97, 104, 117, .05) 0 2px 2px 0;

  --badge-bg: #42225b;
  --badge-border: #b457ff;
  --card-a: #6c81ff;
  --card-b: #c08dff;
  --mega-shadow: rgba(101, 106, 118, .15) 0 2px 3px 0, rgba(101, 106, 118, .2) 0 16px 16px -10px;

  --font-display: 'Inter Tight', system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica, arial, sans-serif;
  --font-body: system-ui, -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica, arial, sans-serif;
  --bar-h: 64px;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html:has(.subnav) { scroll-padding-top: 144px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/26px var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--blue-dark-ui); outline-offset: 2px; border-radius: 4px; }
.topbar :focus-visible, .mega :focus-visible, .drawer :focus-visible { outline-color: var(--blue); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 5px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.js .nojs-only { display: none !important; }
.no-js .js-only { display: none !important; }

.container { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 767px) { .container { max-width: 616px; padding: 0 24px; } }

/* ------------------------------------------------------------------ Type (measured) */
.h1, .h2, .h3, .h-cta, .eyebrow, .stat-n, .card-headline { font-family: var(--font-display); }
.h1 { font-size: clamp(42px, 5.7vw, 82px); line-height: 1.17; font-weight: 600; color: var(--text-strong); padding-bottom: 12px; text-wrap: balance; }
.h1-product { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.197; }
.h2 { font-size: clamp(26px, 3.62vw, 52px); line-height: 1.19; font-weight: 600; color: var(--text-strong); text-wrap: balance; }
.h3 { font-size: clamp(26px, 2.36vw, 34px); line-height: 1.18; font-weight: 700; color: var(--text-strong); }
.h-cta { font-size: clamp(19px, 2.36vw, 34px); line-height: 1.18; font-weight: 600; color: var(--text-strong); }
.lead { font-size: 20px; line-height: 30px; color: var(--text-strong); }
.lead-muted { font-size: 20px; line-height: 30px; color: var(--text-muted); }
@media (max-width: 767px) { .lead, .lead-muted { font-size: 16px; line-height: 27px; } }
.body { font-size: 16px; line-height: 27px; color: var(--text-muted); }
.body + .body { margin-top: 12px; }
.small { font-size: 14px; line-height: 24px; color: var(--text-muted); }
.eyebrow { font-size: 13px; line-height: 22px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted); }
.body a, .small a { color: var(--blue-dark-ui); }

/* ------------------------------------------------------------------ Buttons (measured) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 11px 19px; border-radius: 5px; border: 1px solid transparent; font: 500 16px/26px var(--font-body); text-decoration: none; white-space: nowrap; box-shadow: var(--btn-shadow); transition: background-color .15s, border-color .15s; }
.btn-sm { height: 36px; padding: 5px 15px; }
.btn-xs { height: 28px; padding: 6px 11px; font-size: 14px; line-height: 16px; }
.btn-light { background: var(--btn-light); color: var(--btn-light-text); border-color: var(--btn-light-border); }
.btn-light:hover { background: #fff; border-color: var(--btn-light-text); }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue-border); }
.btn-blue:hover { background: var(--blue-hover); }
.btn-blue-dark { background: var(--blue-dark-ui); color: var(--bg); border-color: var(--blue-dark-ui-border); }
.btn-blue-dark:hover { background: var(--blue-dark-ui-border); }
.btn-product { background: var(--p-a); color: var(--p-on); border-color: rgba(178, 182, 189, .2); }
.btn-product:hover { filter: brightness(1.08); }
.btn svg { flex: none; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-weight: 500; color: var(--text-strong); text-decoration: none; border: 1px solid transparent; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-blue { color: var(--blue-dark-ui); font-size: 14px; line-height: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
@media (max-width: 767px) { .actions-stack .btn { width: 100%; } }

/* ------------------------------------------------------------------ Top bar (measured) */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: var(--nav-bg); color: var(--nav-ink); }
.bar { display: flex; align-items: center; height: var(--bar-h); padding: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--nav-ink); flex: none; margin-right: 24px; }
.brand-name { font: 600 22px/1 var(--font-display); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 4px; color: var(--nav-link); font: 500 15.008px/24px var(--font-body); text-decoration: none; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { background: var(--nav-hover); color: var(--nav-ink); }
.i-chev { transition: transform .2s; }
[aria-expanded="true"] > .i-chev { transform: rotate(180deg); }
.bar-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.menu-btn { display: none; place-items: center; width: 40px; height: 40px; border-radius: 4px; color: var(--nav-ink); }
.menu-btn:hover { background: var(--nav-hover); }
@media (max-width: 999px) {
  .nav, .bar-right .btn { display: none; }
  .menu-btn { display: grid; }
}

/* Mega-menu (measured: 624 wide, 8 below the bar, radius 8) */
.mega { position: absolute; top: calc(100% + 20px); left: 0; width: 624px; padding: 12px; background: var(--nav-bg); border-radius: 8px; box-shadow: var(--mega-shadow); color: var(--nav-ink); }
.mega[hidden] { display: none; }
.mega-group-head { display: flex; gap: 12px; padding: 8px 16px; margin-bottom: 8px; border-radius: 4px; text-decoration: none; }
.mega-group-head:hover { background: var(--nav-hover); }
.mega-title { font: 600 14px/24px var(--font-body); color: var(--nav-ink); }
.mega-text { font: 400 14px/24px var(--font-body); letter-spacing: .175px; color: var(--nav-muted); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 300px); row-gap: 8px; }
.mega-tile { display: flex; gap: 12px; padding: 8px 16px; border-radius: 4px; text-decoration: none; }
.mega-tile:hover { background: var(--nav-hover); }
.mega-tile .p-icon { margin-top: 2px; }
.mega-line { height: 1px; background: var(--nav-line); margin: 16px 0; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; border-radius: 4px; background: var(--nav-foot); border: 1px solid var(--nav-line); }
.mega-foot-text { display: flex; gap: 12px; }
.mega-foot-link { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/24px var(--font-body); color: var(--nav-ink); text-decoration: none; white-space: nowrap; }
.mega-foot-link:hover { text-decoration: underline; }

/* Icons for products and the mark */
.p-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 4px; background: var(--p-a); color: var(--p-on); }
.p-icon svg { width: 60%; height: 60%; }
.p-icon-lg { width: 48px; height: 48px; border-radius: 6px; }
.p-icon-xl { width: 96px; height: 96px; border-radius: 12px; }
.mark { flex: none; }

/* Mobile drawer (measured layout) */
.drawer { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--nav-bg); color: var(--nav-ink); overflow-y: auto; overscroll-behavior: contain; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--nav-line); flex: none; }
.drawer-head .menu-btn { display: grid; }
.drawer-back { display: inline-flex; align-items: center; gap: 4px; font: 500 16px/24px var(--font-body); color: var(--blue); }
.drawer-view[hidden] { display: none; }
.drawer-row { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--nav-line); font: 600 16px/24px var(--font-body); color: var(--nav-ink); text-decoration: none; text-align: left; }
.drawer-row:hover { background: var(--nav-hover); }
.drawer-sub { padding: 24px; display: grid; gap: 8px; }
.drawer-sub .mega-tile { padding: 8px 16px; }
.drawer-sub .mega-group-head { background: var(--nav-hover); margin-bottom: 8px; }
.drawer-foot { margin-top: auto; display: grid; gap: 16px; padding: 32px 24px; background: var(--nav-foot); }
.drawer-foot .btn { height: 36px; padding: 5px 15px; }
body.drawer-open { overflow: hidden; }

/* ------------------------------------------------------------------ Sections */
.section { position: relative; background: var(--bg); }
.pt-128 { padding-top: 128px; } .pb-128 { padding-bottom: 128px; }
.pt-88 { padding-top: 88px; } .pb-88 { padding-bottom: 88px; }
.pt-64 { padding-top: 64px; } .pb-64 { padding-bottom: 64px; }
@media (max-width: 767px) {
  .pt-128 { padding-top: 64px; } .pb-128 { padding-bottom: 64px; }
  .pt-88 { padding-top: 48px; } .pb-88 { padding-bottom: 48px; }
  .pt-64 { padding-top: 32px; } .pb-64 { padding-bottom: 32px; }
}
.raised { background: var(--bg-raised); }

/* ------------------------------------------------------------------ Hero (home, measured: 540 tall) */
.hero { position: relative; overflow: hidden; min-height: 540px; display: flex; align-items: center; padding: 96px 0; isolation: isolate; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 70%, var(--bg) 100%),
    linear-gradient(161deg, transparent 0 34%, rgba(10, 8, 30, .95) 34% 47%, transparent 47%),
    linear-gradient(161deg, transparent 0 46.6%, rgba(192, 141, 255, .55) 46.8%, transparent 47.4%),
    radial-gradient(40% 70% at 88% 8%, rgba(255, 190, 255, .55), transparent 70%),
    radial-gradient(45% 55% at 12% 88%, rgba(192, 141, 255, .55), transparent 70%),
    linear-gradient(120deg, #4b3a9a 0%, #1d1a5c 38%, #241f70 60%, #3a2fb8 100%);
}
.hero-inner { width: 100%; }
.callout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-bottom: 32px; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--badge-border); background: var(--badge-bg); color: var(--text-strong); font: 500 13px/16px var(--font-body); }
.callout-text { color: var(--text-strong); font-size: 14px; line-height: 24px; }
.hero .lead { padding-bottom: 12px; max-width: 840px; margin: 0 auto; }
.hero .actions { justify-content: center; margin-top: 32px; }
@media (max-width: 767px) {
  .hero { min-height: 540px; }
  .callout-row { padding-bottom: 20px; }
  .hero .lead { font-size: 14px; line-height: 24px; }
}

/* Logo strip (our products, greyscale like theirs) */
.logo-strip { text-align: center; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 72px; margin-top: 40px; }
.logo-item { display: inline-flex; align-items: center; gap: 12px; color: #8f939b; text-decoration: none; font: 700 26px/1 var(--font-display); letter-spacing: -0.01em; filter: grayscale(1); opacity: .9; transition: color .15s, filter .15s, opacity .15s; }
.logo-item .p-icon { width: 40px; height: 40px; border-radius: 8px; background: #3a3d45; color: #c9ccd2; }
.logo-item:hover { color: var(--text-strong); filter: none; opacity: 1; }
.logo-item:hover .p-icon { background: var(--p-a); color: var(--p-on); }
@media (max-width: 767px) { .logo-row { flex-direction: column; gap: 28px; } .logo-item { font-size: 22px; } }

/* Callout bar (measured) */
.callout { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; }
.callout-title { display: flex; align-items: center; justify-content: center; padding: 20px 32px; background: #0a0b0e; color: var(--text-strong); font: 500 16px/27px var(--font-body); text-align: center; }
.callout-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: var(--bg-raised); }
.callout-body .small { font-size: 13px; line-height: 18px; }
.callout-more { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--text-strong); font: 600 14px/24px var(--font-body); }
.callout:hover .callout-more { text-decoration: underline; }
@media (max-width: 767px) {
  .callout { grid-template-columns: 1fr; }
  .callout-body { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* Split (measured: text 488 at x112, art in the right half) */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 64px; align-items: center; }
.split-text { grid-column: 1 / span 5; }
.split-art { grid-column: 7 / span 6; display: flex; justify-content: center; }
.split-rev .split-text { grid-column: 8 / span 5; grid-row: 1; }
.split-rev .split-art { grid-column: 1 / span 6; grid-row: 1; }
.split-text > * + * { margin-top: 24px; }
.split-text .h2 + .body, .split-text .h3 + .body { margin-top: 24px; }
.split-text .body + .body { margin-top: 12px; }
.split-text .actions { margin-top: 32px; }
.art { width: 100%; max-width: 560px; height: auto; }
.eyebrow-logo { display: flex; align-items: center; gap: 8px; font: 600 16px/24px var(--font-display); color: var(--text-strong); }
.eyebrow-logo .mark-box { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--text-strong); border-radius: 3px; }
@media (max-width: 999px) {
  .split { grid-template-columns: 1fr; row-gap: 48px; }
  .split-text, .split-art, .split-rev .split-text, .split-rev .split-art { grid-column: 1; grid-row: auto; }
  .split-rev .split-art { order: 2; }
}

/* Section heads */
.head { max-width: 592px; }
.head > * + * { margin-top: 24px; }
.head-center { max-width: 800px; margin: 0 auto; text-align: center; }
.head-center > * + * { margin-top: 24px; }
.head-wide { max-width: none; }

/* Tabs (measured) */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; }
.tab { position: relative; padding: 0 12px 8px; color: var(--text); font: 500 16px/24px var(--font-body); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--blue-dark-ui); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue-dark-ui); }
.tab-panels { margin-top: 72px; }
.tab-panel + .tab-panel { margin-top: 72px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
@media (max-width: 767px) { .tab-panels { margin-top: 40px; } }

/* Product family cards (measured) */
.families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 999px) { .families { grid-template-columns: 1fr; gap: 56px; } }
.family-card { display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 98px; padding: 12px; border-radius: 8px; background: linear-gradient(-45deg, var(--p-b), var(--p-a)); color: var(--p-on); text-decoration: none; }
.family-name { font: 600 20px/30px var(--font-body); }
.family-aud { font: 400 14px/24px var(--font-body); }
.family-dot { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; }
.family-dot svg { width: 18px; height: 18px; }
.family { display: flex; flex-direction: column; }
.family .small { margin-top: 24px; }
.family > .link { align-self: flex-start; margin-bottom: 40px; }
.family > .actions { margin-bottom: 40px; }
.family .link { margin-top: 16px; font-size: 14px; }
.family-rule { height: 2px; margin: auto 0 24px; background: var(--p-a); opacity: .85; }
.family-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.family-item { padding: 8px; border-radius: 8px; }
.family-item-name { display: flex; align-items: center; gap: 8px; font: 700 18px/24px var(--font-display); color: var(--text); }
.family-item-name svg { width: 22px; height: 22px; color: var(--p-text-dark); flex: none; }
.family-item-line { font-size: 13px; line-height: 22px; color: var(--text-muted); margin-top: 4px; }

/* Tile cloud with stats (measured) */
.cloud { position: relative; min-height: 520px; }
.cloud-center { position: relative; z-index: 1; max-width: 512px; margin: 0 auto; text-align: center; padding: 100px 0 40px; }
.cloud-center > * + * { margin-top: 20px; }
.cloud-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px !important; }
.stats { display: flex; justify-content: center; gap: 24px; margin-top: 24px !important; }
.stat { min-width: 140px; }
.stat-n { font-size: 26px; line-height: 31px; font-weight: 700; color: var(--text-strong); }
.stat-l { color: var(--text); }
.tile { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 2px; border: 1px solid rgba(178, 182, 189, .22); background: linear-gradient(135deg, #3a3c42 0%, #1d1f24 60%, #26282d 100%); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7); }
.tile-big { width: 176px; height: 176px; }
.tile-wide { width: 176px; }
.tile .p-icon { width: 36px; height: 36px; }
.tile-big .p-icon { width: 72px; height: 72px; border-radius: 10px; }
.tile-label { font: 700 15px/1 var(--font-display); color: var(--text); }
@media (max-width: 999px) {
  .tile { display: none; }
  .cloud-center { padding: 0; }
  .cloud { min-height: 0; }
  .stats { justify-content: flex-start; flex-wrap: wrap; }
  .cloud-center { text-align: left; }
  .cloud-links { justify-content: flex-start; }
}
@media (max-width: 767px) { .stat { min-width: 0; flex: 1; } .stat-n { font-size: 17px; line-height: 20px; } }

/* Resources (measured) */
.news { display: grid; grid-template-columns: 488px minmax(0, 1fr); gap: 32px; margin-top: 32px; }
.news-feature { display: grid; gap: 24px; text-decoration: none; }
.news-img { aspect-ratio: 488 / 330; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--p-b), var(--p-a)); color: var(--p-on); }
.news-img .p-icon { background: var(--p-on); color: var(--p-a); width: 96px; height: 96px; border-radius: 16px; }
.card-headline { font-size: 26px; line-height: 31px; font-weight: 700; color: var(--text-strong); }
.news-feature:hover .card-headline, .news-row:hover .card-headline { text-decoration: underline; text-underline-offset: 3px; }
.news-list { display: grid; gap: 32px; align-content: start; }
.news-row { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: 24px; text-decoration: none; }
.news-row .news-img { aspect-ratio: 156 / 100; }
.news-row .news-img .p-icon { width: 40px; height: 40px; border-radius: 8px; }
.news-row .card-headline { font-size: 17px; line-height: 20px; margin-top: 4px; }
.news-row .small { margin-top: 8px; }
@media (max-width: 999px) { .news { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .news-row { grid-template-columns: 1fr; }
  .card-headline, .news-row .card-headline { font-size: 19px; line-height: 23px; }
}

/* Closing band (measured) */
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 64px; align-items: center; }
.band-text { grid-column: 1 / span 5; }
.band-text > * + * { margin-top: 16px; }
.band-actions { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
@media (max-width: 999px) {
  .band { grid-template-columns: 1fr; row-gap: 32px; }
  .band-text, .band-actions { grid-column: 1; }
  .band-actions { justify-content: flex-start; }
}
@media (max-width: 767px) { .band-actions { display: grid; } .band-actions .btn { width: 100%; } }

/* ------------------------------------------------------------------ Product pages (measured from /products/terraform) */
.subnav { position: sticky; top: var(--bar-h); z-index: 40; height: 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; height: 64px; padding: 0 16px; }
.subnav-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); font: 600 18px/1 var(--font-display); text-decoration: none; white-space: nowrap; }
.subnav-brand .p-icon { width: 28px; height: 28px; }
.subnav-links { display: flex; margin-left: auto; }
.subnav-links a { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 12px; color: var(--text); font: 500 14px/20px var(--font-body); text-decoration: none; border-radius: 4px; }
.subnav-links a:hover { color: var(--text-strong); background: rgba(178, 182, 189, .08); }
@media (max-width: 767px) {
  .subnav-links a:not(.subnav-visit) { display: none; }
}

.p-hero { padding: 88px 0 64px; }
.p-hero .split-text > * + * { margin-top: 24px; }
.p-hero .actions { margin-top: 32px; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px !important; color: var(--text-muted); font-size: 14px; line-height: 24px; }
.chiplist li { display: inline-flex; align-items: center; gap: 8px; }
.chiplist svg { color: var(--p-text-dark); }
@media (max-width: 767px) { .p-hero { padding: 48px 0 32px; } }

.window { width: 100%; max-width: 560px; background: #15181e; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.window-bar > span:not(.window-url) { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-raised-2); }
.window-url { margin-left: 10px; flex: 1; padding: 2px 10px; border-radius: 4px; background: var(--bg); color: var(--text-muted); font-size: 12px; line-height: 20px; }
.window-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.window-side { border-right: 1px solid var(--line); padding: 14px 0; display: grid; justify-items: center; align-content: start; gap: 14px; }
.window-side i { width: 18px; height: 18px; border-radius: 4px; background: var(--bg-raised-2); }
.window-side i:first-child { background: var(--p-a); }
.window-main { padding: 20px 22px; }
.window-name { font: 700 20px/28px var(--font-display); color: var(--text-strong); }
.window-line { font-size: 13px; color: var(--text-muted); }
.window-rows { margin-top: 16px; display: grid; gap: 10px; }
.window-rows li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 13px; line-height: 19px; color: var(--text-muted); }
.window-rows b { color: var(--text-strong); font-weight: 600; }
.window-rows .dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--p-a); }

.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
@media (max-width: 999px) { .cols4, .cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cols4, .cols3 { grid-template-columns: 1fr; margin-top: 40px; } }
.col-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--p-text-dark, var(--text-strong)); margin-bottom: 24px; }
.col-title { font-weight: 700; font-size: 16px; line-height: 27px; color: var(--text-strong); }
.col-text { font-size: 16px; line-height: 27px; color: var(--text); margin-top: 8px; }

.fcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
@media (max-width: 999px) { .fcards { grid-template-columns: 1fr; } }
.fcard { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #1b1e25, #121419); border: 1px solid var(--line); }
.fcard-art { height: 120px; position: relative; overflow: hidden; background: radial-gradient(80% 120% at 80% 0%, color-mix(in srgb, var(--p-a) 45%, transparent), transparent 70%), #15181e; border-bottom: 1px solid var(--line); }
.fcard-art::after { content: ''; position: absolute; left: 24px; right: 40%; bottom: 24px; height: 10px; border-radius: 3px; background: var(--p-a); opacity: .8; box-shadow: 0 -22px 0 rgba(178,182,189,.18), 60px -44px 0 rgba(178,182,189,.12); }
.fcard-text { padding: 24px; font-size: 14px; line-height: 24px; color: var(--text-strong); }
.fcard-text strong { font-weight: 700; }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 5px; border: 1px solid var(--p-a); color: var(--p-text-dark); font-size: 12px; line-height: 18px; vertical-align: 1px; }

.quote-band { display: grid; grid-template-columns: 40% 60%; border-radius: 8px; overflow: hidden; }
.quote-art { display: grid; place-items: center; min-height: 360px; background: linear-gradient(-45deg, var(--p-b), var(--p-a)); color: var(--p-on); }
.quote-art .p-icon { background: var(--p-on); color: var(--p-a); }
.quote-panel { padding: 72px 56px; background: linear-gradient(135deg, #2b303c, #1b1e25); border-radius: 0 8px 8px 0; display: grid; align-content: center; gap: 32px; }
.quote-text { font-size: 20px; line-height: 30px; color: var(--text-strong); }
.quote-who { font-size: 16px; color: var(--text); }
.quote-who b { display: block; font-size: 20px; line-height: 30px; }
@media (max-width: 999px) { .quote-band { grid-template-columns: 1fr; } .quote-art { min-height: 220px; } .quote-panel { padding: 40px 24px; border-radius: 0 0 8px 8px; } }

.word-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin-top: 32px; }
.word-strip li { font: 700 20px/1.2 var(--font-display); color: #8f939b; }
@media (max-width: 767px) { .word-strip { gap: 12px 24px; } .word-strip li { font-size: 17px; } }

.prow-list { display: grid; gap: 24px; }
.prow-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px !important; padding-top: 24px; border-top: 2px solid var(--line-strong); }
.prow-row a { display: inline-flex; align-items: center; gap: 8px; padding: 8px; color: var(--text); text-decoration: none; font: 700 16px/1 var(--font-display); }
.prow-row a:hover { color: var(--text-strong); text-decoration: underline; }
.prow-row .p-icon { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ Other pages */
.page-hero { padding: 88px 0; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(108, 129, 255, .22), transparent 70%), var(--bg); }
.page-hero .h1 { max-width: 900px; }
.page-hero .lead-muted { max-width: 700px; margin-top: 12px; }
@media (max-width: 767px) { .page-hero { padding: 48px 0; } }

.cards-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 999px) { .cards-row { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.pcard .small { flex: 1; }

.facts { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; width: 100%; max-width: 560px; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-muted); }
.facts dd { color: var(--text-strong); font-weight: 600; overflow-wrap: anywhere; }
.facts a { color: var(--blue-dark-ui); text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
@media (max-width: 767px) { .topics { grid-template-columns: 1fr; margin-top: 40px; } }
.topic { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raised); text-decoration: none; transition: border-color .15s; }
.topic:hover { border-color: var(--text-muted); }
.topic-title { font: 700 19px/23px var(--font-display); color: var(--text-strong); }
.topic-text { display: grid; gap: 6px; min-width: 0; }
.topic-to { color: var(--blue-dark-ui); font-size: 14px; overflow-wrap: anywhere; }
.p-icon-mail { background: var(--bg-raised-2); color: var(--text-strong); }

.prose { max-width: 760px; }
.prose h2 { font: 600 26px/31px var(--font-display); color: var(--text-strong); margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 27px; color: var(--text-muted); }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--blue-dark-ui); }
.prose .updated { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ------------------------------------------------------------------ Footer (measured) */
.footer { background: var(--bg); padding: 8px 0 56px; }
.footer-cta { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.footer-cta-title { font: 700 19px/23px var(--font-display); color: var(--text-strong); }
.footer-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.footer-mail { display: flex; align-items: center; gap: 10px; flex: 1 1 360px; height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg); color: var(--text); text-decoration: none; overflow: hidden; white-space: nowrap; }
.footer-mail:hover { border-color: var(--text-muted); }
.footer-cta .small { align-self: center; }
.footer-main { display: grid; grid-template-columns: 240px repeat(4, minmax(0, 1fr)); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.footer-brand { color: var(--text-strong); }
.footer-brand .brand { color: var(--text-strong); }
.footer-h { font: 600 13px/1 var(--font-display); letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-strong); margin-bottom: 16px; }
.footer-main ul { display: grid; gap: 12px; }
.footer-main a { font-size: 13px; line-height: 18px; color: var(--text-muted); text-decoration: none; }
.footer-main a:hover { color: var(--text-strong); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 32px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text-strong); text-decoration: underline; }
@media (max-width: 999px) {
  .footer-cta { grid-template-columns: 1fr; gap: 16px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer { padding: 32px 0 56px; }
  .footer-cta { padding: 0 0 32px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
