/* Home (web/index.html, pt/, es/) and the 404 page (web/404.html): sections 09
   and 07F-H of the screens canvas, drawn with the "Canhoto" design system.
   Tokens mirror src/theme/tokens.ts; the fonts are served from this origin
   (web/fonts, OFL). Mobile first: the base is the phone layout. */
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f3ede1; --paper-raised: #fcf9f2; --paper-sunken: #e7decd;
  --ink: #1d1815; --ink-muted: #675c51; --line: #cdbfa8; --line-strong: #8c7f6e;
  --velvet: #9e2a20; --on-velvet: #fcf9f2; --marquee: #e3a13b; --on-marquee: #1d1815;
  --focus: #1f5f8b;
  --shadow-ticket: 0 6px 6px rgba(29, 24, 21, .22);
  --shadow-sheet: 0 -8px 16px rgba(29, 24, 21, .24);
  --display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131110; --paper-raised: #1e1b19; --paper-sunken: #0b0a09;
    --ink: #f2ebdf; --ink-muted: #a89b8c; --line: #3b342e; --line-strong: #7a6e61;
    --velvet: #e4675a; --on-velvet: #1d1815; --marquee: #edb65e; --on-marquee: #1d1815;
    --focus: #8cc4ec;
    --shadow-ticket: 0 8px 7px rgba(0, 0, 0, .8);
    --shadow-sheet: 0 -8px 16px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 16px/24px var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
