/* Oohaah landing, after the Hermes landing: paper page in a thin green frame, giant thin condensed caps, tiny caps
   labels, small square buttons, and one full-bleed purple band where 1890 primate engravings sit as halftone. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Halftone art: each image is a line mask (art/*.png, dithered from Brehms Tierleben engravings), tinted with --band-art */
.art { position: relative; overflow: hidden; background: var(--grain), var(--band); }
.art::before { content: ""; position: absolute; inset: 0; background: var(--band-art); -webkit-mask: var(--img) center / cover no-repeat; mask: var(--img) center / cover no-repeat; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--size-body); line-height: 24px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.center { text-align: center; }

h1, h2, h3, .label { font-family: var(--display); }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(112px, 17vw, 248px); line-height: .9; font-weight: 100; text-transform: uppercase; }
h2 { font-size: clamp(52px, 7.4vw, 112px); line-height: .9; font-weight: 100; text-transform: uppercase; }
h3 { font-size: 30px; line-height: 32px; font-weight: 300; }
.label { font-size: 14px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: var(--sp-4); }

.btn { height: var(--control); padding: 0 var(--sp-5); border-radius: var(--r-sq); display: inline-flex; align-items: center; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background var(--motion), border-color var(--motion); }
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 82%, #fff); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-5); height: 56px; padding: 0 var(--sp-5); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-brand { grid-column: 2; display: flex; align-items: center; gap: var(--sp-2); font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav-brand img { border-radius: var(--r-icon); }
.nav-links { display: flex; gap: var(--sp-5); font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav-end { grid-column: 3; justify-self: end; }
.nav-end .btn { height: 40px; }
@media (min-width: 900px) { body::after { content: ""; position: fixed; inset: 0; border-inline: 4px solid var(--frame); pointer-events: none; z-index: 30; } }

.hero { padding: var(--sp-9) 0 var(--sp-8); }
.lead { max-width: 560px; margin: var(--sp-6) auto 0; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.center .cta { justify-content: center; }
.fine { margin-top: var(--sp-3); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }

/* The real app, live, on the engraving. No device frame. */
.stage { position: relative; overflow: hidden; margin: var(--sp-8) clamp(0px, 3vw, 44px) 0; background: var(--grain), var(--band); padding: clamp(24px, 6vw, 96px) clamp(12px, 7vw, 128px); }
.stage-art { position: absolute; inset: 0; }
.stage iframe { position: relative; display: block; width: 100%; max-width: 1040px; height: min(720px, 86vh); margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.demo-hint { margin-top: var(--sp-3); font-size: var(--size-footnote); color: var(--sub); text-align: center; }

/* The purple band: a primate engraving behind the section head, then the mechanics as ruled rows and cells */
.band { margin: var(--sp-9) clamp(0px, 3vw, 44px) 0; background: var(--grain), var(--band); color: #fff; overflow: hidden; }
.band .label { color: var(--band-sub); }
.band-head { text-align: center; }
.band-art { aspect-ratio: 19 / 10; max-height: 86vh; width: 100%; background: none; }
.band-copy { position: relative; margin-top: -10vw; padding: 0 var(--sp-5) var(--sp-9); }
.band-copy h2 { font-size: clamp(60px, 10vw, 168px); line-height: .9; }
.band-copy p:last-child { margin: var(--sp-6) auto 0; max-width: 480px; color: var(--band-sub); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-top: 1px solid var(--band-line); }
.frow .art { aspect-ratio: 3 / 2; background: var(--grain), color-mix(in srgb, #fff 6%, var(--band)); }
.frow > div:not(.art) { padding: var(--sp-7) clamp(24px, 6vw, 96px); max-width: 560px; }
.frow h3 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-weight: 200; }
.frow p:last-child { margin-top: var(--sp-4); color: var(--band-sub); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--band-line); }
.cell { padding: var(--sp-6) var(--sp-6) var(--sp-7); border-right: 1px solid var(--band-line); }
.cell:last-child { border-right: 0; }
.cell .label { margin-bottom: var(--sp-5); }
.cell p:last-child { margin-top: var(--sp-3); color: var(--band-sub); font-size: 15px; line-height: 22px; }

.sec { padding: var(--sp-9) 0; }
.body { color: var(--sub); margin: var(--sp-5) auto 0; max-width: 560px; }
.mascot { display: block; width: 112px; height: 112px; margin: 0 auto var(--sp-5); border-radius: 50%; }
.rules { max-width: 680px; margin: var(--sp-7) auto 0; text-align: left; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); }
.rules dt, .rules dd { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 600; padding-right: var(--sp-6); }
.rules dd { color: var(--sub); }

.foot { padding: var(--sp-8) var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); }
.foot-top { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-7); }
.foot-brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot-brand img { border-radius: var(--r-icon); }
.foot-brand b { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 40px; text-transform: uppercase; }
.foot-brand p { color: var(--sub); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.foot-cols div { display: grid; gap: var(--sp-2); align-content: start; }
.foot-cols a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--accent); }
.legal { max-width: var(--wrap); margin: var(--sp-7) auto 0; padding: 0 var(--sp-4); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }
.legal a { color: inherit; }

/* Prose pages: privacy and terms */
.doc { max-width: 720px; margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-9); display: grid; gap: var(--sp-4); }
.doc h1 { font-size: clamp(56px, 8vw, 104px); line-height: .95; margin-bottom: var(--sp-4); }
.doc h2 { font-size: 40px; line-height: 44px; margin-top: var(--sp-6); }
.doc p, .doc li { color: var(--sub); }
.doc ul { padding-left: var(--sp-5); display: grid; gap: var(--sp-2); }
.doc a { color: var(--accent); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; }
  .frow > div:not(.art) { padding: var(--sp-6) var(--sp-5) var(--sp-7); }
  .band-copy { margin-top: -14vw; }
  .cells { grid-template-columns: 1fr; }
  .cell { border-right: 0; border-bottom: 1px solid var(--band-line); padding: var(--sp-5); }
  .cell:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-8); }
  .stage { padding: var(--sp-4) 0; }
  .stage iframe { border-inline: 0; border-radius: 0; }
  .rules { grid-template-columns: 1fr; }
  .rules dt { border-bottom: 0; padding-bottom: 0; }
  .foot-cols { gap: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
.band-copy .label { display: inline-block; padding: var(--sp-1) var(--sp-2); background: var(--band); }
