/*
 * seatt.app
 *
 * The §9.2 tokens from `packages/app/src/design/tokens.ts`, transcribed. A
 * reservation card: cool paper stock, ink, a deep wine accent, times set in
 * monospace because times are data. Radius 4, not pills. No gradients and no
 * shadows — the app has none and the site should not look like a different
 * product.
 *
 * Typography is a system stack rather than a webfont. The app sets Space
 * Grotesk and IBM Plex; matching that here would mean either self-hosting
 * ~120KB of woff2 or calling Google Fonts, and the privacy policy is explicit
 * that visiting the site does not hand anyone to a third party. On the devices
 * that matter — anyone arriving from an App Store link — this resolves to SF,
 * which is a good face and already on the machine.
 */

:root {
  --paper: #e9ebe4;
  --card: #f4f5f1;
  --ink: #16181a;
  --ink-soft: #5a6066;
  --rule: #c8ccc2;
  --oxblood: #7a2233;
  --oxblood-wash: rgba(122, 34, 51, 0.07);

  --gutter: 20px;
  --measure: 34rem;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a;
    --card: #1e2126;
    --ink: #e9ebe4;
    --ink-soft: #9aa1a8;
    --rule: #333941;
    /* §9.2 — oxblood lifts on dark for contrast. */
    --oxblood: #b8465c;
    --oxblood-wash: rgba(184, 70, 92, 0.14);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--oxblood);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
  max-width: 68rem;
  width: 100%;
  margin: 0 auto;
}

.brand,
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--oxblood);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand span,
.foot-brand span {
  color: var(--ink);
}

/* The mark inherits `color` — see the `currentColor` note in build-icons.mjs. */
.mark {
  width: 1.35em;
  height: 1.35em;
  display: block;
  flex: none;
}

.bar nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.bar nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.bar nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.bar nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 500;
}

/* ── Main ────────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
}
main.doc {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}
main.wide {
  max-width: 68rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2em 0 0.5em;
  font-weight: 600;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-top: 0;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.15rem;
}
h4 {
  font-size: 1rem;
}

p,
ul,
ol {
  margin: 0 0 1.1em;
}
li {
  margin-bottom: 0.4em;
}
ul,
ol {
  padding-left: 1.3em;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5em 0;
}
hr.rule {
  margin: 56px 0;
}

blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--oxblood);
  color: var(--ink-soft);
}
blockquote p:last-child {
  margin-bottom: 0;
}

/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.scroll {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
thead th {
  background: var(--card);
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Home ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 32px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* The phone under the copy on narrow screens, at a size that does not push
     everything else off the first screenful. */
  .hero-shot {
    max-width: 17rem;
  }
}

/*
 * The device.
 *
 * Same construction as Halvy's marketing frames and its site: a dark body with
 * a small uniform inset, the screenshot rounded inside it, one hairline ring
 * and a wide soft shadow. No drawn notch or home indicator — the capture
 * already contains the real ones, and a hand-drawn bezel dates the day Apple
 * changes the hardware.
 *
 * The inner radius is deliberately smaller than the outer by roughly the inset,
 * which is what makes the two curves look concentric instead of stacked.
 */
.phone {
  background: #0a0c0b;
  border-radius: 2.4rem;
  padding: 0.5rem;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.45);
  line-height: 0;
}
@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
    outline: 1px solid rgba(255, 255, 255, 0.08);
    outline-offset: -1px;
  }
}
.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.9rem;
}

/* Sized so the whole device clears the fold on a laptop rather than running off
   the bottom, which reads as a cropped image instead of a deliberate one. */
.hero-shot {
  position: relative;
}
.hero-shot .phone {
  max-width: 19rem;
  margin-left: auto;
}

/*
 * The pop-out.
 *
 * One element lifted off the screen at a slight angle, the trick Halvy's
 * gallery concept documents as the thing that stops a marketing shot reading
 * as a flat product photo. Here it carries the single fact worth knowing
 * before anyone scrolls: the photo is withheld while you choose.
 */
