:root {
  --bg: #f7f3ec;
  --ink: #1f1a14;
  --muted: #6b6155;
  --wood: #8a5a33;
  --wood-dark: #5e3c20;
  --laser: #e5322a;
  --card: #fffdf9;
  --line: #e4dccf;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--wood-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.2rem;
  color: var(--ink); text-decoration: none;
}
.top nav { display: flex; align-items: center; gap: 1.25rem; }
.top nav a:not(.button) { color: var(--muted); text-decoration: none; }
.top nav a:not(.button):hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--wood);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--wood);
  transition: background 0.15s;
}
.button:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.button.ghost { background: transparent; color: var(--wood-dark); }
.button.ghost:hover { background: var(--wood); color: #fff; }
.button.small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }

/* Sections */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem !important;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.note { font-size: 0.9rem; color: var(--muted); }

/* Board animation */
.board-demo { margin: 0; }
.board-demo svg {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 0 10px var(--wood-dark), 0 20px 40px rgba(0, 0, 0, 0.2);
}
.board-demo figcaption {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
.from, .to { fill: var(--laser); opacity: 0.12; }
.laser { animation: trace 2.4s ease-in-out infinite alternate; }

@keyframes trace {
  0%, 15%   { transform: translate(225px, 75px); }
  85%, 100% { transform: translate(225px, 175px); }
}

@media (prefers-reduced-motion: reduce) {
  .laser { animation: none; transform: translate(225px, 175px); }
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--laser);
  color: #fff;
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

/* Details */
.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  border-top: 1px solid var(--line);
}
.detail p { margin: 0; color: var(--muted); }

/* Updates */
.updates {
  text-align: center;
  background: var(--wood-dark);
  color: #fff;
  border-radius: var(--radius);
  max-width: calc(var(--max) - 2.5rem) !important;
}
.updates p { max-width: 36rem; margin-left: auto; margin-right: auto; color: #f0e4d4; }
.updates .actions { justify-content: center; }
.updates .button { background: #fff; color: var(--wood-dark); border-color: #fff; }
.updates .button:hover { background: #f0e4d4; }

/* FAQ */
.faq { max-width: 760px !important; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer p { margin: 0.25rem 0; }
.small { font-size: 0.8rem; }

/* Narrow screens */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .steps, .details { grid-template-columns: 1fr; }
  .top nav a:not(.button) { display: none; }
}
