/* Supercuts brand palette, from the brand book "Color Palette" page */
:root {
  --midnight: #021146;   /* Midnight Trim: most used */
  --cobalt: #153EE8;     /* Precision Cobalt: accents, buttons */
  --slate: #C5E6FF;      /* Clean Slate Blue */
  --silver: #F4F2F2;     /* Shear Silver: page background */
  --white: #FFFFFF;
  --muted: #4A5378;      /* midnight, softened for secondary text */
  --line: #D9DCE6;
  /* Brand fonts are Corporate A Cond + Hanken Grotesk; Instrument Serif is the approved Google stand-in for Corporate A */
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--silver);
  color: var(--midnight);
  -webkit-text-size-adjust: 100%;
}
.sample-bar {
  background: #ffe14d; color: #3a2e00; font-weight: 700; font-size: 13px;
  text-align: center; padding: 8px 16px;
}

/* Logo bar at the top */
.brand {
  background: var(--midnight);
  padding: 16px 16px 15px;
  padding-top: max(16px, env(safe-area-inset-top));
  text-align: center;
}
.brand img { display: block; width: 168px; height: auto; margin: 0 auto; }

.page { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; }
.card { background: var(--white); border-radius: 14px; padding: 24px 20px; text-align: center; }
.card h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.muted { color: var(--muted); margin: 0; }

/* Coupon: a dashed "ticket" (the part people screenshot), then Book Now etc. under it.
   Sizes use cqi (% of the ticket's width) so it scales on any phone; the px values are fallbacks. */
.coupon { --sky: #2E9BF0; --ribbon: #0E3BB8; }
.ticket {
  container-type: inline-size;
  position: relative; isolation: isolate;
  background: var(--white); border: 3px dashed var(--midnight); border-radius: 20px;
  padding: 18px 16px 14px; text-align: center;
  box-shadow: 0 6px 24px rgba(2,17,70,.12);
}
.ticket-logo {
  display: block; width: 74%; max-width: 340px; height: auto; margin: 2px auto 10px;
  filter: brightness(.32) saturate(1.3); /* cobalt logo -> midnight */
}

/* Ribbon banner ("GRAND OPENING SPECIAL!") with light blue tails */
.ribbon { position: relative; margin: 6px 6px 10px; z-index: 0; }
.ribbon span {
  position: relative; display: block; z-index: 1;
  background: linear-gradient(180deg, #1B4FE0, var(--ribbon));
  color: var(--white); text-transform: uppercase;
  font: italic 900 21px/1.08 var(--sans); font-size: clamp(16px, 6.6cqi, 34px);
  letter-spacing: .01em; padding: .34em .7em .3em; text-wrap: balance;
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%);
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; z-index: -1; top: 22%; bottom: -16%; width: 9%;
  background: var(--sky);
}
.ribbon::before { left: -5%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 38% 50%); }
.ribbon::after { right: -5%; clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%); }

/* HAIRCUT over $14.95 */
.deal { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 4px 0 6px; }
.deal[hidden] { display: none; }
.deal-item {
  font: italic 900 46px/1 var(--sans); font-size: clamp(34px, 15cqi, 64px);
  color: var(--midnight); text-transform: uppercase; letter-spacing: -.02em;
}
.deal-price {
  display: flex; align-items: flex-start; line-height: .86;
  font-weight: 900; color: #1550DE; letter-spacing: -.03em;
}
.deal-price .cur { font-size: 38px; font-size: clamp(28px, 12cqi, 52px); margin-top: .12em; }
.deal-price .dollars { font-size: 108px; font-size: clamp(76px, 34cqi, 140px); }
.deal-price .cents {
  font-size: 38px; font-size: clamp(28px, 12cqi, 52px); margin-top: .12em;
  padding-bottom: .1em; border-bottom: .12em solid var(--sky); border-radius: 0 0 .3em .1em;
  transform: rotate(-2deg);
}

