/* =====================================================================
   S3curity Net design system
   ---------------------------------------------------------------------
   One stylesheet for every page. Content uses only the component
   vocabulary in SPEC.md; see /styleguide/ (review builds) for examples.

   Principles
   - Dark, warm and calm: near-black page, charcoal bands, gold for action.
   - Headings: Archivo set slightly expanded, sentence case. Text: IBM Plex Sans.
   - Boxes only for things you can click. Information sits on open rules.
   - The brand brackets from the logo appear once (home lifecycle panel).
   - Logical properties throughout, so dir="rtl" pages mirror correctly.
   - Motion is short and optional; nothing depends on it.

   Contents
    1. Tokens          8. Cards and product cards   15. Forms
    2. Base            9. Lists and steps           16. Review markers
    3. Utilities      10. Actions                   17. Motion
    4. Layout         11. Bands and FAQ             18. Arabic and RTL
    5. Header + nav   12. Media frames              19. Forced colors, print
    6. Breadcrumb     13. Badges and icons          20. Styleguide helpers
    7. Heroes, text   14. Footer
   ===================================================================== */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  /* Brand palette (existing identity) */
  --ink: #070909;
  --charcoal: #111514;
  --gold: #e8b96f;
  --gold-pale: #f2c783;
  --warm-white: #ecebe5;
  --gray: #a7aaa3;

  /* Roles */
  --bg: var(--ink);
  --surface-1: #0c0f0e;
  --surface-2: var(--charcoal);
  --surface-3: #171c1a;
  --surface-menu: #121715;
  --overlay: rgb(236 235 229 / .035);
  --overlay-hover: rgb(236 235 229 / .065);
  --text: var(--warm-white);
  --text-2: #d0d0c9;
  --text-muted: var(--gray);
  --text-faint: #8b8e87;
  --line: rgb(236 235 229 / .1);
  --line-strong: rgb(236 235 229 / .18);
  --line-gold: rgb(232 185 111 / .45);
  --gold-ink: #1a1408;
  --focus: var(--gold-pale);
  --field-bg: #0a0d0c;
  --field-border: #6c6f6a;
  --field-border-hover: #9a9d96;
  --danger: #ff9e88;
  --success: #8fdcb2;
  --info: #a9c4ff;
  --warning: #ffc47e;
  --review: #ff4fd8;
  --review-ink: #1b0016;

  /* Product accents (from each product's own palette) */
  --h3lix: #3fd4e4;
  --h3lix-2: #b55cdb;
  --lim5: #b9a2ff;
  --lim5-2: #8fa2ff;
  --sal3s: #4fe0a6;
  --sal3s-2: #2fc4a0;
  --accent: var(--gold);
  --accent-2: var(--gold-pale);

  /* Type */
  --font-display: "Archivo", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --display-stretch: 112%;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.07rem + .25vw, 1.3125rem);
  --step-2: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);
  --step-3: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
  --step-4: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);      /* h2: 28-40px */
  --step-5: clamp(1.875rem, 1.3rem + 2.3vw, 3.125rem);    /* inner-page h1: 30-50px */
  --step-6: clamp(2rem, 1.2rem + 3vw, 3.75rem);           /* home hero h1, the largest: 32-60px */

  /* Space and shape */
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 4.25rem;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-xl: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glow-x: 100%;

  /* Mask icons for CSS-drawn markers */
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5v.01'/%3E%3C/svg%3E");
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + 1.25rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, picture, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: var(--display-stretch);
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.016em; }
h3 { font-size: var(--step-2); line-height: 1.25; letter-spacing: -.006em; font-stretch: 106%; }
h4 { font-size: var(--step-1); line-height: 1.3; letter-spacing: 0; font-stretch: 104%; }

p, ul, ol, dl, figure, blockquote, pre, table { margin-block: 0 1rem; }
p { text-wrap: pretty; }
ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-block-start: .375rem; }

a {
  color: var(--gold-pale);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgb(242 199 131 / .45);
  transition: color .15s, text-decoration-color .15s;
}
a:hover { text-decoration-color: currentColor; }

strong, b { font-weight: 600; color: var(--text); }
small { font-size: var(--step--1); }
hr { border: 0; border-block-start: 1px solid var(--line); margin-block: 2.5rem; }
code, kbd {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .875em;
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--overlay-hover);
}
abbr[title] { text-decoration: underline dotted; cursor: help; }
::selection { background: rgb(232 185 111 / .32); color: var(--text); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

/* 3. Utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 200;
  inset-inline-start: 1rem;
  inset-block-start: -10rem;
  padding: .75rem 1.125rem;
  border-radius: var(--radius-m);
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 1rem; }

.muted { color: var(--text-muted); }
.kbd-note { font-size: var(--step--1); line-height: 1.55; color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* Icons from /assets/img/icons.svg (sizes are set per component further down). */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: -.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A link that makes its whole positioned ancestor clickable (cards). */
.stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Narrow sections keep the page's left edge and only limit the line length. */
.container--narrow > * { max-width: 46rem; }

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }
.section--alt { background: var(--surface-2); }

/* Sections written without an inner .container still line up with the grid. */
:is(.section, .page-hero, .hero, .product-hero):not(:has(> .container)) {
  padding-inline: max(var(--gutter), (100% - var(--container)) / 2);
}

