/* The static pages (scripts/build-site.mjs): the landing's dark theme, no JS. */
:root {
  --bg: #131510;
  --bg-1: #1a1d17;
  --bg-2: #22261f;
  --line: #2a2f27;
  --line-2: #3a4136;
  --text: #f3f4f0;
  --dim: #b8bab3;
  --mute: #8a8e82;
  --accent: #4f8b2e;
  --accent-hi: #6aae3f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(79, 139, 46, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Sora, "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg-1); padding: 8px 12px; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding-inline: 24px;
  background: rgba(19, 21, 16, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { color: var(--accent); flex: none; }
.brand b { display: block; font: 600 18px/1 Sora, sans-serif; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a, .signin { color: var(--dim); text-decoration: none; font-size: 14px; }
.links a:hover, .signin:hover { color: var(--text); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 8px;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hi); }
.btn.sm { padding: 8px 14px; font-size: 14px; }

.lang { position: relative; font-size: 14px; color: var(--dim); }
.lang summary {
  cursor: pointer; list-style: none; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  min-width: 150px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 8px;
}
.lang a { display: block; padding: 6px 10px; border-radius: 5px; text-decoration: none; }
.lang a:hover, .lang a[aria-current] { background: var(--bg-2); color: var(--text); }

/* Hero */
.hero { padding: 96px 0 24px; text-align: center; }
.hero.left { text-align: left; padding-top: 64px; }
.eyebrow { color: var(--accent-hi); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; max-width: 18ch; margin-inline: auto; }
.hero.left h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 22ch; margin-inline: 0; }
.lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 62ch; margin: 20px auto 0; }
.hero.left .lead { margin-inline: 0; }
.hero .btn { margin-top: 32px; }
.note { color: var(--mute); font-size: 14px; margin-top: 12px; }
.crumbs { color: var(--mute); font-size: 14px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.shot {
  margin: 56px 0 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Sections */
.sec { padding: 80px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 26ch; }
.sec .wrap > p { color: var(--dim); font-size: 18px; max-width: 68ch; margin-top: 16px; }
.sec a:not(.btn) { color: var(--accent-hi); text-underline-offset: 3px; }
.more { margin-top: 28px; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; margin: 32px 0 0;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.facts div { background: var(--bg-1); padding: 20px 22px; }
.facts dt { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 6px 0 0; }

.steps, .cards { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.steps { counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 13px Sora, sans-serif; color: var(--accent-hi); }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards li { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
/* A fifth card (your own phases) takes the whole row instead of sitting alone. */
.cards li:nth-child(5):last-child { grid-column: 1 / -1; }
.steps h3, .cards h3 { font-size: 18px; margin: 8px 0 6px; }
.cards h3 { margin-top: 0; }
.steps p, .cards p { color: var(--dim); font-size: 15px; }

.terms { margin: 32px 0 0; display: grid; gap: 12px; max-width: 820px; }
.terms div { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.terms dt { font: 600 19px/1.3 Sora, sans-serif; }
.terms dd { margin: 6px 0 0; color: var(--dim); }

.table { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { color: var(--mute); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-1); }
tbody th { font-weight: 600; }
td { color: var(--dim); }

.faq { margin-top: 24px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--dim); margin-top: 10px; max-width: 70ch; }

.final { text-align: center; }
.final h2, .sec.final .wrap > p { margin-inline: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--dim); }
.foot .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot .grid > div > p { margin-top: 14px; max-width: 34ch; }
.foot .fh { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--text); }
.foot .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; color: var(--mute); }

@media (max-width: 860px) {
  .links, .signin { display: none; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav { padding-inline: 16px; gap: 12px; }
  .wrap { padding-inline: 16px; }
  .brand small { display: none; }
  .hero { padding-top: 56px; }
  .sec { padding: 56px 0; }
  .foot .grid { grid-template-columns: 1fr; }
}
