/* ==========================================================================
   Mentor site — shared styles
   Light / dark theme, editorial layout, no external dependencies.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #edf1f8;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --ink: #0c1727;
  --ink-2: #43516a;
  --ink-3: #78859b;
  --line: rgba(12, 23, 39, 0.09);
  --line-strong: rgba(12, 23, 39, 0.16);
  --brand: #1668e3;
  --brand-2: #0eafa3;
  --brand-soft: rgba(22, 104, 227, 0.08);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.08);
  --shadow-sm: 0 1px 2px rgba(12, 23, 39, 0.05), 0 10px 30px -16px rgba(12, 23, 39, 0.28);
  --shadow-lg: 0 2px 4px rgba(12, 23, 39, 0.04), 0 40px 80px -32px rgba(12, 23, 39, 0.34);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --nav-h: 68px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d16;
  --bg-soft: #0c1320;
  --surface: #0f1726;
  --surface-2: #121b2b;
  --ink: #eef3fa;
  --ink-2: #aab7ca;
  --ink-3: #7d8ba1;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --brand: #6ea8ff;
  --brand-2: #3fd6c6;
  --brand-soft: rgba(110, 168, 255, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -32px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.22; }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { display: block; }

::selection { background: rgba(22, 104, 227, 0.18); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  word-break: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(12, 23, 39, 0.16);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

.menu-btn { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 2px rgba(12, 23, 39, 0.2), 0 12px 26px -14px rgba(12, 23, 39, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(12, 23, 39, 0.2), 0 18px 34px -16px rgba(12, 23, 39, 0.6); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-on-dark {
  background: #ffffff;
  color: #0c1727;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
}
.btn-on-dark:hover { transform: translateY(-1px); }
.btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: #eaf1fb;
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.44); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 780px;
  background:
    radial-gradient(48% 55% at 74% 26%, rgba(14, 175, 163, 0.16), transparent 68%),
    radial-gradient(42% 52% at 84% 52%, rgba(22, 104, 227, 0.18), transparent 70%),
    radial-gradient(40% 50% at 12% 8%, rgba(129, 140, 248, 0.14), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 0.7px, transparent 0.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(62% 60% at 50% 34%, #000 10%, transparent 78%);
  mask-image: radial-gradient(62% 60% at 50% 34%, #000 10%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 60px;
}
.hero-copy { max-width: 620px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(14, 175, 163, 0.18);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.35rem, 4.3vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 680;
}
.hero h1 .grad {
  background: linear-gradient(104deg, var(--brand) 8%, var(--brand-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  text-wrap: pretty;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 540px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--brand); }

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}
.visual-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 104, 227, 0.22), rgba(14, 175, 163, 0.12) 46%, transparent 68%);
  filter: blur(18px);
}
.device {
  position: relative;
  width: 300px;
  max-width: 100%;
}
.app-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 24px 22px;
  border-radius: 28px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.app-card .app-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 18px 36px -16px rgba(12, 23, 39, 0.45);
}
.app-name {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.app-tagline {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.app-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.app-pills span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
}
.app-rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0 14px;
}
.app-version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.app-version b { color: var(--brand); font-weight: 600; }

.float-chip {
  position: absolute;
  z-index: 2;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  animation: float 7s ease-in-out infinite;
}
.float-chip .fc-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.float-chip .fc-icon.teal { background: rgba(14, 175, 163, 0.12); color: var(--brand-2); }
.float-chip .fc-icon svg { width: 15px; height: 15px; }
.float-chip strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.float-chip span { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.chip-a { top: 14px; left: -88px; animation-delay: -1.4s; }
.chip-b { top: 170px; right: -92px; animation-delay: -3.6s; }
.chip-c { bottom: -42px; left: 8px; animation-delay: -5.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 30px;
  padding-bottom: 30px;
}
.stat {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.stat b em { font-style: normal; color: var(--brand); }
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section.tight { padding-top: 20px; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head .lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}
.section-head .lead + .lead { margin-top: 10px; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.feature-card {
  padding: 26px 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.feature-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.feature-card h3 { font-size: 16.5px; letter-spacing: -0.01em; }
.feature-card .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dot-purple { background: #6750a4; }
.dot-teal { background: #00897b; }
.dot-blue { background: #1e88e5; }

.feature-list { padding-top: 8px; }
.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 9px 0;
}
.feature-list .fi {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-top: 2px;
}
.feature-list .fi svg { width: 15px; height: 15px; }
.feature-list b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.feature-list span {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.feature-note {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-note svg { width: 16px; height: 16px; color: var(--brand-2); flex-shrink: 0; margin-top: 3px; }

/* ---------- Privacy block ---------- */

