:root {
  color-scheme: light;
  --ink: #211815;
  --muted: #665a52;
  --paper: #fbf7ef;
  --cream: #f3eadb;
  --gold: #b98036;
  --ember: #8e3326;
  --leaf: #2f5b49;
  --coal: #17110f;
  --line: rgba(35, 24, 20, .14);
  --shadow: 0 18px 50px rgba(28, 17, 12, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--coal);
  color: #fff;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 64px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .08em;
}

.nav-link {
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 7, .9) 0%, rgba(13, 9, 7, .56) 48%, rgba(13, 9, 7, .25) 100%),
    linear-gradient(0deg, rgba(13, 9, 7, .88) 0%, rgba(13, 9, 7, 0) 46%),
    url("assets/aging-room.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 150px clamp(18px, 5vw, 72px) 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .92;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.lead {
  max-width: 700px;
  color: rgba(255,255,255,.82);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.button {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: #160d09;
  box-shadow: 0 14px 28px rgba(185, 128, 54, .24);
}

.button.secondary {
  background: var(--leaf);
  color: #fff;
}

.button.ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.36);
}

.button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.full {
  width: 100%;
}

.reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.reward-strip span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.intro-band,
.entry-section,
.results-section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.1fr) minmax(260px, .9fr);
  gap: 34px;
  align-items: center;
  background: #fff;
}

.intro-band p {
  color: var(--muted);
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--cream);
}

.stats-grid div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.stats-grid span,
.quiet {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.vote-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px) 72px;
  align-items: start;
}

.panel {
  position: sticky;
  top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.progress-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin: 18px 0;
}

.progress-card div {
  padding: 13px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.progress-card div:last-child {
  border-right: 0;
}

.progress-card strong {
  display: block;
  font-size: 26px;
}

.progress-card span {
  font-size: 12px;
  color: var(--muted);
}

.filters {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.share-results-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mini-title {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.share-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.share-btn.whatsapp {
  background: #e8f7ee;
  color: #174f31;
  border-color: rgba(23, 79, 49, .22);
}

.share-btn.facebook {
  background: #eaf1ff;
  color: #1d4591;
  border-color: rgba(29, 69, 145, .22);
}

.share-btn.x {
  background: var(--coal);
  color: #fff;
  border-color: var(--coal);
}

.share-btn.copy {
  background: var(--cream);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 46px;
  padding: 0 12px;
  border-radius: 6px;
}

.cigar-board {
  min-width: 0;
}

.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.cigar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.cigar-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 17, 12, .08);
}

.cigar-card.is-tried {
  border-color: rgba(47, 91, 73, .5);
}

.cigar-card.is-want {
  border-color: rgba(185, 128, 54, .55);
}

.cigar-card.is-not_tried {
  border-color: rgba(142, 51, 38, .45);
}

.cigar-brand {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cigar-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.05;
}

.cigar-origin {
  color: var(--muted);
  font-size: 13px;
}

.status-row,
.star-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.status-row button,
.star-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.status-row button.active {
  color: #fff;
  background: var(--leaf);
  border-color: var(--leaf);
}

.star-row {
  grid-template-columns: repeat(5, 1fr);
}

.star-row button {
  font-size: 16px;
  color: #8c7869;
}

.star-row button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #160d09;
}

.entry-section {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(300px, 1.15fr);
  gap: 34px;
  background: var(--coal);
  color: #fff;
}

.entry-copy p,
.promise-list {
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.promise-list {
  padding-left: 18px;
}

.entry-form {
  display: grid;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.45;
}

.check input {
  min-height: auto;
  margin-top: 3px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--ember);
  font-weight: 800;
}

.results-section {
  background: #fff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
}

.result-panel ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 12, 10, .68);
}

.success-card {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.share-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
  background: var(--paper);
  color: var(--muted);
  line-height: 1.5;
}

.modal-share {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .intro-band,
  .vote-shell,
  .entry-section,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    position: static;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
  }

  .topbar {
    padding: 16px;
  }

  .brand {
    font-size: 12px;
  }

  .hero-content {
    padding: 120px 18px 40px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 16px;
  }

  .board-head,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
