/* Shared foundations and interaction states. Each design owns its visual tokens. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
html.theme-dark { color-scheme: dark; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, select, input { font-family: var(--body-font); }
button, input, select { font-size: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a { color: inherit; }
a { text-decoration: none; }
button { border: 0; }
svg { display: block; max-width: 100%; }
button svg, a svg, .large-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
code, pre { font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace; }
p { line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display-font); font-weight: 600; }
ul { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 14px 20px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 29px; letter-spacing: -1.3px; font-weight: 750; white-space: nowrap; }
.brand .brand-mark { width: 34px; height: 34px; stroke: none; }
.main-nav { display: flex; align-items: center; }
.main-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.menu-toggle { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; min-height: 54px; padding: 15px 24px; background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 14px; line-height: 1.4; border: 1px solid transparent; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.button:hover { background: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button:disabled { background: var(--disabled); color: var(--muted); border-color: var(--border); }
.button-small { min-height: 44px; padding: 10px 18px; gap: 20px; font-size: 13px; }
.button-full { width: 100%; justify-content: space-between; }
.quiet-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-weight: 550; font-size: 14px; }
.quiet-link:hover, .main-nav a:hover, .site-footer a:hover { color: var(--accent); }
.section-space { padding-block: 112px; }
.section-kicker { font-size: 13px; margin-bottom: 23px; color: var(--muted); }
.fine-print, .stock-note, .checkout-note, .price-caption { color: var(--muted); font-size: 12px; line-height: 1.7; }
.demo-label { display: inline-block; font-size: 10px; font-weight: 500; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; padding: 4px 8px; white-space: nowrap; line-height: 1.4; }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.connection-console { min-width: 0; overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 12px; padding: 19px 24px; border-bottom: 1px solid var(--border); font-size: 13px; }
.console-top .demo-label { margin-left: auto; }
.terminal-icon { font-family: Consolas, monospace; color: var(--accent); font-size: 18px; }
.protocol-tabs { display: flex; gap: 8px; padding: 20px 24px 16px; }
.protocol-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 17px; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 5px; font-size: 12px; }
.protocol-tabs button span { font-size: 10px; }
.protocol-tabs button[aria-pressed="true"] { background: var(--selected); color: var(--accent); border-color: var(--accent-border); }
.endpoint-row { display: flex; align-items: baseline; gap: 12px; padding: 0 24px 23px; min-width: 0; font-size: 12px; }
.endpoint-row > span:first-child { color: var(--muted); }
.endpoint-row code { font-size: 13px; word-break: break-all; }
.port-token { margin-left: auto; color: var(--accent); font-family: Consolas, monospace; }
.language-tabs { display: flex; padding-inline: 24px; gap: 24px; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.language-tabs button { min-height: 48px; padding: 0; background: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; }
.language-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--text); }
.language-tabs .copy-button { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.copy-button svg { width: 14px; height: 14px; }
.connection-console pre { margin: 0; padding: 28px 24px; overflow: auto; color: var(--code); font-size: 12px; line-height: 1.9; min-height: 164px; tab-size: 2; }
.console-note { padding: 15px 24px 20px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); }
.integration-names { display: flex; flex-wrap: wrap; gap: 9px; }
.integration-names span { border: 1px solid var(--border); font-size: 11px; padding: 7px 10px; border-radius: 4px; color: var(--muted); }
.carrier-option { display: flex; align-items: center; gap: 17px; min-height: 84px; text-align: left; background: transparent; color: var(--text); width: 100%; padding: 18px 20px; border: 1px solid var(--border); border-radius: 7px; }
.carrier-option > span:nth-child(2) { display: grid; gap: 5px; }
.carrier-option strong { font-size: 14px; font-weight: 600; }
.carrier-option small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.carrier-option[aria-pressed="true"] { border-color: var(--accent); background: var(--selected); }
.carrier-monogram { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; font-weight: 800; font-size: 26px; flex-shrink: 0; }
.orange-mark { background: #ff8b39; color: #24201c; }
.vodafone-mark { background: #f6dce0; color: #a6223a; }
.digi-mark { background: #dce8fa; color: #24548d; }
.selection-ring { margin-left: auto; width: 17px; height: 17px; border: 1px solid var(--muted); border-radius: 50%; flex-shrink: 0; }
.carrier-option[aria-pressed="true"] .selection-ring { border: 5px solid var(--accent); }
.carrier-options { display: grid; gap: 10px; }
.price { font-size: 62px; line-height: 1.1; letter-spacing: -3px; margin-block: 28px 7px; }
.price > span { font-size: 14px; letter-spacing: 0; font-weight: 400; margin-left: 10px; color: var(--muted); }
.included-list { display: grid; gap: 13px; margin-block: 26px; font-size: 13px; }
.included-list li { display: flex; gap: 11px; align-items: baseline; line-height: 1.5; }
.included-list li::before { content: "✓"; color: var(--accent); }
.selection-status { min-height: 42px; font-size: 12px; line-height: 1.5; color: var(--muted); margin-bottom: 13px; }
.selection-status.is-empty { color: var(--warning); }
.checkout-note { font-size: 10px; text-align: center; margin-top: 12px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary { list-style: none; padding: 24px 0; font-size: 14px; font-weight: 550; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { font-size: 22px; font-weight: 300; color: var(--muted); flex-shrink: 0; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details p { padding: 0 35px 24px 0; font-size: 13px; color: var(--muted); max-width: 68ch; overflow-wrap: anywhere; }
.checkout-dialog { width: min(540px, calc(100% - 32px)); padding: 40px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; overscroll-behavior: contain; }
.checkout-dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.dialog-close { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; position: absolute; top: 12px; right: 12px; background: transparent; font-size: 28px; color: var(--muted); }
.checkout-dialog h2 { font-size: 34px; letter-spacing: -1.3px; margin-bottom: 15px; }
.checkout-dialog > p:not(.section-kicker) { color: var(--muted); font-size: 13px; }
.order-summary { margin-block: 25px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); padding: 13px 0; font-size: 12px; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.order-summary code { font-size: 10px; }
.checkout-dialog .dialog-note { margin-bottom: 24px; }
.copy-feedback { color: var(--accent) !important; }
.site-footer nav a { min-width: 44px; justify-content: center; }
.carrier-option:hover { border-color: var(--accent); }
.protocol-tabs button:hover, .language-tabs button:hover, .copy-button:hover { color: var(--accent); }
@media (max-width: 1100px) { .wrap { width: calc(100% - 64px); } }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .section-space { padding-block: 76px; }
  .site-header { position: relative; }
  .site-header .main-nav { display: none; position: absolute; top: calc(100% - 5px); left: 0; right: 0; z-index: 10; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 32px #0002; }
  .site-header .main-nav.is-open { display: grid; gap: 4px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px; margin-left: auto; background: transparent; color: var(--text); font-size: 13px; }
  .menu-toggle span { font-size: 20px; }
  .header-cta { margin-left: 10px; }
  .brand { font-size: 26px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 20px; }
  .wrap { width: calc(100% - 40px); }
  .section-space { padding-block: 60px; }
  .brand { font-size: 25px; }
  .brand .brand-mark { width: 29px; height: 29px; }
  .header-cta { min-height: 44px; padding: 10px 12px; gap: 8px; font-size: 11px; }
  .menu-toggle { font-size: 11px; gap: 7px; padding-inline: 6px; }
  .section-kicker { margin-bottom: 16px; font-size: 12px; }
  .console-top { padding: 17px; gap: 9px; font-size: 11px; flex-wrap: wrap; }
  .console-top .demo-label { font-size: 8px; padding: 3px 5px; }
  .protocol-tabs { padding: 16px 17px; }
  .protocol-tabs button { padding: 10px 12px; gap: 8px; }
  .endpoint-row { padding-inline: 17px; gap: 9px; }
  .endpoint-row code { font-size: 11px; }
  .endpoint-row > span:first-child { font-size: 10px; }
  .port-token { font-size: 11px; }
  .language-tabs { padding-inline: 17px; }
  .connection-console pre { padding: 23px 17px; font-size: 11px; }
  .console-note { padding: 15px 17px; font-size: 10px; }
  .checkout-dialog { padding: 30px 22px; }
  .checkout-dialog h2 { font-size: 28px; }
  .order-summary > div { font-size: 11px; }
  .order-summary code { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) {
  .site-header { gap: 6px; }
  .site-header .brand { font-size: 22px; gap: 5px; }
  .site-header .brand-mark { width: 26px; height: 26px; }
  .header-cta { margin-left: 3px; padding-inline: 10px; font-size: 10px; }
}
