/* The product page at the service's root (/). Link11's colours and type, the
   same tokens as the Fabric Console (docs/design-system in jpj069/fabric), at
   marketing scale. Light and dark follow the visitor's system; nothing here
   loads from a third party. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/site/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/site/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --navy: #10123a; /* link11.com */
  --navy-2: #171a4a;
  --navy-line: rgba(255, 255, 255, 0.12);
  --on-navy: #ffffff;
  --on-navy-muted: #c3c6e3;
  --emerald: #18803e;
  --emerald-hover: #136832;
  --emerald-soft: #74b28d;

  --ground: #f8fafc;
  --raised: #ffffff;
  --panel: #f1f5f9;
  --ink: #334155;
  --ink-strong: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #18803e;
  --accent-ink: #0e4d25;
  --highlight: #e8f2ec;
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --del: #fca5a5;
  --ins: #86efac;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #020617;
    --raised: #0f172a;
    --panel: #0b1222;
    --ink: #e2e8f0;
    --ink-strong: #ffffff;
    --muted: #94a3b8;
    --line: #1e293b;
    --line-strong: #334155;
    --accent: #429a63;
    --accent-ink: #a3ccb2;
    --highlight: rgba(66, 154, 99, 0.16);
    --code-bg: #0b1222;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ── Language: both texts are in the markup; the other one is hidden ───── */

html[data-lang='de'] [lang='en']:not(html),
html[data-lang='en'] [lang='de']:not(html) {
  display: none !important;
}

/* ── Sign-up: "Start free" where self-service sign-up exists, "Request access" where it does not ── */

html[data-signup='request'] .if-signup,
html:not([data-signup='request']) .if-request {
  display: none !important;
}

/* A label that must not change its width with the language (the top bar's
   button, which would push the language switch around): both texts share one
   grid cell, the other one only invisible. */

.swap {
  display: inline-grid;
}

html[data-lang] .swap > [lang]:not(html) {
  display: block !important;
  grid-area: 1 / 1;
  text-align: center;
}

.bar__nav .swap > [lang]:not(html) {
  text-align: left !important;
}

html[data-lang='de'] .swap > [lang='en']:not(html),
html[data-lang='en'] .swap > [lang='de']:not(html) {
  visibility: hidden;
}

/* The demo pages exist only where the instance runs them (CAPTCHA_DEMO). */

html[data-demo='off'] .if-demo {
  display: none !important;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

/* A component's own display must never beat the hidden attribute (tab panels). */
[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

code,
.mono {
  font-variant-numeric: tabular-nums;
}

code {
  padding: 0.1em 0.35em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.mono {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  color: #fff;
  background: var(--emerald);
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 1rem;
}

.btn--primary {
  color: #fff;
  background: var(--emerald);
}

.btn--primary:hover {
  background: var(--emerald-hover);
}

.btn--primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn--ghost {
  color: var(--ink-strong);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero .btn--ghost,
.final .btn--light {
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn--ghost:hover,
.final .btn--light:hover {
  color: var(--on-navy);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Top bar ────────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--on-navy);
  background: rgba(16, 18, 58, 0.92);
  border-bottom: 1px solid var(--navy-line);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.bar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--wrap);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 18px;
}

.brand__product {
  padding-left: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-left: 1px solid var(--navy-line);
}

.bar__nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.bar__nav a {
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-navy-muted);
  text-decoration: none;
  border-radius: 6px;
}

.bar__nav a:hover {
  color: var(--on-navy);
  background: rgba(255, 255, 255, 0.06);
}

.bar__end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
}

.lang button {
  min-width: 36px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-navy-muted);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  color: var(--navy);
  background: #fff;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(24, 128, 62, 0.28), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(66, 154, 99, 0.14), transparent 70%),
    var(--navy);
}

/* A quiet dot grid: the network behind the box. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.hero .eyebrow {
  color: var(--emerald-soft);
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 2rem + 3.2vw, 4.25rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--on-navy);
}

.hero__title em {
  font-style: normal;
  color: var(--emerald-soft);
}

.hero__lead {
  max-width: 36rem;
  margin: 0 0 32px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--on-navy-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__fine {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--on-navy-muted);
}

.hero__demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__demo-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--on-navy-muted);
}

/* The sign-in form the live widget sits in. */
.mock {
  width: 100%;
  max-width: 420px;
  margin: 0;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mock__dots {
  display: inline-flex;
  gap: 6px;
}

.mock__dots i {
  width: 10px;
  height: 10px;
  background: var(--line-strong);
  border-radius: 999px;
}

.mock__url {
  flex: 1;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mock__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 26px;
}

.mock__title {
  margin: 0 0 2px;
  font-size: 1.375rem;
}

.mock__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-strong);
}

.mock__field input {
  min-height: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-strong);
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.mock__field input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.mock__widget {
  min-height: 66px;
}

.mock__submit {
  width: 100%;
  min-height: 44px;
}

.mock__note {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.mock__note.is-ok {
  color: var(--accent);
}

/* ── Facts strip ────────────────────────────────────────────────────────── */

.facts {
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}

.facts__in {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 20px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts strong {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}

/* ── More to try (demo section) ─────────────────────────────────────────── */

.more {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--navy-line);
}

.more__title {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.more__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  font-size: 0.9375rem;
  color: var(--on-navy-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, background-color 0.15s;
}

.more__card strong {
  color: var(--on-navy);
}

.more__card strong::after {
  content: ' →';
  color: var(--emerald-soft);
}

.more__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 104px 0;
}

.section--alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark,
.section--navy {
  color: var(--on-navy-muted);
  background: var(--navy);
}

.section--dark {
  background:
    radial-gradient(50% 60% at 15% 0%, rgba(24, 128, 62, 0.2), transparent 70%),
    var(--navy);
}

.section--dark h2,
.section--dark h3,
.section--navy h2,
.section--navy h3 {
  color: var(--on-navy);
}

.section--dark .eyebrow,
.section--navy .eyebrow {
  color: var(--emerald-soft);
}

.section--dark .section__lead,
.section--navy .section__lead {
  color: var(--on-navy-muted);
}

.section__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section__head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section__head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 700;
}

.section__lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* ── Why ────────────────────────────────────────────────────────────────── */

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pain {
  padding: 28px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pain h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.pain p {
  margin: 0;
  color: var(--muted);
}

.pain__icon,
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: var(--highlight);
  border-radius: 10px;
}

.pain__icon svg,
.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── How ────────────────────────────────────────────────────────────────── */

.flow {
  margin: 0 0 48px;
  padding: 28px 24px 20px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.flow__svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.flow__box rect {
  fill: var(--panel);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.flow__box--hot rect {
  fill: var(--highlight);
  stroke: var(--accent);
}

.flow__h {
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--ink-strong);
}

.flow__s {
  font-size: 12.5px;
  text-anchor: middle;
  fill: var(--muted);
}

.flow__l {
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  fill: var(--accent);
}

.flow__lines line,
.flow__lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.flow__fallback {
  stroke-dasharray: 5 5;
  opacity: 0.7;
}

.flow figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li h3 {
  margin: 14px 0 8px;
  font-size: 1.0625rem;
}

.steps li p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.steps__n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--emerald);
  border-radius: 999px;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 26px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--line-strong);
}

.card--accent {
  background: linear-gradient(180deg, var(--highlight), var(--raised) 70%);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tabs__list button {
  padding: 8px 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.tabs__list button:hover {
  color: var(--ink-strong);
}

.tabs__list button[aria-selected='true'] {
  color: var(--ink-strong);
  background: var(--raised);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.section--dark .tabs__list {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--navy-line);
}

.section--dark .tabs__list button {
  color: var(--on-navy-muted);
}

.section--dark .tabs__list button[aria-selected='true'] {
  color: var(--navy);
  background: #fff;
}

/* ── Live demo ──────────────────────────────────────────────────────────── */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.demo__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 340px;
  padding: 40px 24px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

.demo__widget {
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
}

.demo__out {
  margin: 0;
  min-height: 1.5em;
  max-width: 340px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.demo__out.is-ok {
  color: var(--accent);
}

.demo__text h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.demo__text p {
  margin: 0;
  font-size: 1.0625rem;
}

/* ── Checklists (privacy, accessibility) ────────────────────────────────── */

.checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.checks li {
  position: relative;
  padding: 14px 16px 14px 48px;
  color: var(--muted);
  border-radius: 8px;
}

.checks li + li {
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 17px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 999px;
}

.checks li::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.checks strong {
  color: var(--ink-strong);
}

/* ── Integration ────────────────────────────────────────────────────────── */

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.code-grid__label {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-strong);
}

.tabs__list--code {
  margin-bottom: 12px;
}

.code-box {
  position: relative;
}

/* Room above the first line for the copy button, so it never covers code. */
.code {
  margin: 0;
  padding: 44px 22px 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-ink);
  background: var(--code-bg);
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
}

.code code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
}

