/* ============================================================
   Aarogyam — public site
   Light theme (default) + night-green theme, same palette.
   Toggle sets data-theme="dark" on <html>; see script.js.
   ============================================================ */

:root {
  /* palette (shared by both themes) */
  --evergreen: #081c15;
  --pine: #1b4332;
  --emerald: #2d6a4f;
  --sea: #40916c;
  --mint-2: #52b788;
  --mint: #74c69d;
  --celadon-2: #95d5b2;
  --celadon: #b7e4c7;
  --frost: #d8f3dc;

  /* semantic — light (default) */
  --bg: #f7faf8;
  --bg-raised: #eef4f0;
  --bg-card: #ffffff;
  --ink: #16301f;
  --ink-soft: #4c6759;
  --ink-faint: #829a8b;
  --accent: var(--emerald);
  --accent-bright: var(--sea);
  --line: rgba(19, 42, 30, 0.11);
  --line-strong: rgba(19, 42, 30, 0.22);
  --cta-bg: var(--frost);
  --header-scrim: rgba(247, 250, 248, 0.88);
  --mobile-nav-bg: rgba(247, 250, 248, 0.98);
  --footer-bg: var(--bg);
  --btn-solid-text: #fbfdfb;
  --shadow-soft: 0 16px 32px -20px rgba(19, 42, 30, 0.18);
  --glow-1: rgba(45, 106, 79, 0.10);
  --glow-2: rgba(64, 145, 108, 0.08);
  --grain-opacity: 0.035;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 10px;
}

/* semantic — dark */
:root[data-theme="dark"] {
  --bg: #06120d;
  --bg-raised: #0a1f16;
  --bg-card: #0c241a;
  --ink: #dcefe2;
  --ink-soft: #9dbfab;
  --ink-faint: #6d8f7c;
  --accent: var(--mint-2);
  --accent-bright: var(--mint);
  --line: rgba(149, 213, 178, 0.13);
  --line-strong: rgba(149, 213, 178, 0.28);
  --cta-bg: #0a1f16;
  --header-scrim: rgba(6, 18, 13, 0.86);
  --mobile-nav-bg: rgba(6, 18, 13, 0.97);
  --footer-bg: #050f0a;
  --btn-solid-text: #04130c;
  --shadow-soft: 0 16px 32px -18px rgba(0, 0, 0, 0.55);
  --glow-1: rgba(82, 183, 136, 0.18);
  --glow-2: rgba(149, 213, 178, 0.13);
  --grain-opacity: 0.05;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

::selection { background: rgba(82, 183, 136, 0.3); color: var(--ink); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

/* ---------------------------------------------------------- */
/* Type                                                        */
/* ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--pine);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

:root[data-theme="dark"] .eyebrow { color: var(--accent-bright); }

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 34em;
}

/* ---------------------------------------------------------- */
/* Header                                                      */
/* ---------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: var(--header-scrim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--pine);
}

:root[data-theme="dark"] .brand { color: var(--ink); }

.brand .mark { flex: none; }
.brand .mark rect { stroke: var(--accent); }
.brand .mark path { stroke: var(--accent-bright); }

.brand small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: flex-end;
  padding-bottom: 3px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: 4px;
}

.site-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--pine); }
:root[data-theme="dark"] .site-nav a.active { color: var(--ink); }
.site-nav a.active::after { transform: scaleX(1); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--accent);
  color: var(--btn-solid-text);
}

.btn-solid:hover { background: var(--pine); }
:root[data-theme="dark"] .btn-solid:hover { background: var(--accent-bright); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
:root[data-theme="dark"] .btn-ghost:hover { color: var(--accent-bright); }

.btn-lg { padding: 13px 28px; font-size: 15px; }

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* theme toggle */
.theme-toggle {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme="dark"] .theme-toggle:hover { color: var(--accent-bright); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: relative;
  flex: none;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -6px; left: 0; right: 0; }
.nav-toggle span::after { top: 6px; left: 0; right: 0; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------- */
/* Hero — full viewport height, plain typographic content       */
/* ---------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  background:
    radial-gradient(640px 460px at 84% 6%, var(--glow-1), transparent 70%),
    radial-gradient(520px 420px at 2% 96%, var(--glow-2), transparent 72%);
}

.hero::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  margin: 22px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
:root[data-theme="dark"] .hero h1 em { color: var(--accent-bright); }

.hero .lede { margin-bottom: 34px; font-size: 18px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-note code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-raised);
  padding: 1px 6px;
  border-radius: 4px;
}

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

.section { padding: 100px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 56px;
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  flex: none;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-head .lede { margin-left: auto; font-size: 15px; max-width: 26em; }

/* ------- problem section ------- */

.problem { border-top: 1px solid var(--line); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.problem-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.problem-copy p strong { color: var(--pine); font-weight: 600; }
:root[data-theme="dark"] .problem-copy p strong { color: var(--ink); }

.problem-list { list-style: none; }

.problem-list li {
  display: flex;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}

.problem-list li:first-child { border-top: 1px solid var(--line); }

.problem-list .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 4px;
  flex: none;
}
:root[data-theme="dark"] .problem-list .n { color: var(--accent-bright); }

/* ------- features ------- */

.features { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  transition: background 0.25s ease;
}

.feature:hover { background: var(--bg-raised); }

.feature .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: var(--accent);
}
:root[data-theme="dark"] .feature .icon { color: var(--accent-bright); }

.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.feature p {
  font-size: 14px;
  color: var(--ink-soft);
}

.feature .tag {
  float: right;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------- how it works ------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.step { position: relative; padding: 34px 22px 0 0; }

.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.step:last-child::before { right: 40%; }

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
:root[data-theme="dark"] .step-num { color: var(--accent-bright); }

.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 8px;
}

.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ------- roles ------- */

.roles { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.role-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.role-card .role-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
:root[data-theme="dark"] .role-card .role-kind { color: var(--accent-bright); }

.role-card h3 { font-size: 22px; margin-bottom: 6px; }

.role-card > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  min-height: 3.2em;
}

.role-card ul { list-style: none; }

.role-card li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 0 8px 24px;
  border-top: 1px solid var(--line);
  position: relative;
}

.role-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 10px;
  height: 5px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------- security strip ------- */

.security .sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.sec-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 14px 0 6px;
}

