/* ZOVVA public site — shared stylesheet.
   Monochrome brand language, matching the app's own design tokens
   (lib/core/theme/app_colors.dart) — no color accents, light/dark via
   prefers-color-scheme. No frameworks, no build step. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --card: #F2F2F2;
  --border: #E2E2E2;
  --text: #000000;
  --text-dim: #6B6B6B;
  --btn-bg: #000000;
  --btn-text: #FFFFFF;
  /* Parity sprint (2026-09-06): the app's own brand language is
     monochrome — no color accents anywhere, not even for links (see
     lib/core/theme/app_colors.dart's "Monochrome brand language... no red
     or green anywhere" note, extended here to blue). `--link` used to be
     iOS-system-blue (#007AFF light / #6CA8FF dark), a real deviation this
     sprint corrects: links now render in `--text`, underlined, exactly
     like the mobile app never uses a colored link/accent for plain text. */
  --link: #000000;
  --radius: 14px;
  --max-width: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1C;
    --card: #242424;
    --border: #303030;
    --text: #F5F5F5;
    --text-dim: #8A8A8A;
    --btn-bg: #FFFFFF;
    --btn-text: #000000;
    --link: #F5F5F5;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Monochrome link affordance — underline carries "this is a link" instead
   of a color accent, since color is reserved for nothing on this site,
   matching the app's monochrome brand language. */
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: 0.72; }
.site-nav a, .site-footer a, .brand { text-decoration: none; }
.site-nav .links a:hover, .site-footer a:hover, .brand:hover { text-decoration: underline; opacity: 1; }

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

/* ── Nav ─────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.site-nav .brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav .links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav .links a {
  color: var(--text-dim);
}

.site-nav .links a.active,
.site-nav .links a:hover {
  color: var(--text);
}

/* ── Auth widget (shared across pages, populated by auth.js) ──────────── */

.auth-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.auth-widget .auth-email {
  color: var(--text-dim);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { border-color: var(--text-dim); }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn-primary:hover { opacity: 0.85; }

.btn[disabled] { opacity: 0.5; cursor: default; }

/* ── Layout ──────────────────────────────────────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.hero {
  text-align: center;
  padding: 48px 0 20px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 0 22px;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15.5px;
  color: var(--text-dim);
}

/* ── AI entry points (AI Chat / Voice Live) ─────────────────────────────
   Parity sprint (2026-09-06): the two primary AI surfaces, styled apart
   from the plain module list below them — mirrors mobile's own hierarchy
   where AI Chat/Voice Live are entry points, not module tiles. */
.ai-entry-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.ai-entry-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.ai-entry-card .icon { font-size: 24px; flex-shrink: 0; }
.ai-entry-card h3 { font-size: 15px; margin: 0 0 3px; }
.ai-entry-card p { font-size: 13px; color: var(--text-dim); margin: 0; }

/* ── Module list (list-oriented, matching mobile's Modules Hub — never a
   card-grid: see docs/project_management/ZOVVA_WEB_MOBILE_PARITY.md §6) */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}

.module-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 14px 18px;
}

.module-row .icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.module-row .info { flex: 1; min-width: 0; }
.module-row h3 { font-size: 14.5px; margin: 0 0 2px; }
.module-row p { font-size: 12.5px; color: var(--text-dim); margin: 0; }

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 32px 0 4px;
}

/* ── Pricing (pricing.html) ─────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0 36px;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.plan-card h3 { font-size: 16px; margin: 0 0 2px; }
.plan-card .price { font-size: 26px; font-weight: 700; margin: 6px 0 14px; }
.plan-card .price span { font-size: 13px; font-weight: 500; color: var(--text-dim); }
.plan-card ul { list-style: none; padding: 0; margin: 0; }
.plan-card li {
  font-size: 13.5px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.plan-card li:first-child { border-top: none; }
/* The plan we recommend (PRO): stronger border and a small badge. */
.plan-card.hero { border: 2px solid var(--text); }
.plan-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
}

.addon-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 30px;
  font-size: 13.5px;
}
.addon-table th, .addon-table td {
  text-align: start;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.addon-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.addon-table-wrap { overflow-x: auto; }

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}

/* ── Content pages (privacy / delete-account / contact) ────────────────── */

.page h1 {
  font-size: 27px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
  margin-top: 0;
}

.page h2 {
  font-size: 17px;
  margin-top: 30px;
  color: var(--text);
}

.page .updated { color: var(--text-dim); font-size: 13px; }

.notice {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin: 16px 0 24px;
}

.notice.warn {
  border-color: #d9822b;
}
@media (prefers-color-scheme: dark) {
  .notice.warn { border-color: #caa26a; }
}

.body-text { font-size: 14.5px; white-space: pre-line; color: var(--text); }

.card-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0;
}

ol.steps, ul.plain { padding-inline-start: 22px; }
ol.steps li, ul.plain li { margin-bottom: 8px; font-size: 14.5px; }

.lang-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  margin-inline-end: 8px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.lang-tab.active { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

[dir="rtl"] { direction: rtl; text-align: right; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

.site-footer a { color: var(--text-dim); }

/* ── Small screens ───────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .site-nav .links { gap: 14px; font-size: 13px; }
  .auth-widget .auth-email { max-width: 90px; }
}
