/* EVNTS marketing site — the app's own tokens, in CSS.
   Sources: mobile/lib/core/theme/tokens/ (colour, radius, spacing) and
   docs/ui-migration/design-tokens.md §type (sizes, weights, tracking,
   line height 1.193). The brand is ink (decision D1): the primary call to
   action is an ink pill on paper, and gold is the one accent, used once.
   No script on this page — the host's CSP is script-src 'self' and the
   page needs none. */

@font-face {
  font-family: "EVNTS Sans";
  src: url("assets/fonts/EVNTSSans-VF.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --canvas: #f2f2f7;
  --elevated: #e9e9ef;
  --card-dark: #1c1c1e;
  --elevated-dark: #2c2c2e;
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-secondary-dark: rgba(255, 255, 255, 0.6);
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-dark: rgba(255, 255, 255, 0.08);
  --gold: #c9a24a;
  --amber: #ff9f0a;
  --r-card: 16px;
  --r-sheet: 24px;
  --r-pill: 999px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s24: 96px;
  --reading: 700px;
  --wide: 1100px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s4)); }
body {
  margin: 0;
  font-family: "EVNTS Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.193;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(100% - 2 * var(--s6), var(--wide)); margin-inline: auto; }
.reading { max-width: var(--reading); }

/* Type scale — design-tokens.md §type, sizes scaled up for a desktop hero. */
.display { font-size: clamp(34px, 6vw, 64px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.heading { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.body-em { font-size: 16px; font-weight: 475; }
.caption { font-size: 13px; font-weight: 300; color: var(--text-secondary); }
.overline { font-size: 12px; font-weight: 475; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.lede { font-size: 18px; font-weight: 300; line-height: 1.4; color: var(--text-secondary); }

/* Buttons — the app's filled pill (surface.inverse) and its outlined
   sibling; 48 lp tall, the reference's control height. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 48px; padding: 0 var(--s6); border-radius: var(--r-pill);
  font-size: 16px; font-weight: 475; white-space: nowrap;
  border: 1px solid transparent; transition: transform 120ms ease, background 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #262626; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--canvas); }
.btn-sm { height: 40px; padding: 0 var(--s5); font-size: 15px; }
.btn svg { width: 20px; height: 20px; }
.btn-store { min-width: 200px; }
.btn-store .lines { display: grid; line-height: 1.1; text-align: left; }
.btn-store .lines small { font-size: 11px; font-weight: 300; letter-spacing: 0.02em; opacity: 0.8; }

/* Header — sticky, frosted like the app's toolbar cluster. */
.nav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.brand { display: flex; align-items: center; gap: var(--s3); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 28px; }
.nav-links { display: flex; gap: var(--s8); font-size: 15px; font-weight: 475; color: var(--text-secondary); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Hero */
.hero { padding-block: var(--s16) var(--s12); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: var(--s12); }
.hero-copy { display: grid; gap: var(--s6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-note { display: flex; align-items: center; gap: var(--s2); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) {
  .hero { padding-block: var(--s10); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-device { order: -1; }
}

/* The phone — a device frame drawn in CSS, with the app's Home inside it:
   the Upcoming title, the avatar cluster, the invitation hero card
   (EventHeroCard.swift: 24 lp radius, scrim over the poster, countdown,
   title 34/600, date line) and the icon-only floating tab bar (DV-14). */
.hero-device { display: flex; justify-content: center; }
.phone {
  width: 320px; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px;
  background: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #2c2c2e;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%); background: var(--ink); border-radius: var(--r-pill); z-index: 2; }
.screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--ink); color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; padding: 56px 14px 18px; gap: 14px; position: relative;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; }
.screen-top .t { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.screen-top .t svg { width: 12px; height: 12px; opacity: 0.8; }
.cluster { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--card-dark); }
.cluster .avatar { width: 28px; height: 28px; border-radius: 50%; background: #6b5cff; font-size: 12px; font-weight: 475; display: grid; place-items: center; }
.cluster svg { width: 18px; height: 18px; }
.event-card {
  border-radius: 24px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(160deg, #e8783c 0%, #b7522a 45%, #4a2417 100%);
}
.event-card .meta { display: grid; gap: 6px; }
.event-card .count { font-size: 12px; letter-spacing: 0.06em; opacity: 0.9; }
.event-card .name { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.event-card .when { font-size: 13px; opacity: 0.9; }
.tabbar { margin: 0 6px; height: 56px; border-radius: var(--r-pill); background: var(--card-dark); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; }
.tabbar span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, 0.55); }
.tabbar span.on { background: var(--elevated-dark); color: var(--paper); }
.tabbar svg { width: 20px; height: 20px; }
@media (max-width: 400px) { .phone { width: 280px; } }

/* Sections */
.section { padding-block: var(--s24); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s12); }
.section-alt { background: var(--canvas); }

/* Features — the app's card surface on the canvas, hairline-stroked. */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.feature {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: var(--s6); display: grid; gap: var(--s3); align-content: start;
}
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--text-secondary); line-height: 1.4; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.plan { border: 1px solid var(--hairline); border-radius: var(--r-sheet); padding: var(--s8); display: grid; gap: var(--s4); background: var(--paper); }
.plan-dark { background: var(--ink); color: var(--paper); border-color: transparent; }
.plan-dark p, .plan-dark .caption { color: var(--text-secondary-dark); }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.plan .price small { font-size: 15px; font-weight: 300; letter-spacing: 0; color: var(--text-secondary); }
.plan-dark .price small { color: var(--text-secondary-dark); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.plan li { display: flex; gap: var(--s2); align-items: flex-start; line-height: 1.35; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.plan .btn { justify-self: start; }
.plan-dark .btn-primary { background: var(--paper); color: var(--ink); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Social proof — three cards; the stars are the app's gold accent. */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.quote { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s4); }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.4; }
.quote .who { display: flex; align-items: center; gap: var(--s3); }
.quote .who .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--elevated); display: grid; place-items: center; font-weight: 475; font-size: 13px; }
.quote .who .name { font-weight: 475; }
.trust { margin-top: var(--s12); display: grid; gap: var(--s4); }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.trust-row span { padding: 10px var(--s4); border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--paper); font-weight: 475; font-size: 14px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Get the app */
.band { background: var(--ink); color: var(--paper); border-radius: var(--r-sheet); padding: var(--s12); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s8); }
.band p { color: var(--text-secondary-dark); line-height: 1.4; }
.band .btn-primary { background: var(--paper); color: var(--ink); }
.band .hero-ctas { flex-direction: column; align-items: stretch; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: var(--s8); } }

/* Footer — the app's dark card surface. */
.footer { background: var(--card-dark); color: var(--paper); padding-block: var(--s16) var(--s8); margin-top: var(--s24); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s8); }
.footer .brand { color: var(--paper); }
.footer .about { color: var(--text-secondary-dark); line-height: 1.4; margin-top: var(--s4); max-width: 320px; }
.footer h3 { font-size: 13px; font-weight: 475; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary-dark); margin-bottom: var(--s4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.footer li a { color: var(--paper); opacity: 0.85; }
.footer li a:hover { opacity: 1; }
.footer-bottom { margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--hairline-dark); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; color: var(--text-secondary-dark); font-size: 13px; }
.social { display: flex; gap: var(--s2); }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--elevated-dark); color: var(--paper); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Photographs — the five licensed Unsplash frames the app's welcome carousel
   ships (assets/photos/CREDITS.txt), under the invitation card's own scrim. */
.event-card-photo {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.85) 100%),
    url("assets/photos/guests.jpg");
  background-size: cover; background-position: center;
}
.quote-photo {
  color: var(--paper); border-color: transparent; min-height: 360px; align-content: end;
  background-size: cover; background-position: center;
  position: relative; isolation: isolate;
}
.quote-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.85) 100%);
}
.quote-photo .caption { color: var(--text-secondary-dark); }
.quote-photo .who .avatar { background: rgba(255, 255, 255, 0.18); color: var(--paper); }

