
/* NightAI — Material Design 3 / Android Night Theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Roboto+Slab:wght@700&display=swap');

body.t-night {
  --bg:     #090913;
  --bg2:    #10101f;
  --surf:   #14142a;
  --surf2:  #1c1b37;
  --surf3:  #252344;
  --prim:   #c084fc;
  --prim2:  #818cf8;
  --on-prim:#1a0040;
  --prim-c: rgba(192,132,252,.14);
  --sec:    #a5b4fc;
  --ok:     #6ee7b7;
  --err:    #fca5a5;
  --text:   #e8e1f8;
  --muted:  #9b90b4;
  --line:   rgba(192,132,252,.16);
  --line2:  rgba(255,255,255,.07);
  --accent: #c084fc;
  --accent2:#818cf8;
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-full: 999px;
  --shadow: 0 4px 32px rgba(0,0,0,.55);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  font-family: 'Roboto', 'Noto Sans', system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 5% -5%, rgba(192,132,252,.12), transparent 60%),
    radial-gradient(700px 400px at 95% 5%, rgba(129,140,248,.10), transparent 55%);
}

/* ── TOP APP BAR ── */
.topbar {
  background: rgba(9,9,19,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.topbar-inner { padding: 10px 0; gap: 10px; }
.brand { font-size: 17px; letter-spacing: .03em; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--prim), var(--prim2));
  font-size: 12px; font-weight: 900; letter-spacing: 0; color: #1a0040;
}
.nav-desk a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: var(--r-full);
  transition: background .18s, color .18s; text-decoration: none;
}
.nav-desk a:hover,
.nav-desk a[aria-current] {
  background: var(--prim-c); color: var(--prim);
}

/* ── BUTTONS (Material 3) ── */
.btn { border-radius: var(--r-full); font-family: inherit; }
.btn-primary, .btn-filled {
  background: linear-gradient(135deg, var(--prim), var(--prim2));
  color: var(--on-prim); border: 0; border-radius: var(--r-full);
  padding: 12px 24px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; text-decoration: none; letter-spacing: .02em;
  transition: filter .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(192,132,252,.28);
}
.btn-primary:hover, .btn-filled:hover {
  filter: brightness(1.12); transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(192,132,252,.38);
}
.btn-tonal, .btn-ghost {
  background: var(--surf2); color: var(--prim);
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 11px 22px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center;
  gap: 8px; text-decoration: none; letter-spacing: .02em;
  transition: background .18s, transform .18s;
}
.btn-tonal:hover, .btn-ghost:hover {
  background: var(--prim-c); transform: translateY(-1px);
}
.btn-ok {
  background: var(--ok); color: #052e16; font-weight: 800;
  border-radius: var(--r-full);
}
.btn-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}

/* ── CHIP / KICKER ── */
.chip-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-full);
  background: rgba(192,132,252,.12); border: 1px solid rgba(192,132,252,.26);
  font-size: 11px; font-weight: 700; color: var(--prim);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--surf2); border: 1px solid var(--line2);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.trust-badge {
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surf2); border: 1px solid var(--line2);
  font-size: 12px; font-weight: 600; color: var(--muted);
}

/* ── MATERIAL CARDS ── */
.md-card {
  background: var(--surf); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: 20px;
  transition: border-color .2s, background .2s;
}
.md-card:hover { border-color: var(--line); background: var(--surf2); }
.md-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.md-card p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--prim-c); display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px; flex-shrink: 0;
}

/* ── HERO 2-COL ── */
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center; padding: 52px 0 28px;
}
h1.hero-h1 {
  font-size: clamp(30px, 5.5vw, 52px); line-height: 1.1;
  font-weight: 900; margin: 0 0 14px; letter-spacing: -.02em;
}
.hero-lead {
  font-size: 17px; color: var(--muted); line-height: 1.65;
  max-width: 46ch; margin: 0;
}
.hero-media .ba-card {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(192,132,252,.15), var(--shadow);
}
.ba-note {
  font-size: 12px; color: var(--muted); text-align: center;
  margin: 10px 0 0; line-height: 1.5;
}

/* ── GRIDS ── */
.md-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.md-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.section-gap { padding: 52px 0 0; }
.section-gap-sm { padding: 32px 0 0; }

/* ── SECTION HEAD ── */
.section-head { margin: 0 0 22px; }
.section-head h2 {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 800;
  margin: 0 0 8px; letter-spacing: -.015em;
}
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }

/* ── STEPPER (Android-style) ── */
.md-stepper { display: grid; gap: 0; }
.md-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--line2);
}
.md-step:last-child { border-bottom: 0; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--prim-c); border: 1.5px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: var(--prim); margin-top: 2px;
}
.step-body h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; }
.step-body p  { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── LIST TILES ── */
.md-list { display: grid; gap: 6px; margin-top: 8px; }
.md-list-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line2); background: var(--surf);
  transition: background .18s, border-color .18s;
}
.md-list-item:hover { background: var(--surf2); border-color: var(--line); }
.list-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--prim-c); display: grid; place-items: center;
  font-size: 18px; flex-shrink: 0;
}
.list-body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.list-body p  { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ── FAQ MATERIAL ── */
.faq-md { margin-top: 8px; display: grid; gap: 8px; }
.faq-md details {
  background: var(--surf); border: 1px solid var(--line2);
  border-radius: var(--r-md); overflow: hidden;
}
.faq-md details[open] { background: var(--surf2); border-color: var(--line); }
.faq-md summary {
  cursor: pointer; font-weight: 700; font-size: 15px;
  padding: 16px 20px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-md summary::-webkit-details-marker { display: none; }
.faq-md summary::after {
  content: "›"; font-size: 20px; color: var(--prim);
  transform: rotate(90deg); transition: transform .2s; flex-shrink: 0;
}
.faq-md details[open] summary::after { transform: rotate(270deg); }
.faq-md details p {
  margin: 0; padding: 0 20px 16px;
  color: var(--muted); font-size: 14.5px; line-height: 1.7;
}
.faq-md details p a { color: var(--prim); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--prim-c); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 24px; margin: 20px 0;
}
.highlight-box h3 { margin: 0 0 8px; color: var(--prim); font-size: 16px; }
.highlight-box p  { margin: 0; color: #ccc4e0; font-size: 14.5px; line-height: 1.65; }

/* ── CHECK GRID ── */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surf); border: 1px solid var(--line2);
  font-size: 14px; line-height: 1.5;
}
.ico-ok  { color: var(--ok);  font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ico-err { color: var(--err); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { padding: 36px 0 20px; }
.page-hero h1 {
  font-size: clamp(26px, 4.5vw, 42px); font-weight: 900;
  margin: 0 0 12px; letter-spacing: -.02em;
}
.page-hero .lead { font-size: 16px; color: var(--muted); max-width: 60ch; line-height: 1.65; margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--text); }

/* ── ARTICLE BODY ── */
.article-wrap { max-width: 820px; }
.article-wrap h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin: 44px 0 12px; letter-spacing: -.01em; scroll-margin-top: 84px; }
.article-wrap h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--prim); }
.article-wrap p  { color: #ccc4e0; font-size: 16px; line-height: 1.8; margin: 0 0 16px; }
.article-wrap ul { color: #ccc4e0; font-size: 16px; line-height: 1.8; margin: 0 0 16px; padding-left: 22px; }
.article-wrap li { margin: 8px 0; }
.article-wrap a  { color: var(--prim); font-weight: 600; text-decoration: none; }
.article-wrap a:hover { text-decoration: underline; }

/* ── CMP TABLE ── */
.cmp-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.cmp-table th {
  text-align: left; color: var(--muted); font-size: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .06em;
}
.cmp-table td { padding: 12px; border-bottom: 1px solid var(--line2); font-size: 14px; vertical-align: top; }
.cmp-table td:first-child { font-weight: 700; color: var(--text); }
.cmp-table td .ok  { color: var(--ok);  font-weight: 700; }
.cmp-table td .bad { color: var(--err); font-weight: 700; }

/* ── NAV LINKS ── */
.nav-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0;
  padding-top: 20px; border-top: 1px solid var(--line2);
}
.nav-links a {
  color: var(--prim); text-decoration: none; font-weight: 700;
  font-size: 14px; padding: 8px 16px; border-radius: var(--r-full);
  background: var(--prim-c); border: 1px solid var(--line);
  transition: background .18s;
}
.nav-links a:hover { background: rgba(192,132,252,.24); }

/* ── FINDER ── */
.finder-shell { padding: 36px 0 48px; }
.finder {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 32px; max-width: 780px; margin: 0 auto;
}
.finder h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.finder-card {
  background: var(--surf2); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.finder-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.finder-card .status { font-size: 13px; color: var(--muted); }
.search-viz { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.orbit { width: 40px; height: 40px; border: 2px solid var(--prim); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 4px; background: var(--line2); border-radius: 99px; width: 100%; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--prim), var(--prim2)); border-radius: 99px; transition: width .4s ease; }
.result-box { background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; font-weight: 600; word-break: break-all; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line2); padding: 32px 0 96px; color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.footer-grid b { display: block; margin-bottom: 10px; font-size: 14px; color: var(--text); }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; margin-top: 6px; font-weight: 600; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { margin: 4px 0; line-height: 1.6; }

/* ── BOTTOM NAVIGATION (Android) ── */
.bottom-cta { display: none; }
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(13,13,25,.97); border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  align-items: stretch; backdrop-filter: blur(20px);
}
.bot-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 4px; cursor: pointer; text-decoration: none;
  border-radius: var(--r-sm); -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.bot-nav-item:active { background: var(--prim-c); }
