:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #2b211a;
  --muted: #6f6158;
  --line: #ece3d8;
  --accent: #c2571a;
  --accent-ink: #ffffff;
  --accent-soft: #f6e5d6;
  --hero-glow: rgba(194, 87, 26, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e;
    --surface: #211a15;
    --ink: #f3ebe3;
    --muted: #b5a698;
    --line: #3a2f27;
    --accent: #e97a3a;
    --accent-ink: #1a120c;
    --accent-soft: #3a2619;
    --hero-glow: rgba(233, 122, 58, 0.12);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; font-weight: 600; }

.wrap { width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span, .footer-brand span { color: var(--accent); }
.header-nav { display: flex; gap: 20px; }
.header-nav a { font-size: 15px; color: var(--muted); text-decoration: none; }
.header-nav a:hover { color: var(--accent); }

main { flex: 1; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 104px 0 88px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--hero-glow), transparent 70%);
}
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 6.2vw, 64px); margin: 22px auto 16px; max-width: 900px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 13px 24px; border-radius: 10px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-row > div { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.trust-row > div + div { border-left: 1px solid var(--line); }
.trust-row strong { font-size: 16px; }
.trust-row span { font-size: 14px; color: var(--muted); }

/* ---------- Sections / features ---------- */
.section { padding: 72px 20px 88px; }
.section-title { font-size: clamp(26px, 4vw, 34px); text-align: center; margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features + .features { margin-top: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.features-sm .feature { background: transparent; }
.features-sm .feature h3 { font-size: 17px; }

/* ---------- Policy pages ---------- */
.doc { max-width: 820px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 16px 0; }
.info { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; }
.info dt { font-weight: 600; color: var(--muted); font-size: 14px; padding-top: 2px; }
.info dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; color: var(--muted); background: var(--surface); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer-brand { font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 10px !important; }
.footer-grid p { max-width: 420px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; font-size: 13px; }

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .features > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .site-header .wrap { height: 56px; }
  .brand { font-size: 20px; }
  .header-nav { gap: 16px; }
  .hero { padding: 64px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div { padding: 16px; }
  .trust-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 52px 16px 64px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .features + .features { margin-top: 14px; }
  .feature { padding: 20px; }
  .doc { padding-top: 32px; padding-bottom: 56px; }
  .info { grid-template-columns: 1fr; gap: 2px; }
  .info dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { flex-direction: column; }
}
