/* Fistag Technologies
   Layout idea: left-aligned editorial columns on a 1120px measure; the one loud element is the
   hero coverage table (layer x system). Everything else stays quiet. Single light theme by choice. */
:root {
  color-scheme: light;
  --bg: #f7f6fb;
  --surface: #ffffff;
  --ink: #1d1a33;
  --muted: #5d5a73;
  --line: #dcd9ea;
  --brand: #45308c;
  --brand-deep: #2a1d5c;
  --accent: #d9661a;
  --tint: #eeebf8;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--tint); padding: 0.05em 0.35em; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand-sub { font-weight: 500; color: var(--muted); }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 6px; font-weight: 500; font-size: 0.98rem; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.9rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; padding: 0.8rem 1.3rem; border-radius: 8px; border: 2px solid var(--brand); cursor: pointer; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--tint); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--brand-deep); }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.coverage { background: var(--brand-deep); color: #fff; border-radius: 14px; padding: 1.4rem; box-shadow: 0 24px 50px -28px rgba(42, 29, 92, 0.7); }
.coverage table { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.coverage caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 0 6px 0.7rem; }
.coverage thead th { font-family: var(--display); font-weight: 700; font-size: 1rem; text-align: left; padding: 0.3rem 0.7rem; color: #d7cffa; }
.coverage thead th:first-child { width: 27%; }
.coverage tbody th { text-align: left; vertical-align: top; font-family: var(--display); font-weight: 700; font-size: 0.98rem; padding: 0.8rem 0.4rem 0.8rem 0.3rem; color: #fff; }
.coverage td { background: rgba(255, 255, 255, 0.09); border-radius: 8px; padding: 0.8rem 0.75rem; font-size: 0.9rem; line-height: 1.45; vertical-align: top; color: #efecff; overflow-wrap: anywhere; }
.coverage code { background: rgba(255, 255, 255, 0.16); color: #fff; }
.coverage .support-row td { background: var(--accent); color: #fff; font-weight: 500; }

/* Sections */
.section { padding: clamp(2.8rem, 6vw, 4.8rem) 0; }
.section > .wrap { display: grid; gap: 1.8rem; }
.tint { background: var(--tint); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.page-head .wrap { display: grid; gap: 1.1rem; }
.two { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.two > div { display: grid; gap: 1.1rem; }
.narrow { max-width: 68ch; }
.note { color: var(--muted); max-width: 68ch; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.trio article, .pair article { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 10px; padding: 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.trio h3 a { color: var(--ink); text-decoration: none; }
.trio h3 a:hover { color: var(--brand); text-decoration: underline; }
.plain { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--muted); }
.plain li::marker { color: var(--accent); }
.more { font-weight: 600; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 1.2rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--display); font-weight: 700; }
.facts span { color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; border-top: 3px solid var(--brand); padding-top: 0.9rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { background: var(--tint); color: var(--brand-deep); text-decoration: none; font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.95rem; }
.jump a:hover { background: var(--line); }

.code { margin: 0; background: var(--brand-deep); color: #efecff; border-radius: 10px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.55; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }

.scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.compare th, .compare td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); background: var(--brand-deep); color: #fff; }
.compare tbody th { font-family: var(--display); width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Call to action */
.cta { background: var(--brand); color: #fff; padding: clamp(2.2rem, 5vw, 3.4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner > div { display: grid; gap: 0.5rem; max-width: 62ch; }
.cta p { color: #e4defb; }

/* Contact */
.big-link { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); overflow-wrap: anywhere; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; display: grid; gap: 0.5rem; }
.form label { font-weight: 600; margin-top: 0.6rem; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9b4d2; border-radius: 8px; padding: 0.65rem 0.75rem; width: 100%; }
.form .btn { margin-top: 1rem; justify-self: start; }
.hint { color: var(--muted); font-size: 0.95rem; }
.error { color: #a3261c; font-weight: 600; }

/* Prose (privacy policy) */
.section > .prose { gap: 1rem; max-width: 72ch; margin-inline: auto; width: min(72ch, 100% - 2.5rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcbe6; padding: 2.6rem 0 1.6rem; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot > div { display: grid; gap: 0.4rem; }
.foot-brand { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.15rem; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0.4rem 2rem; align-content: start; }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: #a9a4c6; }

@media (max-width: 900px) {
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 0.8rem; }
  .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 6px 6px 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .coverage { padding: 0.9rem; }
  .coverage td { font-size: 0.84rem; padding: 0.6rem; }
  .coverage thead th:first-child { width: 24%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot nav { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