.sec-item p { font-size: 13.5px; color: var(--ink-soft); }

.sec-item .icon { color: var(--accent); width: 28px; height: 28px; }
:root[data-theme="dark"] .sec-item .icon { color: var(--accent-bright); }

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

.cta-band {
  background: var(--cta-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band .wrap {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 108px;
  max-width: 720px;
}

.cta-band h2 { font-size: clamp(30px, 4vw, 44px); margin: 18px auto 16px; }

.cta-band .lede { margin: 0 auto 36px; color: var(--pine); opacity: 0.78; }
:root[data-theme="dark"] .cta-band .lede { color: var(--ink-soft); opacity: 1; }

.cta-band .hero-ctas { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 60px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 14px;
  max-width: 26em;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }
:root[data-theme="dark"] .footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.footer-bottom .mono { font-family: var(--mono); font-size: 11px; }

/* ---------------------------------------------------------- */
/* Inner pages (about / contact / legal)                       */
/* ---------------------------------------------------------- */

.page-head {
  padding: 164px 0 68px;
  border-bottom: 1px solid var(--line);
}

.page-head .wrap { max-width: 760px; }

.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 20px 0 16px; }

.prose { max-width: 720px; }

.prose h2 { font-size: 25px; margin: 50px 0 16px; }
.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--ink);
  margin: 30px 0 10px;
}

.prose p { color: var(--ink-soft); margin-bottom: 16px; font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 18px 20px; color: var(--ink-soft); font-size: 15.5px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--pine); font-weight: 600; }
:root[data-theme="dark"] .prose strong { color: var(--ink); }

.prose .rule { border: none; border-top: 1px solid var(--line); margin: 44px 0; }

