/* ==========================================================================
   Stubs — marketing site
   Hand-written CSS. No build step, no external requests.
   ========================================================================== */

/* ==========================================================================
   #1 DESIGN TOKENS
   --------------------------------------------------------------------------
   PORTABLE BLOCK — lift this :root wholesale into the future web app.
   Values are carried over from the iOS app (LISTD/Utils/Constants.swift,
   LISTD/StatListRow.swift). Do not fork them here; change them in both
   places or not at all.
   ========================================================================== */

:root {
  /* --- Colour ---------------------------------------------------------- */
  --bg:            #121212;  /* AppColors.screenBackground */
  --surface:       #1e1e1e;  /* card fill, StatListRow                     */
  --surface-2:     #191919;  /* the ticket stub, one step under --surface  */
  --text:          #fefdff;  /* 17.4:1 on --bg                             */
  --muted:         #959595;  /*  6.3:1 on --bg                             */
  --accent:        #b4ff13;  /* AppColors.accentGreen — CTA only           */
  --accent-ink:    #121212;  /* 15.5:1 on --accent                         */
  --line:          rgba(254, 253, 255, 0.10);
  --line-strong:   rgba(254, 253, 255, 0.22);

  /* --- Type ------------------------------------------------------------ */
  --font-display: "Agenor Neue", "Poppins", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;

  --text-2xs:  0.6875rem;  /* 11px */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.0625rem;  /* 17px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.75rem;    /* 28px */
  --text-3xl:  2.125rem;   /* 34px */
  --text-display: clamp(2.375rem, 1.6rem + 3.3vw, 3.5rem);

  --leading-tight: 1.06;
  --leading-snug:  1.3;
  --leading-body:  1.55;
  --leading-loose: 1.75;

  --tracking-tight: -0.02em;
  --tracking-wide:   0.14em;

  /* --- Space (4px grid) ------------------------------------------------ */
  --space-2xs: 0.25rem;  /*  4px */
  --space-xs:  0.5rem;   /*  8px */
  --space-s:   0.75rem;  /* 12px */
  --space-m:   1rem;     /* 16px */
  --space-l:   1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* --- Radius / geometry ----------------------------------------------- */
  --radius-s:  8px;
  --radius-m:  14px;
  --radius-l:  20px;
  --radius-xl: 26px;
  --notch:     22px;  /* ticket perforation cutout diameter */

  /* --- Measure --------------------------------------------------------- */
  --measure:      68ch;
  --measure-lede: 46ch;
  --page-max:     1120px;
}

/* ==========================================================================
   #2 RESET / BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

/* Visible focus everywhere. Never removed, only replaced. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   #3 WEBFONT — display face only, self-hosted, subsetted
   ========================================================================== */

@font-face {
  font-family: "Agenor Neue";
  src: url("assets/AgenorNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   #4 LAYOUT PRIMITIVES
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-l);
}

@media (min-width: 48rem) {
  .shell { padding-inline: var(--space-xl); }
}

/* ==========================================================================
   #5 HEADER — wordmark only
   ========================================================================== */

.masthead {
  padding-block: var(--space-l);
}

/* The official logotype, not live text. Height is the control dimension;
   width: auto keeps the intrinsic aspect ratio, so there is no CLS. */
.wordmark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  width: auto;
  height: 24px;
}

/* ==========================================================================
   #6 HERO
   ========================================================================== */

.hero {
  padding-block: var(--space-xl) var(--space-3xl);
}