/* Headline, used when an offer has no item/price */
.ticket-headline {
  font: italic 900 40px/1.02 var(--sans); font-size: clamp(30px, 12cqi, 60px);
  color: var(--midnight); text-transform: uppercase; letter-spacing: -.02em; margin: 6px 0 6px;
}
.ticket-headline[hidden] { display: none; }
.ticket-subhead { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.ticket-subhead:empty { display: none; }

/* Address band (light blue, notched ends) + shopping-center tag */
.stores { margin: 8px -4px 0; }
.store + .store { margin-top: 10px; }
.addr {
  display: flex; align-items: center; justify-content: center; gap: .45em;
  background: #A9DBFB; color: var(--midnight);
  font-weight: 700; font-size: 17px; font-size: clamp(15px, 5.4cqi, 24px); line-height: 1.18;
  padding: .55em 9% .5em;
  clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}
.addr svg { flex: none; width: 1.15em; height: 1.4em; fill: var(--midnight); }
.addr-text { text-align: center; text-wrap: balance; }
.tag-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tag-row::before, .tag-row::after { content: ""; flex: 1; height: 2px; background: var(--sky); }
.tag {
  background: var(--midnight); color: var(--white);
  font: italic 800 14px/1.2 var(--sans); font-size: clamp(13px, 4.6cqi, 21px);
  padding: .35em 1.1em; max-width: 86%;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
}
.store-phone { font-size: 14px; color: var(--muted); margin-top: 4px; }

.code-row {
  display: inline-flex; align-items: baseline; gap: 8px; margin-top: 12px;
  background: var(--silver); border-radius: 8px; padding: 6px 12px;
}
.code-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 800; color: var(--midnight); letter-spacing: 2px; }
.expires { font-weight: 700; color: #1550DE; margin: 8px 0 4px; font-size: 15px; }
.expires:empty { display: none; }
.terms { font-size: 11.5px; color: var(--midnight); opacity: .85; margin: 6px 0 0; line-height: 1.35; }
.terms:empty { display: none; }
.show-at { font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 13px; margin: 14px 0 10px; text-align: center; color: var(--muted); }
.book-row { padding: 0 0 8px; }
.book-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 15px; border-radius: 10px; background: var(--midnight); color: var(--white);
  font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .5px;
}
.book-btn:active { opacity: .85; }
.coupon-status { background: var(--slate); color: var(--midnight); font-size: 14px; text-align: center; padding: 10px 14px; border-radius: 10px; margin-top: 8px; }
.coupon-status.warn { background: #fff4e0; color: #7a4a00; }
.email-btn {
  display: block; width: 100%; margin: 4px 0 6px; padding: 15px; cursor: pointer;
  background: var(--cobalt); color: var(--white); border: 0; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .5px;
}
.email-btn[hidden] { display: none; }
.email-btn:active { opacity: .85; }

/* Popup */
.modal {
  position: fixed; inset: 0; background: rgba(2,17,70,.7);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--white); border-radius: 16px; width: 100%; max-width: 400px;
  padding: 24px 20px 18px; text-align: center;
  animation: pop .22s ease-out;
}
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-logo { display: block; width: 140px; height: auto; margin: 0 auto 14px; }
.modal-kicker { color: var(--cobalt); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.modal-headline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 44px; margin: 4px 0 4px; color: var(--midnight); line-height: 1; letter-spacing: -0.01em;
}
.modal-store { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.modal-store:empty { display: none; }
input[type=email] {
  width: 100%; font-size: 17px; font-family: inherit; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 10px; outline: none; color: var(--midnight);
}
input[type=email]:focus { border-color: var(--cobalt); }
.primary-btn {
  width: 100%; margin-top: 10px; padding: 15px; font-size: 16px; font-weight: 600; font-family: inherit;
  text-transform: uppercase; letter-spacing: .5px;
  background: var(--cobalt); color: var(--white); border: 0; border-radius: 10px; cursor: pointer;
}
.primary-btn:disabled { opacity: .6; cursor: default; }
.link-btn {
  background: none; border: 0; color: var(--midnight); text-decoration: underline;
  font-size: 15px; padding: 12px 6px; cursor: pointer; font-family: inherit;
}
.form-error { color: #c0182a; font-size: 14px; margin: 8px 0 0; }
.fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