/* Text to copy rather than code (the privacy-policy paragraph in the docs):
   the same box and copy button, wrapped like prose. */
.code--text {
  font-family: var(--font);
  font-size: 0.875rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* A placeholder the reader replaces. */
.code mark {
  color: inherit;
  background: rgba(250, 204, 21, 0.2);
  border-radius: 3px;
}

.code a {
  color: inherit;
}

.code del,
.code ins {
  display: block;
  margin: 0 -22px;
  padding: 0 22px;
  text-decoration: none;
}

.code del {
  color: var(--del);
  background: rgba(239, 68, 68, 0.12);
}

.code del::before {
  content: '− ';
}

.code ins {
  color: var(--ins);
  background: rgba(34, 197, 94, 0.12);
}

.code ins::before {
  content: '+ ';
}

.code__copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  font: inherit;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  cursor: pointer;
}

.code__copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.code-note {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ── Console screenshots ────────────────────────────────────────────────── */

.shots {
  text-align: center;
}

.shots__frame {
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.shots__frame img {
  display: block;
  width: 100%;
}

.shots__note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Platform ───────────────────────────────────────────────────────────── */

.platform {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform article {
  padding: 24px;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
}

.platform h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.platform p {
  margin: 0;
  font-size: 0.9375rem;
}

.platform__soon {
  border-style: dashed !important;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--navy);
  background: var(--emerald-soft);
  border-radius: 999px;
}

/* ── Compare ────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.compare {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-strong);
  background: var(--panel);
}

.compare tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--ink-strong);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td {
  color: var(--muted);
}

.compare .compare__us {
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--highlight);
}

.compare thead .compare__us {
  color: #fff;
  background: var(--emerald);
}

.compare__note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}

.plans__fine {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.plans__fine strong {
  color: var(--ink-strong);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.plan--main {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin: 0;
  font-size: 1.25rem;
}

.plan__price {
  margin: 0;
  color: var(--muted);
}

.plan__price strong {
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
}

.plan ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  position: relative;
  padding-left: 26px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan li strong {
  color: var(--ink-strong);
}

.plan .btn {
  align-self: flex-start;
}

.plan__fine {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list details:first-child {
  border-top: 1px solid var(--line);
}

.faq__list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-strong);
  list-style: none;
  cursor: pointer;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.faq__list details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}

.faq__list details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ── Final CTA and footer ───────────────────────────────────────────────── */

.final {
  color: var(--on-navy-muted);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 100%, rgba(24, 128, 62, 0.35), transparent 70%),
    var(--navy);
}

.final__in {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px;
}

.final h2 {
  margin: 0 0 16px;
  font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  color: var(--on-navy);
}

.final p {
  margin: 0 0 32px;
  font-size: 1.125rem;
}

.final .hero__cta {
  justify-content: center;
}

.foot {
  color: var(--on-navy-muted);
  background: #0b0d2c;
  border-top: 1px solid var(--navy-line);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 0.875rem;
}

.foot__brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--on-navy);
}

.foot__brand img {
  height: 16px;
  width: auto;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot__links a {
  color: var(--on-navy-muted);
}

.foot__links a:hover {
  color: var(--on-navy);
}

.foot__fine {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.8125rem;
}


/* ── Top bar: the menu button on narrow screens ─────────────────────────── */

.bar__menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--on-navy);
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  cursor: pointer;
}

.bar__menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ── "See all …" links under a section ───────────────────────────────────── */

.more-link {
  margin: 32px 0 0;
  font-weight: 600;
}

.more-link a {
  text-decoration: none;
}

.more-link a::after {
  content: ' →';
}

.more-link a:hover {
  text-decoration: underline;
}

/* ── Pricing teaser on the home page ────────────────────────────────────── */

.teaser {
  padding: 64px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.teaser__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.teaser h2 {
  max-width: 28ch;
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.teaser p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
}

/* ── Second-level navigation inside an area (the demo pages) ────────────── */

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.subnav a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-navy-muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.subnav a:hover {
  color: var(--on-navy);
  border-color: rgba(255, 255, 255, 0.5);
}

.subnav a[aria-current='page'] {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
}

/* ── Page head (features, pricing, demo, docs) and the documentation ─────────────────────────────────────────────── */

.bar__nav a[aria-current='page'] {
  color: var(--on-navy);
  background: rgba(255, 255, 255, 0.1);
}

.page-hero {
  padding: 56px 0 52px;
  color: var(--on-navy-muted);
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(24, 128, 62, 0.22), transparent 70%),
    var(--navy);
}

