/* The $5 welcome offer. Self-contained so it reads the same on every page:
   the homepage palette, the arch from the hero, and nothing louder. */
@font-face {
  font-family: "Fraunces Soft";
  src: url("/assets/home/fonts/fraunces-soft-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.wo {
  --wo-forest: #303e30;
  --wo-muted: #59604f;
  --wo-cream: #faf7ee;
  --wo-paper: #fffdf6;
  --wo-butter: #eee5b5;
  --wo-yellow: #efd457;
  --wo-yellow-light: #f5edcd;
  --wo-gold: #b68a19;
  --wo-line: #dedccf;
  --wo-ease: cubic-bezier(0.2, 0, 0, 1);

  width: min(820px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--wo-cream);
  color: var(--wo-forest);
  font: 16px/1.55 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(48, 62, 48, 0.45);
}
.wo::backdrop {
  background: rgba(48, 62, 48, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.wo[open] {
  animation: wo-rise 420ms var(--wo-ease);
}
.wo[open]::backdrop {
  animation: wo-fade 420ms var(--wo-ease);
}
@keyframes wo-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}
@keyframes wo-fade {
  from { opacity: 0; }
}

.wo-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 500px;
}

/* --- The art: the hero's arch, on butter, with one gold star -------------- */
.wo-art {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 44px 40px 0;
  background: var(--wo-butter);
  overflow: hidden;
}
.wo-arch {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #d5d0c3;
}
.wo-arch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
}
.wo-star {
  position: absolute;
  top: 34px;
  right: 30px;
  width: 46px;
  aspect-ratio: 1;
  background: var(--wo-gold);
  opacity: 0.75;
  clip-path: polygon(50% 0%, 58% 30%, 75% 7%, 72% 35%, 93% 25%, 78% 45%, 100% 50%, 78% 58%, 93% 75%, 68% 69%, 75% 93%, 57% 77%, 50% 100%, 42% 77%, 25% 93%, 31% 68%, 7% 75%, 23% 56%, 0% 50%, 25% 43%, 7% 25%, 31% 30%, 25% 7%, 43% 29%);
}

/* --- The copy ------------------------------------------------------------ */
.wo-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px 40px;
}
.wo-eyebrow {
  margin: 0 0 14px;
  font: 500 11px/1.4 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wo-gold);
}
.wo-title {
  margin: 0;
  font: 700 clamp(34px, 4vw, 46px)/1.02 "Fraunces Soft", Georgia, serif;
  letter-spacing: -0.035em;
  color: var(--wo-forest);
  text-wrap: balance;
}
.wo-title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--wo-yellow) 62%, var(--wo-yellow) 92%, transparent 92%);
}
.wo-lead {
  margin: 16px 0 26px;
  max-width: 34ch;
  font-size: 16px;
  color: var(--wo-muted);
}

.wo-lead strong {
  font-weight: 600;
  color: var(--wo-forest);
  overflow-wrap: anywhere;
}

.wo-form {
  display: grid;
  gap: 10px;
}
.wo-field {
  position: relative;
}
.wo-field input {
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border: 1px solid var(--wo-line);
  border-radius: 999px;
  background: var(--wo-paper);
  color: var(--wo-forest);
  font: 16px "Instrument Sans", system-ui, sans-serif;
  transition: border-color 160ms, box-shadow 160ms;
}
.wo-field input::placeholder {
  color: #8d917f;
}
.wo-field input:focus {
  outline: none;
  border-color: var(--wo-forest);
  box-shadow: 0 0 0 4px rgba(239, 212, 87, 0.55);
}
.wo-field input[aria-invalid="true"] {
  border-color: #a8452c;
}
.wo-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--wo-yellow);
  color: var(--wo-forest);
  font: 500 13px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms, transform 160ms var(--wo-ease);
}
.wo-button:hover {
  background: #f4dd6d;
}
.wo-button:active {
  transform: scale(0.985);
}
.wo-button:focus-visible,
.wo-link:focus-visible,
.wo-close:focus-visible,
.wo-copy:focus-visible {
  outline: 2px solid var(--wo-forest);
  outline-offset: 3px;
}
.wo-button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}
.wo-button span[aria-hidden] {
  font-size: 15px;
  transition: transform 200ms var(--wo-ease);
}
.wo-button:hover span[aria-hidden] {
  transform: translateX(3px);
}

.wo-error {
  margin: 2px 0 0;
  font-size: 13px;
  color: #a8452c;
}
.wo-fine {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wo-muted);
}
.wo-link {
  align-self: center;
  margin-top: 18px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--wo-muted);
  font: 13px "Instrument Sans", system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(89, 96, 79, 0.4);
  cursor: pointer;
}
.wo-link:hover {
  color: var(--wo-forest);
}

.wo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wo-line);
  border-radius: 50%;
  background: var(--wo-paper);
  color: var(--wo-forest);
  cursor: pointer;
  transition: transform 200ms var(--wo-ease);
}
.wo-close:hover {
  transform: rotate(90deg);
}
.wo-close svg {
  width: 14px;
  height: 14px;
}

/* --- The code, once it exists ------------------------------------------- */
.wo-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 14px 14px 22px;
  border: 1.5px dashed var(--wo-gold);
  border-radius: 18px;
  background: var(--wo-yellow-light);
}
.wo-code {
  font: 500 20px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--wo-forest);
  user-select: all;
}
.wo-copy {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(48, 62, 48, 0.25);
  border-radius: 999px;
  background: var(--wo-paper);
  color: var(--wo-forest);
  font: 500 11px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.wo-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--wo-forest);
}
.wo-applied::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wo-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23faf7ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.wo [hidden] {
  display: none !important;
}

