/* wachive marketing site — Vault palette (spec §2.4).
   Keep in sync with src/popup/theme.ts / tailwind vault-*. */

:root {
  --bg: #faf7f0;
  --header-bg: #fefdf8;
  --surface: #ffffff;
  --border: #e2dccc;
  --text: #1b241f;
  --soft: #49524a;
  --muted: #7c766a;
  --accent: #12805d;
  --accent-deep: #0f5c43;
  --mint: #e7f3ed;
  --gold: #b58a2c;
  --gold-bg: #f6eedb;
  --gold-text: #9b804b;
  --cta: #1b241f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(27, 36, 31, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- brand ---------- */
.brand { font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand .chive { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .brand { font-size: 24px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--cta); color: #fff !important; padding: 9px 18px;
  border-radius: 10px; font-weight: 700;
}
.nav-cta:hover { opacity: 0.9; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--accent-deep);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero .sub { margin-top: 20px; font-size: 19px; color: var(--soft); max-width: 34em; }
.hero .strapline { margin-top: 16px; font-weight: 700; color: var(--gold); font-size: 15.5px; }
.cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 12px; transition: all 0.15s ease;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 5px 14px rgba(27, 36, 31, 0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(27, 36, 31, 0.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--mint); border-color: var(--accent); }
.launch-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.trust-row { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.trust-row span { font-size: 13.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.trust-row .tick { color: var(--accent); font-weight: 800; }

.hero-shot { position: relative; text-align: center; }
.hero-shot img {
  width: 320px; max-width: 100%; border-radius: 18px;
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(27, 36, 31, 0.18);
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--header-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section-sub { margin-top: 14px; color: var(--soft); font-size: 17.5px; max-width: 44em; }

/* ---------- features ---------- */
.feature-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.feature .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--soft); }

/* ---------- how it works ---------- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--soft); }

/* ---------- screenshots ---------- */
.shots { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.shot { text-align: center; }
.shot img {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- legal section ---------- */
.legal-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.legal-list { list-style: none; margin-top: 24px; }
.legal-list li { padding: 10px 0; padding-left: 32px; position: relative; color: var(--soft); font-size: 15.5px; }
.legal-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.legal-list li strong { color: var(--text); }
.quote-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.quote-card .stamp {
  font-family: Consolas, 'Courier New', monospace; font-size: 13px; color: var(--soft);
  background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 14px 16px; margin-top: 16px;
}

/* ---------- pricing ---------- */
.strap-center { text-align: center; color: var(--gold); font-weight: 700; font-size: 16px; margin-top: 10px; }
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; display: flex; flex-direction: column;
}
.plan.popular { border-color: var(--accent); background: var(--mint); }
.plan .tier { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.plan .tier.goldtier { color: var(--gold); }
.plan .who { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.plan .price { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.plan .unit { font-size: 12px; color: var(--muted); }
.plan .bands { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.plan .blurb { font-size: 13px; color: var(--soft); margin: 12px 0 16px; flex: 1; }
.plan .btn { padding: 10px 0; width: 100%; font-size: 14px; border-radius: 10px; }
.badge-popular {
  display: inline-block; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; text-transform: uppercase;
}

.compare-wrap { margin-top: 56px; overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.compare th { text-align: center; font-size: 13px; padding: 10px 8px; }
table.compare th:first-child { text-align: left; width: 34%; }
table.compare td { padding: 11px 8px; text-align: center; border-top: 1px solid var(--border); color: var(--soft); }
table.compare td:first-child { text-align: left; color: var(--text); }
table.compare .sect td {
  border-top: none; padding-top: 28px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left;
}
table.compare .yes { color: var(--accent); font-weight: 700; }
table.compare .no { color: var(--border); }

.how-licensing {
  margin-top: 48px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow);
}
.how-licensing h3 { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.how-licensing ol { margin: 14px 0 0 20px; color: var(--soft); font-size: 15.5px; }
.how-licensing li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; max-width: 780px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--accent); font-weight: 800; font-size: 20px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--soft); font-size: 15px; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .btn { margin-top: 28px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--header-bg); padding: 44px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-grid .brand { font-size: 20px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.footer-col a { display: block; color: var(--soft); text-decoration: none; font-size: 14.5px; padding: 3px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* ---------- privacy page ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: 34px; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--soft); font-size: 15.5px; }
.doc ul { margin: 10px 0 10px 22px; }
.doc .callout {
  background: var(--mint); border-radius: 12px; padding: 18px 22px;
  color: var(--accent-deep); font-weight: 600; margin: 20px 0;
}

/* ---------- language picker ---------- */
.lang-picker {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; font-size: 13.5px; color: var(--soft); font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.lang-picker:hover { border-color: var(--accent); }

/* ---------- RTL (Arabic) ---------- */
[dir='rtl'] .legal-list li { padding-left: 0; padding-right: 32px; }
[dir='rtl'] .legal-list li::before { left: auto; right: 0; }
[dir='rtl'] .quote-card { border-left: 1px solid var(--border); border-right: 4px solid var(--gold); }
[dir='rtl'] table.compare th:first-child,
[dir='rtl'] table.compare td:first-child { text-align: right; }
[dir='rtl'] table.compare .sect td { text-align: right; }
[dir='rtl'] .faq summary { padding-right: 0; padding-left: 28px; }
[dir='rtl'] .faq summary::after { right: auto; left: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .cta-row, .trust-row { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .legal-band { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .feature-grid, .steps, .plans { grid-template-columns: 1fr; }
}

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--text); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.contact-form button { justify-self: start; border: none; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
#cf-status.cf-ok { color: var(--accent-deep); font-weight: 600; }
#cf-status.cf-err { color: #a33; font-weight: 600; }

/* ---------- store badges ---------- */
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); font-weight: 600; font-size: 14px;
  color: var(--text); text-decoration: none;
}
a.store-badge:hover { border-color: var(--accent); color: var(--accent); }
.store-badge svg { flex-shrink: 0; }
