/* ============================================================
   BUSAN 2026 — Design Tokens
   ============================================================ */
:root {
  /* Brand palette (guideline.md) */
  --color-ocean: #2B5F75;
  --color-ocean-deep: #1D4557;
  --color-sand: #E8DCCF;
  --color-coral: #F4A896;
  --color-warm-white: #FAF9F7;
  --color-emerald: #2E8B7B;
  --color-sunset: #FF8A5B;

  /* Semantic (light) */
  --bg: var(--color-warm-white);
  --bg-elevated: #FFFFFF;
  --text-primary: #1B2B31;
  --text-secondary: #5B6E75;
  --text-inverse: #FAF9F7;
  --border-soft: rgba(43, 95, 117, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-color: 210deg 40% 30%;
  --shadow-soft: 0 8px 30px hsl(var(--shadow-color) / 0.12);
  --shadow-float: 0 20px 50px hsl(var(--shadow-color) / 0.18);

  /* Type */
  --font-display: 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Inter', 'Noto Sans', 'Noto Sans KR', sans-serif;

  /* Radii */
  --radius-card: 24px;
  --radius-pill: 999px;
  --radius-sm: 14px;

  color-scheme: light;
}

/* ============================================================
   Reset & base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.section-pad { padding-block: clamp(64px, 10vw, 120px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-sunset);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 48px;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1100px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-soft);
  padding: 10px 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.nav-logo span { color: var(--color-sunset); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nav-links a { transition: color 0.25s ease; position: relative; }
.nav-links a:hover { color: var(--color-ocean); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-sunset), var(--color-coral));
  color: #2A1810;
  box-shadow: 0 12px 30px rgba(255, 138, 91, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255, 138, 91, 0.45); }

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 110px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 138, 91, 0.55), transparent 55%),
    radial-gradient(100% 80% at 85% 10%, rgba(244, 168, 150, 0.45), transparent 50%),
    linear-gradient(160deg, #16465A 0%, #2B5F75 45%, #1D4557 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 92%);
  margin-inline: auto;
  color: var(--text-inverse);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-sunset); box-shadow: 0 0 0 4px rgba(255,138,91,0.25); }

.hero-title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.95;
  font-weight: 900;
  background: linear-gradient(120deg, #FFFFFF 20%, #F4A896 60%, #FFD9B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 500;
  color: rgba(250, 249, 247, 0.86);
  max-width: 40ch;
  animation: fadeUp 0.9s 0.2s ease both;
}
@media (min-width: 760px) {
  .hero-subtitle { max-width: none; white-space: nowrap; }
}

.hero-cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  animation: fadeUp 0.9s 0.4s ease both;
}
@media (min-width: 720px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}
.stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 247, 0.65);
  margin-bottom: 6px;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.stat-card .value.small { font-size: 1.05rem; }

.countdown {
  display: flex;
  gap: 10px;
}
.countdown .unit {
  text-align: center;
  min-width: 44px;
}
.countdown .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown .u-label {
  font-size: 0.62rem;
  color: rgba(250,249,247,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.avatar-stack {
  display: flex;
}
.avatar-stack .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}
.avatar-stack .avatar:first-child { margin-left: 0; }

/* Waves */
.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero-waves svg { width: 100%; height: auto; display: block; }
.wave-back { animation: waveDrift 22s linear infinite; opacity: 0.5; }
.wave-mid { animation: waveDrift 16s linear infinite reverse; opacity: 0.7; }
.wave-front { animation: waveDrift 11s linear infinite; }

@keyframes waveDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(1); opacity: 0.8; } 50% { transform: scaleY(0.4); opacity: 0.3; } }

/* ============================================================
   Crew / polaroids
   ============================================================ */
.crew-section { background: var(--bg); }

.polaroid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 12px;
}

.polaroid {
  background: #fff;
  padding: 14px 14px 46px;
  border-radius: 4px;
  box-shadow: var(--shadow-float);
  width: 240px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.polaroid.tilt-left { transform: rotate(-5deg); }
.polaroid.tilt-right { transform: rotate(4deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.06); box-shadow: 0 26px 60px hsl(var(--shadow-color) / 0.25); z-index: 2; }

.polaroid-featured { width: 320px; padding: 18px 18px 56px; }
.polaroid-featured img { height: 400px; }
.polaroid-featured figcaption { font-size: 0.95rem; bottom: 18px; }

.polaroid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 2px;
}

