/*
  nameetingsnearme.app, the apex site.

  Palette and type come from the app itself so the two look like one thing when
  someone crosses over to app.nameetingsnearme.app. Tokens are defined on bare
  :root as the full light palette and only redefined under dark, so no colour
  can resolve to nothing.
*/

:root {
  --bg: oklch(0.985 0.002 250);
  --surface: oklch(1 0 0);
  --border: oklch(0.91 0.005 250);
  --text: oklch(0.21 0.015 260);
  --text-muted: oklch(0.5 0.015 260);
  --text-faint: oklch(0.62 0.012 260);
  --accent: oklch(0.52 0.17 268);
  --accent-text: oklch(0.98 0 0);
  --accent-soft: oklch(0.95 0.03 268);
  --shadow: 0 1px 2px oklch(0.21 0.015 260 / 0.06), 0 1px 3px oklch(0.21 0.015 260 / 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.17 0.012 265);
    --surface: oklch(0.21 0.014 265);
    --border: oklch(0.29 0.014 265);
    --text: oklch(0.96 0.004 265);
    --text-muted: oklch(0.72 0.012 265);
    --text-faint: oklch(0.6 0.012 265);
    --accent: oklch(0.72 0.15 268);
    --accent-text: oklch(0.17 0.012 265);
    --accent-soft: oklch(0.3 0.05 268);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 1px 3px oklch(0 0 0 / 0.2);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------------------------------------------------------------- header */

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

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

.mark img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  flex: none;
}

nav.site {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

nav.site a {
  color: var(--text-muted);
  text-decoration: none;
}

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

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

.hero {
  padding: 4rem 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p.lead {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

/* ----------------------------------------------------------------- shots */

/*
  Real captures from the phone, not mockups in a device frame. They are the
  only thing on the page that shows what the app actually looks like, so they
  come before the feature list rather than after it.
*/
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px oklch(0.21 0.015 260 / 0.13), 0 2px 8px oklch(0.21 0.015 260 / 0.07);
}

@media (prefers-color-scheme: dark) {
  .shots img {
    box-shadow: 0 10px 30px oklch(0 0 0 / 0.45), 0 2px 8px oklch(0 0 0 / 0.3);
  }
}

.shots figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/*
  Three phones side by side are unreadable on a phone. Below the breakpoint the
  strip scrolls sideways at a usable width instead, bleeding to both edges so
  it reads as swipeable rather than clipped.
*/
@media (max-width: 40rem) {
  .shots {
    grid-template-columns: repeat(3, 62%);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .shots figure {
    scroll-snap-align: center;
  }
}

/* --------------------------------------------------------------- content */

main {
  padding-bottom: 4rem;
}

section + section {
  margin-top: 3rem;
}

h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
ol {
  color: var(--text-muted);
}

p + p,
p + ul,
ul + p {
  margin-top: 0.85rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

strong {
  color: var(--text);
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
}

.features li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.features b {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.6rem 0.6rem 0;
}

.note p {
  color: var(--text);
  font-size: 0.95rem;
}

.updated {
  color: var(--text-faint);
  font-size: 0.9rem;
}

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

footer.site p + p {
  margin-top: 0.6rem;
}

footer.site a {
  color: var(--text-muted);
}
