/* SecPaid marketing site
   Shape rule: buttons and pills are full-radius, panels/cards 16px, inputs 8px.
   One accent (emerald) used everywhere. Off-black / off-white neutrals. */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --ink: #121316;
  --ink-2: #3c4048;
  --muted: #676c75;
  --line: #e3e5e9;
  --line-strong: #cfd2d8;
  --accent: #1f8c66;
  --accent-ink: #ffffff;
  --accent-soft: #e4f4ec;
  --danger: #b4463f;
  --shadow: 0 1px 2px rgba(20, 24, 30, .05), 0 12px 40px -12px rgba(20, 24, 30, .16);
  --radius-panel: 16px;
  --radius-input: 8px;
  --nav-h: 68px;
  --max: 1200px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012;
    --surface: #17181b;
    --surface-2: #1e2024;
    --ink: #f1f2f4;
    --ink-2: #c8cbd1;
    --muted: #9ba0a9;
    --line: #272a30;
    --line-strong: #363a42;
    --accent: #3fcf97;
    --accent-ink: #0b1a13;
    --accent-soft: #123626;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012;
  --surface: #17181b;
  --surface-2: #1e2024;
  --ink: #f1f2f4;
  --ink-2: #c8cbd1;
  --muted: #9ba0a9;
  --line: #272a30;
  --line-strong: #363a42;
  --accent: #3fcf97;
  --accent-ink: #0b1a13;
  --accent-soft: #123626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 48px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }
.wrap > *, .dev-grid > *, .subs .wrap > *, .hero .wrap > * { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.038em; line-height: 1.0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 700; }
h3 { font-size: 1.3rem; letter-spacing: -0.018em; line-height: 1.2; font-weight: 700; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.mono { font-family: var(--mono); font-size: .85em; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 1.25rem; border-radius: 999px; white-space: nowrap;
  font-weight: 500; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 38px; padding: 0 1rem; font-size: .9rem; }
.btn-lg { height: 52px; padding: 0 1.6rem; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link svg { width: 16px; height: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; height: 100%; }
.brand img { height: 28px; width: auto; }
:root[data-theme="dark"] .brand img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: invert(1); } }
.nav-links { display: flex; gap: .1rem; margin-left: .75rem; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: inline-block; padding: .45rem .65rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }

/* Industries dropdown in the header */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown summary {
  display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; list-style: none;
  padding: .45rem .65rem; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.nav-dropdown summary:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown details[open] > summary { background: var(--surface-2); color: var(--ink); }
.nav-dropdown details[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav-dropdown ul a {
  display: block; padding: .55rem .8rem; border-radius: var(--radius-input);
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
}
.nav-dropdown ul a:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 961px) {
  .nav-dropdown ul {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; padding: .4rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
    box-shadow: var(--shadow); z-index: 70;
  }
}
.nav-cta { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: .75rem 1.25rem; margin: 0; gap: .25rem;
  }
  .nav.open .nav-links { top: var(--nav-h); }
  .nav.open .nav-cta { top: calc(var(--nav-h) + 232px); padding-top: 0; padding-bottom: 1.25rem; }
  .nav.open .nav-links a { padding: .75rem .5rem; border-radius: var(--radius-input); }
}