.section-head { max-width: 48rem; margin-block-end: clamp(2rem, 4vw, 3rem); }
.section-head > :last-child { margin-block-end: 0; }
.section-head h2 { margin-block-end: .875rem; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem);
}
.grid:not(:has(> *)) { display: none; }
@media (min-width: 40rem) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Tablets: a three-item .grid--3 stays in one column, and an odd last item spans the row (no orphan). */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .grid--3:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .grid--3 > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split:has(> figure, > .media-frame, > img) { align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--reverse > :first-child { order: 2; }
  .split--aside { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .split--aside > :last-child { position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem); }
}

.stack > * { margin-block: 0; }
.stack > * + * { margin-block-start: var(--stack-space, 1rem); }
.stack > .btn-row { --stack-space: 1.5rem; }
.stack > :is(h2, h3, h4) + * { --stack-space: .75rem; }
.stack > * + :is(h2, h3, h4) { --stack-space: 2rem; }
.stack > .eyebrow + :is(h2, h3, h4) { --stack-space: .625rem; }
/* Plain paragraphs beside a lead should not be brighter than it. */
:is(.stack, .container--narrow) > p:not([class]) { color: var(--text-2); }

/* 5. Header and navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  isolation: isolate;
  border-block-end: 1px solid var(--line);
}
/* The blur lives on a pseudo-element so the fixed mobile menu is not trapped inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(7 9 9 / .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.is-open::before { background: var(--bg); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-brand {
  display: inline-flex;
  flex: none;
  margin-inline-end: auto;
  padding-block: .5rem;
  border-radius: 4px;
}
.site-brand img { width: auto; height: 26px; }

.site-nav { display: none; }
.site-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__list > li { margin: 0; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin: 0;
  padding: .5rem .75rem;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--text-2);
  font: 500 .9688rem/1.4 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s, background-color .15s;
}
.site-nav__link:hover { color: var(--text); background: var(--overlay-hover); }
.site-nav__link[aria-current="page"],
.site-nav__item.is-current > .site-nav__link { color: var(--text); }
.site-nav__chevron { width: 1rem; height: 1rem; color: var(--text-faint); transition: transform .2s var(--ease); }
.site-nav__trigger[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); color: var(--gold); }

.site-nav__menu { display: none; }
.site-nav__item.is-open > .site-nav__menu { display: block; }
.site-nav__menu-list { margin: 0; padding: 0; list-style: none; }
.site-nav__menu-list > li { margin: 0; }
.site-nav__menu-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5625rem .75rem;
  border-radius: var(--radius-s);
  color: var(--text-2);
  font-size: .9688rem;
  line-height: 1.35;
  text-decoration: none;
}
.site-nav__menu-link:hover { color: var(--text); background: var(--overlay-hover); }
.site-nav__menu-link[aria-current="page"] { color: var(--gold-pale); }
.site-nav__divider { margin-block-start: .375rem !important; padding-block-start: .375rem; border-block-start: 1px solid var(--line); }

.nav-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.nav-dot--h3lix { --accent: var(--h3lix); }
.nav-dot--lim5 { --accent: var(--lim5); }
.nav-dot--sal3s { --accent: var(--sal3s); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: none;
  color: var(--text);
  font: 500 .9688rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
}
.menu-toggle:hover { border-color: var(--field-border-hover); }
.menu-toggle__icon { width: 1.25rem; height: 1.25rem; }

/* Small screens: the menu button opens the nav as a full-height sheet. */
@media (max-width: 61.99rem) {
  .site-header.is-open .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: .75rem var(--gutter) 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
  }
  .is-review .site-header.is-open .site-nav { padding-block-end: 4.5rem; }
  .site-nav__list { flex-direction: column; }
  .site-nav__link {
    justify-content: space-between;
    width: 100%;
    min-height: 3.25rem;
    padding: .75rem .25rem;
    border-radius: 0;
    border-block-end: 1px solid var(--line);
    font-size: 1.125rem;
    text-align: start;
  }
  .site-nav__link:hover { background: none; }
  .site-nav__chevron { width: 1.25rem; height: 1.25rem; }
  .site-nav__menu { padding: .375rem 0 .75rem; }
  .site-nav__menu-link { min-height: 2.875rem; padding-inline: .75rem; font-size: 1.0625rem; }
  .site-nav__cta { width: 100%; }
}

