:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --ink: #17241f;
  --muted: #65706b;
  --line: #ded5c6;
  --green: #0f5c48;
  --green-2: #174b3e;
  --gold: #d9a441;
  --red: #b84538;
  --shadow: 0 18px 44px rgba(23, 36, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 56%, #e9f0eb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.page-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 28px;
  align-items: center;
  min-height: 48vh;
  padding: 26px 0 20px;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow,
.step-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: 3.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 580px;
  margin-bottom: 22px;
  color: #3f4c47;
  font-size: 1.12rem;
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-row span,
.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 92, 72, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 253, 248, 0.74);
  color: var(--green-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.voucher-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.voucher-visual img {
  display: block;
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 24px 38px rgba(23, 36, 31, 0.17));
}

.flow-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.22;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.choice-button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-button:hover,
.choice-button:focus-visible,
.choice-button.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 92, 72, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.choice-title,
.choice-note {
  display: block;
}

.choice-title {
  margin-bottom: 8px;
  font-weight: 850;
  line-height: 1.18;
}

.choice-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.age-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #e8dcc9;
  border-radius: var(--radius);
  padding: 16px;
  background: #fbf5ea;
}

.age-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.age-actions,
.action-row {
  display: flex;
  gap: 10px;
}

.secondary-button,
.primary-button,
.text-button,
.install-button {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line);
  color: #3f4c47;
  background: #ffffff;
}

.secondary-button-strong,
.secondary-button.is-selected {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
}

.action-row {
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.primary-button {
  min-width: 190px;
  border: 0;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(15, 92, 72, 0.22);
}

.primary-button:disabled {
  color: #87908c;
  background: #d9d6ce;
  box-shadow: none;
  cursor: not-allowed;
}

.text-button {
  border: 0;
  color: var(--red);
  background: transparent;
}

.install-button {
  min-height: 32px;
  border: 1px solid rgba(15, 92, 72, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.82rem;
}

.install-button[hidden] {
  display: none;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #ffffff;
  background: #24352f;
  box-shadow: 0 12px 28px rgba(23, 36, 31, 0.22);
}

@media (max-width: 820px) {
  .page-shell {
    padding: 20px 14px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding-top: 16px;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.72rem;
  }

  .intro {
    font-size: 1rem;
  }

  .voucher-visual {
    min-height: 210px;
  }

  .flow-panel {
    padding: 16px;
  }

  .flow-header,
  .age-panel {
    display: block;
  }

  .status-pill,
  .flow-actions,
  .age-actions {
    margin-top: 14px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .age-actions {
    flex-wrap: wrap;
  }

  .secondary-button,
  .primary-button,
  .text-button {
    flex: 1 1 150px;
  }

  .flow-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.25rem;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .trust-row span {
    flex: 1 1 120px;
    justify-content: center;
  }
}