/* Hero */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; max-width: 18ch; font-size: clamp(2.5rem, 4.8vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; overflow-wrap: break-word; }
html[lang="de"] .hero h1 { max-width: 22ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero .eyebrow { display: block; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 2rem; max-width: 46ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-visual { position: relative; perspective: 1600px; }
.frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--shadow); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame-bar span { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.frame-bar .url { margin-left: .5rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.frame img { width: 100%; height: auto; }
.hero .frame { transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.hero .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .frame { transform: none; }
  .hero h1 { max-width: none; }
}

/* Payment methods strip (single marquee on page) */
.methods { padding-block: 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.methods p { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 auto .4rem; max-width: 52ch; }
.methods p:last-of-type { margin-bottom: 1.25rem; }
.methods p.methods-head { color: var(--ink); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; max-width: 42ch; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 114s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.method { flex: none; margin-right: 1rem; display: grid; place-items: center; height: 56px; width: 96px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.method img { height: 26px; width: auto; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee { mask-image: none; -webkit-mask-image: none; } }

/* Hard-ruled stat band (under the hero) */
.statband { border-block: 2px solid var(--ink); background: var(--surface); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.statitem { padding: 1.5rem 1.25rem; border-right: 1px solid var(--line-strong); }
.statitem:last-child { border-right: 0; }
.statitem b { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: .5rem; }
.statitem span { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 700px) {
  .statband .wrap { grid-template-columns: 1fr 1fr; }
  .statitem:nth-child(2n) { border-right: 0; }
  .statitem:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
}

/* Live routing panel (hero visual) */
.route-panel {
  --rp-bg: #131417; --rp-line: #2a2c31; --rp-text: #e9eaec; --rp-dim: #9a9ea6; --rp-ok: #4ade9b;
  background: var(--rp-bg); color: var(--rp-text);
  border: 1px solid var(--rp-line); border-radius: var(--radius-panel);
  overflow: hidden; box-shadow: var(--shadow); font-family: var(--mono);
}
.route-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--rp-line); }
.route-panel__live { display: inline-flex; align-items: center; gap: .5rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.route-panel__live i { width: 7px; height: 7px; border-radius: 999px; background: var(--rp-ok); animation: rp-pulse 2.2s ease-out infinite; flex: none; }
@keyframes rp-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,155,.5); } 70% { box-shadow: 0 0 0 7px rgba(74,222,155,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,155,0); } }
.route-panel__region { font-size: .66rem; color: var(--rp-dim); letter-spacing: .04em; white-space: nowrap; }
.route-panel__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rp-line); }
.route-panel__stats > div { padding: .9rem 1rem; border-right: 1px solid var(--rp-line); }
.route-panel__stats > div:last-child { border-right: 0; }
.route-panel__stats b { display: block; font-family: var(--font); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.route-panel__stats span { font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rp-dim); }
.route-table-wrap { overflow-x: auto; }
.route-table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.route-table th { text-align: left; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; color: var(--rp-dim); padding: .55rem 1rem; border-bottom: 1px solid var(--rp-line); }
.route-table td { padding: .5rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--rp-line) 55%, transparent); color: var(--rp-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.route-table td:nth-child(3) { color: var(--rp-dim); }
.route-table .ok { color: var(--rp-ok); }
.route-table tr.rp-new td { animation: rp-fade .6s ease; }
@keyframes rp-fade { from { background: rgba(74,222,155,.1); } to { background: transparent; } }
.route-panel__trust { padding: .7rem 1rem; font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rp-dim); border-top: 1px solid var(--rp-line); }
@media (prefers-reduced-motion: reduce) { .route-panel__live i { animation: none; } .route-table tr.rp-new td { animation: none; } }

/* Germany / EU sovereignty trust section */
.sovereignty { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); text-align: center; }
.trust-grid > div { padding: 1.5rem 1.25rem 0; }
.trust-grid > div + div { border-left: 1px solid var(--line-strong); }
.trust-grid b { display: block; font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.trust-grid p { color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } .trust-grid > div { border-left: 0; padding-top: 1.25rem; } }