.privacy {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.privacy .section-head { margin-bottom: 40px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 54px;
}
.principle {
  position: relative;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.principle .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.principle h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}
.principle p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.principle .mark {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.principle .mark svg { width: 14px; height: 14px; }

/* Permission table */
.perm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.perm-head h3 { font-size: 19px; letter-spacing: -0.02em; }
.perm-head p { font-size: 13px; color: var(--ink-3); }

.perm-table-wrap {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.perm-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.perm-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
  line-height: 1.65;
}
.perm-table tr:last-child td { border-bottom: 0; }
.perm-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.perm-table .pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(14, 175, 163, 0.1);
  color: #067a70;
  white-space: nowrap;
}
[data-theme="dark"] .perm-table .pill { color: #5ee0d3; }
.perm-table .pill.optional { background: var(--warn-soft); color: var(--warn); }
.perm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.perm-foot .link-arrow { font-size: 13.5px; }

/* Data flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line-strong);
}
.flow-item {
  position: relative;
  padding: 22px 22px 0 0;
}
.flow-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--bg-soft);
}
.flow-item h4 {
  font-size: 14.5px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-item h4 svg { width: 15px; height: 15px; color: var(--brand); }
.flow-item p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.flow-item .tag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ---------- CTA ---------- */

.cta { padding: 0 0 96px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px 56px 52px;
  background: linear-gradient(118deg, #0b1a2f 0%, #102a45 48%, #0a3038 100%);
  color: #eaf1fb;
  box-shadow: 0 40px 80px -40px rgba(10, 25, 45, 0.7);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(47, 211, 195, 0.28), transparent 62%);
  pointer-events: none;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto auto -60% -10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(78, 140, 255, 0.26), transparent 64%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .eyebrow { color: rgba(234, 241, 251, 0.55); }
.cta-panel .eyebrow::before { background: #2fd3c3; }
.cta-panel h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.22;
  max-width: 620px;
}
.cta-panel p {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(234, 241, 251, 0.7);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 40px;
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.75; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- Reveal ---------- */

.js .js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.js .js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Privacy page
   ========================================================================== */

.doc-hero {
  position: relative;
  padding: calc(var(--nav-h) + 68px) 0 46px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.doc-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 520px;
  background: radial-gradient(46% 60% at 70% 30%, rgba(22, 104, 227, 0.12), transparent 70%),
    radial-gradient(40% 50% at 20% 10%, rgba(14, 175, 163, 0.1), transparent 70%);
  pointer-events: none;
}
.doc-hero .wrap { position: relative; z-index: 1; }
.doc-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
}
.doc-hero .lead {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 24px;
}
.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.doc-meta svg { width: 12px; height: 12px; color: var(--brand); }

.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
  padding: 56px 0 96px;
  align-items: start;
}

.toc-mobile { display: none; }
.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-size: 15px;
}
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile ol {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.toc-mobile a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.toc-mobile a:hover { color: var(--brand); }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  font-size: 13px;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.toc ol { border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  line-height: 1.5;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc .toc-cta {
  margin-top: 22px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
}
.toc .toc-cta a { display: inline; padding: 0; border: 0; color: var(--brand); font-weight: 600; }

.doc-body { max-width: 760px; }
.doc-section {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-section > h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.doc-section > h2 .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.doc-section h3 {
  font-size: 15.5px;
  margin: 26px 0 10px;
  letter-spacing: -0.01em;
}
.doc-section p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.doc-section p:last-child { margin-bottom: 0; }
.doc-section a.inline {
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  border-bottom-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.doc-section strong { color: var(--ink); font-weight: 600; }

.summary-box {
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.summary-box p { font-size: 14.5px; }
.summary-box p + p { margin-top: 8px; }

.bullets { margin: 12px 0 4px; }
.bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.65;
}
.bullets.deny li::before { background: var(--ink-3); }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.check-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.check-card h4 {
  font-size: 13.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-card h4 svg { width: 15px; height: 15px; }
.check-card.yes h4 { color: #067a70; }
.check-card.no h4 { color: var(--ink-3); }
[data-theme="dark"] .check-card.yes h4 { color: #5ee0d3; }
.check-card p { font-size: 13px; line-height: 1.75; color: var(--ink-2); }

.perm-detail {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.perm-row {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.perm-row .perm-key {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.perm-row .perm-key .ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.perm-row .perm-key svg { width: 16px; height: 16px; }
.perm-row .perm-key > span:last-child { min-width: 0; }
.perm-row .perm-key b { font-size: 14px; display: block; line-height: 1.4; }
.perm-row .perm-key .meta {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.perm-row p { font-size: 13.5px; line-height: 1.75; margin: 0; }
.perm-row p + p { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; }

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  margin: 18px 0 0;
  border-radius: 12px;
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-color: color-mix(in srgb, var(--warn) 24%, transparent);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.callout svg { width: 16px; height: 16px; color: var(--warn); flex-shrink: 0; margin-top: 3px; }
.callout strong { color: var(--warn); }

.steps { counter-reset: step; margin-top: 10px; }
.steps li {
  position: relative;
  padding: 0 0 14px 36px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.steps li b { color: var(--ink); }

.doc-end {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Responsive ---------- */

@media (max-width: 1150px) {
  .float-chip { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner { gap: 36px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .flow-item { padding-right: 24px; }
  .doc-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-actions { margin-left: auto; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav.menu-open .nav-links a { padding: 11px 14px; border-radius: 10px; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 400px; margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px 20px 16px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 18px; }
  .doc-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .toc { position: static; display: none; }
  .toc-mobile {
    display: block;
    padding: 14px 18px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .doc-body { max-width: none; }
  .cta-panel { padding: 40px 32px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 68px 0; }
  .hero { padding-bottom: 52px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hero-sub { font-size: 15.5px; }
  .float-chip { display: none; }
  .app-card { width: 100%; max-width: 320px; }
  .hero-visual { min-height: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; row-gap: 22px; }
  .flow-item { padding: 18px 0 0; }
  .flow-item::before { top: -3px; }
  .cta { padding-bottom: 68px; }
  .cta-panel { padding: 34px 24px; border-radius: 22px; }
  .footer { padding-top: 36px; }
  .footer-cols { gap: 32px; }
  .doc-hero { padding-top: calc(var(--nav-h) + 44px); }

  .perm-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .perm-table, .perm-table tbody { display: block; }
  .perm-table thead { display: none; }
  .perm-table tr {
    display: block;
    padding: 6px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .perm-table td {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
  }
  .perm-table tr td:last-child { border-bottom: 0; }
  .perm-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
    padding-top: 1px;
  }
  .perm-table td:first-child { padding-top: 10px; }
  .perm-table td:first-child::before { content: none; }
  .perm-table td:first-child { font-size: 14.5px; white-space: normal; }

  .perm-row { grid-template-columns: 1fr; gap: 10px; }
  .check-grid { grid-template-columns: 1fr; }
  .doc-section > h2 { font-size: 20px; }
  .summary-box { padding: 18px; }
  .doc-end { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .brand span { display: none; }
  .stat b { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .toc, .cta, .hero-actions, .doc-end { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; padding: 0; }
  .doc-section { break-inside: avoid; }
}