.polaroid figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ocean);
  text-align: center;
}

/* ============================================================
   Flight tickets
   ============================================================ */
.flight-section { background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%); }

.ticket-row {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .ticket-row { grid-template-columns: 1fr 1fr; }
}

.ticket {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ticket-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(46, 139, 123, 0.12);
  color: var(--color-emerald);
}
.ticket-tag.return { background: rgba(255, 138, 91, 0.14); color: var(--color-sunset); }
.ticket-date { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }

.ticket-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.ticket-point { display: flex; flex-direction: column; }
.ticket-point .code { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--text-primary); letter-spacing: 0.02em; }
.ticket-point .time { font-size: 1.05rem; font-weight: 700; color: var(--color-ocean); margin-top: 2px; }
.ticket-point .city { font-size: 0.76rem; color: var(--text-secondary); margin-top: 4px; }
.ticket-route .ticket-point:last-child { align-items: flex-end; text-align: right; }

.ticket-plane { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ticket-plane .dur { font-size: 0.66rem; color: var(--text-secondary); white-space: nowrap; }
.plane-line { position: relative; width: 100%; min-width: 60px; height: 2px; background: var(--border-soft); }
.plane-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: var(--color-sunset);
  background: var(--bg-elevated);
  padding: 0 4px;
}

.ticket-divider { display: flex; align-items: center; margin: 22px -26px; }
.ticket-divider .notch {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.ticket-divider .notch.left { margin-left: -9px; border-right: none; }
.ticket-divider .notch.right { margin-right: -9px; border-left: none; }
.ticket-divider .dash-line {
  flex: 1;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--border-soft) 0 8px, transparent 8px 16px);
}

.ticket-bottom { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
.ticket-bottom .chip { flex-shrink: 0; white-space: nowrap; }

/* ============================================================
   Map section
   ============================================================ */
.map-section { background: var(--bg); }

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.day-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.day-tab.active {
  background: var(--color-ocean);
  border-color: var(--color-ocean);
  color: #fff;
  box-shadow: 0 6px 14px rgba(43, 95, 117, 0.28);
}
.day-tab:hover:not(.active) { border-color: var(--color-ocean); color: var(--color-ocean); }

.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 980px) {
  .map-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.map-canvas-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(160deg, #DCEBEA 0%, #C7DEDD 60%, #B8D6D2 100%);
  box-shadow: var(--shadow-float);
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--border-soft);
}

.map-canvas-wrap svg { width: 100%; height: 100%; }

/* -------- terrain -------- */
.land {
  fill: rgba(232, 220, 207, 0.62);
  stroke: rgba(29, 69, 87, 0.28);
  stroke-width: 1.5;
}
.land.island { stroke-width: 1.2; }

.sea-waves {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.district-label text {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  fill: rgba(29, 69, 87, 0.38);
  text-transform: uppercase;
}

.compass circle {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(29, 69, 87, 0.3);
  stroke-width: 1;
}
.compass path { fill: var(--color-ocean-deep); }
.compass text {
  font-size: 7px;
  font-weight: 800;
  fill: var(--color-ocean-deep);
}

.scale-bar line { stroke: var(--color-ocean-deep); stroke-width: 1.4; }
.scale-bar text {
  font-size: 7px;
  font-weight: 600;
  fill: var(--color-ocean-deep);
  opacity: 0.75;
}

/* -------- routes -------- */
.route-path {
  fill: none;
  stroke: var(--color-sunset);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
  animation: dashMove 2.4s linear infinite;
  opacity: 0.9;
}
.route-path.route-casing {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 7;
  stroke-dasharray: none;
  animation: none;
  opacity: 0.85;
}
@keyframes dashMove { to { stroke-dashoffset: -40; } }

.map-pin {
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: center;
}
.map-pin:hover { transform: scale(1.15); }
.map-pin.inactive { opacity: 0.25; }
.map-pin circle.pulse {
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinPulse {
  0% { r: 9; opacity: 0.5; }
  100% { r: 22; opacity: 0; }
}

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

.legend-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.legend-card h4 { font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.legend-card h4 .icon { font-size: 1rem; }

.stop-list { display: flex; flex-direction: column; gap: 10px; }
.stop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.25s ease;
}
.stop-item.active { background: rgba(46, 139, 123, 0.1); color: var(--text-primary); font-weight: 600; }
.stop-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-ocean);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.transit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(43, 95, 117, 0.1);
  color: var(--color-ocean);
}
.chip.walk { background: rgba(46,139,123,0.12); color: var(--color-emerald); }

