/* Public home page. Mobile first; widens into a full-bleed map hero on desktop.
   Tokens and fonts come from style.css. */

.home { --gut: max(5vw, 16px, env(safe-area-inset-left, 0px)); font-size: 16px; line-height: 1.55; overflow-x: clip; height: auto; }
.home * { min-width: 0; }
.home p { margin: 0; }
.home h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; font-size: 21px; }
.home h1, .home h2 { line-height: 1.05; }
.h-in { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); width: 100%; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 22px; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

/* Hero: illustrated map, pitch panel, sample postcard */
.hero { position: relative; display: flex; flex-direction: column; background: var(--ground); }
.hero-map { position: relative; order: 2; height: 58svh; min-height: 360px; margin-top: 18px; background: #E6EDDF; }
.hero-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.h-nav { position: relative; z-index: 2; padding-top: 12px; }
.h-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.h-links { display: flex; align-items: center; gap: 4px; }
.h-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 15px; text-decoration: none; }
.h-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.h-panel { background: var(--pine); color: var(--ground); border-radius: 24px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.h-panel h1 { font-size: clamp(38px, 6vw, 64px); }
.h-panel p { font-size: 17px; color: #CFDDD4; max-width: 34ch; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.h-sub { color: #CFDDD4; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.h-panel .h-note { font-size: 13px; color: #A9BDB1; }
.postcard { position: absolute; left: var(--gut); bottom: 18px; z-index: 2; background: #fff; border-radius: 20px; padding: 14px; width: min(330px, calc(100% - 32px)); box-shadow: 0 10px 30px rgba(24,59,47,.16); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.pc-name { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.pc-meta { font-size: 13px; color: var(--muted); }
.pc-note { grid-column: 1 / -1; font-size: 15px; margin-top: 6px; }
.pc-rate { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-top: 4px; }
.pc-tag { margin-left: auto; font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .hide-sm { display: none !important; } }
@media (min-width: 900px) {
  .hero { min-height: min(100svh, 900px); background: #E6EDDF; }
  .hero-map { position: absolute; inset: 0; height: auto; margin: 0; order: 0; }
  .h-bar { background: rgba(251,250,247,.92); border-radius: 18px; padding: 6px 6px 6px 16px; }
  .h-stage { position: relative; flex: 1; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); align-items: end; padding-bottom: 48px; }
  .h-panel { padding: 36px 34px; }
  .postcard { left: 50%; top: 2%; bottom: auto; }
}

/* The campfire meter */
.h-night { background: var(--pine); color: var(--ground); padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.fire-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fire-copy h2 { font-size: clamp(38px, 6vw, 72px); }
.fire-copy p { font-size: 17px; color: #CFDDD4; max-width: 34ch; margin-top: 14px; }
.fire-scene { position: relative; height: 300px; border-radius: 26px; overflow: hidden; }
.fire-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fire-scene .flame { transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s; transform-origin: 300px 410px; }
.fire-scene .glow { transition: opacity .5s; }
@media (prefers-reduced-motion: reduce) { .fire-scene .flame, .fire-scene .glow { transition: none; } }
.fire-control { background: var(--pine-2); border-radius: 22px; padding: 14px; }
.fire-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fire-meter button { min-height: 76px; border-radius: 14px; border: 1px solid #3A6A57; background: transparent; color: var(--ground); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; font: 600 12px/1.15 Inter, sans-serif; text-align: center; }
.fire-meter button[aria-pressed="true"] { background: var(--ground); color: var(--pine); border-color: var(--ground); }
.fire-quip { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; padding: 0 4px; }
.fire-quip b { font-family: var(--display); font-size: 22px; color: var(--flame); }
.fire-quip span { color: #CFDDD4; font-size: 15px; text-align: right; }
@media (max-width: 600px) { .fire-quip { flex-direction: column; gap: 2px; } .fire-quip span { text-align: left; } }
@media (min-width: 900px) {
  .fire-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "copy scene" "control control"; column-gap: 48px; row-gap: 22px; align-items: center; }
  .fire-copy { grid-area: copy; }
  .fire-scene { grid-area: scene; height: 440px; }
  .fire-control { grid-area: control; }
}

/* Bands */
.h-band { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.h-band h2 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; }
.h-sand { background: var(--sand); }
.h-pine { background: var(--pine); color: var(--ground); }

.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--sand); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.step p, .tabcard p { color: var(--muted); font-size: 15px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; justify-content: center; }
.mini-place { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.mini-place.on { border: 2px solid var(--pine); }
.mini-place small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.mini-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.mini-site { font-family: var(--display); font-weight: 800; font-size: 34px; border: 2px solid var(--pine); border-radius: 14px; padding: 4px 14px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #D5D0C4; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.mini-chips span.on { background: var(--pine); border-color: var(--pine); color: #fff; }

.tabcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
@media (min-width: 720px) { .tabcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tabcard { background: #fff; border-radius: 0 20px 20px 20px; padding: 20px; position: relative; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tab { position: absolute; top: -26px; left: 0; height: 26px; padding: 4px 14px 0; border-radius: 12px 12px 0 0; background: #fff; font-size: 13px; font-weight: 600; }
.private { background: var(--ember-tint); border-radius: 12px; padding: 10px 12px; font-size: 14px; align-self: stretch; }
.private small { display: block; font-size: 13px; color: #B4491A; font-weight: 600; }
.soon { font-size: 13px; font-weight: 600; background: #FBE7A6; border-radius: 999px; padding: 4px 12px; }

.share { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .share { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.share p { color: #CFDDD4; font-size: 17px; max-width: 46ch; margin-top: 14px; }
.safe { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.safe li { padding-left: 26px; position: relative; color: #E8EFE9; }
.safe li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50% 50% 50% 3px; transform: rotate(-45deg); background: var(--flame); }
.trip-card { background: var(--ground); color: var(--pine); border-radius: 26px; overflow: hidden; }
.trip-map { position: relative; height: 230px; background: #EAF0E4; }
.trip-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trip-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.trip-url, .trip-meta { font-size: 13px; color: var(--muted); }
.trip-body h3 { font-size: 26px; }
.trip-row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #ECE8DE; padding-top: 10px; margin-top: 8px; font-size: 14px; }

.close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.h-foot { align-items: center; padding-top: 8px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.h-foot nav { display: flex; gap: 18px; }
.h-foot a { min-height: 44px; display: inline-flex; align-items: center; }
