/* GRYND — the app's identity, translated to a page.
   Same palette, same font, same chunky outlined surfaces. */

@font-face {
  font-family: "Lilita One";
  src: url("/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0e23;
  --surface: #1a1f45;
  --lift: #2a3166;
  --gold: #ffc53d;
  --gold-deep: #e09a12;
  --electric: #2e9bff;
  --battle: #ff3b4e;
  --green: #39d353;
  --text: #ffffff;
  --dim: #9aa3d0;
  --outline: #0b0e23;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The burst behind everything, same as the app's screens. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1000px 620px at 50% -10%, rgba(46, 155, 255, .30), transparent 70%),
    radial-gradient(760px 520px at 88% 8%, rgba(255, 197, 61, .16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: "Lilita One", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 26px;
  color: var(--gold);
  text-transform: uppercase;
}

nav .brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 2px solid var(--outline);
}

nav .spacer { flex: 1; }
nav a.link { color: var(--dim); font-size: 15px; font-weight: 600; }
nav a.link:hover { color: var(--text); text-decoration: none; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  /* Longhand, not `padding: 40px 0 80px`. The shorthand also set the horizontal
     padding to zero, which overrode the 24px `.wrap` gives everything else —
     invisible on desktop, where the grid columns keep the text off the edge, but
     on a phone the hero collapses to one column and the headline, the lede and
     the email field all sat flush against both bezels. */
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero h1 { font-size: clamp(46px, 8vw, 88px); }
.hero h1 .accent { color: var(--gold); }

.hero p.lede {
  font-size: 20px;
  color: var(--dim);
  max-width: 30rem;
  margin: 20px 0 32px;
}

.hero .eyebrow {
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero h2.tight { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 6px; }

/* RYN, alive.

   The loops carry an alpha channel that only Apple's HEVC preserves, and no
   web codec we can count on keeps it, so the files ship on black. `screen`
   blending makes black disappear against a dark backdrop, since screen(black,
   x) is exactly x. That leaves only RYN, and it works in every browser without
   an alpha codec or a second encode.

   The radial mask is belt and braces: it fades the square edges out so any
   compression noise near the frame border never reads as an edge. */
/* The stage paints its own backdrop, and it has to.

   `mix-blend-mode` blends with the backdrop inside the current stacking
   context, and `main` is one (position + z-index), so the video cannot see
   the page gradient painted by `body::before` underneath it. Blending against
   nothing leaves black as black, which showed up as a dark disc around RYN.

   So the stage lays down its own spotlight for the video to blend into. It is
   also the better look: a lit circle with a gold rim is the same shape
   language as the app's own screens, and the black frame corners now read as
   deliberate rather than as a failed cutout. */
.stage {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 197, 61, .30), transparent 58%),
    radial-gradient(circle at 50% 50%, #12173a 55%, #0b0e23 72%, transparent 76%);
  box-shadow: 0 26px 60px rgba(255, 197, 61, .14);
  pointer-events: none;
}

.ryn-video {
  position: relative;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 62%, transparent 78%);
}

.stage.small { max-width: 340px; }
.stage.tiny { max-width: 200px; margin: 0 auto 4px; }

/* Someone who has asked the system to cut animation should not be handed a
   looping video regardless. The poster frame stays. */
@media (prefers-reduced-motion: reduce) {
  .ryn-video { display: none; }
  .stage { background: center / contain no-repeat; }
}

.hero.reverse { grid-template-columns: .85fr 1.15fr; }

/* The App Store button. Apple's own badge is a hosted asset with its own
   usage rules and a light background that fights this page, so this is the
   app's own button shape with Apple's mark in it. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 19px;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 22px;
  border: 3px solid var(--outline);
  box-shadow: 0 6px 0 var(--outline);
  transition: transform .09s ease, box-shadow .09s ease;
  color: var(--outline);
  background: linear-gradient(180deg, #ffd76e, var(--gold) 55%, var(--gold-deep));
}

.store:hover { text-decoration: none; }
.store:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--outline); }

.store.small {
  font-size: 15px;
  padding: 9px 18px;
  border-width: 2px;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--outline);
}

/* FAQ. Real <details> rather than JavaScript: it is keyboard accessible,
   it is searchable by the browser's own find, and Google reads the text
   whether or not it is open. */
.faq { display: grid; gap: 12px; }

.faq details {
  background: rgba(26, 31, 69, .7);
  border: 2px solid rgba(11, 14, 35, .9);
  border-radius: 18px;
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: "Lilita One", Impact, sans-serif;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--dim); margin: 12px 0 0; font-size: 16px; }

.card.closer { text-align: center; }
.card.closer h3 { font-size: 30px; }
.card.closer p { margin: 10px auto 22px; max-width: 34rem; }

/* Chunky buttons, same construction as the app: gradient face, thick
   contour, hard slab of shadow underneath that it presses into. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 19px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 22px;
  border: 3px solid var(--outline);
  box-shadow: 0 6px 0 var(--outline);
  transition: transform .09s ease, box-shadow .09s ease;
  color: var(--outline);
  background: linear-gradient(180deg, #ffd76e, var(--gold) 55%, var(--gold-deep));
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--outline); }

.btn.ghost {
  color: var(--text);
  background: linear-gradient(180deg, #333c7a, var(--lift) 55%, #222a56);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-note { color: var(--dim); font-size: 14px; }

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, #232a5c, var(--surface));
  border: 3px solid var(--outline);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--outline);
  padding: 26px;
}

.card h3 { font-size: 23px; margin-bottom: 8px; color: var(--gold); }
.card p { color: var(--dim); margin: 0; font-size: 16px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 10px;
}

section { padding: 56px 0; }
section > .wrap > h2 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
section > .wrap > p.sub { color: var(--dim); margin: 0 0 30px; max-width: 46rem; }

/* Steps */

.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(26, 31, 69, .7);
  border: 2px solid rgba(11, 14, 35, .9);
  border-radius: 18px;
  padding: 18px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 22px;
  color: var(--outline);
  background: linear-gradient(180deg, #ffd76e, var(--gold));
  border: 2px solid var(--outline);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
}
.step strong { display: block; font-size: 17px; }
.step span { color: var(--dim); font-size: 15px; }

/* Footer */

footer {
  border-top: 2px solid rgba(255, 255, 255, .08);
  padding: 34px 0 60px;
  color: var(--dim);
  font-size: 15px;
}

footer .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--gold); }

