/* The app's palette, so a link out of a text message still feels like the
   same product. Values lifted from Theme.swift rather than eyeballed. */
:root {
  --cream: #F5F1E4;
  --card: #FBF9F2;
  --sage: #7D9C63;
  --sage-light: #CFE0C1;
  --fern: #35663F;
  --clay: #BF5B36;
  --clay-light: #F3D8C8;
  --ink: #232B1D;
  --ink-soft: #5E6754;
  --band: #EDE8D7;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  /* Emoji fonts named explicitly. Without them the rounded face at the front
     of the stack swallows the lookup and every emoji lands as a tofu box. */
  font: 16px/1.45 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
        "Segoe UI", system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

.bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px calc(14px + env(safe-area-inset-top));
  padding-top: calc(14px + env(safe-area-inset-top));
  position: sticky; top: 0; background: var(--cream); z-index: 5;
}
.mark { width: 24px; height: 24px; display: block; }
.wordmark { font-weight: 700; color: var(--fern); letter-spacing: -0.01em; }

.wrap { max-width: 560px; margin: 0 auto; padding: 4px 16px 40px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 3px 8px rgba(35, 43, 29, 0.06);
}

h1 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--ink-soft); font-weight: 600; }
p  { margin: 0 0 8px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.small { font-size: 12.5px; color: var(--ink-soft); }
.seats { color: var(--fern); font-weight: 600; font-size: 14px; }
.full  { color: var(--clay); font-weight: 600; font-size: 14px; }

/* Openings ---------------------------------------------------------------- */

.slot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(35, 43, 29, 0.08);
}
.slot:first-of-type { border-top: 0; }
.slot .when { font-weight: 700; font-size: 17px; }
.slot .meta { font-size: 13px; color: var(--ink-soft); }
.slot .spacer { flex: 1; }

.temp {
  font-size: 12px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; background: var(--sage-light); color: var(--ink);
  white-space: nowrap;
}

.btn, .btn:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--fern); color: var(--cream);
  border: 0; border-radius: 14px; padding: 13px 18px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  width: 100%;
}
.btn:active { background: #2b5334; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.small-btn { width: auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.btn.ghost { background: var(--sage-light); color: var(--ink); }
.btn.danger { background: var(--clay-light); color: var(--clay); }

.link {
  background: none; border: 0; padding: 6px 0; font: inherit;
  color: var(--fern); text-decoration: underline; cursor: pointer;
}
.link.danger { color: var(--clay); }

/* Form -------------------------------------------------------------------- */

label { display: block; font-size: 13px; color: var(--ink-soft); margin: 10px 0 4px; }
input {
  width: 100%; padding: 13px; font: inherit;
  border: 1px solid rgba(35, 43, 29, 0.14); border-radius: 12px;
  background: var(--cream); color: var(--ink);
}
input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.consent { font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; }
.error { color: var(--clay); font-size: 13.5px; margin-top: 8px; }
.ok { color: var(--fern); font-weight: 600; }

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

/* Loading ----------------------------------------------------------------- */

.skeleton .line {
  height: 12px; border-radius: 6px; background: rgba(35, 43, 29, 0.08);
  margin-bottom: 10px; animation: pulse 1.4s ease-in-out infinite;
}
.w60 { width: 60%; } .w40 { width: 40%; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* App prompt -------------------------------------------------------------- */

.prompt {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  background: var(--card); border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 24px rgba(35, 43, 29, 0.16);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: rise 0.28s ease-out;
}
.prompt-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.prompt strong { display: block; font-size: 18px; margin-bottom: 4px; }
.prompt p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
@keyframes rise { from { transform: translateY(100%); } }

/* Landing ----------------------------------------------------------------- */

/* One document serves both the marketing page and a shared tee time. Which one
   is decided before first paint, so neither ever flashes the other. */
#landing { display: none; }
:root:not([data-route="app"]) #landing { display: block; }
:root:not([data-route="app"]) #app { display: none; }

/* Full-width bands, alternating tone, one idea each. The band bleeds to the
   edges; its contents never do. */
.band { padding: 60px 24px; }
.band.alt { background: var(--band); }
.band.hero { padding-top: 34px; }
.band.closer { padding-bottom: 72px; }

/* Centred text block, for the bands with no screenshot. */
.mid { max-width: 34rem; margin: 0 auto; text-align: center; }

/* Copy beside art. One column on a phone, two side by side once there is room
   for both without squeezing either. */
.row {
  max-width: 62rem; margin: 0 auto;
  display: grid; gap: 34px; align-items: center; justify-items: center;
  text-align: center;
}
@media (min-width: 800px) {
  .band { padding: 84px 32px; }
  .row { grid-template-columns: 1fr auto; gap: 64px; text-align: left; }
  .row .copy { justify-self: start; }
  /* Alternates which side the phone sits on, so the page does not read as a
     column of identical rows. */
  .row.flip { grid-template-columns: auto 1fr; }
  .row.flip .art { order: -1; }
  .row .say { margin-left: 0; margin-right: 0; }
}

.art img {
  display: block; width: 100%; max-width: 270px; height: auto;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(35, 43, 29, 0.22);
}
@media (min-width: 800px) { .art img { max-width: 300px; } }

/* The App Store voice: heavy, tight, two beats. The problem, then the fix. */
.punch {
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--ink);
  /* Caps, to match the store artwork this copy came from. */
  text-transform: uppercase;
  text-wrap: balance;
}
.punch.xl { font-size: clamp(34px, 8vw, 56px); }
.punch em { font-style: normal; color: var(--fern); }

.say {
  color: var(--ink-soft);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 auto;
  text-wrap: pretty;
}
.mid .appstore, .hero .appstore { margin-top: 26px; }
.fine { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }

/* Apple's badge shape and proportions, drawn inline so the page stays
   self-contained and crisp at any size. Fixed dimensions: an SVG with only a
   viewBox stretches to whatever box it lands in, which is how it once filled
   an entire desktop screen. */
.appstore { display: inline-block; line-height: 0; }
.appstore svg { display: block; width: 162px; height: 54px; }
.appstore:active { opacity: 0.8; }

.foot {
  text-align: center; padding: 26px 16px 34px; font-size: 12.5px; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
