/* SacredKeep marketing site
   Soft, calm palette: warm cream, muted deep green, antique gold, warm gray text.
   No pure black / pure white. */

:root {
  --cream:        #F7F3EC;  /* page background */
  --cream-deep:   #F1EBDD;  /* alternating sections */
  --card:         #FCFAF4;  /* warm off-white cards */
  --green:        #23523F;  /* soft deep green */
  --green-deep:   #1C3A2E;  /* dark section */
  --green-soft:   #E6EFE8;  /* pale green tint */
  --gold:         #C9A84C;  /* muted antique gold */
  --gold-light:   #D9B45C;
  --gold-dark:    #7A5A14;  /* readable gold text on light */
  --ink:          #333B35;  /* warm gray-green text */
  --ink-muted:    #6B7268;
  --border:       #E3DCCF;
  --red-soft:     #B4554A;  /* muted red for the "Edited" flag */
  --red-bg:       #F7E9E4;
  --radius:       14px;
  --shadow:       0 6px 24px rgba(51, 59, 53, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  color: var(--green-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.6em;
}
.eyebrow-gold { color: var(--gold-light); }

.section-sub {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.light { color: var(--cream); }
.light-sub { color: #C9D4CC; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-small { padding: 0.45em 1.1em; font-size: 0.92rem; }
.btn-block { display: block; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-name {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-deep);
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
}
.main-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 18px;
  box-shadow: var(--shadow);
}
.main-nav.open { display: flex; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 4px;
}
.main-nav a:hover { color: var(--green); }
.main-nav .btn { text-align: center; margin-top: 8px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
  align-self: flex-start;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--green);
  color: var(--cream);
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.hero-note { font-size: 0.92rem; color: var(--ink-muted); }

/* CSS app preview */
.mock-window {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(51, 59, 53, 0.12);
  overflow: hidden;
  font-size: 0.8rem;
}
.mock-sidebar {
  background: var(--green);
  color: #DCE7DE;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 118px;
}
.mock-logo { margin-bottom: 10px; }
.mock-nav {
  padding: 6px 9px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.mock-nav.active { background: rgba(247, 243, 236, 0.16); color: var(--cream); }
.mock-main { flex: 1; padding: 16px; min-width: 0; }
.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-org {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  color: var(--green-deep);
  font-size: 0.95rem;
}
.mock-bell { position: relative; color: var(--ink-muted); display: inline-flex; }
.mock-bell-dot {
  position: absolute;
  top: -2px; right: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-soft);
  border: 1.5px solid var(--card);
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mock-stat {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.mock-stat-label { font-size: 0.68rem; color: var(--ink-muted); font-weight: 600; }
.mock-stat-value { font-size: 1.05rem; font-weight: 700; color: var(--green-deep); }
.mock-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mock-table-title {
  font-weight: 700;
  color: var(--green-deep);
  padding: 9px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mock-row:last-child { border-bottom: none; }
.mock-row-head { font-size: 0.68rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mock-amt { text-align: right; font-weight: 600; }
.mock-pill {
  justify-self: start;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill-green { background: var(--green-soft); color: var(--green-deep); }
.pill-gold { background: #F4ECD4; color: var(--gold-dark); }
.mock-edited {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--red-soft);
  background: var(--red-bg);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: 1px;
}
.mock-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  background: #F4ECD4;
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.74rem;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark { background: var(--green-deep); }
.section-dark h3 { color: var(--cream); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-card p { color: var(--ink-muted); margin: 0; font-size: 0.97rem; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
.security-card {
  background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(217, 180, 92, 0.35);
  border-radius: var(--radius);
  padding: 24px;
}
.security-card p { color: #C9D4CC; margin: 0; font-size: 0.97rem; }
.security-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(217, 180, 92, 0.14);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.security-icon svg { width: 24px; height: 24px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
  align-items: stretch;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-card h3 { margin: 0; }
.price-size { color: var(--ink-muted); margin: 0; }
.price-amount {
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 10px 0 18px;
}
.price-per { font-size: 0.95rem; font-family: "Public Sans", sans-serif; font-weight: 500; color: var(--ink-muted); }
.price-featured {
  border: 2px solid var(--gold);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}
.pricing-all { margin-top: 28px; color: var(--ink); font-weight: 500; }
.pricing-note { color: var(--ink-muted); font-size: 0.9rem; }

/* FAQ */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-deep);
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--gold-dark);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-muted); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--green);
  padding: 64px 0;
}
.cta-logo { margin-bottom: 14px; }
.cta-band .btn { margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: #C9D4CC;
  padding: 44px 0 36px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  margin: 0;
}
.footer-tagline { margin: 0; font-size: 0.9rem; }
.footer-meta p { margin: 0 0 6px; font-size: 0.92rem; }
.footer-meta a { color: var(--gold-light); }
.footer-rights { font-size: 0.82rem; color: #93A69A; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .main-nav a { padding: 4px 0; }
  .main-nav .btn { margin-top: 0; }
  .lang-switch { margin: 0; }

  .hero { padding: 80px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .security-grid { grid-template-columns: repeat(3, 1fr); }
  .security-card:nth-child(4) { grid-column: 1 / 2; }
  .security-card:nth-child(5) { grid-column: 2 / 3; }
}

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