:root {
  --ink: #1d2a24;
  --muted: #5b6a62;
  --bg: #faf7f1;
  --alt: #f0ebe0;
  --card: #ffffff;
  --line: #e2dccf;
  --accent: #2f5d4a;
  --accent-2: #c9772f;
  --ridge-back: #cfdccf;
  --ridge-front: #faf7f1;
  --hero: #e6eee3;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250,247,241,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.brand span { color: var(--ink); }
.brand em { font-style: normal; color: var(--accent-2); }
.links { display: flex; align-items: center; gap: 24px; font-size: .95rem; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { background: #244a3a; transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff !important; }
.btn-light { background: #fff; color: var(--accent) !important; }
.btn-light:hover { background: var(--alt); }

/* Hero */
.hero { position: relative; background: var(--hero); padding: 96px 0 180px; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--accent-2); margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 160px; }
.ridge-back { fill: var(--ridge-back); }
.ridge-front { fill: var(--ridge-front); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.note { color: var(--muted); font-size: .9rem; margin: 0; }
.grid { display: grid; gap: 24px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(29,42,36,.08); transform: translateY(-2px); }
.card h3 { font-size: 1.35rem; margin-top: 12px; }
.card p { color: var(--muted); flex: 1; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: #e3ece6; padding: 4px 10px; border-radius: 999px; }
.stars { color: var(--accent-2); letter-spacing: 2px; font-size: 1.1rem; }
.stars .off { color: var(--line); }
.stars .half { background: linear-gradient(90deg, var(--accent-2) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more { color: var(--accent); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cat .ico { font-size: 1.8rem; }
.cat h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.cat p { margin: 0; color: var(--muted); font-size: .95rem; }

.how { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.lede-sm { color: var(--muted); font-size: 1.1rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 72px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: Fraunces, Georgia, serif; font-weight: 700; }
.steps strong { color: var(--ink); display: block; }

.cta { background: var(--accent); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #d6e4dc; font-size: 1.1rem; margin: 12px 0 28px; }
.cta-inner { max-width: 640px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 140px; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 0; }
  .btn-light { word-break: break-word; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ee; --muted: #a9b7ae; --bg: #141a17; --alt: #1b231f; --card: #1f2823;
    --line: #2e3a33; --accent: #6fae8f; --hero: #1a2420; --ridge-back: #243029; --ridge-front: #141a17;
  }
  .nav { background: rgba(20,26,23,.9); }
  .btn { color: #0f1512 !important; }
  .btn:hover { background: #8cc3a7; }
  .btn-ghost { color: var(--accent) !important; }
  .btn-ghost:hover { color: #0f1512 !important; }
  .tag { background: #26352d; }
  .cta { background: #22372d; }
  .btn-light { background: var(--accent); color: #0f1512 !important; }
}
