/* Dineadda — landing page
 *
 * Colours are the iOS app's .colorset values, the dot grid is BrandBackdrop.grid, and the
 * display face is serif because every largeTitle in the app is `design: .serif`.
 *
 * Motion follows the Claude Design build: soft-out entrances, 60–90ms stagger, and one
 * featured moment — the open seat filling in the hero card.
 */

:root {
  --bg:        #F6F5F1;   /* BrandBackground */
  --surface:   #FFFFFF;   /* BrandSurface */
  --ink:       #15150F;   /* BrandPrimary */
  --ink-2:     #6B6A61;   /* BrandTextSecondary */
  --hairline:  #E4E2DA;   /* BrandHairline */
  --accent:    #C9F24C;   /* BrandAccent */
  --on-accent: #15150F;   /* BrandOnAccent */

  /* Lime on off-white is close to unreadable, so interactive text uses a darker green.
     In dark mode there is enough contrast for the accent itself. */
  --olive:     #66780F;

  --cobalt: #3B5BDB;
  --teal:   #0E8A80;
  --plum:   #7D4E9E;
  --rose:   #D6336C;

  --caution: #E0A030;   /* BrandCaution — the rule chips in the app mockups */

  --nav: rgba(246, 245, 241, .82);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shell: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0E0E0C;
    --surface:  #191917;
    --ink:      #F2F1EC;
    --ink-2:    #9C9A90;
    --hairline: #2A2A26;
    --accent:   #BCE83F;
    --olive:    #BCE83F;
    --caution:  #EDB44E;
    --nav: rgba(14, 14, 12, .82);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

p { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

/* The dot grid, fixed behind everything so it can drift on scroll. main.js nudges
   background-position; without JS it simply sits still, which is also correct. */
.grid-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--hairline) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}

main, footer, .nav { position: relative; z-index: 1; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: clamp(18px, 4vw, 28px); }
.narrow { max-width: 780px; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 10px 16px;
}
.skip:focus { left: 16px; }

/* Type */
h1, h2, h3, .venue, blockquote {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); margin-top: 22px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.18rem; }
.tight { max-width: 20ch; }

.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: .68rem; font-weight: 650;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
}

.lede { margin-top: 20px; font-size: 1.16rem; color: var(--ink-2); max-width: 34ch; }
.fine { margin-top: 20px; font-size: .86rem; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 14px; padding: 13px 22px;
  font-weight: 600;
  transition: transform .3s var(--ease), border-color .3s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--bg); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-pill { border-radius: 999px; padding: 9px 18px; }
.btn-dark { background: #15150F; color: #F2F1EC; border-color: #15150F; }
.btn-dark:hover { color: #F2F1EC; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 14px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 1.02rem; }
.mark svg { display: block; overflow: visible; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-left: auto; font-size: .94rem; color: var(--ink-2); }
.nav-links a:not(.btn) { color: inherit; }

/* An idle detail — the open seat in the wordmark, turning slowly. */
.mark-seat { transform-origin: 944px 512px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px); }
.hero-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* The table card */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .05);
}
.venue { font-size: 1.9rem; margin: 18px 0 4px; }
.where { color: var(--ink-2); font-size: .98rem; }
.rule-thin { height: 1px; background: var(--hairline); margin: 22px 0; }

.seats { display: flex; align-items: center; }
.seat {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--c);
  color: #fff; font-weight: 700; font-size: .76rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--surface);
}
/* Sits over the initials, so a photo that fails to load falls back to them. */
.seat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.seats > .seat + .seat, .seat-slot { margin-left: -11px; }
.seats > .seat { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: var(--in); }
@keyframes pop { from { opacity: 0; transform: translateY(7px) scale(.88); } to { opacity: 1; transform: none; } }

.seat-slot { position: relative; width: 46px; height: 46px; }
.seat-open {
  display: block;
  transform-origin: 50% 50%;
  animation: spin 34s linear infinite;
  transition: opacity .5s ease;
}
/* The fourth seat, which arrives once the card has been looked at for a moment. */
.seat-late {
  position: absolute; inset: 0;
  width: auto; height: auto;
  opacity: 0; transform: scale(.72);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease);
}
.card.filled .seat-open { opacity: 0; }
.card.filled .seat-late { opacity: 1; transform: scale(1); }

.seats-label { margin-top: 18px; font-size: .95rem; color: var(--ink-2); transition: opacity .4s ease; }

/* Bands */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band h2 { margin: 20px 0 48px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); gap: clamp(28px, 4vw, 48px); }
.rule { height: 2px; background: var(--ink); }
.step-head { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.step h3 { font-size: 1.32rem; }
.step p { margin-top: 12px; margin-bottom: 26px; color: var(--ink-2); }
.num {
  width: 30px; height: 30px; flex: none;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* The app, drawn rather than photographed — every value below is lifted from the
   SwiftUI: 20px cards, 16px controls, hairline borders, the same pills and chips.
   Swap these blocks for real device captures the moment the app ships. */
/* The steps are a stretch grid, so pushing the phone down lands all three on one
   baseline however many lines the copy above runs to. */
.step { display: flex; flex-direction: column; }
.phone {
  margin-top: auto;
  width: 100%; max-width: 248px;
  aspect-ratio: 9 / 17.4;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .07);
}
.screen {
  height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 27px;
  background: var(--bg);
  background-image: radial-gradient(circle, var(--hairline) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 9px 9px;
  padding: 16px 13px;
  font-size: 11px; line-height: 1.35;
}

.ph-day { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 9px; }
.ph-card + .ph-day { margin-top: 3px; }
.ph-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 15px;
  padding: 11px;
  margin-bottom: 10px;
  box-shadow: 0 5px 13px rgba(0, 0, 0, .055);
}
.ph-row { display: flex; align-items: center; gap: 5px; }
.ph-venue { font-weight: 650; color: var(--ink); font-size: 11.5px; }
.ph-row .ph-pill { margin-left: auto; }
.ph-row .ph-pill + .ph-pill { margin-left: 0; }
.ph-pill { font-size: 8px; font-weight: 700; padding: 2.5px 6px; border-radius: 999px; white-space: nowrap; }
.ph-size { border: 1px solid var(--hairline); color: var(--ink-2); }
.ph-accent { background: var(--accent); color: var(--on-accent); }
.ph-note { color: var(--ink-2); font-size: 9.5px; margin-top: 6px; }
.ph-chips { margin-top: 7px; }
.ph-chip { font-size: 8px; font-weight: 600; padding: 2px 6px; border-radius: 999px; }
/* The rule chip's wash is the tint at 14%, as in RuleChip.swift. */
.ph-teal { color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); }
.ph-amber { color: var(--caution); background: color-mix(in srgb, var(--caution) 14%, transparent); }
.ph-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.ph-faces { display: flex; }
.ph-faces img { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); }
.ph-faces img + img { margin-left: -7px; }
.ph-meta { color: var(--ink-2); font-size: 9px; }