.legal-updated {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* about page — principle cards */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 8px;
}

.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  background: var(--bg-card);
}

.principle .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}
:root[data-theme="dark"] .principle .n { color: var(--accent-bright); }

.principle h3 { margin: 0 0 8px; }
.principle p { margin: 0; font-size: 14px; }

/* contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-info .ci-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-row:first-child { border-top: 1px solid var(--line); }

.contact-info .ci-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.contact-info .ci-value { font-size: 16px; color: var(--ink); }
.contact-info .ci-value a:hover { color: var(--accent); }
:root[data-theme="dark"] .contact-info .ci-value a:hover { color: var(--accent-bright); }

.contact-info .ci-sub { font-size: 13px; color: var(--ink-faint); margin-top: 3px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  transition: border-color 0.2s;
}

.form-row textarea { resize: vertical; min-height: 130px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }

/* ---------------------------------------------------------- */
/* Scroll reveal                                               */
/* ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------- */
/* Auth pages — login / register / verify-otp / dashboard      */
/* ---------------------------------------------------------- */

.auth-section {
  padding: 152px 0 100px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
}

.auth-section .wrap { max-width: 460px; }

.auth-section.wide .wrap { max-width: 640px; }

.auth-head { margin-bottom: 28px; }

.auth-head h1 { font-size: clamp(26px, 4vw, 34px); margin: 14px 0 10px; }

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 26px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}
:root[data-theme="dark"] .tab-btn.active { color: var(--accent-bright); }

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row .hint {
  display: block;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.btn-block { width: 100%; justify-content: center; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.form-alert {
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-alert.error {
  background: rgba(217, 83, 79, 0.1);
  border: 1px solid rgba(217, 83, 79, 0.35);
  color: #c0392b;
}
:root[data-theme="dark"] .form-alert.error { color: #ff8a80; }

.form-alert.success {
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.35);
  color: var(--pine);
}
:root[data-theme="dark"] .form-alert.success { color: var(--celadon); }

.form-alert .resend-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.auth-foot a { color: var(--accent); }
:root[data-theme="dark"] .auth-foot a { color: var(--accent-bright); }

.otp-boxes {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 22px;
}

.otp-boxes input {
  width: 42px;
  height: 52px;
  text-align: center;
  font-family: var(--mono);
  font-size: 20px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
}

.otp-boxes input:focus { outline: none; border-color: var(--accent); }

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dash-row:last-of-type { border-bottom: none; }

.dash-row .dl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.dash-row .dv { font-size: 14.5px; color: var(--ink); text-align: right; }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge.ok { background: rgba(45, 106, 79, 0.12); color: var(--pine); }
:root[data-theme="dark"] .badge.ok { color: var(--celadon); }

.badge.pending { background: rgba(217, 158, 10, 0.14); color: #9a6d00; }
:root[data-theme="dark"] .badge.pending { color: #f0c674; }

.badge.bad { background: rgba(217, 83, 79, 0.12); color: #c0392b; }
:root[data-theme="dark"] .badge.bad { color: #ff8a80; }

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

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .step { padding: 0 0 26px 34px; }
  .step::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .step:last-child::before { bottom: 55%; right: auto; }
  .step::after { top: 2px; }
  .step-num { margin-top: -3px; }
  .role-grid, .security .sec-grid { grid-template-columns: 1fr; }
  .security .sec-grid { gap: 28px; }
  .problem-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-wrap: wrap; gap: 14px; }
  .section-head .lede { margin-left: 0; }
  .principles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header .wrap { gap: 10px; }
  .brand small { display: none; }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  body.nav-open .site-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .site-nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }

  .nav-toggle { display: block; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-solid { padding: 9px 16px; font-size: 13.5px; }

  .hero { padding: 84px 0 48px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 24px; }
  .auth-section { padding: 108px 0 64px; }
  .auth-card, .dash-card { padding: 24px; }
  .form-row-2col { grid-template-columns: 1fr; gap: 0; }
}
