/* attendy.live — the app's tokens, ported (Theme.swift, 2026-09-12).
   LIGHT ONLY. Every rule reads a variable, never a hex.
   2026-10-29: the homepage is two sections (hero + screenshot grid) built
   around the six App Store screenshots; the pinned phone frame, the crowd
   video and the waitlist are gone (git history has them: f4634b9). The
   nav / footer / legal rules below are shared with privacy, terms,
   support, auth/reset and 404. */
:root {
  --canvas: #FFFFFF;
  --card: #FFFFFF;
  --ink: #242424;
  --ink-soft: rgba(36,36,36,.75);
  --ink-dim: rgba(36,36,36,.55);
  --hairline: rgba(36,36,36,.10);
  --secondary: #807E7F;
  --on-ink: #FFFFFF;
  --gold: #C9A227;
  --on-gold: #242424;
  --mint-deep: #2F7A57;
  --lavender: #E5DCFF;
  --lavender-deep: #5D4A9C;
  /* The App Store screenshots' own colours (scripts/appstore/frame). */
  --forest: #173B2E;
  --cream: #F5F5F0;
  --r-card: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); overflow-x: hidden;
  /* Brand typeface is Geist (guidelines p.22); the system stack is the fallback. */
  font-family: Geist, -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--secondary); }

/* Nav (subpages) */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
/* The lockup is artwork (web/lockup.svg) painted through a mask, so it
   takes the element's colour. */
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.lockup { display: block; width: 100px; height: 28px; background: currentColor;
  -webkit-mask: url(/lockup.svg?v=20260919alt) no-repeat center / contain; mask: url(/lockup.svg?v=20260919alt) no-repeat center / contain; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--hairline); background: var(--ink); color: var(--on-ink);
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease; }
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--on-gold); border-color: transparent; outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.secondary { background: transparent; color: var(--ink); }

/* Apple's badge artwork (web/appstore-badge.svg, unmodified). Apple asks
   for at least 40px on screen and clear space of a quarter of its height. */
.store-badge { display: inline-block; border-radius: 9px; }
.store-badge img { height: 52px; width: auto; }
.store-badge:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 4px; }

/* /r/<code>: the invite card at the top (2026-10-28). site.js un-hides it. */
.invite-top { padding-top: 16px; }
.invite-card { padding: 18px 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--hairline);
  box-shadow: 0 8px 30px rgba(36,36,36,.08); max-width: 560px; margin: 0 auto; }
.invite { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: var(--lavender); color: var(--lavender-deep); font-size: 14px; font-weight: 600; }
.invite-by { margin: 0 0 8px; color: var(--ink); }
.invite-hint { margin: 0 0 16px; color: var(--ink-soft); }
.invite-copy { width: 100%; height: 48px; padding: 0 22px; }
.invite-copy.is-copied { background: var(--mint-deep); color: #fff; }
.invite-get-after { width: 100%; margin: 10px 0 0; }

/* Phones (2026-10-29, second pass): the plain 1320x2868 captures behind
   the 1.0.1 App Store set, shown in a generic CSS iPhone outline (no
   device artwork). Everything is in container units of .device, so every
   phone is the same shape at any size; set .device's width only. */
.device { container-type: inline-size; width: 100%; }
.phone { position: relative; padding: 3cqw; border-radius: 16cqw; background: #1D1D1F;
  box-shadow: inset 0 0 0 .6cqw #3A3A3C, 0 0 0 1px rgba(36,36,36,.08),
              0 6cqw 12cqw -4cqw rgba(23,59,46,.28), 0 2cqw 4cqw rgba(36,36,36,.10); }
/* Side buttons: one right, two left, barely proud of the edge. */
.phone::before, .phone::after { content: ""; position: absolute; width: 1cqw; border-radius: 1cqw; background: #2C2C2E; }
.phone::before { right: -.7cqw; top: 31%; height: 16%; }
.phone::after { left: -.7cqw; top: 22%; height: 9%; box-shadow: 0 13cqw 0 #2C2C2E; }
.screen { position: relative; overflow: hidden; border-radius: 13cqw; background: #F2F2F2; }
.screen img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; }
/* The island, over the capture's status bar (where the device's sits). */
.screen::after { content: ""; position: absolute; left: 50%; top: 2.6cqw; width: 29cqw; height: 8.4cqw;
  transform: translateX(-50%); border-radius: 99px; background: #000; }

/* SECTION 1 — hero. Mobile first: logo, headline, line, badge, then the
   first phone (no caption; the headline is the caption). */
.home-hero { padding: 28px 0 56px; }
.home-hero .wrap { display: grid; gap: 36px; justify-items: center; text-align: center; }
.home-hero .lockup { width: 128px; height: 36px; color: var(--forest); }
.home-hero h1 { margin: 22px 0 14px; font-size: clamp(34px, 9vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 700; color: var(--ink); text-wrap: balance; }
.home-hero .lead { margin: 0 0 16px; font-size: 16px; font-weight: 500; color: var(--ink-dim); }
.home-hero .device { width: min(70vw, 300px); }

/* SECTION 2 — every screen, App Store order, its caption above it. */
.home-tour { background: var(--cream); padding: 64px 0 72px; }
.home-tour h2 { margin: 0 0 36px; text-align: center; font-size: clamp(30px, 7vw, 48px); line-height: 1.1;
  letter-spacing: -0.03em; color: var(--forest); }
.home-tour .grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr;
  gap: 56px; width: min(300px, 100%); }
.home-tour li { display: flex; flex-direction: column; align-items: center; }
.home-tour h3 { margin: 0 0 20px; min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center;
  text-align: center; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; color: var(--forest);
  text-wrap: balance; }
.home-tour .device { width: min(70vw, 280px); }
.home-tour .cta { margin-top: 56px; text-align: center; }

@media (min-width: 720px) {
  .home-tour .grid { grid-template-columns: repeat(2, 1fr); gap: 0 48px; width: min(700px, 100%); }
  /* Each item spans a caption row and a phone row shared with its
     neighbour (subgrid), so a three-line caption can't push its phone
     lower than the one beside it. Captions sit on the phone. */
  .home-tour li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; justify-items: center;
    padding-bottom: 64px; }
  .home-tour li:nth-last-child(-n+2) { padding-bottom: 0; }
  .home-tour h3 { min-height: 0; align-self: end; }
}
@media (min-width: 900px) {
  /* Side by side: copy left, phone right, filling the first screen. */
  .home-hero { padding: 24px 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .home-hero .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start;
    text-align: left; gap: 64px; }
  .home-hero .lockup { width: 150px; height: 42px; }
  .home-hero h1 { margin-top: 36px; font-size: clamp(48px, 5.4vw, 72px); max-width: 11em; }
  .home-hero .lead { font-size: 17px; }
  /* Height-led: the phone is ~2.11x as tall as it is wide. */
  .home-hero .device { width: min(380px, 39vh); width: min(380px, 39svh); margin-right: 24px; }
  .home-tour { padding: 96px 0 104px; }
  .home-tour h2 { margin-bottom: 56px; }
  .home-tour h3 { font-size: 22px; }
}

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 36px 0 44px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--secondary); }
.footer .links a { text-decoration: none; }
.footer .links a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 48px 0 80px; max-width: 42em; }
.legal h1 { letter-spacing: -0.03em; font-size: 36px; margin: 0 0 8px; }
.legal .meta { color: var(--secondary); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