/* ============================================================
   Itinerary cards
   ============================================================ */
.itinerary-grid { display: flex; flex-direction: column; gap: 20px; }

.day-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.day-card:hover { box-shadow: var(--shadow-float); transform: translateY(-3px); }

.day-card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
}

.day-card-title { display: flex; align-items: center; gap: 16px; }
.day-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-ocean), var(--color-emerald));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  color: #fff; flex-shrink: 0;
}
.day-badge .d { font-size: 0.62rem; line-height: 1; letter-spacing: 0.08em; opacity: 0.85; }
.day-badge .n { font-size: 1.3rem; line-height: 1; font-weight: 800; font-family: var(--font-display); }

.day-card-title h3 { font-size: 1.2rem; margin-bottom: 2px; }
.day-card-title .date-sub { font-size: 0.85rem; color: var(--text-secondary); }

.day-card-meta { display: flex; align-items: center; gap: 14px; }
.day-cost { font-family: var(--font-display); font-weight: 800; color: var(--color-sunset); font-size: 1.05rem; }
.chevron { transition: transform 0.35s ease; font-size: 1.2rem; color: var(--text-secondary); }
.day-card.open .chevron { transform: rotate(180deg); }

.day-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.day-card.open .day-card-body { max-height: 3200px; }

.day-card-inner { padding: 0 28px 28px; }

/* ------------------------------------------------------------
   Day timeline — one row per stop, grouped by time of day.
   Dot/line color encodes 上午(emerald) / 下午(ocean) / 晚上(sunset),
   so the pacing of a day reads at a glance without reading every line.
   ------------------------------------------------------------ */
.day-timeline { display: flex; flex-direction: column; gap: 28px; margin-bottom: 24px; }

.dt-group--am { --group-color: var(--color-emerald); }
.dt-group--pm { --group-color: var(--color-ocean); }
.dt-group--eve { --group-color: var(--color-sunset); }

.dt-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--group-color);
  margin-bottom: 12px;
}

.dt-stop { display: flex; gap: 14px; }
.dt-stop:not(:last-child) { padding-bottom: 16px; }

.dt-time {
  flex: 0 0 44px;
  padding-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dt-marker { flex: 0 0 16px; position: relative; display: flex; justify-content: center; }
.dt-dot {
  width: 10px; height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--group-color);
  box-shadow: 0 0 0 3px var(--bg-elevated);
  position: relative;
  z-index: 1;
}
.dt-stop:not(:last-child) .dt-marker::after {
  content: "";
  position: absolute;
  top: 15px; bottom: -16px;
  left: 50%;
  width: 2px;
  background: var(--group-color);
  opacity: 0.28;
  transform: translateX(-50%);
}

.dt-content { flex: 1; min-width: 0; }
.dt-title { font-size: 0.92rem; color: var(--text-primary); line-height: 1.55; }

.dt-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--group-color) 14%, transparent);
  color: var(--group-color);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.dt-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  margin-left: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--group-color) 14%, transparent);
  font-size: 0.7rem;
  vertical-align: middle;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dt-map:hover { background: color-mix(in srgb, var(--group-color) 30%, transparent); transform: scale(1.1); }

.dt-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dt-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px 4px 11px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--group-color) 10%, transparent);
  color: var(--text-primary);
  border: 1px solid color-mix(in srgb, var(--group-color) 24%, transparent);
}
.dt-option-map { font-size: 0.85em; line-height: 1; }
.dt-option-map--pending { opacity: 0.32; cursor: default; }

.dt-tag-map { margin-left: 4px; font-size: 0.9em; vertical-align: middle; }
.dt-tag-map--pending { opacity: 0.4; cursor: default; }

.day-notes {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 138, 91, 0.08);
  border: 1px dashed rgba(255, 138, 91, 0.35);
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.gallery-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.gallery-tile {
  min-width: 140px;
  height: 100px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 60%); }
.gallery-tile span { position: relative; z-index: 1; }

.transport-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ocean);
  margin-top: 10px;
}

.map-link {
  color: var(--color-ocean);
  text-decoration: none;
  font-size: 0.85em;
  white-space: nowrap;
}
.map-link:hover { text-decoration: underline; }

/* ============================================================
   Expense dashboard
   ============================================================ */
.expense-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%); }