/* Large screens: inline nav with dropdown panels. */
@media (min-width: 62rem) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav__list { gap: .125rem; }
  .site-nav__item { position: relative; }
  .site-nav__item.is-current > .site-nav__link::after {
    content: "";
    position: absolute;
    inset-inline: .75rem;
    inset-block-end: -.6875rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
  }
  .site-nav__link[aria-current="page"] { position: relative; }
  .site-nav__menu {
    position: absolute;
    inset-block-start: calc(100% + .625rem);
    inset-inline-start: -.25rem;
    z-index: 10;
    min-width: 16rem;
    padding: .5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-l);
    background: var(--surface-menu);
    box-shadow: 0 24px 48px -16px rgb(0 0 0 / .7);
  }
  .site-nav__item.is-open > .site-nav__menu { animation: menu-in .16s var(--ease); }
  .site-nav__cta { min-height: 2.625rem; padding-block: .5rem; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

html.has-nav-open { overflow: hidden; }

/* 6. Breadcrumb ---------------------------------------------------------------- */
.breadcrumb { padding-block: 1.25rem .875rem; font-size: var(--step--1); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}
.breadcrumb__list > li { margin: 0; }
.breadcrumb__list > li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; border-radius: 3px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb a[aria-current="page"] { color: var(--text-2); }

/* 7. Heroes and text ---------------------------------------------------------- */
.eyebrow {
  display: block;
  margin: 0 0 .875rem;
  color: var(--gold);
  font: 600 .9688rem/1.4 var(--font-text);
  letter-spacing: .005em;
}
.lead {
  max-width: 42rem;
  color: var(--text-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* Inner page hero */
.page-hero {
  padding-block: clamp(2.25rem, 5.5vw, 4.5rem) clamp(2.5rem, 5vw, 4.25rem);
  border-block-end: 1px solid var(--line);
}
.page-hero h1 { max-width: 22ch; margin-block-end: 1.25rem; }
.page-hero .lead { margin-block-end: 0; }
.page-hero .lead + * { margin-block-start: 1.25rem; }
.page-hero .btn-row { margin-block-start: 2rem; }

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.75rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6.5rem);
  border-block-end: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -35%;
  inset-inline-end: -18%;
  width: min(72rem, 130vw);
  aspect-ratio: 1.35;
  background: radial-gradient(closest-side, rgb(232 185 111 / .12), rgb(232 185 111 / .04) 55%, transparent);
  pointer-events: none;
}
.hero h1 { font-size: var(--step-6); margin-block-end: 1.375rem; }
@media (max-width: 29.99rem) {
  :root { --display-stretch: 106%; }
  .hero h1 { text-wrap: pretty; }
}
.hero .lead { max-width: 38rem; margin-block-end: 0; }
.hero .btn-row { margin-block-start: 2.25rem; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.75rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.hero__content > :last-child { margin-block-end: 0; }
/* On the homepage the header sits directly on the hero glow. */
.page-home .site-header:not(.is-open) { border-block-end-color: transparent; }

/* The panel beside the home headline, framed by the brand brackets. */
.hero__panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
  background: linear-gradient(180deg, rgb(236 235 229 / .04), rgb(236 235 229 / .012));
}
.hero__panel::before,
.hero__panel::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: .875rem;
  border: 2px solid var(--gold);
  pointer-events: none;
}
.hero__panel::before { inset-inline-start: 0; border-inline-end: 0; }
.hero__panel::after { inset-inline-end: 0; border-inline-start: 0; }
.hero__panel .eyebrow { margin-block-end: 1.125rem; }

/* Six connected stages: Design, Build, Integrate, Secure, Host, Support */
.lifecycle { margin: 0; padding: 0; list-style: none; counter-reset: life; }
.lifecycle > li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 1rem;
  margin: 0;
  padding-block: .5rem;
  counter-increment: life;
}
.lifecycle > li::before {
  content: counter(life);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(232 185 111 / .55);
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold);
  font: 600 .8125rem/1 var(--font-display);
}
.lifecycle > li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(1rem - .5px);
  inset-block: calc(.5rem + 2rem) -.5rem;
  width: 1px;
  background: linear-gradient(rgb(232 185 111 / .5), rgb(232 185 111 / .18));
}
.lifecycle strong {
  grid-column: 2;
  padding-block-start: .1875rem;
  color: var(--text);
  font: 600 1.0625rem/1.3 var(--font-display);
  font-stretch: 108%;
}
.lifecycle span { grid-column: 2; color: var(--text-muted); font-size: .9375rem; line-height: 1.45; }

/* Product hero */
.product-hero {
  --accent: var(--gold);
  --accent-2: var(--gold-pale);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.75rem, 6.5vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  border-block-end: 1px solid var(--line);
}
.product-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -45%;
  inset-inline-end: -20%;
  width: min(66rem, 125vw);
  aspect-ratio: 1.3;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 17%, transparent), transparent);
  pointer-events: none;
}
.product-hero::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.product-hero--h3lix { --accent: var(--h3lix); --accent-2: var(--h3lix-2); }
.product-hero--lim5 { --accent: var(--lim5); --accent-2: var(--lim5-2); }
.product-hero--sal3s { --accent: var(--sal3s); --accent-2: var(--sal3s-2); }
/* Product pages keep their accent below the hero (icons, checks, step numbers, eyebrows). Actions stay gold. */
.page-products-h3lix main { --accent: var(--h3lix); --accent-2: var(--h3lix-2); }
.page-products-lim5 main { --accent: var(--lim5); --accent-2: var(--lim5-2); }
.page-products-sal3s main { --accent: var(--sal3s); --accent-2: var(--sal3s-2); }
:is(.page-products-h3lix, .page-products-lim5, .page-products-sal3s) main .eyebrow { color: var(--accent); }
.product-hero .eyebrow { color: var(--accent); }
.product-hero :is(h1, .product-hero__title) {
  max-width: 24ch;
  margin-block-end: 1.25rem;
  font-size: clamp(2.125rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.022em;
}
/* Product hero order: eyebrow, name, summary, lead, badge, actions. The summary outranks the lead. */
.product-hero__summary { max-width: 40rem; color: var(--text); font-size: var(--step-2); font-weight: 500; line-height: 1.4; }
.product-hero .lead { margin-block-end: 0; }
.product-hero .stack > p:not([class]) { color: var(--text-2); }
.product-hero .btn-row { margin-block-start: 2rem; }
.product-hero__logo { width: 3.5rem; height: 3.5rem; margin-block-end: 1.25rem; }

/* Long-form text (legal pages) */
.prose { max-width: 44rem; color: var(--text-2); }
.prose > :first-child { margin-block-start: 0; }
.prose h2 { margin-block: 2.75rem 1rem; font-size: var(--step-3); }
.prose h3 { margin-block: 2rem .75rem; font-size: var(--step-1); }
.prose h4 { margin-block: 1.5rem .5rem; font-size: var(--step-0); }
.prose ul, .prose ol { padding-inline-start: 1.5rem; }
.prose li::marker { color: var(--gold); }
.prose li + li { margin-block-start: .5rem; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid var(--line-gold); color: var(--text-muted); }
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .9375rem;
}
.prose th, .prose td { padding: .625rem .875rem; border-block-end: 1px solid var(--line-strong); text-align: start; vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }

