/**
 * SPY — the application pages: sign up, sign in, group dates, diagnostics.
 *
 * Loaded AFTER style.css, which owns the palette, the type scale and the
 * button/card/eyebrow primitives. This file adds forms, the app header, the
 * chat-bubble motif and the seating board.
 *
 * NOT LOADED BY profile.html. That page is frozen on profile-legacy.css at your
 * request, so nothing here reaches it — including anything that looks like a
 * shared fix. If you change a form control below and want profile to match, it
 * has to be changed there too, or profile has to be un-frozen.
 *
 * Colour rule, restated because this is where it gets broken: --neon is a
 * SURFACE, never a text colour. See the header of style.css.
 */

/* ── app header ──────────────────────────────────────────────────────
   A quiet paper bar with a hairline, matching header.site on the legal
   pages so the two halves of the site read as one. */

header.app {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Sticky over cream needs a fill, or text scrolls through it. */
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

header.app nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
}
header.app nav a,
header.app nav button.linkish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
}
header.app nav a:hover,
header.app nav button.linkish:hover {
  color: var(--ink);
  background: var(--cream-deep);
}
/* The current page gets the yellow — ink on neon, so it is legible and loud. */
header.app nav a.on {
  color: var(--ink);
  background: var(--neon);
  font-weight: 650;
}

main.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 110px;
}
main.app h2 { margin-top: 0; }

/* ── panels ──────────────────────────────────────────────────────────
   The form container. Flat white on cream with a hairline — no drop
   shadows anywhere in this design; depth comes from the paper contrast. */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 18px;
}
.panel > h2:first-child { margin-top: 0; margin-bottom: 20px; }

@media (max-width: 520px) {
  .panel { padding: 22px 18px; border-radius: var(--radius); }
}

/* ── forms ───────────────────────────────────────────────────────────
   Inputs are cream-filled rather than white so they read as wells inside a
   white panel. On cream pages they invert to white — handled below. */

.field { display: block; margin-bottom: 20px; }
.field > span {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 7px;
}
.field > small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-faint);
  margin-top: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 16.5px; /* >=16px or iOS Safari zooms the page on focus */
  color: var(--ink);
  background: var(--cream);
  /* --line-strong, not --line: this border is the ONLY thing that makes a
     field visible on this palette. See the note in style.css. */
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus {
  background: var(--card);
  border-color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

select {
  appearance: none;
  -webkit-appearance: none;
  /* Chevron drawn inline so there is no image request and no icon font. */
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 21px) 23px, calc(100% - 15px) 23px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .field { flex: 1 1 190px; }

/* ── status messages ─────────────────────────────────────────────────
   Left-barred rather than filled, so an error never turns into a slab of
   colour competing with the yellow. */

.status {
  margin: 18px 0;
  padding: 13px 16px;
  border-radius: 12px;
  border-left: 4px solid var(--line);
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: none;
}
.status.info  { border-left-color: var(--ink-faint); }
.status.ok    { border-left-color: var(--ok);  color: var(--ok);  background: #EEF6F1; }
.status.error { border-left-color: var(--bad); color: var(--bad); background: #FBEFEE; }
.status.warn  { border-left-color: var(--neon); background: #FBFAE8; color: var(--ink-soft); }
.status strong { color: inherit; }

/* ── the chat-bubble motif ───────────────────────────────────────────
   Inyo explains itself in an iMessage thread rather than in prose. Used on
   the landing page. Purely decorative: every bubble is real text in the
   markup, so it is readable and selectable rather than a screenshot. */

.thread {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0;
}
.thread .who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.thread .who .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--neon);
  border: 1px solid var(--neon-deep);
  flex: 0 0 auto;
}
.thread .who b { font-size: 15px; }
.thread .who span { font-size: 13px; color: var(--ink-faint); }

.bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 20px;
  font-size: 15.5px;
  line-height: 1.45;
  margin: 0;
}
/* Them: paper. */
.bubble.them {
  align-self: flex-start;
  background: var(--cream-deep);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
/* You: the yellow, with ink on top. */
.bubble.you {
  align-self: flex-end;
  background: var(--neon);
  color: var(--ink);
  border: 1px solid var(--neon-deep);
  border-bottom-right-radius: 6px;
}

/* ── landing sections ────────────────────────────────────────────────
   Wide, airy, banded. The landing page opts out of `main`'s 760px so the
   hero can breathe. */

.wide { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 76px 0 60px; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.band { background: var(--cream-deep); border-block: 1px solid var(--line); }
.band-inner { padding: 66px 0; }

.section { padding: 66px 0; }

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: start;
}

/* A big pull-quote line, the "But endless swiping was never the fix" beat. */
.statement {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}
/* Highlighter: a yellow swipe behind a few words. Sits BEHIND the text, so
   contrast is ink-on-neon at 17.5:1 rather than yellow type. */
.mark {
  background: linear-gradient(transparent 58%, var(--neon) 58%, var(--neon) 94%, transparent 94%);
  padding: 0 2px;
}

.steps { counter-reset: step; display: grid; gap: 2px; margin-top: 10px; }
.step {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  flex: 0 0 26px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; font-size: 15.5px; }

/* ── group dates ─────────────────────────────────────────────────────
   A seating is a card: venue, time, who's coming, one action. */

.seating {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 16px;
}
/* Your own reservation is the yellow-edged one. */
.seating.mine { border-color: var(--neon-deep); border-width: 2px; }

.seating h3 {
  font-size: 23px;
  letter-spacing: -0.022em;
  margin-bottom: 4px;
}
.seating .meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.seating .vibe {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: none;
}
.seating .when { font-weight: 650; color: var(--ink); }

.seating footer {
  /* Override the site footer rules — this is a card footer, not the page's. */
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  color: inherit;
  font-size: inherit;
}

/* Seats as pips. The count is written out in text beside them, because a row
   of dots is not information to a screen reader. */
.seats { display: flex; gap: 5px; align-items: center; }
.seats i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  display: block;
}
.seats i.taken { background: var(--neon); border-color: var(--neon-deep); }

.seat-count { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.needed { font-size: 14px; color: var(--ink-faint); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.badge.confirmed {
  background: var(--neon);
  border-color: var(--neon-deep);
  color: var(--ink);
}

.empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty p { margin-left: auto; margin-right: auto; }

/* ── misc ────────────────────────────────────────────────────────────*/

.muted { color: var(--ink-faint); font-size: 14.5px; }
.stack > * + * { margin-top: 14px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