.expense-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .expense-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.exp-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.exp-total .value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--color-ocean);
  margin: 10px 0 4px;
}
.exp-total .sub { font-size: 0.86rem; color: var(--text-secondary); }

.person-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.person-row .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.person-bar-track { flex: 1; height: 8px; border-radius: 999px; background: var(--border-soft); overflow: hidden; }
.person-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-emerald), var(--color-ocean)); width: 0%; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.person-amt { font-size: 0.82rem; font-weight: 700; min-width: 62px; text-align: right; }

.donut-wrap { display: flex; align-items: center; gap: 22px; justify-content: center; margin: 12px 0; }
.donut {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-ocean) 0% 34%,
    var(--color-emerald) 34% 55%,
    var(--color-coral) 55% 74%,
    var(--color-sunset) 74% 90%,
    var(--color-sand) 90% 100%
  );
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--bg-elevated);
}
.donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; }
.donut-legend li { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.donut-legend .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.converter { margin-top: 18px; }
.converter-row { display: flex; gap: 10px; align-items: center; }
.converter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.converter .eq { color: var(--text-secondary); font-weight: 700; }
.converter .result { font-family: var(--font-display); font-weight: 800; color: var(--color-emerald); font-size: 1.05rem; }
.converter .note { font-size: 0.72rem; color: var(--text-secondary); }

.rate-status { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.rate-status .note { flex: 1; }
.rate-refresh-btn {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ocean);
  background: rgba(43, 95, 117, 0.1);
  font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.rate-refresh-btn:hover { background: rgba(43, 95, 117, 0.2); }
.rate-refresh-btn:disabled { opacity: 0.6; cursor: default; }
.rate-refresh-icon { display: inline-block; line-height: 1; }
.rate-refresh-icon.spinning { animation: rateSpin 0.7s linear infinite; }
@keyframes rateSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.rate-status .note.rate-live { color: var(--color-emerald); }
.rate-status .note.rate-stale { color: var(--color-coral); }

/* ============================================================
   Food section
   ============================================================ */
#food .section-sub { margin-bottom: 24px; }

.food-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.filter-pill.active {
  background: var(--color-sunset);
  border-color: var(--color-sunset);
  color: #2A1810;
}

.food-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.food-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 1;
  transform: scale(1);
}
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.food-card.hidden { display: none; }

.food-photo {
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.food-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 55%); }
.food-badge {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.9);
  color: #1B2B31;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  position: absolute;
  top: 14px; left: 14px;
}
.food-photo .fname { position: relative; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }

.food-body { padding: 18px 20px 22px; }
.food-loc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }

.reserve-btn {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(3, 199, 90, 0.1);
  color: #03A94A;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.3s ease;
}
.reserve-btn:hover { background: #03C75A; color: #fff; }
.reserve-btn .n-mark {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: #03C75A;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reserve-btn:hover .n-mark { background: #fff; color: #03C75A; }

.reserve-btn--pending {
  background: transparent;
  border: 1px dashed var(--border-soft);
  color: var(--text-secondary);
  cursor: default;
}
.reserve-btn--pending:hover { background: transparent; color: var(--text-secondary); }

/* ============================================================
   Recent expenses log
   ============================================================ */
.expense-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-soft) transparent;
}
.expense-log::-webkit-scrollbar { width: 6px; }
.expense-log::-webkit-scrollbar-track { background: transparent; }
.expense-log::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
.expense-log::-webkit-scrollbar-thumb:hover { background: var(--color-ocean); }

.empty-state {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px 10px;
}

.expense-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  animation: rowIn 0.4s ease both;
}
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.expense-row .cat-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.expense-row .info .item-name { font-weight: 700; font-size: 0.92rem; color: var(--text-primary); }
.expense-row .info .item-meta { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; }
.expense-row .info .item-note { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; font-style: italic; }

.expense-row .amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-ocean);
  white-space: nowrap;
}

.expense-row .del-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.expense-row .del-btn:hover { background: rgba(255, 138, 91, 0.15); color: var(--color-sunset); }

/* ============================================================
   Settle-up (分帳結果)
   ============================================================ */
.settle-list { display: flex; flex-direction: column; gap: 10px; }

.settle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}
.settle-people { display: flex; align-items: center; gap: 10px; }
.settle-people .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.settle-arrow { color: var(--text-secondary); font-weight: 700; }
.settle-amt { font-family: var(--font-display); font-weight: 800; color: var(--color-sunset); font-size: 0.95rem; white-space: nowrap; }

