:root {
  --bg: #ffffff;
  --ink: #121212;
  --muted: #6b6b6b;
  --lilac: #dcbdf6;
  --lime: #e4f57c;
  --coral: #ffb8a8;
  --grey: #f2f2f0;
  --line: rgba(18, 18, 18, 0.14);
  --radius: 34px;
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 120px);
}

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

/* ---------- Cards */
.card {
  padding: 24px 24px 22px;
  border-radius: var(--radius);
  background: var(--grey);
  transition: background-color 0.35s ease;
}

.card--lilac { background: var(--lilac); }
.card--answer.is-yes { background: var(--lime); }
.card--answer.is-no { background: var(--coral); }

.card--hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-ink);
  box-shadow: inset 0 -14px 0 var(--stripe);
  transition: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 350px);
  padding: 28px;
}

.overline { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }

.zone-name {
  margin: 0;
  font-size: 76px;
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.zone-name { overflow-wrap: break-word; hyphens: auto; }
.zone-name.is-long { font-size: 54px; }
.zone-name.is-longer { font-size: 40px; line-height: 0.98; }

.zone-sub {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.zone-sub:empty { display: none; }

.card--hero .pill { align-self: flex-start; margin-top: 22px; border-color: currentColor; }

.hero-top {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-city {
  padding: 7px 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-city::after { content: ' ▾'; font-size: 11px; opacity: 0.6; }

.picker-label { margin: 14px 6px 0; font-size: 13px; color: var(--muted); }

/* Amsterdam's three St Andrew's crosses */
.hero-mark { font-size: 44px; line-height: 0.7; font-weight: 600; letter-spacing: -0.02em; }

.city-tabs {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.city-tab {
  flex: none;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}

.city-tab.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.answer {
  margin: 0;
  font-size: 104px;
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.headline {
  display: block;
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-align: left;
}

.headline small { font-size: 0.55em; letter-spacing: -0.02em; }
.headline--code { margin-bottom: 0; font-variant-numeric: tabular-nums; }
.headline--code::after { content: ' ⧉'; font-size: 0.5em; vertical-align: middle; opacity: 0.4; }

.body {
  margin: 12px 0 18px;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(18, 18, 18, 0.72);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
}

.pill--dark { background: var(--ink); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.pay-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 16px 22px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  text-align: left;
}

.pay-btn span { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.pay-btn small { display: block; margin-top: 2px; font-size: 13px; opacity: 0.6; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 8px 6px;
  font-size: 17px;
}

.note {
  margin: 4px 10px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Dock with the one button */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 16px);
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%);
}

.big-btn {
  display: block;
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.big-btn:active { transform: scale(0.98); }

.second-btn {
  display: block;
  width: 100%;
  max-width: 428px;
  margin: 8px auto 0;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.view-title { margin: 4px 6px 0; font-size: 34px; line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; }
.note--top { margin-top: 0; }

.place-search { position: relative; }
.place-search .search { margin: 4px 0 0; }

.place-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  padding: 6px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(18, 18, 18, 0.12);
}

.place-result {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 16px;
  text-align: left;
}

.place-result small { display: block; font-size: 13px; color: var(--muted); }
.place-result:active { background: var(--grey); }

.place-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 4px 10px 0;
  font-size: 15px;
  font-weight: 500;
}

.segmented {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--grey);
}

.segmented button {
  flex: 1;
  padding: 10px 6px;
  border-radius: 999px;
  font-size: 15px;
}

.segmented button[aria-selected='true'] { background: var(--ink); color: #fff; }

.cheap-prices,
.cheap-cards {
  grid-column: 1 / -1;
  font-size: 14px;
  color: rgba(18, 18, 18, 0.7);
  font-variant-numeric: tabular-nums;
}

.cheap-prices { margin-top: 6px; }
.cheap-links { grid-column: 1 / -1; display: flex; gap: 16px; margin-top: 8px; }
.cheap-links a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cheap-links a.is-book { font-weight: 600; }

.cheap-list { display: flex; flex-direction: column; gap: 8px; }

.cheap-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 26px;
  background: var(--grey);
}

.cheap-item.is-best { background: var(--lime); }
.cheap-item.is-here { box-shadow: inset 0 0 0 1.5px var(--ink); }

.cheap-kind { grid-column: 1 / -1; font-size: 13px; color: rgba(18, 18, 18, 0.6); }
.cheap-name { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.cheap-price { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; text-align: right; white-space: nowrap; }
.cheap-price small { font-size: 13px; font-weight: 400; }
.cheap-meta { font-size: 14px; color: rgba(18, 18, 18, 0.65); }
.cheap-route { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-align: right; }

/* Your saved zone: its own row above the button, as a light grey chip */
.my-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 428px;
  margin: 0 auto 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grey);
  font-size: 15px;
  text-align: left;
}

.my-zone .my-zone-name { font-weight: 500; }
.my-zone .my-zone-edit { flex: none; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: 0.7; }

/* Secondary links: a quiet row under the button */
.dock-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 428px;
  margin: 12px auto 0;
}

.link-btn {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-body {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px 4px;
  font-size: 17px;
  line-height: 1.45;
}

.about-body > p { margin: 14px 0 0; }

.disclaimer {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--grey);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(18, 18, 18, 0.72);
}

.disclaimer .overline { margin: 0 0 4px; color: var(--ink); font-weight: 500; }
.disclaimer p:last-child { margin: 0; }

.tip {
  flex: none;
  margin: 12px 6px 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--lime);
  font-size: 14px;
  line-height: 1.4;
}

.tip em { font-style: normal; font-weight: 600; }

.banner.is-out { background: var(--coral); color: var(--ink); }
.banner.is-in { background: var(--lime); color: var(--ink); }

/* ---------- Picker sheet */
.sheet { position: fixed; inset: 0; z-index: 2000; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.35);
  animation: fade 0.25s ease;
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  max-height: 88vh;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 16px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg);
  transform: translateX(-50%);
  animation: up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translate(-50%, 40%); opacity: 0; } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sheet-head h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.04em; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }

.mine {
  flex: none;
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--grey);
  font-size: 17px;
  text-align: left;
}

.mine small { display: block; margin-bottom: 2px; font-size: 13px; color: rgba(18, 18, 18, 0.6); }

.search {
  flex: none;
  width: 100%;
  margin: 12px 0 6px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--grey);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.group-label { margin: 14px 6px 4px; font-size: 13px; color: var(--muted); }

.zone-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  text-align: left;
}

.zone-btn small { color: var(--muted); font-size: 13px; }

/* ---------- Banner (new area) */
.banner {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  left: 50%;
  z-index: 3000;
  width: min(calc(100% - 24px), 436px);
  padding: 18px 22px 20px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  transform: translateX(-50%);
  animation: drop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner .overline { margin: 0; opacity: 0.6; }

.banner-big {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.04em;
}

@keyframes drop { from { transform: translate(-50%, -120%); } }

/* ---------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 110px);
  z-index: 3000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  transform: translateX(-50%);
}

@media (max-width: 360px) {
  .zone-name { font-size: 62px; }
  .answer { font-size: 88px; }
}