/* Product bento (6 cells) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 1rem; }
.cell {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel);
  background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.cell h3 { margin-top: auto; }
.cell p { color: var(--muted); font-size: .95rem; max-width: 40ch; }
.cell-a { grid-column: span 4; grid-row: span 2; }
.cell-b { grid-column: span 2; grid-row: span 2; }
.cell-c, .cell-d, .cell-f, .cell-g { grid-column: span 3; }
.cell-shot { margin: -1.5rem -1.5rem 1rem; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cell-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.cell-b .cell-shot { height: 240px; }
.cell-shot-qr { display: grid; place-items: center; background: var(--surface-2); }
.cell-shot-qr img { width: auto; height: 85%; object-fit: contain; }
.cell-tint { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.cell-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cell-dark p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.split-viz { display: flex; gap: .4rem; align-items: flex-end; height: 64px; margin-bottom: .5rem; }
.split-viz i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent); display: block; }
.split-viz i:nth-child(1) { height: 100%; }
.split-viz i:nth-child(2) { height: 55%; opacity: .75; }
.split-viz i:nth-child(3) { height: 30%; opacity: .5; }
.hook-log { font-family: var(--mono); font-size: .78rem; line-height: 1.7; margin-bottom: .5rem; color: var(--ink-2); }
.hook-log span { color: var(--accent); }
.sub-viz { margin-bottom: .5rem; }
.sub-viz-track { display: flex; align-items: center; height: 28px; }
.sub-viz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.sub-viz-dot + .sub-viz-dot { margin-left: 22px; position: relative; }
.sub-viz-dot + .sub-viz-dot::before { content: ''; position: absolute; right: 100%; top: 50%; width: 22px; height: 1px; background: color-mix(in srgb, var(--bg) 30%, transparent); transform: translateY(-50%); }
.sub-viz-dot.is-next { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--bg) 55%, transparent); }
.sub-viz-label { display: block; font-family: var(--mono); font-size: .78rem; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.sub-viz-card { margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 15%, transparent); }
.sub-viz-card-row { display: flex; align-items: center; gap: .65rem; }
.sub-viz-avatar { width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 15%, transparent); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex: none; }
.sub-viz-who { flex: 1; display: flex; flex-direction: column; font-size: .85rem; min-width: 0; }
.sub-viz-who b { font-weight: 600; }
.sub-viz-who span { font-size: .72rem; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.sub-viz-amt { font-weight: 700; font-size: .92rem; font-family: var(--mono); flex: none; }
.sub-viz-next { margin-top: .65rem; font-size: .75rem; font-family: var(--mono); color: color-mix(in srgb, var(--bg) 60%, transparent); }
.sub-viz-next b { color: var(--bg); font-weight: 600; }
.cell-feats { list-style: none; display: grid; gap: .4rem; margin: 0; padding: 0; }
.cell-feats li { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.cell-feats svg { width: 15px; height: 15px; flex: none; margin-top: .15rem; color: var(--accent); }
.cell-dark .cell-feats li { color: color-mix(in srgb, var(--bg) 75%, transparent); }
@media (max-width: 960px) {
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: auto; }
  .cell-a, .cell-b { grid-column: span 2; grid-row: auto; }
  .cell-c, .cell-d, .cell-f, .cell-g { grid-column: span 2; }
}

/* Subscriptions */
.subs .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.subs h2 { margin-bottom: 1rem; }
.subs .lede { margin-bottom: 2rem; }
.feature-tabs { display: grid; gap: .25rem; }
.feature-tab {
  text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line);
  padding: .85rem 1rem; border-radius: 0 var(--radius-input) var(--radius-input) 0;
}
.feature-tab.is-active { border-left-color: var(--accent); background: var(--surface-2); }
.feature-tab b { display: block; font-weight: 600; margin-bottom: .15rem; }
.feature-tab span { color: var(--muted); font-size: .92rem; display: block; }
.subs .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
@media (max-width: 960px) { .subs .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Developers */
.dev { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dev-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.code { min-width: 0; background: #0f1012; color: #e6e8ec; border-radius: var(--radius-panel); border: 1px solid #272a30; overflow: hidden; color-scheme: dark; }
.code-tabs { display: flex; gap: .25rem; padding: .6rem .75rem; border-bottom: 1px solid #272a30; background: #141518; }
.code-tabs button { background: transparent; border: 0; color: #9ba0a9; padding: .35rem .7rem; border-radius: 999px; font-size: .82rem; cursor: pointer; }
.code-tabs button[aria-selected="true"] { background: #23262c; color: #f1f2f4; }
.code pre { margin: 0; padding: 1.25rem; font-family: var(--mono); font-size: .82rem; line-height: 1.65; overflow-x: auto; }
.code pre[hidden] { display: none; }
.code .k { color: #3fcf97; } .code .s { color: #f5c26b; } .code .c { color: #7f8590; }
.endpoints { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 2rem; margin-top: 1.5rem; }
.endpoints div { padding: .85rem 0; border-top: 1px solid var(--line); }
.endpoints code { overflow-wrap: anywhere; font-family: var(--mono); font-size: .78rem; color: var(--accent); display: block; margin-bottom: .25rem; }
.endpoints span { color: var(--muted); font-size: .9rem; }
.hooks { display: grid; gap: 0; counter-reset: step; }
.hooks li { list-style: none; position: relative; padding: 1rem 0 1rem 2.75rem; border-top: 1px solid var(--line); counter-increment: step; }
.hooks li:last-child { border-bottom: 1px solid var(--line); }
.hooks li::before {
  content: counter(step); position: absolute; left: 0; top: 1rem; width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: .8rem; display: grid; place-items: center;
}
.hooks b { display: block; margin-bottom: .15rem; }
.hooks span { color: var(--muted); font-size: .92rem; }
.integrations { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.integrations .chip { display: inline-flex; align-items: center; gap: .6rem; height: 44px; padding: 0 1rem 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: .92rem; }
.integrations .chip img { height: 22px; width: auto; }
.integrations .chip .api { font-family: var(--mono); font-size: .8rem; color: var(--accent); }
@media (max-width: 960px) { .dev-grid { grid-template-columns: minmax(0, 1fr); } .endpoints { grid-template-columns: minmax(0, 1fr); } }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sec-grid div { padding: 1.75rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-grid b { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.sec-grid p { color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .sec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.pricing { background: var(--surface); border-top: 1px solid var(--line); }
.pricing .section-head { margin-inline: auto; text-align: center; }
.pricing-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; }

/* Forms (partner inquiry) */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; text-align: left; }
.field label { font-size: .9rem; font-weight: 500; }
.field input {
  height: 44px; padding: 0 .85rem; border-radius: var(--radius-input); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; width: 100%;
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .error { font-size: .82rem; color: var(--danger); display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .error { display: block; }
.partner-form .btn { width: 100%; margin-top: .5rem; }
.form-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1rem; }
.done { text-align: center; padding: 1rem 0; }
.done .mark { width: 56px; height: 56px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1rem; }
.done h3 { margin-bottom: .5rem; }
.done p { color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; max-width: 65ch; }

/* Final CTA */
.cta { padding-block: clamp(4rem, 8vw, 7rem); }
.cta .box { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.cta h2 { margin-bottom: .75rem; }
.cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 50ch; }
.cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-ghost { border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--bg); }
.cta .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); }
@media (max-width: 960px) { .cta .box { grid-template-columns: minmax(0, 1fr); } .cta .actions { justify-content: flex-start; } }
.cta-note { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }
.cta-note a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { color: var(--ink); font-size: .85rem; font-weight: 600; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a:hover { color: var(--ink); }
.footer .brand img { height: 24px; margin-bottom: .75rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.lang { display: inline-flex; gap: .25rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; }
.lang button { border: 0; background: transparent; padding: .2rem .6rem; border-radius: 999px; cursor: pointer; font-size: .82rem; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nav-cta .lang { margin-right: .25rem; }
.theme-toggle { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s ease; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
/* Tighten the header on narrow desktops so links never run under the toggles */
@media (min-width: 961px) and (max-width: 1120px) {
  .nav .wrap { gap: .75rem; }
  .nav-links { margin-left: .25rem; }
  .nav-links a, .nav-dropdown summary { padding-inline: .4rem; font-size: .9rem; }
}
@media (max-width: 960px) { .nav.open .nav-cta .theme-toggle { align-self: flex-start; margin: 0 0 .5rem; } }
@media (max-width: 960px) { .nav.open .nav-cta .lang { align-self: flex-start; margin: 0 0 .5rem; } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.industry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.5rem; }
.industry b { display: block; font-size: 1.05rem; margin-bottom: .4rem; }
.industry p { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: minmax(0, 1fr); } }

/* Onboarding */
.onboard { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.onboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.onboard-step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.onboard-step .idx { font-family: var(--mono); color: var(--accent); font-size: 1.4rem; display: block; margin-bottom: .75rem; }
.onboard-step h3 { margin-bottom: .5rem; }
.onboard-step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .onboard-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

/* Account manager */
.am .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.am h2 { margin-bottom: 1rem; }
.am .lede { margin-bottom: 0; }
.am-list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.am-item { display: flex; gap: .75rem; align-items: flex-start; }
.am-item svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; color: var(--accent); }
.am-item b { display: block; margin-bottom: .2rem; }
.am-item span { color: var(--muted); font-size: .93rem; }
.am .frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
@media (max-width: 960px) { .am .wrap { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Industries tiles as links */
a.industry { text-decoration: none; color: inherit; transition: border-color .2s, transform .15s ease, box-shadow .2s; }
a.industry:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
a.industry:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.industry .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: var(--accent); font-weight: 500; font-size: .9rem; }
.industry .more svg { width: 15px; height: 15px; }
.industries .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .industries .industry-grid { grid-template-columns: minmax(0, 1fr); } }

/* Testimonials */
.testimonials { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonials .section-head { max-width: 56ch; margin-inline: auto; text-align: center; }
.t-lead { max-width: 780px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.t-lead blockquote { margin: 0 0 1.75rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.36; letter-spacing: -0.015em; font-weight: 500; }
.t-person { display: inline-flex; align-items: center; gap: .85rem; }
.t-photo { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.t-photo.is-placeholder { display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .58rem; text-align: center; line-height: 1.1; }
.t-person .who { text-align: left; }
.t-person .who b { display: block; font-size: .95rem; }
.t-person .who span { color: var(--muted); font-size: .88rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 900px; margin-inline: auto; }
.t-card { border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.5rem; background: var(--bg); }
.t-card blockquote { margin: 0 0 1.15rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.t-card .t-person { display: flex; }
.t-card .t-photo { width: 40px; height: 40px; }
.t-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1.75rem; }
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: minmax(0, 1fr); } }

/* Vertical landing pages */
.vhero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.vhero .eyebrow { display: block; }
.vhero h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.038em; margin-bottom: 1.25rem; max-width: 18ch; }
.vhero h1 em { font-style: normal; color: var(--accent); }
.vhero .lede { font-size: 1.15rem; margin-bottom: 2rem; max-width: 62ch; }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin: 2rem 0 .5rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.dl-list { display: grid; gap: .75rem; margin: 1.5rem 0; }
.dl-item {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-input);
  text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease;
}
.dl-item:hover { border-color: var(--ink-2); background: var(--surface-2); }
.dl-item svg { flex: none; color: var(--accent); }
.dl-item span { display: grid; gap: .1rem; }
.dl-item b { font-size: .95rem; }
.dl-item span span { color: var(--muted); font-size: .85rem; }
/* Blog index */
.blog-hero { padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; background: var(--surface); transition: border-color .2s ease, transform .15s ease; }
.blog-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.blog-card-shot { aspect-ratio: 16/9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.blog-card-shot img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.blog-card-meta .tag { color: var(--accent); }
.blog-card h3 { font-size: 1.15rem; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.blog-card .more { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 500; font-size: .92rem; margin-top: .25rem; }
.blog-card .more svg { width: 15px; height: 15px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }

/* Blog post */
.post-hero { padding-bottom: 0; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1.1rem; }
.post-meta .tag { color: var(--accent); }
.post-hero h1 { max-width: 22ch; }
.post-lang { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem; color: var(--muted); font-size: .88rem; }
.post-lang a { color: var(--accent); font-weight: 500; }
.post-lang a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-shot { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; aspect-ratio: 21/9; border-radius: var(--radius-panel); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.post-shot img { width: 100%; height: 100%; object-fit: cover; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
.post-body th { text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding: 0 .75rem .6rem; border-bottom: 2px solid var(--ink); }
.post-body td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.post-body ul, .post-body ol { padding-left: 1.25rem; margin: 0 0 1rem; color: var(--ink-2); }
.post-body li { margin-bottom: .4rem; }
.post-callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-input); padding: 1.1rem 1.25rem; margin: 1.75rem 0; color: var(--ink-2); font-size: .95rem; }
.post-callout a { color: var(--accent); font-weight: 500; }
.post-callout a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-sources { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-sources h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.post-sources ol { padding-left: 1.25rem; color: var(--muted); font-size: .85rem; }
.post-sources li { margin-bottom: .4rem; }
.post-disclaimer { color: var(--muted); font-size: .82rem; font-style: italic; margin-top: 1.5rem; }

.related { background: var(--surface); border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-grid a { display: block; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.25rem; background: var(--bg); color: inherit; text-decoration: none; transition: border-color .2s, transform .15s ease; }
.related-grid a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.related-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.related-grid b { display: block; margin-bottom: .3rem; }
.related-grid span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }
