/*
 * Component layer. The offer card is the hero object of the whole product, so
 * it gets the most care; everything around it stays quiet. Food-art panels
 * stand in for photography: warm gradients with a single large glyph, which
 * keeps the build offline and fast and reads as one family across the app.
 */

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: var(--t-base);
  color: var(--ink-strong);
  border: 1.5px solid transparent;
  transition:
    transform 0.08s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--yellow-strong);
  color: var(--on-yellow);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink-strong);
  border-radius: var(--r-md);
}
.btn-secondary:hover {
  border-color: var(--yellow-strong);
  color: var(--ink-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-body);
}
.btn-ghost:hover {
  background: var(--sink-soft);
  color: var(--ink-strong);
}

.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 15px 28px;
  font-size: var(--t-lg);
}
.btn-sm {
  padding: 8px 14px;
  font-size: var(--t-sm);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------ Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink-body);
  font-size: var(--t-sm);
  font-weight: 700;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease;
}
.chip:hover {
  border-color: var(--yellow-strong);
}
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  color: var(--ink);
}

/* ----------------------------------------------------------------- Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  background: var(--sink);
  color: var(--ink-body);
}
.badge-discount {
  background: var(--ink);
  color: var(--yellow);
}
.badge-soon {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-open {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge-diet {
  background: var(--yellow-wash);
  border: 1px solid var(--line);
  color: var(--ink-body);
}

/* -------------------------------------------------------------- Monograms */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  font-weight: 700;
  color: var(--white);
  flex: none;
  letter-spacing: 0.02em;
}
.brand-amber {
  background: var(--brand-amber);
  color: var(--on-yellow);
}
.brand-clay {
  background: var(--brand-clay);
}
.brand-sage {
  background: var(--brand-sage);
}
.brand-plum {
  background: var(--brand-plum);
}
.brand-denim {
  background: var(--brand-denim);
}
.brand-rust {
  background: var(--brand-rust);
}

/* ------------------------------------------------------------- Food art */
.art {
  position: relative;
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
}
.art::after {
  font-size: 3.2rem;
  line-height: 1;
  filter: saturate(1.05);
  z-index: 1;
}
.art-bread::before {
  background: radial-gradient(120% 120% at 20% 10%, #ffe6a8 0%, #f3b24a 60%, #d98f2b 100%);
}
.art-bread::after {
  content: "\01F956";
}
.art-pastry::before {
  background: radial-gradient(120% 120% at 20% 10%, #ffe1c2 0%, #f0a978 60%, #d98b5f 100%);
}
.art-pastry::after {
  content: "\01F950";
}
.art-bowl::before {
  background: radial-gradient(120% 120% at 20% 10%, #e7edcf 0%, #a9bd77 60%, #8aa06b 100%);
}
.art-bowl::after {
  content: "\01F963";
}
.art-produce::before {
  background: radial-gradient(120% 120% at 20% 10%, #d9ecc7 0%, #93c07a 60%, #5e9d57 100%);
}
.art-produce::after {
  content: "\01F952";
}
.art-coffee::before {
  background: radial-gradient(120% 120% at 20% 10%, #e9d9c6 0%, #bd996f 60%, #8a6b4f 100%);
}
.art-coffee::after {
  content: "\2615";
}
.art-grocery::before {
  background: radial-gradient(120% 120% at 20% 10%, #cfe0ea 0%, #8fb0c6 60%, #6b86a0 100%);
}
.art-grocery::after {
  content: "\01F6D2";
}
.art-sushi::before {
  background: radial-gradient(120% 120% at 20% 10%, #cdddea 0%, #8aa7c4 60%, #6b86a0 100%);
}
.art-sushi::after {
  content: "\01F363";
}
.art-pizza::before {
  background: radial-gradient(120% 120% at 20% 10%, #ffd9b0 0%, #e79a63 60%, #c0693f 100%);
}
.art-pizza::after {
  content: "\01F355";
}

/* ----------------------------------------------------------- Offer card */
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-3);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}
.offer-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.offer-card .art {
  margin-bottom: var(--s-1);
}
.offer-card .art .badge-discount {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.offer-card .fav {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink-muted);
}
.offer-card .fav.is-on {
  color: var(--danger);
}
.offer-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.offer-head .biz-name {
  font-weight: 700;
  color: var(--ink-strong);
  font-size: var(--t-base);
}
.offer-head .biz-meta {
  font-size: var(--t-sm);
  color: var(--ink-muted);
}
.offer-title {
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--ink-strong);
}
.offer-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-sm);
  color: var(--ink-muted);
}
.offer-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: auto;
}
.offer-price .now {
  font-size: var(--t-h3);
  font-weight: 700;
  color: var(--ink);
}
.offer-price .was {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  text-decoration: line-through;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-body);
  font-weight: 700;
}
.rating .star {
  color: var(--yellow-strong);
}

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.card-sink {
  background: var(--paper);
  border-color: var(--line-soft);
}

/* --------------------------------------------------------------- Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.field > label {
  font-weight: 700;
  color: var(--ink-strong);
  font-size: var(--t-sm);
}
.field .hint {
  font-size: var(--t-xs);
  color: var(--ink-muted);
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink-strong);
  transition: border-color 0.12s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-faint);
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-faint);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--yellow-strong);
  outline: none;
  box-shadow: 0 0 0 3px var(--yellow-soft);
}
.textarea {
  min-height: 96px;
  resize: vertical;
}

/* Choice tiles, used for the sign-up fork and preference toggles. */
.tile {
  display: flex;
  gap: var(--s-4);
  text-align: left;
  width: 100%;
  padding: var(--s-5);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition:
    border-color 0.14s ease,
    background-color 0.14s ease,
    box-shadow 0.14s ease;
}
.tile:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-md);
}
.tile.is-selected {
  border-color: var(--yellow);
  background: var(--yellow-wash);
}
.tile .tile-glyph {
  font-size: 1.8rem;
  line-height: 1;
}
.tile h3 {
  margin-bottom: 4px;
}
.tile p {
  color: var(--ink-muted);
  font-size: var(--t-sm);
}

/* ------------------------------------------------------------- Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.stepper .dot {
  height: 6px;
  flex: 1;
  border-radius: var(--r-pill);
  background: var(--line);
}
.stepper .dot.is-done {
  background: var(--yellow-strong);
}
.stepper .dot.is-current {
  background: var(--yellow);
}

/* --------------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s-6);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  font-weight: 700;
  font-size: var(--t-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.toast.is-shown {
  opacity: 1;
}

/* ---------------------------------------------------------- Empty state */
.empty {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--ink-muted);
}
.empty .empty-glyph {
  font-size: 2.6rem;
  margin-bottom: var(--s-3);
}
.empty h3 {
  margin-bottom: var(--s-2);
}

/* --------------------------------------------------------------- Pills */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat .stat-num {
  font-size: var(--t-h2);
  font-weight: 700;
  color: var(--ink);
}
.stat .stat-label {
  font-size: var(--t-sm);
  color: var(--ink-muted);
}
