:root {
  --ink: #171717;
  --muted: #5b5b5b;
  --paper: #f7f4ed;
  --ticket: #f2c84b;
  --ticket-dark: #8d6210;
  --green: #1f6f55;
  --green-dark: #164b3d;
  --blue: #26547c;
  --line: #d8d2c6;
  --white: #fffaf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  min-height: 100vh;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 56px clamp(20px, 6vw, 88px) 32px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

.kicker,
.section-label,
.ticket-label,
.ticket-note {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.35;
}

.actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

button,
a {
  font: inherit;
}

.primary,
.secondary,
.link-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.primary,
.link-button {
  color: white;
  background: var(--green);
}

.primary:hover,
.link-button:hover {
  background: var(--green-dark);
}

.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.secondary:hover {
  background: var(--white);
}

.ticket {
  width: min(100%, 460px);
  justify-self: center;
  transform: rotate(2deg);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.18));
}

.ticket-edge {
  height: 28px;
  background: radial-gradient(circle at 16px 14px, transparent 12px, var(--ticket) 13px);
  background-size: 32px 28px;
}

.ticket-edge.bottom {
  transform: rotate(180deg);
}

.ticket-inner {
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.24), transparent 42%),
    var(--ticket);
  border-left: 2px dashed rgba(0,0,0,0.18);
  border-right: 2px dashed rgba(0,0,0,0.18);
  text-align: center;
}

.ticket-prize {
  margin-bottom: 24px;
  color: var(--ticket-dark);
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
}

.qr {
  width: min(74vw, 240px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 auto 22px;
  padding: 16px;
  background: var(--white);
  border: 3px solid var(--ink);
}

.qr span {
  background: var(--ink);
}

.qr span:nth-child(2),
.qr span:nth-child(5),
.qr span:nth-child(8),
.qr span:nth-child(11),
.qr span:nth-child(14) {
  opacity: 0.22;
}

.video-panel,
.cta-band,
.signal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 32px;
  align-items: center;
  padding: 54px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.video-panel p,
.cta-band p,
.signal-panel p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.video-shell {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
}

.play-mark {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
}

.progress {
  width: min(100%, 320px);
  height: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.22);
  border-radius: 99px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ticket);
  transition: width 0.3s ease;
}

.video-shell p {
  max-width: 320px;
  margin-bottom: 0;
  color: white;
  text-align: center;
  font-size: 15px;
}

.cta-band {
  background: var(--white);
}

.signal-panel {
  background: #efe7d4;
}

.signal-form {
  display: grid;
  gap: 10px;
}

.signal-form label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(23, 23, 23, 0.62);
}

.signal-form input,
.signal-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
}

.signal-form :disabled {
  opacity: 0.72;
}

.signal-note {
  margin: 4px 0 0;
  font-size: 14px;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ops-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 32px;
  align-items: center;
  padding: 40px clamp(20px, 6vw, 88px) 54px;
  background: #f0ece2;
}

.ops-actions {
  display: grid;
  gap: 18px;
}

.ops-note-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(23, 23, 23, 0.62);
}

.ops-note-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.ops-note-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.ops-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 26px 0 0;
}

.ops-context div {
  padding: 12px 14px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.ops-context dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(23, 23, 23, 0.62);
}

.ops-context dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.ops-count {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.ops-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.ops-panel code {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
}

@media (max-width: 820px) {
  .hero,
  .video-panel,
  .cta-band,
  .signal-panel,
  .ops-panel {
    grid-template-columns: 1fr;
  }

  .ops-context {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .ticket {
    width: min(100%, 380px);
    transform: rotate(0deg);
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .actions,
  .cta-actions,
  .ops-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .primary,
  .secondary,
  .link-button,
  .text-link {
    width: 100%;
    text-align: center;
  }

  .text-button {
    text-align: left;
  }

  h1 {
    font-size: 44px;
  }
}
