/*
 * Customer Assets for JSM Portal — product website stylesheet
 * ------------------------------------------------------------------
 * One shared stylesheet for every page. No external requests: system
 * fonts only, no web fonts, no CDN, no images loaded from CSS.
 *
 * Contents
 *   1. Design tokens (light + dark via prefers-color-scheme)
 *   2. Base / reset
 *   3. Accessibility helpers (skip link, focus, reduced motion)
 *   4. Layout primitives
 *   5. Header + navigation
 *   6. Buttons, links, placeholders
 *   7. Hero
 *   8. Sections, cards, feature grids
 *   9. Diagram, steps, gallery
 *  10. Tables, FAQ, callouts, tags
 *  11. CTA band + footer
 *  12. Utility
 *
 * Contrast notes (WCAG 2.2 AA): brand turquoise #30afc0 is only 2.4:1 on
 * white, so it is used for decoration and on dark backgrounds only. Text
 * and interactive colour on light backgrounds is brand violet #791496
 * (8.9:1 on white). In dark mode the interactive colour is a light
 * turquoise (#8fd6e1, > 8:1 on the dark background).
 */

/* 1. Design tokens ------------------------------------------------- */
:root {
  --brand-turquoise: #30afc0;
  --brand-violet: #791496;
  --brand-dark: #2e1338;
  --brand-ink: #191919;
  --brand-gradient: linear-gradient(135deg, #30afc0 0%, #791496 100%);

  --bg: #ffffff;
  --bg-subtle: #f7f6f9;
  --bg-elev: #ffffff;
  --text: #191919;
  --text-muted: #55505e;
  --border: #e4e1e9;
  --border-strong: #cfc9d8;
  --link: #791496;
  --link-hover: #5a0f70;
  --focus: #791496;
  --btn-bg: #791496;
  --btn-bg-hover: #5f0f77;
  --btn-text: #ffffff;
  --code-bg: #f1eef5;
  --tint: rgba(121, 20, 150, 0.06);
  --shadow-sm: 0 1px 2px rgba(25, 25, 25, 0.06);
  --shadow-md: 0 1px 2px rgba(25, 25, 25, 0.05), 0 8px 24px rgba(46, 19, 56, 0.08);
  --shadow-lg: 0 2px 4px rgba(25, 25, 25, 0.05), 0 24px 60px rgba(46, 19, 56, 0.16);
  --ph-bg: #fff4d6;
  --ph-border: #8a6d00;
  --ph-text: #191919;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --header-h: 4.25rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --bg-subtle: #19161f;
    --bg-elev: #1f1b26;
    --text: #f2f0f5;
    --text-muted: #bcb5c7;
    --border: #332d3d;
    --border-strong: #4a4256;
    --link: #8fd6e1;
    --link-hover: #b8e6ed;
    --focus: #8fd6e1;
    --btn-bg: #30afc0;
    --btn-bg-hover: #5cc3d1;
    --btn-text: #121016;
    --code-bg: #26212e;
    --tint: rgba(48, 175, 192, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
    --ph-bg: #3a3010;
    --ph-border: #e0c25a;
    --ph-text: #fff7dc;
  }
}

/* 2. Base / reset -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h4 {
  font-size: 1rem;
  letter-spacing: 0;
}

p,
ul,
ol,
dl,
figure,
table {
  margin: 0 0 1rem;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* 3. Accessibility helpers ---------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: var(--btn-text);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 4. Layout primitives -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--section-pad);
}

.section--subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.9375rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.stack > * + * {
  margin-top: 1rem;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
}

.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.feature-block + .feature-block {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* 5. Header + navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--brand-gradient);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  background: var(--tint);
  color: var(--link);
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -2px 0 var(--link);
  border-radius: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0.15rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch li + li {
  margin-top: 0;
}

.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav .lang-switch a {
  padding: 0.2rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.lang-switch [aria-current="true"] {
  background: var(--text);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile navigation. Without JavaScript the menu simply wraps below
   the brand and stays visible; with JavaScript (html.js) it collapses
   behind the Menu button. */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.6rem;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-left: 0;
    padding-bottom: 0.75rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav .lang-switch a {
    border-bottom: 0;
  }

  .nav-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }
}

/* 6. Buttons, links, placeholders --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--link);
  color: var(--link);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9375rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  font-size: 1.0625rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

.arrow-link::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.arrow-link:hover::after {
  transform: translateX(3px);
}

/* Placeholders for values only a human can supply (legal, commercial).
   Deliberately conspicuous so none survives into production unnoticed. */