/* --- Phones: a bottom sheet, not a takeover ------------------------------ */
@media (max-width: 760px) {
  .wo {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 50px -20px rgba(48, 62, 48, 0.4);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .wo[open] {
    animation: wo-sheet 460ms var(--wo-ease);
  }
  @keyframes wo-sheet {
    from { transform: translateY(100%); }
  }
  .wo-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .wo-art {
    padding: 34px 0 0;
    place-items: end center;
  }
  .wo-art::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(48, 62, 48, 0.2);
    transform: translateX(-50%);
  }
  .wo-arch {
    width: 132px;
  }
  .wo-star {
    top: 30px;
    right: calc(50% - 118px);
    width: 30px;
  }
  .wo-body {
    padding: 26px 22px calc(18px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .wo-eyebrow {
    margin-bottom: 10px;
  }
  .wo-title {
    font-size: 34px;
  }
  .wo-lead {
    margin: 12px auto 20px;
    font-size: 15px;
  }
  .wo-ticket {
    text-align: left;
  }
  .wo-applied {
    justify-content: center;
  }
  .wo-link {
    margin-top: 8px;
  }
  .wo-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

/* --- The code note in both bags ---------------------------------------- */
.cart-discount {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5edcd;
  color: #303e30;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.cart-discount[hidden] { display: none; }
.cart-discount::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  background: #b68a19;
  clip-path: polygon(50% 0%, 58% 30%, 75% 7%, 72% 35%, 93% 25%, 78% 45%, 100% 50%, 78% 58%, 93% 75%, 68% 69%, 75% 93%, 57% 77%, 50% 100%, 42% 77%, 25% 93%, 31% 68%, 7% 75%, 23% 56%, 0% 50%, 25% 43%, 7% 25%, 31% 30%, 25% 7%, 43% 29%);
  border-radius: 0;
}

/* --- The corner tab: a quiet way back to the offer ---------------------- */
.wo-dock {
  --wo-forest: #303e30;
  --wo-cream: #faf7ee;
  --wo-paper: #fffdf6;
  --wo-butter: #eee5b5;
  --wo-gold: #b68a19;
  --wo-line: #dedccf;
  --wo-ease: cubic-bezier(0.2, 0, 0, 1);

  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(18px + var(--wo-dock-offset, 0px));
  z-index: 17;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms var(--wo-ease), transform 420ms var(--wo-ease), bottom 320ms var(--wo-ease);
}
.wo-dock.is-in {
  opacity: 1;
  transform: none;
}
.wo-teaser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--wo-forest);
  color: var(--wo-cream);
  font: 500 11px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* The cream ring keeps it legible over the page's dark bands and footer. */
  box-shadow: 0 0 0 2px var(--wo-cream), 0 10px 28px -12px rgba(48, 62, 48, 0.6), 0 2px 6px rgba(48, 62, 48, 0.12);
  cursor: pointer;
  transition: transform 220ms var(--wo-ease), box-shadow 220ms var(--wo-ease);
}
.wo-teaser:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--wo-cream), 0 14px 32px -12px rgba(48, 62, 48, 0.65), 0 2px 6px rgba(48, 62, 48, 0.12);
}
.wo-teaser:focus-visible,
.wo-teaser-hide:focus-visible {
  outline: 2px solid var(--wo-gold);
  outline-offset: 3px;
}
.wo-teaser-star {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wo-butter);
}
.wo-teaser-star::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--wo-gold);
  clip-path: polygon(50% 0%, 58% 30%, 75% 7%, 72% 35%, 93% 25%, 78% 45%, 100% 50%, 78% 58%, 93% 75%, 68% 69%, 75% 93%, 57% 77%, 50% 100%, 42% 77%, 25% 93%, 31% 68%, 7% 75%, 23% 56%, 0% 50%, 25% 43%, 7% 25%, 31% 30%, 25% 7%, 43% 29%);
  transition: transform 600ms var(--wo-ease);
}
.wo-teaser:hover .wo-teaser-star::before {
  transform: rotate(45deg);
}
.wo-teaser-hide {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--wo-line);
  border-radius: 50%;
  background: var(--wo-paper);
  color: var(--wo-forest);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 180ms, transform 180ms var(--wo-ease);
}
.wo-teaser-hide svg {
  width: 8px;
  height: 8px;
}
.wo-dock:hover .wo-teaser-hide,
.wo-dock:focus-within .wo-teaser-hide {
  opacity: 1;
  transform: none;
}
/* Touch has no hover: keep the way out visible, just small. */
@media (hover: none) {
  .wo-teaser-hide {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .wo-dock {
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(14px + var(--wo-dock-offset, 0px));
  }
  .wo-teaser {
    height: 40px;
    padding-right: 15px;
  }
  .wo-teaser-star {
    width: 28px;
    height: 28px;
  }
}
@media print {
  .wo-dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wo-dock,
  .wo-teaser,
  .wo-teaser-star::before {
    transition: none;
  }
  .wo[open],
  .wo[open]::backdrop {
    animation: none;
  }
  .wo-close:hover,
  .wo-button:hover span[aria-hidden] {
    transform: none;
  }
}