strong { font-weight: 600; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
/* Read by screen readers, not drawn. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page { min-height: 100vh; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; }

/* Type */
.eyebrow { font: 500 11px/14px var(--mono); letter-spacing: .9px; text-transform: uppercase; color: var(--ink-muted); }
.display { margin: 0; font: 800 48px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; overflow-wrap: anywhere; }
.lead { margin: 0; color: var(--ink-muted); }
.note { margin: 0; font: 400 13px/18px var(--sans); color: var(--ink-muted); }
.text-link { font: 600 14px/20px var(--sans); color: var(--velvet); text-decoration: underline; text-underline-offset: 3px; }

/* Brand and language switch */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand .mark { display: block; height: 26px; width: auto; aspect-ratio: 506 / 618; }
.brand .mark path { fill: var(--velvet); }
.wordmark { font: 800 30px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.langs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.langs a { display: block; min-width: 44px; padding: 13px 2px; text-align: center; font: 600 13px/18px var(--sans); color: var(--ink-muted); text-decoration: none; }
.langs a:hover { color: var(--velvet); }
.langs a[aria-current="page"] { color: var(--ink); }

/* Store badges: Apple's and Google's official badges (web/badges), never
   stretched or recolored. Both read 48px tall, with at least a quarter of that
   (12px) clear around them. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 4px 0; }
.store { display: block; flex: none; border-radius: 9px; line-height: 0; }
.store picture { display: block; }
.store .badge { display: block; height: 48px; width: auto; }
/* Google's PNGs carry transparent margins, different per language: pulled in
   so the badge itself is 48px tall, like Apple's. */
.store img[src$="google-play-en.png"] { height: 71.43px; margin: -11.71px; }
.store img[src$="google-play-pt-BR.png"], .store img[src$="google-play-es.png"] { height: 62.5px; margin: -7.25px 0 -7.5px; }

/* Perforated divider */
.dots { height: 4px; background-image: radial-gradient(circle, var(--line-strong) 1.6px, transparent 2px); background-size: 10px 4px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.foot ul a { display: block; padding: 12px 0; font: 600 14px/20px var(--sans); color: var(--ink); text-decoration: none; }
.foot ul a:hover { color: var(--velvet); text-decoration: underline; }
.foot p { margin: 0; font: 400 13px/18px var(--sans); color: var(--ink-muted); }
/* Apple's and Google's trademark notices, under the links. */
.foot .notices { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }
.foot .notices p { font-size: 12px; line-height: 16px; }
.foot .notices p[hidden] { display: none; }

/* ---------- Home ---------- */
.home { padding: 12px 16px 28px; gap: 32px; }
.home main { display: flex; flex-direction: column; gap: 32px; }
.hero { display: flex; flex-direction: column; gap: 32px; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }

/* The app's Wallet, as a picture (aria-hidden): a 390 x 844 phone screen,
   scaled down to fit. */
.shot { display: flex; justify-content: center; }
.shot-box { flex: none; width: 287px; height: 605px; }
.phone-frame { width: 410px; height: 864px; padding: 10px; transform: scale(.7); transform-origin: 0 0; }
.phone { position: relative; width: 390px; height: 844px; overflow: hidden; border-radius: 48px; background: var(--paper); box-shadow: 0 0 0 10px #1d1815, 0 30px 60px rgba(29, 24, 21, .35); }
.status { position: absolute; top: 0; left: 0; right: 0; height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font: 600 16px/1 var(--sans); }
.status .isl { position: absolute; left: 50%; top: 11px; width: 122px; height: 34px; margin-left: -61px; border-radius: 20px; background: #000; }
.status .sig { display: flex; gap: 6px; align-items: center; }
.status svg { display: block; }
.status rect { fill: currentColor; }
.status .dim { opacity: .4; }
.status .outline { fill: none; stroke: currentColor; }
.screen { padding: 71px 0 0; }
.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px 16px; }
.screen-title { margin-top: 6px; font: 800 36px/37px var(--display); letter-spacing: .36px; text-transform: uppercase; }
.screen-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 -8px -4px 0; }
.ic { display: block; flex: none; }
.ic path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.label { font: 500 11px/14px var(--mono); letter-spacing: .9px; text-transform: uppercase; color: var(--ink-muted); }
.shot-cards { display: flex; flex-direction: column; gap: 24px; padding: 8px 16px 0; }
.tcard { position: relative; width: 358px; min-height: 128px; display: flex; }
.tcard .sil { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(var(--shadow-ticket)); }
.tcard .sil path { fill: var(--paper-raised); }
.tcard .sil .ring { fill: none; stroke: var(--marquee); stroke-width: 2; }
.tcard .body-area { position: relative; flex: 1; min-width: 0; display: flex; gap: 12px; padding: 16px; }
.tcard .poster { flex: none; width: 64px; aspect-ratio: 2 / 3; align-self: center; overflow: hidden; border-radius: 4px; background: var(--paper-sunken); }
.tcard .poster svg { display: block; width: 100%; height: 100%; }
.tcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tcard .title { font: 600 24px/26px var(--display); letter-spacing: .24px; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .caption { font: 400 13px/18px var(--sans); color: var(--ink-muted); }
.tcard .when { margin-top: auto; }
.tcard .data { font: 500 14px/20px var(--mono); }
.tcard .hl { width: fit-content; padding: 0 4px; border-radius: 4px; background: var(--marquee); color: var(--on-marquee); }
.tcard .perf { position: relative; flex: none; width: 2px; margin: 12px 0; background-image: radial-gradient(circle, var(--line-strong) 2px, transparent 2px); background-size: 4px 8px; background-position: center top; }
.tcard .stub { position: relative; flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; }
.tcard .seat { font: 800 40px/38px var(--display); text-transform: uppercase; color: var(--velvet); }
.tcard .extra { font: 500 12px/16px var(--mono); color: var(--ink-muted); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-around; padding: 8px 16px 34px; background: var(--paper-raised); box-shadow: var(--shadow-sheet); }
.tab { min-width: 64px; min-height: 48px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; color: var(--ink-muted); }
.tab.on { color: var(--ink); }
.tab .lbl { font: 600 11px/14px var(--sans); }
.tab .ind { margin-top: 2px; width: 16px; height: 3px; border-radius: 2px; }
.tab.on .ind { background: var(--velvet); }
.fab { margin-top: -24px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--velvet); color: var(--on-velvet); box-shadow: var(--shadow-ticket); }
.homebar { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--ink); opacity: .9; }

/* What it does */
.features { display: flex; flex-direction: column; gap: 24px; }
.features h2 { margin: 0; }
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--velvet); }
.feature-list h3 { margin: 0 0 4px; font: 600 24px/26px var(--display); letter-spacing: .24px; text-transform: uppercase; }
.feature-list p { margin: 0; font: 400 15px/22px var(--sans); color: var(--ink-muted); }