.ph {
  display: inline;
  padding: 0.05em 0.35em;
  background: var(--ph-bg);
  color: var(--ph-text);
  border: 1px dashed var(--ph-border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

/* 7. Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(48, 175, 192, 0.16), transparent 70%) 0 0 / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(121, 20, 150, 0.14), transparent 70%) 100% 40% / 70% 70% no-repeat;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.25rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.hero-facts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-gradient);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8% 6%;
  border-radius: var(--radius-lg);
  background: var(--brand-gradient);
  opacity: 0.9;
  z-index: -1;
}

.page-hero {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-inline: 4% 6%;
  }
}

/* 8. Sections, cards, feature grids -------------------------------- */
.card {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .muted {
  font-size: 0.975rem;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #ffffff;
}

.icon-tile svg {
  width: 22px;
  height: 22px;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.compare .card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.compare-before h3 {
  color: var(--text-muted);
}

.compare-after {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--brand-gradient) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.check-list,
.dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.dash-list li {
  position: relative;
  padding-left: 1.85rem;
}

.check-list li + li,
.dash-list li + li {
  margin-top: 0.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.35em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--link);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.78em;
  width: 0.75rem;
  height: 2px;
  background: var(--text-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts li {
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-elev);
}

.facts strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
}

.facts span {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* 9. Diagram, steps, gallery --------------------------------------- */
.diagram {
  margin: 0 0 2rem;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.diagram-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.diagram svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  font-family: var(--font-sans);
}

.diagram figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.dg-cloud {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.dg-frame {
  fill: var(--tint);
  stroke: var(--link);
  stroke-width: 1.25;
}

.dg-box {
  fill: var(--bg-elev);
  stroke: var(--border-strong);
  stroke-width: 1.25;
}

.dg-box--accent {
  stroke: var(--link);
  stroke-width: 1.75;
}

.dg-title {
  fill: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.dg-sub {
  fill: var(--text-muted);
  font-size: 12.5px;
}

.dg-label {
  fill: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dg-label--brand {
  fill: var(--link);
}

.dg-arrow {
  fill: none;
  stroke: var(--link);
  stroke-width: 1.75;
}

.dg-arrowhead {
  fill: var(--link);
}

.dg-num {
  fill: var(--link);
}

.dg-num-text {
  fill: var(--bg-elev);
  font-size: 12px;
  font-weight: 700;
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legend;
}

.legend li {
  position: relative;
  margin: 0;
  padding-left: 2.25rem;
  counter-increment: legend;
}

.legend li::before {
  content: counter(legend);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--link);
  color: var(--bg-elev);
  font-size: 0.8125rem;
  font-weight: 700;
}

.legend li.legend-admin {
  counter-increment: none;
}

.legend li.legend-admin::before {
  content: "A";
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin: 0;
  padding: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--link);
}

.steps > li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand-gradient);
}

.steps h3 {
  font-size: 1.0625rem;
}

.steps p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--text-muted);
}

.shot {
  margin: 0;
}

.shot-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  box-shadow: var(--shadow-md);
}

.shot--hero .shot-frame {
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
  background: var(--bg-subtle);
}

.shot figcaption {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.shot figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

a.shot-frame {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.shot-frame:hover {
  box-shadow: var(--shadow-lg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

.gallery .shot--wide {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* 10. Tables, FAQ, callouts, tags ---------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9625rem;
}

caption {
  padding: 1rem 1.25rem 0;
  text-align: left;
  font-weight: 650;
  caption-side: top;
}

th,
td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--bg-subtle);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 650;
}

td code,
th code {
  white-space: nowrap;
}

.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.4rem;
  border: solid var(--link);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -0.1rem;
}

.faq summary:hover {
  color: var(--link);
}

.faq .answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

.callout {
  display: flex;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--link);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warning {
  border-left-color: var(--ph-border);
  background: var(--ph-bg);
  color: var(--ph-text);
}

.callout--warning a {
  color: inherit;
}

.callout-title {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9375rem;
}

.tags code {
  padding: 0;
  background: none;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--link);
  color: var(--link);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
}

.def-list {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0 0 1.5rem;
}

.def-list dt {
  font-weight: 650;
}

.def-list dd {
  margin: 0;
}

@media (max-width: 600px) {
  .def-list {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .def-list dd {
    margin-bottom: 0.75rem;
  }
}

.trust-section + .trust-section {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

/* 11. CTA band + footer -------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--brand-dark);
  color: #ffffff;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(48, 175, 192, 0.35), transparent) -10% -40% / 60% 160% no-repeat,
    radial-gradient(closest-side, rgba(121, 20, 150, 0.55), transparent) 110% 140% / 70% 180% no-repeat;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.cta-band p {
  margin: 0;
  color: #e6dcef;
  max-width: 620px;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: var(--brand-dark);
}

.cta-band .btn-primary:hover {
  background: #e9f7f9;
  color: var(--brand-dark);
}

.cta-band .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta-band .btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.cta-band :focus-visible {
  outline-color: #ffffff;
}

.cta-band .ph {
  color: #191919;
  background: #fff4d6;
  border-color: #8a6d00;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 1rem;
  color: var(--text-muted);
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
  max-width: 720px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 12. Utility ------------------------------------------------------- */
.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-lg {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.not-found {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.not-found .code {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--link);
  letter-spacing: 0.1em;
}

.not-found .hero-actions {
  justify-content: center;
}

@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }
}
