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

:root {
  --espresso:   #2d1f0e;
  --terracotta: #c0855a;
  --latte:      #e8c99a;
  --cream:      #fdf6ed;
  --parchment:  #f0e6d3;
  --sage:       #4a7c6a;
  --sage-soft:  #edf5f2;
  --sand:       #c8b89a;
  --muted:      #9a8472;
  --white:      #ffffff;
  --border:     #e8ddd0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,246,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--parchment);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 28px;
  color: var(--espresso);
  letter-spacing: -0.5px;
  line-height: 1;
}

.wordmark-city {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: 2px;
}

.nav-cta {
  background: var(--espresso);
  color: var(--cream);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  padding: 72px 24px 48px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(52px, 10vw, 72px);
  color: var(--espresso);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--terracotta);
  font-style: normal;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--espresso);
  outline: none;
  transition: border-color 0.15s;
}
.hero-input:focus { border-color: var(--terracotta); }
.hero-input::placeholder { color: var(--sand); }

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), #a06840);
  color: var(--white);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(192,133,90,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(192,133,90,0.38); }
.btn-primary:active { transform: translateY(0); }

.hero-note {
  font-size: 12px;
  color: var(--sand);
  font-style: italic;
}

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  background: var(--white);
  display: flex;
  justify-content: center;
}

.stats-inner {
  max-width: 680px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide: var(--parchment);
}

.stat {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--parchment);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 36px;
  color: var(--terracotta);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── SECTION COMMONS ── */
.section {
  padding: 72px 24px;
  max-width: 680px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 38px;
  color: var(--espresso);
  line-height: 1.1;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ── RULE CARDS ── */
.rule-cards { display: flex; flex-direction: column; gap: 10px; }

.rule-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 14px;
  transition: transform 0.15s;
}
.rule-card:hover { transform: translateX(4px); }

.rule-card.green { background: #edf5f2; border: 1.5px solid #a8d8c8; }
.rule-card.yellow { background: #fdf6e3; border: 1.5px solid #f0d080; }
.rule-card.red { background: #fdf0ee; border: 1.5px solid #f5b8a8; }

.rule-icon { font-size: 22px; line-height: 1.3; flex-shrink: 0; margin-top: 1px; }

.rule-label {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.rule-label.green { color: var(--sage); }
.rule-label.yellow { color: #7a5e10; }
.rule-label.red { color: #8b3a2a; }

.rule-detail {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 3px;
  opacity: 0.85;
}
.rule-detail.green { color: var(--sage); }
.rule-detail.yellow { color: #7a5e10; }
.rule-detail.red { color: #8b3a2a; }

/* ── CAFÉ CARDS ── */
.cafe-cards { display: flex; flex-direction: column; gap: 14px; }

.cafe-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.cafe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(192,133,90,0.16);
}

.cafe-top {
  padding: 14px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cafe-emoji { font-size: 28px; margin-bottom: 4px; }

.cafe-name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 21px;
  color: var(--espresso);
  line-height: 1.1;
}

.cafe-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.badge-open { background: #dcfce7; color: #166534; }
.badge-closed { background: #fef2f2; color: #991b1b; }

.cafe-body {
  padding: 10px 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }

.tag-pill {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--parchment);
  border: 1px solid var(--latte);
  color: var(--espresso);
}

.dots {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-on { background: var(--terracotta); }
.dot-off { background: var(--latte); }

/* ── RULE LEGEND ── */
.rule-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── PITCH / CAFE OWNERS ── */
.pitch-band {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pitch-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 560px) {
  .pitch-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--parchment); }
  .stat:last-child { border-bottom: none; }
}

.pitch-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 34px;
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 14px;
}

.pitch-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.pitch-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pitch-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--espresso);
  line-height: 1.5;
}

.pitch-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1.5px solid #a8d8c8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--sage);
  margin-top: 1px;
}

.btn-secondary {
  display: inline-block;
  background: var(--espresso);
  color: var(--cream);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-top: 20px;
}
.btn-secondary:hover { opacity: 0.82; }

/* ── CITIES ── */
.cities-band {
  background: var(--espresso);
}

.cities-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px;
}

.cities-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 38px;
  color: var(--cream);
  margin-bottom: 6px;
}

.cities-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.city-list { display: flex; flex-direction: column; gap: 12px; }

.city-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
}
.city-item.live { background: rgba(192,133,90,0.12); border: 1px solid rgba(192,133,90,0.25); }
.city-item.soon { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.city-item.later { background: transparent; border: 1px dashed rgba(255,255,255,0.08); }

.city-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.city-indicator.live { background: var(--terracotta); }
.city-indicator.soon { background: rgba(255,255,255,0.08); }
.city-indicator.later { background: transparent; }

.city-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.city-dot-inner.live { background: var(--white); }
.city-dot-inner.soon { background: rgba(255,255,255,0.35); }
.city-dot-inner.later { background: rgba(255,255,255,0.15); border: 1px dashed rgba(255,255,255,0.3); }

.city-name {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 22px;
  flex: 1;
}
.city-name.live { color: var(--cream); }
.city-name.soon { color: rgba(255,255,255,0.45); }
.city-name.later { color: rgba(255,255,255,0.22); }

.city-badge {
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
}
.city-badge.live { background: rgba(192,133,90,0.2); color: var(--latte); }
.city-badge.soon { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }

/* ── EMAIL ── */
.email-section {
  padding: 72px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.email-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 40px;
  color: var(--espresso);
  margin-bottom: 10px;
}

.email-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 100%;
}

.footer-left .wordmark { font-size: 22px; }
.footer-tagline { font-size: 12px; color: var(--muted); margin-top: 2px; font-style: italic; }
.footer-right { font-size: 12px; color: var(--sand); }

/* ── HIDDEN APP ── */
#app-section {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  overflow-y: auto;
}

#app-section.visible { display: block; }

.app-bar {
  position: sticky;
  top: 0;
  background: rgba(253,246,237,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--parchment);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.app-close {
  background: var(--parchment);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 6px 16px;
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.app-close:hover { background: var(--border); color: var(--espresso); }

/* cup SVG */
.plek-cup { display: block; }

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--latte); border-radius: 4px; }
