@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #F3E7CE;
  --card: #F8EFDA;
  --ink: #2A2117;
  --orange: #C75B2C;
  --mustard: #E3A72F;
  --green: #2E5D4B;
  --red: #A83232;
  --receipt: #FAF3E0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, 'Helvetica Neue', sans-serif;
  position: relative;
}

/* Subtle print-texture overlay, matching the 124 mockup */
.halftone {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(42, 33, 23, 0.9) 0.7px, transparent 0.9px),
    radial-gradient(rgba(199, 91, 44, 0.9) 0.7px, transparent 0.9px);
  background-size: 6px 6px, 6px 6px;
  background-position: 0 0, 2px 3px;
  opacity: 0.045;
}

.nav {
  display: flex;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Young Serif', serif;
  font-size: 22px;
}

.brand-mark {
  width: 28px;
  height: 18px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 4px;
  display: inline-block;
  transform: rotate(-8deg);
}

.brand-accent { color: var(--orange); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 32px;
  align-items: center;
}

.hero-copy { display: flex; flex-direction: column; gap: 20px; }

.hero h1 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 3px 3px 0 rgba(199, 91, 44, 0.4), -2px -2px 0 rgba(46, 93, 75, 0.2);
}

.hero h1 mark {
  background: var(--mustard);
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink);
  display: inline-block;
  transform: rotate(-1.6deg);
  box-shadow: 4px 4px 0 rgba(42, 33, 23, 0.18);
}

.hero-copy p {
  font-size: 18px;
  max-width: 500px;
  color: rgba(42, 33, 23, 0.78);
  margin: 0;
}

.status { margin: 0; }

.state {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.state-coming-soon { background: var(--mustard); }

/* ---------- Hero illustration ---------- */

.hero-art-frame {
  justify-self: center;
}

.hero-art {
  position: relative;
  width: 460px;
  height: 480px;
  transform-origin: top left;
}

.art-piece { position: absolute; }

.tape {
  position: absolute;
  z-index: 5;
  background: rgba(250, 243, 224, 0.55);
  box-shadow: 0 2px 5px rgba(42, 33, 23, 0.15);
}
.tape-1 { left: 4px; top: 118px; width: 66px; height: 20px; transform: rotate(-16deg); }
.tape-2 { right: 74px; top: 6px; width: 62px; height: 18px; transform: rotate(3deg); }

.ticket {
  border-radius: 8px;
  filter: drop-shadow(0 12px 16px rgba(42, 33, 23, 0.25));
}

.ticket-green {
  left: 4px;
  top: 100px;
  z-index: 1;
  width: 230px;
  padding: 14px 16px;
  background: var(--green);
  color: rgba(243, 231, 206, 0.94);
  --rot: 7deg;
  transform: rotate(var(--rot));
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
}
.ticket-green .ticket-title {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 8px 0;
}
.ticket-row { display: flex; justify-content: space-between; opacity: 0.85; }
.ticket-row.small { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1.5px; opacity: 0.7; }

.ticket-mustard {
  left: -16px;
  top: 210px;
  z-index: 4;
  width: 300px;
  display: flex;
  background: var(--mustard);
  color: var(--ink);
  --rot: -5deg;
  transform: rotate(var(--rot));
}
.ticket-stub {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px dashed rgba(42, 33, 23, 0.55);
  padding: 12px 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 3px;
}
.ticket-main { flex: 1; padding: 12px 16px 12px 12px; }
.ticket-event { font-weight: 900; font-size: 20px; letter-spacing: 0.5px; margin: 5px 0 2px; }
.ticket-venue { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1px; opacity: 0.85; margin-bottom: 6px; }
.ticket-barcode-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ticket-barcode {
  flex: 1;
  height: 20px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 8px, transparent 8px 10px);
}
.ticket-price {
  border-left: 2px dashed rgba(42, 33, 23, 0.55);
  padding-left: 10px;
  font-family: 'Young Serif', serif;
  font-size: 17px;
  white-space: nowrap;
}
.ticket-price small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

.receipt-mini {
  right: 6px;
  top: 4px;
  z-index: 3;
  width: 168px;
  background: var(--receipt);
  padding: 16px 12px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  line-height: 1.6;
  color: rgba(42, 33, 23, 0.92);
  --rot: 2.4deg;
  transform: rotate(var(--rot));
  filter: drop-shadow(0 16px 20px rgba(42, 33, 23, 0.3));
  clip-path: polygon(0% 6px, 8% 0%, 16% 6px, 24% 0%, 32% 6px, 40% 0%, 48% 6px, 56% 0%, 64% 6px, 72% 0%, 80% 6px, 88% 0%, 96% 6px, 100% 0%, 100% calc(100% - 6px), 92% 100%, 84% calc(100% - 6px), 76% 100%, 68% calc(100% - 6px), 60% 100%, 52% calc(100% - 6px), 44% 100%, 36% calc(100% - 6px), 28% 100%, 20% calc(100% - 6px), 12% 100%, 4% calc(100% - 6px), 0% 100%);
}
.receipt-head { text-align: center; font-weight: 700; font-size: 10.5px; letter-spacing: 2px; }
.receipt-sub { text-align: center; font-size: 7.5px; letter-spacing: 1.5px; opacity: 0.55; margin-bottom: 8px; }
.receipt-alert { background: var(--ink); color: var(--receipt); text-align: center; font-weight: 700; font-size: 9px; letter-spacing: 2px; padding: 5px 4px; margin-bottom: 8px; }
.receipt-row { display: flex; justify-content: space-between; gap: 6px; }
.receipt-row span:first-child { opacity: 0.55; }
.receipt-row span:last-child { font-weight: 600; }

.stamp {
  left: 331px;
  top: 143px;
  z-index: 6;
  opacity: 0.92;
  mix-blend-mode: multiply;
  --rot: -13deg;
  transform: rotate(var(--rot));
}
.stamp-arc-text { font-family: 'IBM Plex Mono', monospace; font-size: 6.5px; font-weight: 700; letter-spacing: 1.5px; fill: var(--red); }
.stamp-word { font-family: Archivo, sans-serif; font-weight: 900; font-size: 15px; letter-spacing: 1px; fill: var(--red); }

.phone {
  right: -4px;
  top: 220px;
  z-index: 2;
  width: 130px;
  height: 240px;
  background: var(--ink);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 14px 20px rgba(42, 33, 23, 0.3);
}
.phone-screen { background: var(--card); width: 100%; height: 100%; border-radius: 16px; padding: 14px 8px; overflow: hidden; }
.phone-notif {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 9px 8px;
  margin-top: 22px;
  box-shadow: 2px 2px 0 rgba(42, 33, 23, 0.15);
  max-width: 100%;
}
.phone-notif-app {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7.5px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}
.phone-notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; flex-shrink: 0; }
.phone-notif-appname {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.phone-notif-msg { font-size: 10px; font-weight: 700; line-height: 1.35; overflow-wrap: break-word; }
.phone-notif-time { font-family: 'IBM Plex Mono', monospace; font-size: 7px; opacity: 0.5; margin-top: 4px; }

/* ---------- How it works ---------- */

.how { padding: 56px 0 64px; }
.how h2 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(42, 33, 23, 0.35);
  text-shadow: 2.5px 2px 0 rgba(199, 91, 44, 0.4);
}

.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  border-top: 2px dashed rgba(42, 33, 23, 0.35);
}

.steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
}

.step {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 5px 5px 0 rgba(42, 33, 23, 0.1);
}

.step p { margin: 6px 0 0; color: rgba(42, 33, 23, 0.78); }

.step-num {
  display: block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-family: 'Young Serif', serif;
  margin-bottom: 10px;
}
.step-num-1 { background: var(--mustard); }
.step-num-2 { background: var(--orange); color: var(--bg); }
.step-num-3 { background: var(--green); color: var(--bg); }

.disclaimer {
  margin: 28px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(42, 33, 23, 0.6);
}

/* ---------- Common questions ---------- */

.questions { padding: 8px 0 72px; }
.questions h2 {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 2px dashed rgba(42, 33, 23, 0.35);
  text-shadow: 2.5px 2px 0 rgba(199, 91, 44, 0.4);
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.question h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.question p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(42, 33, 23, 0.78);
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; min-height: auto; gap: 24px; }
  .hero-art-frame { width: 332px; height: 346px; }
  .hero-art { transform: scale(0.72); }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 38px; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .hero-art-frame { width: 276px; height: 288px; }
  .hero-art { transform: scale(0.6); }
}

/* ---------- Motion ---------- */

.brand-mark { animation: tilt-settle 500ms ease-out both; }

.reveal { opacity: 0; transform: translateY(12px); animation: rise-in 450ms ease-out both; }
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 160ms; }
.reveal-3 { animation-delay: 280ms; }

.art-piece { opacity: 0; animation: art-settle 550ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.art-piece-1 { animation-delay: 220ms; }
.art-piece-2 { animation-delay: 300ms; }
.art-piece-3 { animation-delay: 380ms; }
.art-piece-4 { animation-delay: 460ms; }
.art-piece-5 { animation-delay: 520ms; }

.step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}
.step.is-visible { opacity: 1; transform: translateY(0); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tilt-settle {
  from { transform: rotate(0deg); }
  to { transform: rotate(-8deg); }
}

@keyframes art-settle {
  from { opacity: 0; transform: translateY(16px) scale(0.94) rotate(var(--rot, 0deg)); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark { animation: none; transform: rotate(-8deg); }
  .reveal { animation: none; opacity: 1; transform: none; }
  .art-piece { animation: none; opacity: 1; }
  .step { transition: none; opacity: 1; transform: none; }
}