/* Privacy card and closing call */
.closing { display: flex; flex-direction: column; gap: 32px; }
.privacy { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-raised); }
.privacy p { margin: 0; }
.privacy h2 { margin: 0; font: 800 32px/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.cta { display: flex; flex-direction: column; gap: 16px; }
.cta .display { font-size: 36px; }

@media (min-width: 600px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 32px; }
}
@media (min-width: 1024px) {
  .home { padding: 24px 64px 40px; gap: 56px; }
  .home main { gap: 64px; }
  .brand .mark { height: 30px; }
  .wordmark { font-size: 34px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
  .hero-text { max-width: 540px; gap: 20px; }
  .hero .display { font-size: clamp(56px, 6.25vw, 80px); }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .shot-box { width: 320px; height: 674px; }
  .phone-frame { transform: scale(.78); }
  .features { gap: 28px; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
  .closing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; }
  .privacy { padding: 32px; }
  .cta { gap: 20px; }
  .cta .display { font-size: 56px; }
}

/* ---------- 404 ---------- */
.lost { padding: 20px 16px 28px; gap: 24px; }
.lost .top { justify-content: flex-end; margin: -12px 0 -8px; }
.lost main { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.lost-text { display: flex; flex-direction: column; gap: 24px; }
.lost-intro { display: flex; flex-direction: column; gap: 12px; }
.lost-intro .display { font-size: 40px; }
.lost-art { padding-top: 16px; }

/* The ticket of a showtime that doesn't exist. Every size is in em of the
   card's font-size, which is 16px on a phone and shrinks below 390px wide so
   the 358 x 128 card always fits. */
.void { font-size: min(1rem, calc((100vw - 2rem) / 22.375)); width: 22.375em; filter: drop-shadow(var(--shadow-ticket)); }
.void-card {
  display: flex; height: 8em; border-radius: 1em; background: var(--paper-raised);
  -webkit-mask: radial-gradient(circle .625em at calc(100% - 6.0625em) 0, #0000 97%, #000), radial-gradient(circle .625em at calc(100% - 6.0625em) 100%, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle .625em at calc(100% - 6.0625em) 0, #0000 97%, #000), radial-gradient(circle .625em at calc(100% - 6.0625em) 100%, #0000 97%, #000);
  mask-composite: intersect;
}
.void-body { flex: none; width: 16.3125em; display: flex; gap: .75em; padding: 1em; }
.void-poster { flex: none; width: 4em; height: 6em; align-self: center; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-strong); border-radius: .25em; background: var(--paper-sunken); color: var(--line-strong); }
.void-poster span { font: 800 1.75em/1 var(--display); }
.void-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25em; }
.void-title { font: 600 1.375em/1.09 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.void-cinema { font: 400 .8125em/1.385 var(--sans); color: var(--ink-muted); }
/* The longest line, "THEATER 404 · --:--", on one line in every language. */
.void-when { margin-top: auto; font: 500 .75em/1.5 var(--mono); white-space: nowrap; }
.void-perf { flex: none; width: 2px; margin: .75em 0; background-image: radial-gradient(circle, var(--line-strong) 1.6px, transparent 2px); background-size: 2px 8px; }
.void-stub { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25em; }
.void-label { font: 500 .6875em/1.27 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.void-code { font: 800 2.5em/.95 var(--display); color: var(--velvet); }

.pages ul { margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-raised); }
.pages li + li { border-top: 1px solid var(--line); }
.pages a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.pages a:hover .page-name { color: var(--velvet); text-decoration: underline; }
.pages a:focus-visible { outline-offset: -3px; border-radius: 10px; }
.page-text { flex: 1; min-width: 0; }
.page-name { display: block; font: 600 16px/22px var(--sans); }
.page-hint { display: block; font: 400 13px/18px var(--sans); color: var(--ink-muted); }
.pages svg { flex: none; width: 18px; height: 18px; color: var(--ink-muted); }
.pages path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lost .foot { padding-top: 16px; }
.lost .foot a { font: 600 13px/18px var(--sans); color: var(--ink-muted); padding: 13px 0; }

@media (min-width: 1024px) {
  .lost { padding: 40px 64px; gap: 40px; }
  .lost main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
  .lost-text { max-width: 460px; }
  .lost-intro { gap: 14px; }
  .lost-intro .display { font-size: 64px; }
  .lost-art { order: 2; display: flex; justify-content: center; padding: 0; }
  /* 1.45x the phone card, as in 7H, or less where the column is narrower. */
  .void { font-size: min(23.2px, calc((50vw - 100px) / 22.375)); transform: rotate(-3deg); }
}
