/* Public coupon website */

:root {
  --marble: #EEF2EC;
  --paper: #FFFFFF;
  --ink: #1D2922;
  --muted: #56635B;
  --line: #D6DED4;
  --tile: #2F6B4F;
  --tile-dark: #22513B;
  --yolk: #F2B134;
  --danger: #B3261E;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}

a { color: var(--tile); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */

.site-top { background: var(--ink); color: #fff; }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1;
  color: #fff; text-decoration: none; letter-spacing: 0.01em;
}
.logo:hover { color: var(--yolk); }

/* ---------- Intro ---------- */

.intro { padding: 44px 0 30px; }
.intro h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 0.95; letter-spacing: -0.005em;
  margin: 0 0 14px; max-width: 14ch;
}
.intro p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 0; }

.how {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px; counter-reset: how;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.how li { display: flex; align-items: center; gap: 9px; counter-increment: how; }
.how li::before {
  content: counter(how);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700;
}

/* ---------- Restaurant blocks ---------- */

.venues { padding-bottom: 60px; display: flex; flex-direction: column; gap: 22px; }

.venue {
  background: var(--paper); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 240px 1fr;
}
.venue-media { position: relative; min-height: 220px; background: var(--tile); }
.venue-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-media .mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 7rem; color: rgba(255,255,255,0.16);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 34px),
    var(--tile);
}
.venue-body { padding: 26px 28px 28px; min-width: 0; }
.venue-name {
  font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; margin: 0 0 8px;
}
.venue-where { color: var(--muted); font-size: 0.95rem; margin: 0 0 4px; display: flex; gap: 6px; align-items: flex-start; }
.venue-where svg { width: 16px; height: 16px; flex: none; margin-top: 4px; }
.venue-about { margin: 0 0 20px; max-width: 60ch; }

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

/* ---------- The ticket (the memorable bit) ---------- */

/* Masks cut the notches, so the outline has to come from the parent */
.cut-shadow { filter: drop-shadow(0 0 0.75px rgba(29, 41, 34, 0.45)) drop-shadow(0 3px 0 rgba(29, 41, 34, 0.10)); }

.ticket {
  --t-bg: var(--tile);
  --t-ink: #fff;
  --stub: 94px;
  --notch: 11px;
  position: relative;
  display: grid; grid-template-columns: 1fr var(--stub);
  min-height: 150px;
  color: var(--t-ink);
  border-radius: 12px;
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
}
.t-main {
  background: var(--t-bg); padding: 14px 16px 16px; border-radius: 12px 0 0 12px;
  display: flex; flex-direction: column; min-width: 0;
}
.t-title { font-weight: 700; font-size: 0.98rem; }
.t-big {
  font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: 0.9;
  margin-top: auto; padding-top: 10px; letter-spacing: -0.01em;
}
.t-note { font-weight: 600; font-size: 0.9rem; opacity: 0.92; }
.t-time { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }

.t-stub {
  background: #FBF8EE; color: var(--ink); border-radius: 0 12px 12px 0;
  border-left: 2px dashed rgba(29, 41, 34, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 10px; text-align: center; gap: 8px;
}
.t-left { font-size: 0.8rem; color: var(--muted); line-height: 1.25; }
.t-left strong { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.t-btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem;
  border-radius: 8px; padding: 9px 4px; white-space: nowrap;
}
.t-btn:hover { background: #000; color: var(--yolk); }

/* Whole ticket is clickable */
.ticket .t-btn::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.ticket:has(.t-btn:hover) .t-main { filter: brightness(1.05); }

.ticket.is-static .t-stub { justify-content: center; }
.ticket.is-out .t-main { filter: grayscale(0.85); opacity: 0.6; }
.ticket.is-out .t-stub { color: var(--muted); }
.ticket.is-out .t-out { font-weight: 700; font-size: 0.85rem; }

/* ---------- Claim page ---------- */

.page { padding: 28px 0 70px; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.back:hover { text-decoration: underline; }

.claim-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; }
.claim-info h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 0.98; margin: 0 0 6px; }
.claim-info .where { color: var(--muted); margin: 0 0 20px; }
.claim-info .ticket { max-width: 460px; --stub: 120px; min-height: 176px; }
.claim-info .ticket .t-big { font-size: 4.4rem; }

.terms { margin-top: 22px; max-width: 460px; }
.terms h2 { font-size: 1rem; margin: 0 0 6px; }
.terms ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.terms li { margin-bottom: 3px; }

.form-card { background: var(--paper); border-radius: 18px; padding: 26px 24px; }
.form-card h2 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin: 0 0 6px; }
.form-card .lead { color: var(--muted); margin: 0 0 20px; font-size: 0.97rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #BFCABE; border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--tile); box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.18); }
.field .err { color: var(--danger); font-size: 0.88rem; margin-top: 5px; }
.field.bad input, .field.bad select { border-color: var(--danger); }
.phone-row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 15px 18px; cursor: pointer;
  text-decoration: none;
}
.btn-main:hover { background: #000; color: var(--yolk); }
.btn-main svg { width: 20px; height: 20px; }
.btn-plain {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-weight: 700; font-size: 1rem; background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 13px 18px; cursor: pointer; text-decoration: none;
}
.btn-plain:hover { background: rgba(29, 41, 34, 0.06); }
.small-print { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }

.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-weight: 500; }
.notice.error { background: #FBEAE8; color: #7D1A14; }
.notice.info { background: #E3EFE7; color: #1F4F38; }
.notice.warn { background: #FDF3DC; color: #6B4500; }

/* ---------- Your coupon page ---------- */

.got { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.got-side h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 0.95; margin: 0 0 12px; }
.got-side p { color: var(--muted); max-width: 46ch; }
.got-actions { display: grid; gap: 10px; max-width: 360px; margin: 22px 0 8px; }

/* Tall ticket used on the coupon page (mirrors the downloaded image) */
.voucher {
  --t-bg: var(--tile); --t-ink: #fff; --cut: 58%; --notch: 16px;
  color: var(--ink);
  border-radius: 18px;
  -webkit-mask:
    radial-gradient(circle at 0 var(--cut), #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--cut), #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle at 0 var(--cut), #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--cut), #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  display: grid; grid-template-rows: var(--cut) auto;
  aspect-ratio: 3 / 4.2;
}
.v-top { background: var(--t-bg); color: var(--t-ink); padding: 24px 26px 22px; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; }
.v-site { font-weight: 700; font-size: 0.85rem; opacity: 0.8; }
.v-rest { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-top: 4px; }
.v-big { font-family: var(--display); font-weight: 800; font-size: clamp(4.4rem, 15vw, 6.2rem); line-height: 0.85; margin-top: auto; }
.v-note { font-weight: 700; font-size: 1.05rem; }
.v-when { font-size: 0.95rem; opacity: 0.9; margin-top: 4px; }
.v-bottom {
  background: #FBF8EE; padding: 22px 26px 24px; border-radius: 0 0 18px 18px;
  border-top: 2px dashed rgba(29, 41, 34, 0.3);
  display: flex; flex-direction: column; gap: 4px;
}
.v-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.v-code {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 2.7rem);
  letter-spacing: 0.06em; line-height: 1; word-break: break-all;
}
.v-code.used { text-decoration: line-through; text-decoration-thickness: 4px; color: var(--muted); }
.v-meta { margin-top: auto; font-size: 0.88rem; color: var(--muted); display: grid; gap: 1px; }
.v-meta strong { color: var(--ink); font-weight: 600; }

.copied { color: var(--tile); font-weight: 600; font-size: 0.9rem; min-height: 1.4em; }

/* ---------- Empty + footer ---------- */

.empty-state { background: var(--paper); border-radius: 18px; padding: 50px 24px; text-align: center; }
.empty-state h2 { font-family: var(--display); font-size: 2rem; margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0; }

.site-foot { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: 0.88rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .venue { grid-template-columns: 1fr; }
  .venue-media { min-height: 150px; }
  .venue-media .mono { font-size: 5rem; }
  .venue-body { padding: 22px 18px 22px; }
  .claim-grid, .got { grid-template-columns: 1fr; }
  .got .voucher { max-width: 420px; }
}

@media (max-width: 420px) {
  .intro { padding: 30px 0 22px; }
  .ticket { --stub: 100px; }
  .t-big { font-size: 3.1rem; }
  .t-btn { font-size: 0.86rem; }
  .form-card { padding: 22px 16px; }
  .phone-row { grid-template-columns: 1fr; }
  .v-top, .v-bottom { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