.ph-eyebrow {
  display: inline-block;
  font-size: 7.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 3.5px 8px;
}
.ph-title { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.14; letter-spacing: -.01em; margin-top: 14px; }
.ph-sub { color: var(--ink-2); font-size: 9.5px; margin-top: 9px; }
.ph-field {
  margin-top: 14px; min-height: 76px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 9px;
}
.ph-field p { font-size: 9.5px; color: var(--ink); }
/* The app hangs the send bar off the bottom safe area, so it sits down there too. */
.ph-btn {
  margin-top: auto; padding: 10px;
  background: var(--ink); color: var(--bg);
  border-radius: 12px; text-align: center;
  font-size: 10px; font-weight: 650;
}

.screen-chat { display: flex; flex-direction: column; padding: 14px 11px; }
.ph-bar { display: flex; flex-direction: column; gap: 1px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
/* Messages stack up from the bottom, as a thread does. */
.ph-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding-top: 12px; }
.ph-msg { max-width: 82%; }
.ph-who { display: block; font-size: 8px; font-weight: 650; color: var(--ink-2); margin-bottom: 3px; }
.ph-bubble {
  font-size: 9.5px; padding: 7px 9px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px 12px 12px 3px;
}
.ph-mine { align-self: flex-end; }
.ph-mine .ph-bubble { background: var(--ink); color: var(--bg); border-color: var(--ink); border-radius: 12px 12px 3px 12px; }
.ph-compose {
  margin-top: 10px; padding: 8px 11px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ink-2); font-size: 9.5px;
}

.grid-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); gap: clamp(30px, 3.4vw, 44px); }
/* Seats, faces and tables — the app's own motifs. Never cutlery. */
.ico { width: 30px; height: 30px; display: block; color: var(--ink); margin-bottom: 16px; }
.cell .rule-thin { margin: 0 0 18px; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--ink-2); font-size: .98rem; }

/* Privacy and Terms. Generated from the markdown one directory up — regenerate
   rather than editing these pages by hand. */
.doc { padding-block: clamp(48px, 7vw, 88px); }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.doc h2 { font-size: 1.42rem; margin-top: 46px; }
.doc h3 { font-size: 1.06rem; margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); margin-top: 14px; }
.doc h1 + p { color: var(--ink); }
.doc strong { color: var(--ink); font-weight: 650; }
.doc ul { margin-top: 14px; padding-left: 22px; list-style: disc; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--hairline); }
.doc hr { border: 0; border-top: 1px solid var(--hairline); margin: 34px 0; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 5px; padding: 1px 5px;
  color: var(--ink);
}
/* The draft warning the markdown carries. Delete the banner with the placeholders,
   not before. */
.doc .note {
  /* Not the landing page's pull quote — this is a notice, at body size. */
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  margin-top: 26px; padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--caution);
  border-radius: 14px;
}
.doc .note p:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 650; border-bottom-width: 2px; }

.quote { background: var(--surface); border-block: 1px solid var(--hairline); text-align: center; }
.quote .shell { padding-block: clamp(64px, 8vw, 104px); }
blockquote { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.22; }
blockquote em { font-style: italic; }

.plain { display: flex; flex-direction: column; max-width: 760px; }
.plain > div { border-top: 1px solid var(--hairline); padding: 20px 0; }
.plain > div:last-child { border-bottom: 1px solid var(--hairline); }
.plain strong { font-weight: 650; }
.plain span { color: var(--ink-2); }

.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .shell { padding-block: clamp(60px, 7vw, 96px); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-sub { margin-top: 14px; font-size: 1.06rem; }
.cta-band > .shell > div { margin-top: 28px; }
.fine-dark { color: color-mix(in srgb, var(--on-accent) 66%, transparent); margin-top: 18px; }

/* Footer */
.foot { background: var(--bg); border-top: 1px solid var(--hairline); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; padding-block: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; color: var(--ink-2); }
.foot-links a { color: inherit; }
.foot-fine { margin-left: auto; font-size: .86rem; color: var(--ink-2); }

/* Scroll reveals.
 *
 * The rule is the odd one out: it wipes in on scaleX rather than rising, but shares the
 * same `.in` switch because revealing resets transform to none either way. */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

.rule[data-reveal] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.card[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
blockquote[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .foot-fine { margin-left: 0; flex-basis: 100%; }
}

/* Nothing moves for anybody who asked for that. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .rule[data-reveal] { transform: none; }
  .seat-late { opacity: 0; }
}