.popout {
  position: absolute;
  left: -1.5rem;
  bottom: 2.5rem;
  width: 16.5rem;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.35);
}
.popout .quote {
  margin: 8px 0 12px;
  font-size: 1rem;
  line-height: 1.45;
}
@media (max-width: 56rem) {
  .popout {
    left: 0;
    bottom: 1.5rem;
    width: 13rem;
  }
}

/*
 * The tear.
 *
 * The app's `Perforation`: punched dots, not a dashed border, so it reads as
 * torn paper rather than as a dotted rule. It is the section divider here for
 * the same reason it is the card's left edge there.
 */
.tear {
  height: 3px;
  margin: 72px 0;
  background-image: radial-gradient(circle at center, var(--rule) 1.5px, transparent 1.7px);
  background-size: 10px 3px;
  background-repeat: repeat-x;
}
.tear-sm {
  margin: 0 0 10px;
}

/* Ticket field labels: mono, spaced, small. The app sets times in mono because
   times are data; these are the same idea applied to the page's own fields. */
.field,
.field-h,
.mono-fine,
.idx,
.specs dt {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--oxblood);
}
.field {
  display: block;
  margin-bottom: 6px;
}
.mono-fine {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  font-size: 0.66rem;
  display: block;
  /* Splits 2/2 rather than orphaning the last word on its own line. */
  text-wrap: balance;
}
.field-h {
  margin: 0 0 24px;
  font-weight: 500;
}

/*
 * "How it works" as one stub with three rows, not three cards.
 *
 * The perforated left edge is the same gradient as `.tear` turned vertical, so
 * the section reads as a single thing torn from a book rather than as a grid,
 * which is the layout every other app landing page already uses.
 */
.stub {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.stub li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 4px 8px;
  align-items: start;
  margin: 0;
  padding: 26px 28px 26px 0;
  /*
   * The punched edge, repeated down the left of every row.
   *
   * The tile is 3px wide, so the circle has to sit at its centre and the
   * inset goes on `background-position`. Putting the offset inside the
   * gradient (`circle at 14px`) places it outside the tile, and the whole
   * perforation silently renders nothing.
   */
  background-image: radial-gradient(circle at center, var(--rule) 1.5px, transparent 1.7px);
  background-size: 3px 10px;
  background-repeat: repeat-y;
  background-position: 13px 0;
}
.stub li + li {
  border-top: 1px solid var(--rule);
}
.stub .idx {
  padding-left: 28px;
  padding-top: 4px;
}
.stub h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.stub p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}
@media (max-width: 34rem) {
  .stub li {
    grid-template-columns: 1fr;
    padding: 22px 20px 22px 28px;
  }
  .stub .idx {
    padding-left: 0;
  }
}

/*
 * The reasons, as a spec sheet.
 *
 * A definition list with mono keys and a rule between rows, the way a menu or
 * a ticket back prints its terms. Four equal boxes in a grid would say these
 * are four features; a list says they are one set of rules.
 */
.specs dl {
  margin: 0;
  border-top: 1px solid var(--rule);
}
.specs dl > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 6px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.specs dt {
  margin: 0;
  padding-top: 5px;
}
.specs dd {
  margin: 0;
  max-width: 44rem;
}
@media (max-width: 40rem) {
  .specs dl > div {
    grid-template-columns: 1fr;
  }
}

/* Flex, not `auto-fit` grid: with a 68rem container `minmax(16rem, 1fr)` makes
   four columns, so two figures sit in the left half with a hole beside them. */
.strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
}
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 1 15rem;
}
.shot figcaption {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4rem);
  margin: 0 0 24px;
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 32px;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--oxblood-wash);
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-size: 0.92rem;
  font-weight: 500;
}
.btn-ghost {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.btn-ghost:hover {
  border-color: var(--ink);
}

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

.fine {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--card);
}
.foot-in {
  max-width: 68rem;
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.foot nav {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.foot nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot .fine {
  margin: 0;
}