.notice {
  position: relative;
  padding: 1.125rem 1.25rem 1.125rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-m);
  background: var(--overlay);
  color: var(--text-2);
}
.notice > :last-child { margin-block-end: 0; }
.notice > :is(h2, h3, h4) { margin-block-end: .5rem; font-size: var(--step-1); }

/* 8. Cards ------------------------------------------------------------------- */
/* Information blocks sit on an open rule; only clickable cards become boxes. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  padding-block-start: 1.375rem;
  border-block-start: 1px solid var(--line-strong);
}
.card > * { margin: 0; }
.card__icon { width: 1.75rem; height: 1.75rem; margin-block-end: .375rem; color: var(--accent); }
.card__title { font-size: var(--step-2); line-height: 1.25; }
.card__body, .card > p:not([class]) { color: var(--text-muted); }
/* Arrows are drawn with ::before + order so ::after stays free for .stretched. */
.card__link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-block-start: auto;
  padding-block-start: .625rem;
  color: var(--gold-pale);
  font-weight: 600;
  text-decoration: none;
}
.card__link::before {
  content: "";
  order: 1;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
  transition: transform .2s var(--ease);
}

.card--link {
  padding: clamp(1.375rem, 2.4vw, 1.875rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--overlay);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.card--link:hover { border-color: var(--line-gold); background: var(--overlay-hover); }
.card--link:hover .card__link { text-decoration: underline; text-underline-offset: .2em; }
.card--link:has(.stretched:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.card--link .stretched:focus-visible { outline: none; }
.card a:not(.stretched) { position: relative; z-index: 2; }

/* Fixed-scope packages: boxed, with the price first and a real button. */
.card--package {
  padding: clamp(1.375rem, 2.4vw, 1.875rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--overlay);
}
.card--package > .card__body { flex: 1 1 auto; }
.card--package > .btn { align-self: stretch; margin-block-start: .75rem; }
.price { color: var(--text); font: 600 var(--step-3)/1.1 var(--font-display); font-stretch: 108%; letter-spacing: -.01em; }
.price small { color: var(--text-muted); font: 400 var(--step-0)/1.4 var(--font-text); letter-spacing: 0; }

/* Product cards: each product keeps its own accent. */
.product-card {
  --accent: var(--gold);
  --accent-2: var(--gold-pale);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 90% at var(--glow-x) 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--overlay);
  transition: border-color .2s;
}
.product-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.product-card > * { margin: 0; }
.product-card--h3lix { --accent: var(--h3lix); --accent-2: var(--h3lix-2); }
.product-card--lim5 { --accent: var(--lim5); --accent-2: var(--lim5-2); }
.product-card--sal3s { --accent: var(--sal3s); --accent-2: var(--sal3s-2); }
.product-card:has(.stretched):hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.product-card:has(.stretched:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.product-card .stretched:focus-visible { outline: none; }
.product-card__logo { width: 2.75rem; height: 2.75rem; }
.product-card__name {
  color: var(--accent);
  font: 700 var(--step-3)/1.1 var(--font-display);
  font-stretch: 114%;
  letter-spacing: -.01em;
}
.product-card__tag { color: var(--text-2); font-size: var(--step-0); line-height: 1.45; }
/* Name first, then the category line; links sit together at the bottom of the row. */
.product-card > .card__link { margin-block-start: auto; }
@media (min-width: 64rem) {
  .grid--3 > .product-card .product-card__tag { min-height: calc(2 * 1.45em); }
}
.product-card__status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--text-muted); font-size: var(--step--1); }
.product-card .card__body, .product-card > p:not([class]) { color: var(--text-muted); }
.product-card .card__link { color: var(--accent); }
.product-card .check-list > li::before { background: var(--accent); }

/* 9. Lists and steps --------------------------------------------------------- */
.check-list { display: grid; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.check-list > li { position: relative; margin: 0; padding-inline-start: 2rem; color: var(--text-2); }
.check-list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .2em;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
/* Lists of problems or symptoms: a neutral dot instead of a check mark. */
.check-list--neutral > li::before {
  inset-block-start: .62em;
  inset-inline-start: .4375rem;
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--text-faint);
  -webkit-mask: none;
  mask: none;
}
.container > .check-list { max-width: 48rem; }