/* Long-form legal pages */

.doc { max-width: 760px; margin: 0 auto; padding: 20px 24px 90px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 6px; }
.doc .updated { color: var(--dim); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; color: var(--gold); }
.doc p, .doc li { color: #d5dbf5; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .callout {
  background: rgba(46, 155, 255, .12);
  border: 2px solid rgba(46, 155, 255, .4);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 26px 0;
}
.doc .callout p { margin: 0; color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  vertical-align: top;
}
.doc th { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.doc td { color: #d5dbf5; }

@media (max-width: 820px) {
  .hero,
  .hero.reverse { grid-template-columns: 1fr; text-align: center; padding-bottom: 50px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .stage { max-width: 300px; }
  .stage.small { max-width: 260px; }
  /* The video goes above the copy on the reverse block but below it in the
     hero, so the first thing on a phone is always the headline. */
  .hero.reverse .stage { order: 2; }
  .hero.reverse .hero-copy { order: 1; }
  nav a.link { display: none; }
}

/* ── Coming soon: waitlist form, screenshots ──────────────────────────────── */

/* Visually gone, still read aloud. Also where the honeypot hides — off-screen
   rather than display:none, because some bots skip what is not rendered. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The live pill next to "In App Store review". */
.hero .eyebrow .dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 211, 83, .22);
  vertical-align: 1px;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 10px;
  align-items: stretch;
}

.signup.center { justify-content: center; margin-bottom: 4px; }

.signup input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 15px 18px;
  font: inherit;
  font-size: 16px;          /* 16px or iOS zooms the page on focus */
  font-weight: 600;
  color: var(--text);
  background: rgba(11, 14, 35, .72);
  border: 3px solid var(--outline);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--outline);
}

.signup input[type="email"]::placeholder { color: var(--dim); opacity: .75; }

.signup input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 6px 0 var(--outline), 0 0 0 4px rgba(255, 197, 61, .28);
}

/* `button.store` rather than a second set of rules, so the CTA cannot drift
   away from the anchors that share its look. */
.signup button.store {
  flex: 0 0 auto;
  font: inherit;
  cursor: pointer;
}

.signup input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--battle);
}

/* Phone frames. `auto-fit` so four fit on a desktop, two on a tablet and one
   on a phone without a media query per breakpoint. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.shots figure { margin: 0; text-align: center; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 3px solid var(--outline);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  background: var(--surface);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
}

@media (max-width: 560px) {
  .signup button.store { width: 100%; justify-content: center; }
}
