:root {
  --brand: #c45a28;
  --brand-deep: #a8461c;
  --ink: #1b2437;
  --ink-soft: #5b6577;
  --line: #e6e9ef;
  --paper: #ffffff;
  --muted: #f6f7f9;
  --action: #1f3f8f;
  --action-hover: #183272;
  --tone-a: #efe6ff;
  --tone-b: #e4f6ea;
  --tone-c: #ffe3ea;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(27, 36, 55, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.65rem 2.5rem;
  background: #dfeafc;
  color: var(--ink);
  font-size: 0.92rem;
  position: relative;
}

.promo-bar a {
  color: var(--brand);
  font-weight: 700;
}

.promo-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--brand);
  text-transform: lowercase;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
}

.brand-mark-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
}

.brand-ring,
.brand-ck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-ring {
  z-index: 1;
  animation: brand-spin 28s linear infinite;
}

.brand-ck {
  z-index: 2;
  inset: 10%;
  width: 80%;
  height: 80%;
  margin: auto;
}

.brand-wordmark {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-logo--footer .brand-mark-wrap {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

.brand-logo--footer .brand-wordmark {
  height: 24px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: #2c2c2c;
  text-transform: lowercase;
}

@keyframes brand-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-ring {
    animation: none;
  }
}

.top-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.top-links .auth-hello {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  max-width: min(280px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-nav {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a:hover {
  color: var(--ink);
}

.hero {
  background: var(--brand);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.search-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.65rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.search-field .icon {
  color: var(--ink-soft);
  font-size: 1rem;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #8b93a3;
}

.btn-search,
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.btn-search:hover,
.btn-solid:hover,
.btn-outline:hover {
  transform: translateY(-1px);
}

.btn-search,
.btn-solid {
  background: var(--action);
  color: #fff;
}

.btn-search:hover,
.btn-solid:hover {
  background: var(--action-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.hero-side {
  color: #fff;
  display: grid;
  gap: 1rem;
  justify-items: end;
}

.hero-side h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #102041;
  text-align: right;
}

.hero-photo {
  width: min(360px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefits {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.benefits h2,
.browse h2,
.cities h2,
.split-copy h2,
.promo-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.benefits h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.benefit-grid h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.tone-a {
  background: var(--tone-a);
  color: #6b4bb5;
}

.tone-b {
  background: var(--tone-b);
  color: #2f8a55;
}

.tone-c {
  background: var(--tone-c);
  color: #c2446a;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3.5rem);
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 320px;
  background: var(--muted);
}

.promo-card.gift {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: linear-gradient(135deg, #f4f1ec, #fff);
}

.gift-art {
  background:
    linear-gradient(160deg, var(--brand) 0 55%, transparent 55%),
    linear-gradient(340deg, #1f8f86 0 48%, transparent 48%);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
}

.gift-art small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  margin-top: 0.25rem;
}

.gift-art.points-art {
  background:
    linear-gradient(145deg, #1f3f8f 0 52%, transparent 52%),
    linear-gradient(320deg, #c45a28 0 46%, transparent 46%),
    #dfeafc;
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.promo-card.points {
  background: linear-gradient(135deg, #eef3fc, #fff);
}

.promo-copy {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}

.promo-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.promo-card.rated img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card.rated .promo-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  background: linear-gradient(0deg, rgba(16, 22, 35, 0.78), transparent 55%);
  color: #fff;
}

.promo-card.rated .promo-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.promo-card.rated h2 {
  color: #fff;
}

.badge {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #d4af37 55%, #8f6d12);
  color: #1b1404;
  box-shadow: var(--shadow);
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.split-copy p {
  margin: 0.85rem 0 1.25rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge svg {
  width: auto;
  height: 44px;
  display: block;
}

.split-visual {
  min-height: 240px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.split-visual.phone {
  background: linear-gradient(165deg, #14305f 0%, #1a3f85 48%, #2452a3 100%);
  padding: 1.75rem 1.25rem;
  min-height: 0;
  overflow: visible;
  align-self: stretch;
}

.phone-frame {
  width: min(248px, 76%);
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  background: #121212;
  overflow: hidden;
  box-shadow:
    0 24px 50px rgba(8, 16, 36, 0.42),
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 0 0 6px rgba(16, 32, 65, 0.35);
  border: 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #121212;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.split-visual.biz {
  background: linear-gradient(160deg, #f3efe8, #e7eef8);
}

.biz-card {
  width: min(280px, 85%);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
}

.biz-card .pill {
  background: #e8f6ee;
  color: #217247;
}

.browse,
.cities {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.browse h2,
.cities h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.45rem;
}

.browse-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.browse-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #111;
  display: block;
  width: 100%;
  text-align: left;
}

.browse-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.browse-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.browse-card:hover img,
.browse-card.is-active img {
  transform: scale(1.05);
}

.browse-card.is-active {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.browse-card span {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.business-panel {
  margin-top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.business-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.business-panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: #c9cfda;
}

.business-list {
  display: grid;
  gap: 0.75rem;
}

.business-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.business-card:hover {
  border-color: #c9cfda;
  box-shadow: 0 8px 20px rgba(27, 36, 55, 0.08);
}

.business-card img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.business-card-body h4 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.business-card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.business-card-rating {
  margin-top: 0.35rem !important;
  color: var(--brand-deep) !important;
  font-weight: 700;
}

.biz-modal[hidden],
.business-panel[hidden] {
  display: none !important;
}

.biz-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.biz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 35, 0.55);
}

.biz-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(16, 22, 35, 0.28);
}

.biz-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.biz-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.biz-modal-body {
  padding: 1.1rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.biz-modal-sector {
  margin: 0;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.biz-modal-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.biz-modal-rating {
  margin: 0;
  color: var(--brand-deep);
  font-weight: 700;
}

.biz-modal-address,
.biz-modal-hours,
.biz-modal-phone,
.biz-modal-desc {
  margin: 0;
  color: var(--ink-soft);
}

.biz-modal-services {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.biz-modal-services li {
  margin-bottom: 0.2rem;
}

.biz-modal-body .btn-solid {
  justify-self: start;
  margin-top: 0.35rem;
}

.city-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.city-columns h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.city-columns a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.city-columns a:hover {
  color: var(--brand);
}

.site-footer {
  background: var(--muted);
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--brand);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero-inner,
  .promo-grid,
  .promo-card.gift,
  .split-band,
  .benefit-grid,
  .city-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .browse-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-side {
    justify-items: start;
  }

  .hero-side h1 {
    text-align: left;
  }

  .biz-band .split-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .browse-grid {
    grid-template-columns: 1fr 1fr;
  }

  .business-card {
    grid-template-columns: 88px 1fr;
  }

  .business-card img {
    width: 88px;
    height: 72px;
  }

  .promo-bar {
    padding-right: 2.5rem;
    text-align: center;
  }

  .top-links {
    gap: 0.8rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .browse-card img,
  .btn-search,
  .btn-solid,
  .btn-outline {
    transition: none;
  }
}