.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  column-gap: 2.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--line);
}
.deliverables > li {
  position: relative;
  margin: 0;
  padding-block: .875rem;
  padding-inline-start: 1.5rem;
  border-block-end: 1px solid var(--line);
  color: var(--text-2);
}
.deliverables > li::before {
  content: "";
  position: absolute;
  inset-inline-start: .125rem;
  inset-block-start: calc(.875rem + .62em);
  width: .4375rem;
  height: .4375rem;
  background: var(--accent);
  transform: rotate(45deg);
}
.deliverables > li > strong { display: block; color: var(--text); }

.steps {
  display: grid;
  max-width: 66rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  container-type: inline-size;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1.25rem;
  margin: 0;
  padding-block-end: 2rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font: 600 1rem/1 var(--font-display);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(1.375rem - .5px);
  inset-block: 3.25rem .5rem;
  width: 1px;
  background: linear-gradient(color-mix(in srgb, var(--accent) 45%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
}
.step:last-child { padding-block-end: 0; }
.step > * { grid-column: 2; margin: 0; }
.step > h3 { margin-block: .5rem .375rem; font-size: var(--step-2); }
.step > :not(h3) { color: var(--text-muted); }
.step > :not(h3) + :not(h3) { margin-block-start: .625rem; }
@container (min-width: 46rem) {
  .step { grid-template-columns: 2.75rem minmax(11rem, 17rem) minmax(0, 1fr); column-gap: 1.75rem; }
  .step > h3 { grid-column: 2; margin-block: .5625rem 0; }
  .step > :not(h3) { grid-column: 3; }
  .step > h3 + * { margin-block-start: .5625rem; }
}

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tag-list > * {
  margin: 0;
  padding: .3125rem .75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--overlay);
  color: var(--text-2);
  font-size: var(--step--1);
  line-height: 1.4;
}

.meta-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 1rem; border-block-start: 1px solid var(--line); }
.meta-list > div { display: contents; }
.meta-list dt { padding-block: .875rem .125rem; color: var(--text); font-size: 1rem; font-weight: 600; }
.meta-list dd { margin: 0; padding-block: 0 .875rem; border-block-end: 1px solid var(--line); color: var(--text-muted); }
@media (min-width: 40rem) {
  .meta-list { grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); }
  .meta-list dt { padding-block: .875rem; padding-inline-end: 2rem; border-block-end: 1px solid var(--line); }
  .meta-list dd { padding-block: .875rem; }
}

/* 10. Actions ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  font: 600 1rem/1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.125rem; height: 1.125rem; }
.btn--primary { background: var(--gold); color: var(--gold-ink); }
.btn--primary:hover { background: var(--gold-pale); color: var(--gold-ink); }
.btn--secondary { border-color: rgb(236 235 229 / .42); background: transparent; color: var(--text); }
.btn--secondary:hover { border-color: var(--gold); background: rgb(232 185 111 / .07); color: var(--gold-pale); }
.btn--ghost { padding-inline: .875rem; background: transparent; color: var(--gold-pale); }
.btn--ghost:hover { background: var(--overlay-hover); color: var(--gold-pale); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .62; cursor: not-allowed; transform: none; }
.btn--primary[aria-current="page"] { box-shadow: inset 0 0 0 2px rgb(26 20 8 / .35); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1.75rem 0; }
@media (max-width: 29.99rem) {
  .btn-row > .btn { flex: 1 1 100%; }
}

/* Inline, so a wrapped link keeps its arrow right after the last word. */
.text-link { color: var(--gold-pale); font-weight: 600; text-decoration: none; }
.text-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-start: .35em;
  vertical-align: -.16em;
  background: currentColor;
  -webkit-mask: var(--i-arrow) center / contain no-repeat;
  mask: var(--i-arrow) center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.text-link:hover::after, .card--link:hover .card__link::before { transform: translateX(3px); }

/* 11. Bands and FAQ ------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgb(232 185 111 / .28);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(85% 140% at var(--glow-x) 0%, rgb(232 185 111 / .13), transparent 60%),
    var(--surface-2);
}
.section--alt .cta-band { background-color: var(--surface-3); }
.cta-band > * { margin: 0; }
.cta-band h2 { max-width: 30ch; font-size: var(--step-4); }
.cta-band p { max-width: 40rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; }
.cta-band .btn-row { margin-block-start: .75rem; }
/* Full-width band variant: <section class="cta-band"><div class="container">… */
.cta-band:has(> .container) { padding: var(--space-section) 0; border-inline: 0; border-radius: 0; }
.cta-band > .container { display: grid; gap: 1rem; justify-items: start; }
.cta-band > .container > * { margin: 0; }