/* Inner pages — one reading column on the canvas, the app's list and card
   surfaces for definitions, steps and the changelog. */
.page { padding-block: var(--s16) var(--s24); }
.page-head { display: grid; gap: var(--s3); margin-bottom: var(--s12); max-width: var(--reading); }
.page-title { font-size: clamp(34px, 5vw, 52px); }
.prose { display: grid; gap: var(--s4); font-size: 17px; line-height: 1.45; }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-top: var(--s6); }
.prose h3 { font-size: 17px; font-weight: 475; margin-top: var(--s2); }
.prose p, .prose li { color: rgba(0, 0, 0, 0.8); }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 0.15em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s2); }
.prose code { font-family: "EVNTS Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--canvas); padding: 0.1em 0.35em; border-radius: 6px; }
.defs { margin: 0; display: grid; gap: var(--s3); }
.defs > div { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s4) var(--s5); display: grid; gap: var(--s1); }
.defs dt { font-weight: 475; }
.defs dd { margin: 0; color: var(--text-secondary); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s6); }
.timeline li { display: grid; gap: var(--s2); padding-left: var(--s6); border-left: 2px solid var(--hairline); }
.timeline time { font-size: 13px; font-weight: 475; letter-spacing: 0.02em; color: var(--text-secondary); }
.timeline h3 { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--s3); }
.steps li { counter-increment: step; position: relative; padding: var(--s4) var(--s5) var(--s4) 56px; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.steps li::before { content: counter(step); position: absolute; left: var(--s4); top: var(--s4); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 475; }
details { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: var(--s3) var(--s5); background: var(--paper); }
details + details { margin-top: var(--s2); }
summary { cursor: pointer; font-weight: 475; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 20px; color: var(--text-secondary); }
details[open] summary::after { content: "–"; }
details p { margin-top: var(--s3); }
.press-marks { display: flex; flex-wrap: wrap; gap: var(--s4); }
.press-marks figure { margin: 0; display: grid; gap: var(--s2); }
.press-mark { width: 160px; height: 160px; border-radius: var(--r-card); display: grid; place-items: center; border: 1px solid var(--hairline); }
.press-mark svg { width: 56px; height: 72px; }
.press-mark-light { background: var(--paper); color: var(--ink); }
.press-mark-dark { background: var(--ink); color: var(--paper); }
.press-marks figcaption { font-size: 13px; color: var(--text-secondary); }
main[data-page]:not([data-page="index"]) { background: var(--paper); }
