:root {
  --ink: #1a120c;
  --paper: #f6f1e8;
  --cream: #fffaf3;
  --coral: #ff4d2e;
  --coral-deep: #d63a1f;
  --line: rgba(26, 18, 12, 0.14);
  --muted: #6d6258;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
}
.top img { height: 36px; width: auto; filter: brightness(0); }
.top nav { display: flex; gap: 1rem; align-items: center; }
.top button, .top a { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-weight: 650; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 78vh;
  background: var(--ink);
  color: var(--cream);
}
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.hero-copy { display: grid; align-content: end; gap: 0.8rem; padding: 2.5rem; }
.kicker { margin: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; color: var(--coral); }
.hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 0.92; letter-spacing: -0.045em; }
.hero p { margin: 0; max-width: 34rem; font-size: 1.15rem; line-height: 1.45; }
.cta, button.solid {
  background: var(--coral);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  justify-self: start;
  cursor: pointer;
}
.cta:hover, button.solid:hover { background: var(--coral-deep); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.steps article { background: var(--ink); color: var(--cream); }
.steps img { height: 220px; width: 100%; object-fit: cover; }
.steps img.ridge { object-position: center 68%; }
.steps h2, .steps p { margin: 0.8rem 1.1rem; }
.steps h2 { font-size: 1.4rem; letter-spacing: -0.03em; }
.steps p { margin-bottom: 1.4rem; color: #eadfd2; line-height: 1.45; }

main {
  width: min(68rem, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: grid;
  gap: 1.25rem;
}
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
}
.panel-head h2 { margin: 0 0 0.35rem; font-size: 1.8rem; letter-spacing: -0.04em; }
.quiet, .status { color: var(--muted); line-height: 1.4; }
.modes {
  display: flex;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.85rem 0 0.2rem;
  padding: 0.25rem;
  background: rgba(26, 18, 12, 0.06);
  border-radius: 999px;
}
.modes button {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.modes button.on { background: var(--ink); color: var(--cream); }
form, .split { display: grid; gap: 0.75rem; }
.split { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
#species { min-height: 7.2rem; }
input, select {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
fieldset { border: 1px solid var(--line); border-radius: 16px; display: flex; gap: 1rem; flex-wrap: wrap; }
.check { display: flex; gap: 0.4rem; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.actions button, .row button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.actions button.solid, button.solid {
  background: var(--coral);
  color: #fff;
  border: 0;
}
.actions button.solid:hover, button.solid:hover { background: var(--coral-deep); }
.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.row strong { display: block; }
.tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
}
.tag.point { background: var(--coral); }

@media (max-width: 860px) {
  .hero, .steps, .split { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .row { grid-template-columns: 1fr; }
}

button.beta-open,
button.beta-send {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  background: #e0a15c;
  color: #1a140c;
}
button.beta-open:hover,
button.beta-send:hover { color: #1a140c; background: #efb56d; }
.beta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
button.beta-open { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.beta-panel {
  width: 100%;
  max-height: min(70vh, 34rem);
  overflow: auto;
  background: #1a2420;
  color: #f4efe4;
  border: 2px solid #e0a15c;
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.beta-panel h2 { margin: 0; font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
.beta-panel label { display: block; margin-top: 0.7rem; }
.beta-panel textarea,
.beta-panel input {
  width: 100%;
  margin-top: 0.35rem;
  background: #101612;
  color: #f4efe4;
  border: 1px solid #314038;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.beta-panel textarea { min-height: 6.5rem; resize: vertical; }
.beta-actions { margin: 0.7rem 0 0; }
.beta-note { border-top: 1px solid #314038; margin-top: 0.75rem; padding-top: 0.65rem; }
.beta-note p { margin: 0.25rem 0 0; white-space: pre-wrap; }
.beta-ref { color: #e0a15c; font-weight: 700; letter-spacing: 0.04em; }
.beta .quiet { color: #a8b5a4; }
.beta .status { color: #f4efe4; }
