:root {
  color-scheme: light;
  --bg: #e7edf5;
  --screen: #f4f7fb;
  --surface: #f9fbfe;
  --surface-2: #eef4fa;
  --surface-3: #e2ebf4;
  --border-soft: #d9e2ec;
  --border: #c8d4e1;
  --border-strong: #a9b8c8;
  --text: #07111e;
  --text-2: #354557;
  --text-3: #697789;
  --accent: #2f7c9d;
  --accent-strong: #1e789f;
  --blue: #003a70;
  --red: #c00000;
  --danger: #b52f38;
  --warning: #93620f;
  --success: #1f7a4e;
  --shadow: 0 24px 70px rgba(53, 69, 87, .18);
  --body-bg:
    radial-gradient(circle at 12% 0%, rgba(47, 124, 157, .16), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(127, 155, 180, .18), transparent 25rem),
    linear-gradient(180deg, #e7edf5 0%, #f4f7fb 45%, #e7edf5 100%);
  --brand-mark-bg:
    linear-gradient(135deg, rgba(47, 124, 157, .22), rgba(249, 251, 254, .96)),
    var(--surface);
  --nav-bg: rgba(249, 251, 254, .72);
  --nav-bg-active: rgba(226, 235, 244, .94);
  --language-bg: rgba(249, 251, 254, .74);
  --hero-bg: linear-gradient(180deg, rgba(249, 251, 254, .96), rgba(239, 245, 251, .96));
  --panel-bg: linear-gradient(180deg, rgba(249, 251, 254, .94), rgba(238, 244, 250, .94));
  --card-bg: rgba(249, 251, 254, .82);
  --card-hover-bg: rgba(255, 255, 255, .96);
  --pill-bg: rgba(255, 255, 255, .58);
  --button-bg: rgba(47, 124, 157, .16);
  --button-secondary-bg: rgba(255, 255, 255, .32);
  --status-bg: rgba(239, 245, 251, .86);
  --notice-bg: rgba(192, 0, 0, .06);
  --notice-text: #8f1720;
  --callout-bg: rgba(47, 124, 157, .10);
  --code-bg: rgba(47, 124, 157, .10);
  --table-bg: rgba(255, 255, 255, .38);
  --table-head-bg: rgba(47, 124, 157, .07);
  --skip-fg: #f8fbff;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--body-bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--text);
  color: var(--skip-fg);
  border-radius: 999px;
  transition: top .16s ease;
}
.skip-link:focus { top: 16px; }

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-mark-bg);
  border: 1px solid rgba(159, 194, 220, .28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text { display: grid; gap: 2px; }
.brand-name { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.brand-sub { color: var(--text-3); font-size: 13px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.nav a {
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid var(--border-soft);
  background: var(--nav-bg);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(159, 194, 220, .48);
  background: var(--nav-bg-active);
}

.top-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(159, 194, 220, .16);
  background: var(--language-bg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.auth-callback-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.auth-bridge {
  width: min(520px, 100%);
  margin: 0 auto;
}

.auth-bridge-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: 0 24px 86px rgba(0, 0, 0, .52);
  padding: clamp(24px, 6vw, 34px);
  text-align: center;
}

.auth-bridge-brand {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 15px;
  background: var(--brand-mark-bg);
  border: 1px solid rgba(159, 194, 220, .35);
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-bridge h1 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

.auth-bridge-lead {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(16px, 4vw, 19px);
  line-height: 1.35;
  font-weight: 700;
}

.auth-bridge-status {
  margin-top: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--pill-bg);
  color: var(--text-2);
  padding: 16px;
  line-height: 1.45;
  font-weight: 650;
  text-align: left;
}

.auth-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
}

.auth-bridge-actions .button {
  min-height: 54px;
  flex: 1 1 190px;
  border-radius: 10px;
}

button.button {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.auth-bridge-note {
  margin: 18px auto 0;
  max-width: 380px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}

.auth-bridge-debug {
  margin-top: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--pill-bg);
  color: var(--text-3);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
}

.auth-bridge-help {
  margin-top: 18px;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  text-align: left;
}

.auth-bridge-help h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.auth-bridge-help p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.button.disabled {
  opacity: .48;
  pointer-events: none;
}

.language-switcher a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.language-switcher a::before {
  content: attr(lang);
  min-width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(159, 194, 220, .10);
  color: var(--accent-strong);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  color: var(--text);
  border-color: rgba(159, 194, 220, .38);
  background: rgba(127, 155, 180, .16);
}

.language-switcher a[aria-current="true"]::before {
  background: rgba(159, 194, 220, .92);
  color: #050505;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--hero-bg);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 168px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--accent-strong));
}
.hero::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 34px;
  width: 46px;
  height: 46px;
  border-top: 2px solid rgba(159,194,220,.5);
  border-right: 2px solid rgba(159,194,220,.5);
  border-radius: 0 12px 0 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3 { margin: 0; letter-spacing: -.04em; }
h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .95;
}
.hero-lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.notice {
  margin-top: 26px;
  display: grid;
  gap: 10px;
  max-width: 900px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(224, 121, 121, .32);
  background: var(--notice-bg);
}
.notice strong { color: var(--notice-text); }
.notice p { margin: 0; color: var(--text-2); line-height: 1.55; }

.meta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-3);
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--pill-bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.card {
  position: relative;
  display: block;
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 194, 220, .48);
  background: var(--card-hover-bg);
}
.card .tag { color: var(--text-3); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.card h2 { margin-top: 14px; font-size: 22px; }
.card p { margin: 12px 0 0; color: var(--text-2); line-height: 1.55; }
.card .arrow { position: absolute; bottom: 20px; right: 22px; color: var(--accent-strong); }

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.content {
  display: grid;
  gap: 16px;
}
.section {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
}
.section h2 { font-size: clamp(24px, 3vw, 34px); }
.section h3 { margin-top: 22px; font-size: 18px; }
.section p, .section li { color: var(--text-2); line-height: 1.72; }
.section p { margin: 14px 0 0; }
.section ul, .section ol { margin: 14px 0 0; padding-left: 22px; }
.section li + li { margin-top: 8px; }
.section strong { color: var(--text); }
.section code {
  color: var(--accent-strong);
  background: var(--code-bg);
  border: 1px solid rgba(127,155,180,.24);
  padding: 2px 6px;
  border-radius: 7px;
}
.callout {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(159,194,220,.28);
  border-radius: var(--radius-md);
  background: var(--callout-bg);
}
.callout p { margin: 0; }

.side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
}
.side-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.side-card h2 { font-size: 17px; letter-spacing: -.02em; }
.side-card p { margin: 10px 0 0; color: var(--text-2); line-height: 1.6; font-size: 14px; }
.side-card a { color: var(--accent-strong); text-decoration: none; }
.side-card a:hover { text-decoration: underline; }
.toc { display: grid; gap: 8px; margin-top: 12px; }
.toc a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--text); }

