/* VaultWeb marketing site — reuses the app's real "Warm Light" theme tokens
   (public/index.html's default theme, not an invented palette) so the
   marketing site and product feel like the same thing. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF9F7;
  --sidebar: #F3F1EC;
  --editor-bg: #FFFFFF;
  --border: #E8E5DF;
  --text: #2C2B28;
  --muted: #8C8880;
  --accent: #8B4513;
  --accent2: #A0522D;
  --hover: #EDEAE4;
  --active: #EAE7E0;
  --heading-1: #1A1917;
  --content-max: 1080px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-head); color: var(--heading-1); line-height: 1.25; }

/* ── Header ── */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--accent);
  letter-spacing: -0.3px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}
.site-header nav a { color: var(--text); }
.site-header nav a:hover { color: var(--accent); text-decoration: none; }
.site-header .cta-link {
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.site-header .cta-link:hover { background: var(--accent2); text-decoration: none; }
.site-header .lang-switcher {
  font-size: 13.5px;
  color: var(--text);
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-family: var(--font-body);
  cursor: pointer;
}
.site-header .lang-switcher:hover { border-color: var(--accent); }

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 24px;
}
.site-footer .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  gap: 22px;
}
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }

/* ── Generic page shell ── */
main.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 40px;
}
main.page.narrow { max-width: 720px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); text-decoration: none; }
.btn-secondary { background: var(--hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--active); text-decoration: none; }
.btn-disabled { background: var(--hover); color: var(--muted); border: 1px solid var(--border); cursor: default; pointer-events: none; }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 40px 0 60px;
}
.hero h1 {
  font-size: 42px;
  margin-bottom: 18px;
}
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; }

/* ── Pillars / feature grid ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 60px 0;
}
.pillar {
  background: var(--editor-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
}
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ── Feature list section ── */
.feature-section { margin: 60px 0; }
.feature-section h2 { font-size: 26px; text-align: center; margin-bottom: 8px; }
.feature-section .sub { text-align: center; color: var(--muted); margin-bottom: 36px; }
.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-group h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}
.feature-group ul { list-style: disc; padding-left: 18px; }
.feature-group li {
  font-size: 14.5px;
  color: var(--text);
  padding: 5px 0;
}
.feature-group li::marker { color: var(--muted); }

/* ── Encryption / how-it-works band ── */
.band {
  background: var(--sidebar);
  border-radius: 12px;
  padding: 44px 40px;
  margin: 60px 0;
}
.band h2 { font-size: 24px; margin-bottom: 14px; }
.band p { color: var(--text); font-size: 15.5px; line-height: 1.7; max-width: 720px; }
.band p + p { margin-top: 12px; }

/* ── Pricing cards ── */
.pricing-lede {
  text-align: center;
  margin: 8px 0 40px;
}
.pricing-lede .beat {
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.5;
  color: var(--heading-1);
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto 30px;
}
.plan-card {
  background: var(--editor-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.plan-card.founder { border-color: var(--accent); border-width: 2px; }
.plan-card .plan-name { font-family: var(--font-head); font-size: 20px; margin-bottom: 4px; }
.plan-card .plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--hover);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}
.plan-card .price { font-size: 34px; font-weight: 700; margin: 6px 0 4px; }
.plan-card .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan-card .price-note { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.plan-card ul { list-style: none; margin: 0 0 26px; flex: 1; }
.plan-card li {
  font-size: 14.5px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-card .btn { text-align: center; }
.pricing-trial-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 50px;
}
.pricing-entry-notes {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 560px;
  margin: -30px auto 40px;
}
.pricing-entry-notes p { margin: 4px 0; }
.pricing-entry-notes a { color: var(--accent); }
.pricing-footer-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 20px;
}

/* ── Legal pages ── */
.legal h1 { font-size: 28px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.legal h2 { font-size: 17px; margin: 30px 0 10px; }
.legal p { margin-bottom: 14px; line-height: 1.7; font-size: 15px; }
.legal p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .feature-groups { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-header nav { gap: 16px; font-size: 13.5px; }
}
