:root {
  --bg: #080808;
  --panel: #17120b;
  --panel-2: #221a10;
  --field: #0d0b08;
  --text: #f4ede2;
  --muted: #cfbfa8;
  --gold: #f4b347;
  --amber: #ffcb72;
  --border: rgba(244, 179, 71, 0.22);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(244, 179, 71, 0.16), transparent 30%),
    linear-gradient(180deg, #090909, #111111 40%, #090909);
  color: var(--text);
}

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

.hero,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead {
  margin: 24px 0 0;
  line-height: 0;
}

.masthead img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 0 12px;
}

.section-heading h3,
.section-heading p {
  margin: 0;
}

.top-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.top-links a:hover {
  color: var(--amber);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 36px 0 56px;
}

.hero-copy,
.hero-panel,
.directory-section,
.for-business-section,
.get-app-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 12px 0 16px;
}

.section-heading h3,
.get-app-copy h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.panel-label,
.feature-card h4,
.listing-card h4,
.detail-panel h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-label {
  color: var(--text);
  margin-bottom: 4px;
}

.hero-copy p,
.hero-panel li,
.section-heading p,
.feature-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.secondary-button,
#search-input {
  border-radius: 999px;
}

.primary-button,
.secondary-button {
  padding: 14px 18px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: #0a0a0a;
}

.secondary-button {
  background: #1b1b1b;
  border: 1px solid var(--border);
}

.hero-panel ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

main {
  display: grid;
  gap: 24px;
  padding-bottom: 42px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.directory-controls {
  display: grid;
  gap: 14px;
}

#search-input,
#sort-select,
#category-select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

#sort-select,
#category-select {
  border-radius: 16px;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 4px;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.directory-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.listing-card,
.detail-panel {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.listing-card h4 {
  margin: 0 0 8px;
}

.empty-note {
  color: var(--muted);
  padding: 8px 2px;
}

.listing-meta,
.listing-flags {
  color: var(--amber);
  font-size: 0.92rem;
}

.listing-flags {
  margin-top: 10px;
}

.listing-card {
  cursor: pointer;
}

.detail-panel {
  position: sticky;
  top: 24px;
}

.detail-panel h4,
.detail-panel p {
  margin-top: 0;
}

.detail-meta,
.detail-highlights {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detail-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid var(--border);
}

.detail-panel form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-panel input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text);
  font: inherit;
}

.detail-panel button {
  width: fit-content;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  color: #090909;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* For businesses */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card h4 {
  margin: 0;
}

.feature-card p {
  margin: 0;
  flex: 1;
}

.text-link {
  color: var(--amber);
  font-weight: 700;
}

.text-link:hover {
  color: var(--gold);
}

/* Get the app */
.get-app-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}

.get-app-copy h3 {
  margin: 8px 0 16px;
}

.check-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  color: var(--muted);
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.store-badge {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #18130f;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.get-app-art {
  display: flex;
  justify-content: center;
}

.get-app-art img {
  width: min(100%, 260px);
  height: auto;
  border-radius: 32px;
  border: 1px solid var(--border);
}

.status-note {
  color: var(--amber);
  min-height: 1.2em;
}

.claim-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.claim-block h5 {
  margin: 0;
}

.claim-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

#claim-steps {
  display: grid;
  gap: 10px;
}

/* Business Hub */
.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-form label.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

.profile-form textarea {
  resize: vertical;
}

.profile-form .primary-button {
  width: fit-content;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.status-list li {
  color: var(--muted);
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
}

/* Authed hubs */
.account-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-badge {
  color: var(--amber);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-bar .text-link {
  margin-left: auto;
}

.funnel-step {
  margin-bottom: 8px;
}

.card-element {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--field);
  margin: 10px 0;
}

/* Legal pages */
.legal-doc {
  line-height: 1.65;
}

.legal-doc h2 {
  margin-top: 0;
}

.legal-doc h3 {
  margin-top: 1.4rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-meta {
  color: var(--amber);
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 40px 0 28px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-banner {
  display: block;
  width: min(100%, 600px);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-divider {
  width: min(100%, 680px);
  height: 1px;
  background: var(--border);
}

.footer-credit-banner {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  transition: transform 0.18s ease;
}

.footer-credit-banner:hover {
  transform: translateY(-1px);
}

.footer-credit-banner img {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto;
}

.footer-legal {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-legal a {
  color: var(--amber);
}

.footer-legal a:hover {
  color: var(--gold);
}

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

  .hero-copy,
  .hero-panel,
  .directory-section,
  .for-business-section,
  .get-app-section {
    padding: 24px;
  }

  .top-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .control-row,
  .directory-layout,
  .feature-grid,
  .get-app-section {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .footer-links {
    gap: 48px;
  }
}