.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 18px;
  margin-top: 16px;
  color: var(--text-2);
  line-height: 1.6;
}
.kv div:nth-child(odd) { color: var(--text); font-weight: 700; }

.footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(159,194,220,.34);
  background: var(--button-bg);
  color: var(--text);
}
.button.secondary { background: var(--button-secondary-bg); color: var(--text-2); border-color: var(--border-strong); }

.product-main {
  display: grid;
  gap: 22px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--hero-bg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 64px);
}

.product-hero-copy { min-width: 0; }
.product-hero h1 { margin: 12px 0 0; max-width: 760px; font-size: clamp(38px, 6vw, 68px); line-height: 1; letter-spacing: 0; }
.product-verification-disclosure {
  max-width: 760px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--card-bg);
  color: var(--text-2);
  line-height: 1.58;
}
.product-verification-disclosure strong { color: var(--text); }
.product-hero .button-row { margin-top: 28px; }

.product-hero-panel,
.feature-card,
.principle-grid article,
.product-link-list {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.product-hero-panel {
  align-self: end;
  padding: 24px;
}

.product-hero-panel h2,
.feature-card h2,
.principle-grid h3 { margin: 10px 0 0; }
.product-hero-panel p:not(.eyebrow),
.feature-card p:not(.eyebrow),
.principle-grid p,
.product-legal p,
.product-band p { color: var(--text-2); line-height: 1.6; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover { color: var(--text); }

.product-band,
.product-legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .92fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(26px, 5vw, 48px) 0;
}

.product-band h2,
.product-legal h2 { margin: 8px 0 0; max-width: 650px; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; }

.principle-grid,
.feature-grid {
  display: grid;
  gap: 12px;
}
.principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle-grid article,
.feature-card { padding: 20px; }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { min-height: 224px; }

.product-link-list {
  display: grid;
  overflow: hidden;
}
.product-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.product-link-list a + a { border-top: 1px solid var(--border-soft); }
.product-link-list a:hover { background: var(--nav-bg-active); }
.product-link-list span { color: var(--accent-strong); }

.product-band-wide { margin-top: 2px; }

.status-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.status {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--status-bg);
}
.status strong { display: block; margin-bottom: 6px; }
.status span { color: var(--text-2); font-size: 14px; line-height: 1.45; }

@media (max-width: 920px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-items: start; width: 100%; }
  .language-switcher { justify-content: flex-start; }
  .nav { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .main { grid-template-columns: 1fr; }
  .side { position: static; }
  .status-list { grid-template-columns: 1fr; }
  .product-hero,
  .product-band,
  .product-legal { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page { width: min(100% - 22px, 1120px); padding-top: 14px; }
  .hero { padding: 28px 20px; border-radius: 22px; }
  .language-switcher { width: 100%; border-radius: 18px; }
  .language-switcher a { flex: 1 1 104px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 164px; }
  .kv { grid-template-columns: 1fr; }
  .footer { display: grid; }
  .product-hero { padding: 28px 20px; border-radius: 22px; }
  .product-hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .principle-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:16px;background:var(--table-bg);margin-top:16px}
table{width:100%;border-collapse:collapse;min-width:620px}
th,td{padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
th{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-3);background:var(--table-head-bg)}
tr:last-child td{border-bottom:0}


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

.language-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
}

.language-panel h2 {
  margin: 4px 0 6px;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.04em;
}

.language-panel p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

.eyebrow.compact {
  margin-bottom: 0;
  font-size: 11px;
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(100%, 360px);
}

.lang-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--text-2);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.lang-button:hover,
.lang-button[aria-current="true"] {
  color: var(--text);
  border-color: rgba(159, 194, 220, .58);
  background: rgba(127, 155, 180, .14);
}

.lang-button:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .language-panel {
    display: grid;
  }
  .language-buttons {
    justify-content: flex-start;
    min-width: 0;
  }
  .lang-button {
    flex: 1 1 auto;
  }
}
