:root {
  color-scheme: light;
  --accent: #008aff;
  --accent-deep: #006bc7;
  --accent-soft: #dcefff;
  --ink: #14243a;
  --muted: #66758a;
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-soft: #edf6ff;
  --line: #d8e6f3;
  --shadow: 0 16px 42px rgba(35, 79, 119, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.brand-copy {
  display: grid;
  line-height: 1.15;
}
.brand-copy strong {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 64px 0 80px;
}
.hero-card {
  width: min(760px, 100%);
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 78%, transparent), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1,
.legal-header h1,
.simple-state h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 650;
}
.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.button-link:hover { color: #fff; background: var(--accent-deep); }
.button-link.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.button-link.secondary:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.legal-document {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(54px, 8vw, 96px) 0;
}
.legal-header {
  margin-bottom: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.legal-header h1 {
  font-size: clamp(2.15rem, 7vw, 4rem);
}
.article-deck {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}
.article-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.legal-document section {
  padding: 8px 0 18px;
}
.legal-document h2 {
  margin: 24px 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 650;
}
.legal-document p,
.legal-document li {
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
}
.legal-document ul {
  padding-left: 1.25rem;
}
.legal-document li + li {
  margin-top: 7px;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 34px;
}
.privacy-summary div {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
.privacy-summary strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 650;
}
.privacy-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  margin: 14px 0 20px;
  padding: 17px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface-soft);
}
.notice p { margin: 0; }

.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0 18px;
}
.footer-grid strong {
  font-weight: 650;
}
.footer-grid p {
  max-width: 430px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.simple-state {
  width: min(680px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}
.simple-state h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
.simple-state p { margin: 0; color: var(--muted); }

html.app-webview .site-header {
  position: static;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  box-shadow: none;
  backdrop-filter: none;
}
html.app-webview .nav-wrap {
  min-height: 62px;
  justify-content: center;
}
html.app-webview .brand-copy small,
html.app-webview .site-nav,
html.app-webview .menu-button {
  display: none !important;
}
html.app-webview .legal-document {
  width: min(760px, calc(100% - 32px));
  padding: 34px 0 54px;
}
html.app-webview .legal-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 28px;
}
html.app-webview .legal-header h1 {
  font-size: clamp(2rem, 9vw, 3rem);
}
html.app-webview .site-footer {
  margin-top: 0;
}
html.app-webview .footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
}
html.app-webview .footer-grid p {
  margin-inline: auto;
}
html.app-webview .footer-links {
  justify-content: center;
}

html[data-app-theme="dark"] {
  color-scheme: dark;
  --ink: #edf5ff;
  --muted: #a8b6c7;
  --bg: #0b1119;
  --surface: #111b27;
  --surface-soft: #17283a;
  --line: #263a4d;
  --accent: #2b9dff;
  --accent-deep: #73bcff;
  --accent-soft: #173a58;
  --shadow: none;
}

@media (prefers-color-scheme: dark) {
  html:not([data-app-theme="light"]) {
    color-scheme: dark;
    --ink: #edf5ff;
    --muted: #a8b6c7;
    --bg: #0b1119;
    --surface: #111b27;
    --surface-soft: #17283a;
    --line: #263a4d;
    --accent: #2b9dff;
    --accent-deep: #73bcff;
    --accent-soft: #173a58;
    --shadow: none;
  }
}

@media (max-width: 700px) {
  .site-shell { width: min(100% - 28px, 1120px); }
  .nav-wrap { min-height: 66px; }
  .menu-button { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 66px 14px auto 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-nav[data-open] {
    display: grid;
  }
  .site-nav a { padding: 11px 12px; }

  .hero {
    min-height: calc(100vh - 66px);
    padding: 28px 0 44px;
  }
  .hero-card { border-radius: 22px; }

  .privacy-summary { grid-template-columns: 1fr; }
  .privacy-summary div { min-height: auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .legal-document { width: min(100% - 28px, 820px); }
  html.app-webview .legal-document { width: min(100% - 28px, 760px); }
}
