:root {
  --bg: #fbf4e6;
  --surface: #fffaf1;
  --ink: #3a2418;
  --muted: #7a5f4c;
  --red: #b8321f;
  --red-deep: #8f2414;
  --gold: #e8a93a;
  --line: #ead9bd;
  --radius: 20px;
  --serif: "Lora", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1611;
    --surface: #2a1e17;
    --ink: #f6e9d6;
    --muted: #c4a98f;
    --red: #e0573f;
    --red-deep: #b8321f;
    --gold: #f0bb57;
    --line: #463427;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--red); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgb(143 36 20 / .25); margin-bottom: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn[aria-disabled="true"] { cursor: default; }
.note { font-size: .9rem; color: var(--muted); margin-top: 12px; }

.phone {
  justify-self: center;
  width: min(300px, 80vw);
  padding: 12px;
  background: #1c1410;
  border-radius: 44px;
  box-shadow: 0 30px 60px rgb(58 36 24 / .28);
}
.phone img { border-radius: 33px; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.covers figure { margin: 0; }
.covers img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; width: 100%; }
.covers figcaption { font-family: var(--serif); font-weight: 600; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.alt .card { background: var(--bg); }
.card .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price {
  background: var(--red); color: #fff;
  border-radius: var(--radius); padding: 32px;
}
.price h3 { font-size: 1.5rem; }
.price p { color: rgb(255 255 255 / .88); }
.price ul, .card ul { margin: 0; padding-left: 1.2em; }
.price li, .card li { margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.contact { margin-top: 28px; font-size: 1.05rem; }

/* Prose pages */
.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose .meta { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .covers, .features { grid-template-columns: repeat(2, 1fr); }
  .site-nav .optional { display: none; }
}

@media (max-width: 520px) {
  .covers, .features { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: .9rem; }
}
