/*
 * Grab a Seat — marketing site
 *
 * TYPEFACES ARE THE SYSTEM'S, ON PURPOSE, AND IT IS NOT A SHORTCUT.
 * This site's pitch includes "no tracking, no analytics, no third-party
 * anything". Loading a webfont from Google would make that sentence false on
 * the page that says it: every visitor's browser would announce itself to a
 * third party before the claim finished rendering. The audience is also, by
 * definition, iPhone owners. `ui-rounded` resolves to SF Pro Rounded and
 * `ui-serif` to New York on Apple platforms, so the site is set in the same
 * faces as the phone it is describing, loads with zero network requests, and
 * degrades to a sensible stack everywhere else.
 *
 * THE THREE TYPE ROLES CARRY MEANING.
 *   --font-display (rounded)  the product speaking: headlines, navigation
 *   --font-body    (sans)     ordinary prose
 *   --font-voice   (serif)    the APP speaking to its user, quoted verbatim
 * The serif appears only around real product copy. It is how a reader can tell
 * the difference between marketing and the thing itself.
 *
 * COLOUR COMES FROM THE APP, NOT FROM A MOODBOARD. --cream is the actual iOS
 * splash background (app.config.js), --blue and --blue-text are the app's
 * documented fill/text split (a single brand blue cannot do both jobs and
 * clear WCAG AA in both directions; see constants/Colors.ts), and --teal is
 * lifted from the relationship-tier palette.
 */

:root {
  --cream: #f5ede4;
  --cream-lift: #fbf6f0;
  --cream-sink: #ede2d5;
  --ink: #1a1a1a;
  --ink-soft: #5a5248;
  --blue: #1d4ed8;
  --blue-deep: #1e40af;
  --blue-text: #1e40af;
  --teal: #0f766e;
  --teal-text: #115e59;
  --rule: #e3d8ca;
  --shadow: 0 1px 2px rgba(60, 44, 28, 0.06), 0 8px 24px -12px rgba(60, 44, 28, 0.18);

  --font-display:
    ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-voice: ui-serif, 'New York', Iowan Old Style, Georgia, serif;

  --measure: 34rem;
  --page: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Warm near-black rather than neutral: the brand ground is cream, and a
       cold grey dark mode reads as a different product. */
    --cream: #17140f;
    --cream-lift: #211c16;
    --cream-sink: #100e0a;
    --ink: #f2ede6;
    --ink-soft: #b3a898;
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --blue-text: #93b4fb;
    --teal: #14b8a6;
    --teal-text: #5eead4;
    --rule: #322a21;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-text);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.06em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--cream-lift);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- masthead ---------- */

.masthead {
  padding: 1.5rem 0;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .seat {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--teal-text);
  text-decoration-thickness: 0.12em;
}

/* ---------- type scale ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin: 0 0 0.75rem;
}

/* ---------- sections ---------- */

.band {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--rule);
}

.band--sink {
  background: var(--cream-sink);
}

.band__head {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.band__head p {
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 .quiet {
  color: var(--ink-soft);
}

.hero .lede {
  margin-top: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 120ms ease;
}

.btn:hover {
  background: var(--blue-deep);
}

.cta-note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- the signature: circles of closeness ---------- */

.circles {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 27rem;
}

.circles svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.circles .ring {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.25;
}

.circles .ring--near {
  stroke: var(--teal);
  stroke-opacity: 0.55;
}

.circles .seat-dot {
  fill: var(--cream-lift);
  stroke: var(--ink-soft);
  stroke-width: 1.25;
}

.circles .seat-dot--near {
  fill: var(--teal);
  stroke: none;
}

.circles .seat-dot--mid {
  fill: var(--blue);
  stroke: none;
  opacity: 0.85;
}

.circles .you {
  fill: var(--ink);
}

.circles .you-label,
.circles .ring-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink-soft);
}

.circles .you-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.circles figcaption {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 24rem;
  margin-inline: auto;
}

/* The page-load sequence: rings settle, then the seats arrive one ring at a
   time, outermost first, so the eye ends on the people closest to you. */
@media (prefers-reduced-motion: no-preference) {
  .circles .ring {
    animation: ring-in 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .circles .ring--far {
    animation-delay: 60ms;
  }

  .circles .ring--mid {
    animation-delay: 140ms;
  }

  .circles .ring--near {
    animation-delay: 220ms;
  }

  .circles .seat-dot {
    animation: seat-in 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
    transform-box: fill-box;
    transform-origin: center;
  }

  .circles .seat-dot--far {
    animation-delay: 340ms;
  }

  .circles .seat-dot--mid {
    animation-delay: 480ms;
  }

  .circles .seat-dot--near {
    animation-delay: 620ms;
  }
}

@keyframes ring-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes seat-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- the voice comparison ---------- */

.voice-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .voice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.voice {
  background: var(--cream-lift);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.voice--them {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.voice__label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.voice--us .voice__label {
  color: var(--teal-text);
}

.voice__line {
  font-family: var(--font-voice);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.voice--them .voice__line {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--ink-soft);
  text-decoration-thickness: 0.06em;
}

.voice__line:last-child {
  margin-bottom: 0;
}

.silence {
  margin: 2.5rem auto 0;
  max-width: var(--measure);
  text-align: center;
  font-family: var(--font-voice);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.5;
}

.silence strong {
  font-weight: 600;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.1em;
}

/* ---------- feature list ---------- */

.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 44rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 62rem) {
  .features--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background: var(--cream-lift);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.9875rem;
}

.feature__mark {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.9rem;
  color: var(--teal-text);
}

/* ---------- prose pages (faq, about) ---------- */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.prose h2:first-of-type {
  margin-top: 2rem;
}

.prose p {
  color: var(--ink-soft);
}

.prose ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer a {
  color: var(--ink-soft);
}

.footer a:hover {
  color: var(--ink);
}

.footer__legal {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}