.bot-nav-indicator {
  width: 36px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full); transition: background .18s;
}
.bot-nav-item.active .bot-nav-indicator { background: var(--prim-c); }
.bot-nav-indicator svg { width: 22px; height: 22px; fill: var(--muted); transition: fill .15s; }
.bot-nav-item.active .bot-nav-indicator svg { fill: var(--prim); }
.bot-nav-label { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; transition: color .15s; }
.bot-nav-item.active .bot-nav-label { color: var(--prim); }

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 16px; }
  .md-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .nav-desk { display: none; }
  .menu-btn { display: inline-flex; }
  .bottom-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .md-grid-2, .md-grid-3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .finder-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 9px 8px; }
}
@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
  .btn-row a, .btn-row button { width: 100%; justify-content: center; }
  h1.hero-h1 { font-size: 28px; }
  .trust-badge { font-size: 11px; padding: 5px 10px; }
}

/* ── SOFT DIVIDER ── */
.sec-line {
  height: 1px; margin: 40px 0 8px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

/* ── CTA AFTER SAMPLE ── */
.cta-jump {
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(192,132,252,.16), transparent 70%),
    linear-gradient(165deg, var(--surf2), var(--surf));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 30px;
  box-shadow: 0 0 48px rgba(192,132,252,.10), var(--shadow-sm);
}
.cta-jump h2 {
  font-size: clamp(20px, 3vw, 26px); font-weight: 800;
  margin: 0 0 8px; letter-spacing: -.015em;
}
.cta-jump > p {
  margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.6;
}
.cta-jump .btn-row { margin-top: 0; }
.cta-jump .btn-row .btn { min-width: 160px; }
.cta-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.cta-meta span {
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: var(--r-full);
  background: var(--surf); border: 1px solid var(--line2);
}
.cta-jump-wide {
  text-align: center; max-width: 880px; margin: 8px auto 0;
}
.cta-jump-wide .btn-row { justify-content: center; }
.cta-jump-wide .cta-meta { justify-content: center; }
.cta-jump-wide > p { max-width: 54ch; margin-left: auto; margin-right: auto; }

/* ── SAMPLE + CTA ROW ── */
.sample-cta { padding: 8px 0 12px; }
.sample-row {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 28px; align-items: center;
}
.sample-row .ba-card {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(192,132,252,.12), var(--shadow);
}
.sample-row .ba-note { margin-top: 10px; }

/* ── PAGE 2-COL LAYOUT ── */
.page-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 292px;
  gap: 32px; align-items: start; padding: 20px 0 8px;
}
.page-layout .article-wrap { max-width: none; }
.split-info {
  display: grid; grid-template-columns: minmax(0,1fr) 280px;
  gap: 28px; align-items: start;
}

/* ── SIDEBAR ── */
.page-aside {
  display: grid; gap: 12px;
  position: sticky; top: 76px;
}
.aside-box {
  background: var(--surf); border: 1px solid var(--line2);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.aside-box h3 {
  margin: 0 0 10px; font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--prim);
}
.aside-box p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.aside-box .btn-row { margin-top: 12px; }
.aside-box .btn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13px; }
.aside-stat-list { display: grid; gap: 8px; }
.aside-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2);
  font-size: 13.5px;
}
.aside-stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-stat-row b { color: var(--text); font-weight: 800; }
.aside-stat-row span { color: var(--muted); }
.aside-links { display: grid; gap: 6px; }
.aside-links a {
  display: block; color: var(--text); text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surf2); border: 1px solid var(--line2);
  transition: background .15s, border-color .15s;
}
.aside-links a:hover { background: var(--prim-c); border-color: var(--line); color: var(--prim); }
.aside-tip {
  background: var(--prim-c); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.aside-tip h3 { color: var(--prim); margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.aside-tip p { margin: 0; color: #ccc4e0; font-size: 13.5px; line-height: 1.55; }

/* ── TOC CHIPS ── */
.toc-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px;
}
.toc-row a {
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; padding: 7px 13px; border-radius: var(--r-full);
  background: var(--surf); border: 1px solid var(--line2);
}
.toc-row a:hover { color: var(--prim); border-color: var(--line); }

@media (max-width: 920px) {
  .sample-row, .page-layout, .split-info { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .sample-row .ba-card { max-width: 420px; margin: 0 auto; }
}
