:root {
  --insee-red: #ed1c24;
  --insee-red-dark: #b90012;
  --black: #0b0d10;
  --charcoal: #171a1f;
  --field: #0f7f43;
  --field-dark: #075d32;
  --gold: #ffc83d;
  --cream: #fff8ea;
  --white: #ffffff;
  --ink: #171a1f;
  --muted: #66706c;
  --line: #e7ded3;
  --shadow: 0 18px 52px rgba(11, 13, 16, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #ece7dc;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(100vw, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding: 16px 18px 18px;
  color: var(--white);
  isolation: isolate;
  background-image: url("assets/bg.png?v=20260527-1025");
  background-position: center bottom;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 10, 24, 0.62) 0%, rgba(4, 10, 24, 0.26) 44%, rgba(4, 10, 24, 0.64) 100%),
    radial-gradient(circle at 50% 48%, rgba(237, 28, 36, 0.2), transparent 34%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.brand-logo {
  width: 132px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.hero-center {
  position: relative;
  z-index: 1;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 13vh 0 22px;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

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

h1 {
  width: 100%;
  max-width: calc(100vw - 36px);
  margin: 0 auto 12px;
  color: var(--white);
  font-size: clamp(16px, 4.9vw, 25px);
  line-height: 1.06;
  text-transform: uppercase;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.54);
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 span + span {
  margin-top: 8px;
  color: var(--gold);
}

.hero-desc {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.choice-panel {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 4;
  width: 100%;
  min-width: 0;
}

.choice-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 76px;
  padding: 13px;
  border-radius: 18px;
  text-align: left;
  text-decoration: none;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.choice-card:active {
  transform: scale(0.98);
  box-shadow: 0 10px 28px rgba(11, 13, 16, 0.22);
}

.choice-card.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--insee-red), var(--insee-red-dark));
}

.choice-card.secondary {
  color: var(--black);
  background: var(--white);
}

.choice-icon {
  display: grid;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.choice-card.secondary .choice-icon {
  background: rgba(237, 28, 36, 0.1);
}

.contractor-icon::before {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--white);
  border-top: 0;
  transform: skewX(-12deg);
}

.contractor-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 30px;
  height: 4px;
  border-radius: 99px;
  background: var(--white);
  transform: rotate(-22deg);
}

.store-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 24px;
  height: 18px;
  border: 3px solid var(--insee-red);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.store-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  width: 30px;
  height: 13px;
  border-radius: 4px 4px 8px 8px;
  background: repeating-linear-gradient(90deg, var(--insee-red) 0 6px, var(--gold) 6px 12px);
}

.choice-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.choice-card small {
  display: block;
  margin-top: 4px;
  color: currentColor;
  font-size: 13px;
  opacity: 0.78;
}

.content-section {
  padding: 30px 18px 4px;
}

.content-section.compact {
  padding-top: 34px;
}

.content-section h2 {
  margin-bottom: 14px;
  color: var(--black);
  font-size: 28px;
  line-height: 1.1;
}

.content-section h2 span {
  display: block;
}

.content-section .section-kicker {
  color: var(--insee-red);
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 13, 16, 0.06);
}

.step span {
  display: grid;
  grid-row: span 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--insee-red);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 4px;
  color: var(--black);
  font-size: 17px;
}

.step p,
.notice p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.prizes-section {
  padding-top: 34px;
}

.prize-list {
  display: grid;
  gap: 12px;
}

.prize-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(11, 13, 16, 0.06);
}

.first-prize {
  grid-template-columns: 1fr;
  padding: 14px;
  text-align: center;
  border-color: rgba(237, 28, 36, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 200, 61, 0.16), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.prize-image {
  display: grid;
  min-width: 0;
  min-height: 108px;
  place-items: center;
  border-radius: 12px;
  background: #f7f7f7;
  overflow: hidden;
}

.first-prize .prize-image {
  min-height: 190px;
}

.prize-image img {
  width: 100%;
  height: 108px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.first-prize .prize-image img {
  height: 190px;
}

.prize-copy span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--insee-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prize-copy h3 {
  margin-bottom: 0;
  color: var(--black);
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.first-prize .prize-copy h3 {
  font-size: 22px;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  position: relative;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: #333a36;
  font-size: 14px;
}

.rule-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--insee-red);
  border-radius: 50%;
  background: var(--gold);
}

.notice {
  margin: 26px 18px 32px;
  padding: 18px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #30070b);
}

.notice h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 22px;
}

.notice p {
  color: rgba(255, 255, 255, 0.78);
}

.version-tag {
  margin: -14px 18px 24px;
  color: #8a8178;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.modal-open {
  overflow: hidden;
}

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.program-modal[aria-hidden="false"] {
  display: grid;
}

.program-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.64);
}

.program-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: var(--white);
  color: var(--black);
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.program-modal__eyebrow {
  margin-bottom: 8px;
  color: var(--insee-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-modal__dialog h2 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.16;
}

.program-modal__button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--insee-red);
  font: inherit;
  font-weight: 900;
}

@media (max-height: 700px) {
  h1 {
    font-size: clamp(15px, 4.65vw, 23px);
  }

  .hero-desc {
    font-size: 14px;
  }
}


@media (min-width: 720px) {
  body {
    padding: 32px 0;
  }

  .page-shell {
    border-radius: 34px;
    box-shadow: var(--shadow);
  }

  .hero {
    min-height: 820px;
  }
}
