:root {
  --paper: #f3efe4;
  --ink: #1b1714;
  --muted: #5c5348;
  --copper: #b8431f;
  --line: #ddd4c3;
  --card: #fffdf8;
  --moss: #243f34;
  --shadow: 0 18px 50px rgba(27, 23, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(184, 67, 31, 0.08), transparent 50%),
    var(--paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.5;
}

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

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

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

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .mark { width: 36px; height: 36px; display: block; }
.brand .wordmark { height: 28px; width: auto; display: block; }
.hero-logo { width: min(100%, 520px); height: auto; display: block; }
h1 { margin: 0 0 18px; }
.app-mark {
  width: min(220px, 70%);
  height: auto;
  align-self: center;
  border-radius: 28px;
}

nav.links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

nav.links a { color: var(--ink); text-decoration: none; }
nav.links a:hover { color: var(--copper); }

.lang {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 42px;
  align-items: end;
  padding: 28px 0 18px;
}

.kicker {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--copper);
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.88;
  font-weight: 560;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.points li {
  padding: 7px 0 7px 18px;
  border-top: 1px solid var(--line);
  position: relative;
}

.points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  position: absolute;
  left: 0;
  top: 14px;
}

.meter {
  background: var(--ink);
  color: #f6f1e6;
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.meter p {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #d8c7b4;
}

.digits {
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.08em;
  margin: 12px 0;
}

.needle {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #8d3418, #e7a08a 70%, #f3efe4);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

h2 { margin: 0 0 8px; font-size: 1.7rem; }

form { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 6px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

input[type="email"], select {
  font: inherit;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.05rem;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
}

button {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background: var(--copper);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover { background: #9a3518; }

.note, .legal p, .status {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.status {
  min-height: 1.2em;
  color: var(--moss);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 10px 0 40px;
}

.card {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card p { margin: 0; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.prose {
  width: min(740px, calc(100% - 32px));
  margin: 10px auto 50px;
}

.prose h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }

@media (max-width: 800px) {
  .hero, .grid-3, footer { display: block; }
  .meter, .panel, .card { margin-top: 16px; }
  nav.links { gap: 10px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header.top {
  gap: 12px 28px;
  flex-wrap: wrap;
}

.brand { flex: 0 0 auto; }

.nav-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;
  flex: 1 1 16rem;
  margin-left: auto;
}

nav.links {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
}

header.top select.lang {
  width: 11rem;
  max-width: 100%;
  margin: 0;
  padding: 6px 12px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.2;
  border-radius: 999px;
  background: var(--card);
}

.play-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 8px 0 28px;
}

.play-link {
  display: inline-block;
  background: var(--moss);
  color: #f6f1e6;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.play-link:hover { color: #fff; }

.qr-link img {
  display: block;
  width: 168px;
  height: 168px;
  background: #fffdf8;
  border-radius: 12px;
  padding: 8px;
}

@media (max-width: 800px) {
  header.top { align-items: flex-start; }
  .nav-group {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .play-panel { grid-template-columns: 1fr; }
}