.page-hero .eyebrow {
  color: var(--emerald-soft);
}

.page-hero h1 {
  max-width: 22ch;
  margin: 0 0 14px;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  color: var(--on-navy);
}

.page-hero p {
  max-width: 64ch;
  margin: 0;
  font-size: 1.125rem;
}

.page-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-hero__links a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-navy);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.page-hero__links a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.docs__toc {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  font-size: 0.875rem;
}

.docs__toc-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.docs__toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.docs__toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.docs__body {
  min-width: 0;
  max-width: 820px;
}

.docs__body > section {
  padding-top: 8px;
  scroll-margin-top: 84px;
}

.docs__body > section + section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.docs__body h2 {
  margin: 0 0 16px;
  font-size: 1.75rem;
}

.docs__body h3 {
  margin: 28px 0 10px;
  font-size: 1.125rem;
  /* A heading linked directly (#js-forms-missing) clears the sticky top bar, as the sections do. */
  scroll-margin-top: 84px;
}

.docs__body p,
.docs__body li {
  max-width: 72ch;
}

.docs__body p {
  margin: 0 0 14px;
}

.docs__body ul,
.docs__body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.docs__body li + li {
  margin-top: 6px;
}

.docs__body .code-box,
.docs__body .tabs {
  margin: 14px 0 18px;
}

.docs-steps {
  counter-reset: step;
  padding-left: 0 !important;
  list-style: none;
}

.docs-steps > li {
  position: relative;
  padding: 0 0 8px 48px;
  counter-increment: step;
}

.docs-steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
  color: #fff;
  background: var(--emerald);
  border-radius: 999px;
}

.docs-steps > li h3 {
  margin: 4px 0 8px;
}

.docs-table {
  margin: 14px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.docs-table table {
  width: 100%;
  font-size: 0.9375rem;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.docs-table tr:last-child > * {
  border-bottom: 0;
}

.docs-table thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel);
}

.docs-table tbody th {
  width: 120px;
  color: var(--ink-strong);
}

.docs-table td:first-child code {
  white-space: nowrap;
}

.docs-note {
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--highlight);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-card {
  padding: 16px 18px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.docs-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.docs-card p {
  margin: 0;
  font-size: 0.9375rem;
}

.docs-faq details {
  padding: 12px 16px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.docs-faq details + details {
  margin-top: 8px;
}

.docs-faq summary {
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
}

.docs-faq details p {
  margin: 10px 0 0;
}

.docs-contact {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.docs-contact p {
  margin: 0 0 12px;
}

@media (max-width: 960px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .docs__toc {
    position: static;
    max-height: none;
  }

  .docs__toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-left: 0;
  }

  .docs__toc a {
    padding: 4px 10px;
    margin: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .docs-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .bar__in {
    position: relative;
  }

  .bar__menu {
    display: inline-flex;
  }

  .bar__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  }

  .bar[data-menu='open'] .bar__nav {
    display: flex;
  }

  .bar__nav a {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .hero__in,
  .split,
  .demo,
  .code-grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__in {
    gap: 48px;
    padding: 64px 24px 72px;
  }

  .facts__in {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .grid,
  .platform {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pains {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 64px;
  }

  .bar__in {
    gap: 12px;
    padding: 0 16px;
  }

  .brand__product {
    display: none;
  }

  .bar__end .btn {
    display: none;
  }

  .hero__in,
  .section__in,
  .facts__in,
  .foot__in {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .mock__body {
    padding: 20px;
  }

  .facts__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts li {
    padding: 20px 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts li:nth-child(odd) {
    padding-left: 0;
  }

  .facts li:first-child,
  .facts li:nth-child(2) {
    border-top: 0;
  }

  .section {
    padding: 72px 0;
  }

  .grid,
  .platform,
  .steps,
  .plans,
  .more__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The diagram's labels would shrink below reading size; the four steps say the same. */
  .flow__svg {
    display: none;
  }

  .flow {
    padding: 4px 16px;
  }

  .demo__stage {
    min-height: 280px;
    padding: 28px 12px;
  }

  .code {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