.hero__grid {
  display: grid;
  /* minmax(0, 1fr) not 1fr: an `auto` minimum lets the 445px-wide
     screenshots set the track's min-content size and overflow the page. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
  text-wrap: balance;
}

.hero__lede {
  margin-top: var(--space-l);
  max-width: var(--measure-lede);
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--muted);
}

.hero__cta { margin-top: var(--space-xl); }

/* ==========================================================================
   #7 THE TICKET — signature element, CTA container.
   Perforated edge built from a dashed rule plus two pseudo-element
   cutouts filled with the page background. Flat --bg means the outer
   half of each circle is invisible, so the notch reads as punched out.
   ========================================================================== */

.ticket {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ticket__body {
  padding: var(--space-l) var(--space-l) var(--space-m);
}

.ticket__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
}

.ticket__eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.ticket__serial {
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ticket__name {
  margin-top: var(--space-s);
  line-height: 0;
}

.ticket__name img {
  width: auto;
  height: 30px;
}

.ticket__sub {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* --- perforation ------------------------------------------------------- */

.ticket__perf {
  position: relative;
  /* Own stacking context so the cutouts paint above the stub background
     that follows them in the DOM. */
  z-index: 1;
  height: 0;
  margin-inline: var(--space-l);
  border-top: 1px dashed var(--line-strong);
}

.ticket__perf::before,
.ticket__perf::after {
  content: "";
  position: absolute;
  top: 0;
  width: var(--notch);
  height: var(--notch);
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
}

.ticket__perf::before {
  left: calc(-1 * var(--space-l) - var(--notch) / 2);
}

.ticket__perf::after {
  right: calc(-1 * var(--space-l) - var(--notch) / 2);
}

/* --- stub (holds the badge) -------------------------------------------- */

.ticket__stub {
  display: flex;
  align-items: center;
  /* >= 11px on every side of a 44px badge satisfies Apple's clear-space
     rule (1/4 of badge height). */
  padding: var(--space-l);
  background: var(--surface-2);
}

.badge {
  display: block;
  border-radius: var(--radius-s);
  transition: opacity 140ms ease;
}

.badge:hover { opacity: 0.85; }

/* Apple minimum web size is 40px tall; 44px also clears the 44px
   touch-target guideline. */
.badge img {
  width: 131.6px;
  height: 44px;
}

/* ==========================================================================
   #8 SCREENSHOTS
   ========================================================================== */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
  align-items: start;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

/* Quiet stagger — the outer two sit slightly lower than the centre. */
.shots > :nth-child(1),
.shots > :nth-child(3) { transform: translateY(var(--space-l)); }

/* Narrow screens: break the shell padding so the triptych has some room. */
@media (max-width: 47.999rem) {
  .shots { margin-inline: calc(-1 * var(--space-l)); }
}

/* ==========================================================================
   #9 FEATURES — three lines, no icon grid
   ========================================================================== */

.features {
  padding-block: var(--space-xl) var(--space-3xl);
  border-top: 1px solid var(--line);
}

.features__list {
  display: grid;
  gap: var(--space-l);
}

.features__list li {
  max-width: 34rem;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--muted);
}

/* Hint that the three items above are a sample, not the whole app. */
.features__more {
  margin-block-start: var(--space-l);
  text-align: right;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--muted);
}

.features__list b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

/* ==========================================================================
   #10 PROSE — privacy page
   ========================================================================== */

/* Sits inside .shell, so it starts at the shell's content edge and lines up
   with the header wordmark. Do not put .prose and .shell on one element —
   both set max-width and the measure would win, centring the column. */
.prose {
  padding-block: var(--space-xl) var(--space-4xl);
  max-width: var(--measure);
}

.prose__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
}

.prose__updated {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--muted);
}

.prose h2 {
  margin-top: var(--space-2xl);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 400;
}

.prose p,
.prose ul {
  margin-top: var(--space-m);
  line-height: var(--leading-loose);
  color: var(--muted);
}

.prose ul { padding-left: 1.25em; list-style: disc; }
.prose li { margin-top: var(--space-xs); }

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose address {
  margin-top: var(--space-m);
  font-style: normal;   /* <address> is semantic here, not italic copy */
  line-height: var(--leading-loose);
  color: var(--muted);
}

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--text); }

/* ==========================================================================
   #11 FOOTER
   ========================================================================== */

.footer {
  margin-top: auto;
  padding-block: var(--space-l) var(--space-xl);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
}

.footer__list li {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

/* Interpuncts between items, not after the last one. */
.footer__list li:not(:last-child)::after {
  content: "·";
  color: var(--line-strong);
}

.footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color 140ms ease;
}

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

/* ==========================================================================
   #12 BREAKPOINTS
   ========================================================================== */

@media (min-width: 48rem) {          /* 768px — tablet */
  .hero { padding-block: var(--space-2xl) var(--space-4xl); }
  .shots { gap: var(--space-m); }
  .features__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
  .features__list li { max-width: none; }
}

@media (min-width: 64rem) {          /* 1024px — desktop, one screen */
  .masthead { padding-block: var(--space-l); }

  /* Vertical rhythm is deliberately compressed here so header, hero,
     features and footer land inside a single desktop screen. */
  .hero { padding-block: var(--space-l) var(--space-xl); }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-3xl);
  }

  .hero__lede { margin-top: var(--space-m); }
  .hero__cta  { margin-top: var(--space-l); }

  .ticket__body  { padding: var(--space-m) var(--space-l) var(--space-s); }
  .ticket__stub  { padding: var(--space-m) var(--space-l); }

  .features {
    padding-block: var(--space-xl);
  }
  .features__list { gap: var(--space-l); }

  .footer { padding-block: var(--space-m) var(--space-l); }
}

/* ==========================================================================
   #13 LOAD-IN — one restrained pass, no scroll animation
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fade-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  /* Explicit steps rather than :nth-child, so the order does not depend
     on where these elements sit among their siblings. */
  .fade-in--2 { animation-delay: 80ms; }
  .fade-in--3 { animation-delay: 160ms; }

  @keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