/* ============================================================
   FAB
   ============================================================ */
.fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sunset), var(--color-coral));
  color: #2A1810;
  box-shadow: 0 14px 34px rgba(255, 138, 91, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.fab-icon { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.fab:hover { transform: scale(1.08) rotate(90deg); box-shadow: 0 18px 40px rgba(255, 138, 91, 0.5); }
.fab:active { transform: scale(0.96) rotate(90deg); }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(14, 27, 33, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  padding: 28px;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { font-size: 1.2rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}
.modal-close:hover { background: rgba(255, 138, 91, 0.12); color: var(--color-sunset); }

.expense-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: none;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-ocean); }

.amount-row { display: flex; gap: 10px; }
.amount-row input { flex: 1; min-width: 0; }

.currency-toggle { display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); flex-shrink: 0; }
.currency-btn {
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  transition: all 0.25s ease;
}
.currency-btn.active { background: var(--color-ocean); color: #fff; }

.pill-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.pill-option i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, currentColor); display: inline-block; }
.pill-option.active { background: var(--color-ocean); border-color: var(--color-ocean); color: #fff; }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.check-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-chip:has(input:checked) { background: var(--color-emerald); border-color: var(--color-emerald); color: #fff; }

.form-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: #C9524B;
  background: rgba(201, 82, 75, 0.08);
  border: 1px solid rgba(201, 82, 75, 0.25);
  padding: 10px 14px;
  border-radius: 10px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  z-index: 400;
  background: var(--text-primary);
  color: var(--bg-elevated);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .fab { right: 18px; bottom: 18px; width: 52px; height: 52px; }
  .modal { padding: 22px; }
  .expense-row {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: start;
  }
  .expense-row .info { grid-column: 1; grid-row: 1 / 3; }
  .expense-row .cat-tag { grid-column: 2 / 4; grid-row: 1; justify-self: end; }
  .expense-row .amt { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; margin-top: 6px; }
  .expense-row .del-btn { grid-column: 3; grid-row: 2; justify-self: end; margin-top: 6px; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
}
.footer strong { color: var(--text-primary); font-family: var(--font-display); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(160deg, #16465A, #2B5F75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.loader-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-sunset); animation: loaderPulse 1s ease-in-out infinite; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Mobile RWD
   ============================================================ */
@media (max-width: 760px) {
  .nav { top: 12px; padding: 10px 14px; }
  .nav-logo { font-size: 0.92rem; }
  .btn { padding: 12px 20px; font-size: 0.88rem; }

  .hero { padding-top: 96px; min-height: auto; justify-content: flex-start; padding-bottom: 0; }
  .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .scroll-cue { display: none; }
  .hero-waves { position: relative; bottom: auto; margin-top: 36px; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 16px; }
  .countdown { justify-content: space-between; gap: 6px; }
  .countdown .unit { min-width: 0; flex: 1; }
  .countdown .num { font-size: 1.2rem; }

  .day-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -18px;
    padding-inline: 18px;
    /* overflow-x:auto forces overflow-y to clip too, which crops the active
       tab's box-shadow — pad the box out and pull it back with negative
       margin so the shadow has room without shifting surrounding layout. */
    padding-block: 16px 24px;
    margin-block: -16px 8px;
  }
  .day-tabs::-webkit-scrollbar { display: none; }
  .day-tab { flex-shrink: 0; }

  .food-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .food-filters::-webkit-scrollbar { display: none; }
  .filter-pill { flex-shrink: 0; }

  .day-card-head { padding: 18px 48px 18px 20px; flex-wrap: wrap; gap: 12px; }
  .day-card-title { flex: 1 1 100%; }
  .day-badge { width: 46px; height: 46px; }
  .day-card-meta {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
  }

  .ticket { padding: 20px 18px 18px; }
  .ticket-divider { margin: 20px -18px; }
  .ticket-bottom { gap: 5px; }
  .ticket-bottom .chip { font-size: 0.66rem; padding: 5px 9px; }
  .ticket-point .code { font-size: 1.3rem; }
  .day-card-inner { padding: 0 20px 22px; }

  .donut-wrap { flex-wrap: wrap; justify-content: center; text-align: left; }

  .converter-row { flex-wrap: wrap; }
  .converter input { width: 100%; }
  .converter .eq { display: none; }

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

@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
}