.faq { max-width: 54rem; margin-block-end: 1rem; border-block-start: 1px solid var(--line-strong); }
.faq details { border-block-end: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  color: var(--text);
  font: 600 var(--step-1)/1.4 var(--font-text);
  list-style: none;
  cursor: pointer;
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--gold);
  -webkit-mask: var(--i-plus) center / contain no-repeat;
  mask: var(--i-plus) center / contain no-repeat;
}
.faq details[open] > summary::after { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.faq summary:hover { color: var(--gold-pale); }
.faq details > div { max-width: 46rem; padding-block-end: 1.5rem; color: var(--text-muted); }
.faq details > div > :last-child { margin-block-end: 0; }

/* 12. Media frames ------------------------------------------------------------- */
.media-frame { display: grid; margin: 0 0 1rem; }
.media-frame::before {
  content: "";
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.25rem;
  padding: .375rem .875rem .375rem 4.5rem;
  border: 1px solid var(--line-strong);
  border-block-end-color: var(--line);
  border-start-start-radius: var(--radius-l);
  border-start-end-radius: var(--radius-l);
  background:
    radial-gradient(circle, #454c49 0 3.5px, transparent 4px) 1rem 50% / 9px 9px no-repeat,
    radial-gradient(circle, #454c49 0 3.5px, transparent 4px) 1.75rem 50% / 9px 9px no-repeat,
    radial-gradient(circle, #454c49 0 3.5px, transparent 4px) 2.5rem 50% / 9px 9px no-repeat,
    linear-gradient(var(--surface-3), var(--surface-2));
  color: var(--text-muted);
  font: 600 .75rem/1.3 var(--font-text);
  text-align: end;
}
.media-frame > img,
.media-frame > picture,
.media-frame > video {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-block-start: 0;
  border-end-start-radius: var(--radius-l);
  border-end-end-radius: var(--radius-l);
  background: var(--surface-1);
}
.media-frame > picture > img { width: 100%; border-end-start-radius: var(--radius-l); border-end-end-radius: var(--radius-l); }
.media-frame > figcaption { margin-block-start: .875rem; color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.media-frame--concept::before { content: "Illustrative concept, not a product screenshot"; color: var(--gold-pale); }
.media-frame--demo::before { content: "Demo data"; color: var(--info); }

/* 13. Badges and icons --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  padding: .25rem .625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--overlay);
  color: var(--text-muted);
  font: 600 .8125rem/1.25 var(--font-text);
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before { content: ""; flex: none; width: .4375rem; height: .4375rem; border-radius: 50%; background: currentColor; }
.badge--live { border-color: rgb(143 220 178 / .4); background: rgb(143 220 178 / .08); color: var(--success); }
.badge--demo { border-color: rgb(169 196 255 / .4); background: rgb(169 196 255 / .08); color: var(--info); }
.badge--dev { border-color: rgb(255 196 126 / .4); background: rgb(255 196 126 / .08); color: var(--warning); }
.badge--info { color: var(--text-2); }
/* .icon base styles live in section 3 so component sizes (.card__icon, chevrons) override them. */

/* 14. Footer ------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-block-start: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-muted);
  font-size: .9375rem;
}
.site-footer__grid { display: grid; gap: 2.75rem; }
@media (min-width: 64rem) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 3fr); gap: 4rem; }
}
.site-footer__brand p { max-width: 24rem; margin-block: 1.25rem 0; }
.site-footer__logo { display: inline-flex; border-radius: 4px; }
.site-footer__logo img { width: auto; height: 24px; }
.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.site-footer__email .icon { color: var(--gold); }
.site-footer__email:hover { color: var(--gold-pale); text-decoration: underline; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 48rem) {
  .site-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.site-footer__heading {
  margin: 0 0 .875rem;
  color: var(--text);
  font: 600 .9375rem/1.4 var(--font-text);
  letter-spacing: 0;
}
.site-footer__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__list > li { margin: 0; }
.site-footer__list a { color: var(--text-muted); text-decoration: none; }
.site-footer__list a:hover { color: var(--text); text-decoration: underline; }
.site-footer__list a[aria-current="page"] { color: var(--gold-pale); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
  font-size: var(--step--1);
}
.site-footer__bottom > p { margin: 0; }

/* 15. Forms --------------------------------------------------------------------- */
.form { display: grid; gap: 1.75rem; container-type: inline-size; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; }
.form-field { display: grid; gap: .5rem; align-content: start; }
.form-field__label { display: block; color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.4; }
legend.form-field__label { margin-block-end: .625rem; }
.form-field__optional { color: var(--text-muted); font-weight: 400; }
.form-field__hint { margin: 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.form-field__error {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  color: var(--danger);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.form-field__error::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-block-start: .125rem;
  background: currentColor;
  -webkit-mask: var(--i-alert) center / contain no-repeat;
  mask: var(--i-alert) center / contain no-repeat;
}

.form :is(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: .75rem .875rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-s);
  background-color: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.form :is(input, select, textarea):hover { border-color: var(--field-border-hover); }
.form :is(input:not([type="radio"], [type="checkbox"]), select, textarea):focus-visible {
  border-color: var(--gold);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.form textarea { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
.form select {
  padding-inline-end: 2.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7aaa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 1.125rem;
  cursor: pointer;
}
.form select option { background: var(--surface-3); color: var(--text); }
.form [aria-invalid="true"] { border-color: var(--danger) !important; }
.form ::placeholder { color: var(--text-faint); opacity: 1; }

.form-row { display: grid; gap: 1.5rem; }
@container (min-width: 34rem) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-group { display: grid; gap: 1.25rem; }
.form-group__title { margin: 0; color: var(--text); font: 600 var(--step-1)/1.3 var(--font-display); font-stretch: 106%; }
.form-group > legend.form-group__title {
  width: 100%;
  margin-block-end: 1.125rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

/* Programmatic focus targets (headings, messages) do not need a ring; real controls keep theirs. */
:is(h1, h2, h3, .form-status, .form-captcha)[tabindex="-1"]:focus { outline: none; }
.form-summary:focus { outline: 2px solid var(--danger); outline-offset: 3px; }

.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: .75rem; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 0;
  padding: .9375rem 1rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-m);
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--field-border-hover); }
.choice:has(input:checked) { border-color: var(--gold); background: rgb(232 185 111 / .08); box-shadow: inset 0 0 0 1px var(--gold); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input[type="radio"] {
  display: grid;
  place-content: center;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: .1rem 0 0;
  border: 1.5px solid var(--field-border-hover);
  border-radius: 50%;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.choice input[type="radio"]::before {
  content: "";
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform .12s var(--ease);
}
.choice input[type="radio"]:checked { border-color: var(--gold); }
.choice input[type="radio"]:checked::before { transform: scale(1); }
.choice input[type="radio"]:focus-visible { outline: none; }
.choice__body { display: grid; gap: .125rem; }
.choice__title { color: var(--text); font-weight: 600; line-height: 1.35; }
.choice__desc { color: var(--text-muted); font-size: .875rem; line-height: 1.4; }

.form-summary {
  padding: 1.125rem 1.25rem;
  border: 2px solid var(--danger);
  border-radius: var(--radius-m);
  background: rgb(255 158 136 / .07);
}
.form-summary__title { margin: 0 0 .5rem; color: var(--text); font: 600 var(--step-1)/1.3 var(--font-text); }
.form-summary__list { margin: 0; padding-inline-start: 1.25rem; }
.form-summary__list a { color: var(--danger); font-weight: 500; }

.form-captcha { display: grid; gap: .625rem; }
.form-captcha__widget { min-height: 65px; }
.form-captcha__widget:empty { min-height: 0; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-actions > p { margin: 0; }
@media (max-width: 29.99rem) {
  .form-actions > .btn, .form-success > .btn { flex: 1 1 100%; align-self: stretch; }
}

/* Honeypot: visually removed, never focusable by keyboard (tabindex="-1" in the markup). */
.form-trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status[data-state] {
  padding: 1rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--overlay);
  color: var(--text-2);
}
.form-status[data-state="sending"] { border-style: dashed; }
.form-status[data-state="error"] { border-color: rgb(255 158 136 / .6); background: rgb(255 158 136 / .07); }
.form-status[data-state="success"] { border-color: rgb(143 220 178 / .55); background: rgb(143 220 178 / .07); }
.form-status__title { display: block; margin: 0 0 .25rem; color: var(--text); font-weight: 600; }
.form-status[data-state="error"] .form-status__title { color: var(--danger); }
.form-status p { margin: 0; }
.form-status p + p { margin-block-start: .375rem; }

.form-success {
  display: grid;
  gap: .75rem;
  justify-items: start;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgb(143 220 178 / .5);
  border-radius: var(--radius-l);
  background: rgb(143 220 178 / .06);
}
.form-success > * { margin: 0; }
.form-success__icon { width: 2.25rem; height: 2.25rem; color: var(--success); }
.form-success__ref { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9375rem; word-break: break-all; color: var(--text); }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Without JavaScript the conditional fields follow the selected enquiry type (CSS only). */
.form:not(.is-enhanced):has(#type-project:checked) [data-when]:not([data-when~="project"]),
.form:not(.is-enhanced):has(#type-product:checked) [data-when]:not([data-when~="product"]),
.form:not(.is-enhanced):has(#type-support:checked) [data-when]:not([data-when~="support"]) { display: none; }
.form:not(.is-enhanced):has(#type-support:checked) [data-optional-label] { display: none; }

/* 16. Review markers (review builds only; production refuses data-review) ---------- */
.review-note {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--review);
  border-radius: var(--radius-m);
  background: rgb(255 79 216 / .09);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.55;
}
.review-note > :last-child { margin-block-end: 0; }
.prose .review-flag { padding-inline: 0; }
.review-note strong:first-child { color: var(--review); }
.review-flag {
  padding: .05em .25em;
  border-radius: 3px;
  background: rgb(255 79 216 / .24);
  box-shadow: inset 0 -2px 0 var(--review);
  color: var(--text);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.review-banner {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 100;
  padding: .5rem var(--gutter);
  background: var(--review);
  color: var(--review-ink);
  font: 600 .8125rem/1.35 var(--font-text);
  text-align: center;
}
.review-banner__count { font-weight: 500; }
.is-review { padding-block-end: 2.5rem; }

/* 17. Motion ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .page-hero > .container > *,
  .product-hero > .container > *,
  .hero__content > *,
  .hero__panel { animation: rise .55s var(--ease) both; }
  :is(.page-hero, .product-hero) > .container > :nth-child(2),
  .hero__content > :nth-child(2) { animation-delay: .05s; }
  :is(.page-hero, .product-hero) > .container > :nth-child(3),
  .hero__content > :nth-child(3) { animation-delay: .1s; }
  :is(.page-hero, .product-hero) > .container > :nth-child(n + 4),
  .hero__content > :nth-child(n + 4) { animation-delay: .15s; }
  .hero__panel { animation-delay: .18s; }

  /* site.js adds .reveal only to blocks below the fold, then .is-revealed on scroll. */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .reveal.is-revealed { opacity: 1; transform: none; }
  .grid.reveal { opacity: 1; transform: none; }
  .grid.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .grid.reveal.is-revealed > * { opacity: 1; transform: none; }
  .grid.reveal.is-revealed > :nth-child(2) { transition-delay: .06s; }
  .grid.reveal.is-revealed > :nth-child(3) { transition-delay: .12s; }
  .grid.reveal.is-revealed > :nth-child(4) { transition-delay: .18s; }
  .grid.reveal.is-revealed > :nth-child(n + 5) { transition-delay: .22s; }
  /* Safety net: a block holding keyboard focus is always visible, even before site.js reveals it. */
  .reveal:focus-within, .grid.reveal:focus-within > * { opacity: 1; transform: none; }
}

/* Review build only: keep focused elements clear of the fixed review banner. */
html:has(> body.is-review) { scroll-padding-block-end: 4rem; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 18. Arabic and RTL ------------------------------------------------------------------ */
[dir="rtl"] { --glow-x: 0%; }
:lang(ar) {
  --font-display: var(--font-arabic);
  --font-text: var(--font-arabic);
  --display-stretch: 100%;
}
:lang(ar) :is(h1, h2, h3, h4, .product-card__name, .lifecycle strong) { letter-spacing: 0; font-stretch: 100%; }
:lang(ar) body { line-height: 1.8; }
[dir="rtl"] .text-link::after, [dir="rtl"] .card__link::before { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover::after, [dir="rtl"] .card--link:hover .card__link::before { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .icon:has(use[href*="#i-arrow-right"]) { transform: scaleX(-1); }
[dir="rtl"] .form select { background-position: left .875rem center; }
[dir="rtl"] .media-frame::before {
  background-position: right 1rem center, right 1.75rem center, right 2.5rem center, 0 0;
  padding-inline: 4.5rem .875rem;
}

/* 19. Forced colors and print ----------------------------------------------------------- */
@media (forced-colors: active) {
  .btn, .menu-toggle, .card--link, .product-card, .choice { border: 1px solid ButtonText; }
  .choice input[type="radio"] { appearance: auto; }
  .choice input[type="radio"]::before { display: none; }
  :is(.check-list > li, .deliverables > li, .card__link, .form-field__error)::before,
  .text-link::after, .faq summary::after { background: CanvasText; }
  .hero__panel::before, .hero__panel::after { border-color: CanvasText; }
}

@media print {
  .site-header, .breadcrumb, .site-footer__nav, .review-banner, .skip-link, .btn-row, .form-captcha { display: none !important; }
  body, .section--alt, .site-footer, .cta-band, .product-card, .card--link { background: #fff !important; color: #000 !important; }
  :is(h1, h2, h3, h4, strong, .lead, .muted, p, li, dd, dt) { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .reveal, .grid.reveal > * { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 1.5rem; }
}

/* 20. Styleguide helpers (draft page only) ------------------------------------------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.sg-swatches > li { display: grid; margin: 0; }
.sg-swatch {
  display: grid;
  gap: .25rem;
  padding: 5rem .875rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(var(--swatch) 0 4.25rem, var(--surface-1) 4.25rem);
  font-size: .875rem;
}
.sg-swatch b { color: var(--text); }
.sg-swatch span { color: var(--text-muted); font-family: ui-monospace, Consolas, monospace; font-size: .8125rem; }
.sg-swatch--ink { --swatch: var(--ink); }
.sg-swatch--charcoal { --swatch: var(--charcoal); }
.sg-swatch--gold { --swatch: var(--gold); }
.sg-swatch--gold-pale { --swatch: var(--gold-pale); }
.sg-swatch--white { --swatch: var(--warm-white); }
.sg-swatch--gray { --swatch: var(--gray); }
.sg-swatch--h3lix { --swatch: linear-gradient(90deg, var(--h3lix), var(--h3lix-2)); background: linear-gradient(90deg, var(--h3lix), var(--h3lix-2)) 0 0 / 100% 4.25rem no-repeat, var(--surface-1); }
.sg-swatch--lim5 { --swatch: var(--lim5); }
.sg-swatch--sal3s { --swatch: var(--sal3s); }
.sg-swatch--danger { --swatch: var(--danger); }
.sg-swatch--review { --swatch: var(--review); }
.sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.sg-icons > li {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  font-size: .8125rem;
}
.sg-icons .icon { width: 1.75rem; height: 1.75rem; color: var(--gold); }
.sg-type > * + * { margin-block-start: 1.25rem; }
.sg-demo { padding: clamp(1rem, 3vw, 2rem); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); }
.sg-demo + .sg-demo { margin-block-start: 1.5rem; }
.sg-label { display: block; margin: 0 0 .75rem; color: var(--text-faint); font-size: .8125rem; font-weight: 600; }

/* Flow spacing after block components inside a container (kept last on purpose). */
.container > :where(.grid, .steps, .split, .faq, .deliverables, .check-list, .meta-list, .media-frame, .notice, .tag-list, .btn-row, .cta-band) + * {
  margin-block-start: clamp(1.75rem, 3.5vw, 2.5rem);
}
