/* getgrumble.xyz's own pages (download, support, privacy, terms, EULA), in
   the same design as the rest of the site (lib/site), laid out as orb.club's
   pages: Grumble's colours (lib/ui/colors.dart), Inter and the dot font, the
   dotted black page, the logo and ☰ in the corner. Sizes are orb.club's:
   docs/ORB_WEB_REFERENCE.md.

   Two kinds of page (body class, set in each page's header comment):
   - legal: as orb.club/privacy — "welcome to grumble", then the text on the
     page in a 672 column, and "Get the app" in the corner (a floating
     button on a phone).
   - card: as orb.club's home — the white card (the download page). */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.ttf) format("truetype"); }
@font-face { font-family: Doto; font-weight: 900; font-display: swap; src: url(fonts/doto-round-heavy.ttf) format("truetype"); }

:root {
  --black: #030003;
  --white: #fffdfe;
  --orange: #ff5500;
  --dark: #1a1b1e;        /* buttons and panels on black */
  --dark-hover: #2a2b30;
  --line: #26272b;
  --light-pill: #f1f1f1;  /* grey on white cards */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font: 400 16px/24px Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The faint dots, 40 apart. */
  background: var(--black) radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.1px, transparent 1.4px) 20px 20px / 40px 40px;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }

/* ---------- the corner: logo and ☰, 42 across, 10 from the edges ---------- */
.corner { position: fixed; left: 10px; top: 10px; z-index: 20; display: flex; gap: 8px; }
.corner .logo img { width: 42px; height: 42px; }
.round {
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--white); cursor: pointer;
  transition: background .15s ease;
}
.round:hover { background: var(--dark-hover); }
.round:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.round svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the menu: a panel 8 in from the left, 292 wide ---------- */
.menu { position: fixed; inset: 0; z-index: 30; opacity: 0; transition: opacity .3s ease; }
.menu.open { opacity: 1; }
.menu .panel {
  position: absolute; left: 8px; top: 8px; bottom: 8px; width: calc(100vw - 16px); max-width: 292px;
  padding: 23px 24px 25px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--dark); border: 1px solid var(--line); border-radius: 20px;
  transform: translateX(-12px); transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.menu.open .panel { transform: none; }
.menu .pages a {
  display: block; width: max-content;
  font: 500 44px/53px Inter, sans-serif; letter-spacing: -2.2px;
  color: rgba(255, 253, 254, .38); transition: color .15s ease;
}
.menu .small a {
  display: block; width: max-content; padding: 2px 0;
  font: 500 17px/21px Inter, sans-serif; letter-spacing: -.17px;
  color: rgba(255, 253, 254, .38); transition: color .15s ease;
}
.menu a:hover, .menu .pages a.here { color: var(--white); text-decoration: none; }
.menu .close { position: absolute; left: 308px; top: 8px; }
@media (max-width: 767px) {
  .menu .close { left: auto; right: 16px; top: 16px; }
}

/* ---------- "welcome to grumble": logo 25 from the top, dots in orange ---------- */
.welcome { padding-top: 25px; text-align: center; }
.welcome img { width: 42px; height: 42px; margin: 0 auto 1px; }
.ticker {
  height: 72px; overflow: hidden; white-space: nowrap;
  font: 900 72px/72px Doto, Inter, sans-serif; letter-spacing: -2px; color: var(--orange);
}
.ticker span { display: inline-block; }
.ticker.scroll { text-align: left; }
.ticker.scroll span { animation: ticker 14s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker.scroll span { animation: none; } }

/* ---------- legal pages: the text on the page, 672 wide ---------- */
main { padding: 0 12px 64px; }
.page { max-width: 672px; margin: 0 auto; }
.page h1 {
  font: 700 36px/40px Inter, sans-serif; text-transform: uppercase;
  margin: 40px 0 40px;
}
.updated { font-weight: 700; margin: 0 0 40px; }
.page p { margin: 0 0 16px; }
.lead { color: var(--white); }
.page h2 {
  font: 700 24px/32px Inter, sans-serif; text-transform: uppercase;
  margin: 24px 0 24px;
}
.page h3 { font: 700 18px/26px Inter, sans-serif; margin: 20px 0 12px; }
.page ul { padding-left: 22px; margin: 0 0 16px; }
.page li { font-weight: 500; margin: 0; }
.page li::marker { color: var(--orange); }
.page strong { font-weight: 700; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 42px;
  font: 400 16px/1 Inter, sans-serif;
  background: var(--orange); color: var(--white); border: 0; cursor: pointer;
  transition: filter .15s ease;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }

/* "On this page", notes and questions: dark panels on the page. */
.toc, .callout, .faq details { background: var(--dark); border: 1px solid var(--line); border-radius: 20px; }
.toc { padding: 16px 20px; margin: 0 0 16px; }
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--white); }
.toc a:hover { color: var(--orange); }
.callout { padding: 14px 18px; margin: 0 0 16px; }
.callout p { margin: 0; }
.faq { display: grid; gap: 6px; margin: 0 0 16px; }
.faq details { padding: 0 18px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 500;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }
@media (max-width: 699px) { .toc ol { columns: 1; } }

.copyright { text-align: center; color: rgba(255, 253, 254, .38); font: 500 12px/16px Inter, sans-serif; margin: 40px 0 0; }

/* ---------- Get the app: corner card (computer), floating button (phone) ---------- */
.get-app {
  position: fixed; left: 10px; bottom: 10px; z-index: 10;
  width: 169px; padding: 17px 17px 10px;
  background: var(--dark); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  color: var(--white); text-align: center;
}
.get-app:hover { text-decoration: none; background: var(--dark-hover); }
.get-app img { width: 136px; height: 136px; padding: 6px; background: #fff; border-radius: 10px; }
.get-app span { display: block; margin-top: 8px; font: 600 11px/14px Inter, sans-serif; }
.get-app-pill {
  display: none;
  position: fixed; left: 50%; bottom: 50px; z-index: 10; transform: translateX(-50%);
  width: 301px; height: 64px; border-radius: 64px;
  align-items: center; justify-content: center; gap: 12px;
  background: var(--orange); color: var(--white);
  font: 500 18px/27px Inter, sans-serif;
}
.get-app-pill:hover { text-decoration: none; }
.get-app-pill svg { width: 24px; height: 24px; }
@media (max-width: 699px) {
  .get-app { display: none; }
  .get-app-pill { display: flex; }
  main { padding-bottom: 140px; }
}

/* ---------- card pages (download): the home page's white card ---------- */
body.card .welcome, body.card .get-app, body.card .get-app-pill { display: none; }
body.card main { padding: 72px 15px 40px; }
.download {
  min-height: calc(100vh - 140px);
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.home {
  width: 489px; max-width: 100%;
  color: var(--black); background: var(--white); border-radius: 44px; padding: 22px;
  background-image: radial-gradient(circle, rgba(3, 0, 3, .12) 1px, transparent 1.3px);
  background-size: 22px 22px; background-position: 11px 11px;
}
.home .top { display: flex; align-items: center; justify-content: space-between; }
.home .top img { height: 54px; width: auto; }
.pills { display: flex; gap: 4px; }
.pill {
  height: 26px; padding: 0 11px; border-radius: 16px;
  font: 600 12px/26px Inter, sans-serif; color: var(--black); background: var(--light-pill);
}
.pill:hover { text-decoration: none; background: #e6e6e6; }
.home h1 { font: 500 50px/45.5px Inter, sans-serif; letter-spacing: -3px; margin: 10px 0 17px; }
.home .qr { display: flex; align-items: flex-end; gap: 22px; }
.home .qr img { width: 108px; height: 108px; padding: 4px; border: 1.5px solid var(--black); border-radius: 12px; }
.home .qr span { font: 700 10px/10px Inter, sans-serif; padding-bottom: 5px; }
.home .qr small { display: block; font-weight: 500; font-size: 10px; color: rgba(3, 0, 3, .45); margin: 15px 0 2px; }
.stores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.store {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px 0 10px; border-radius: 10px;
  background: var(--black); color: var(--white);
}
.store:hover { text-decoration: none; filter: brightness(1.3); }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { display: flex; flex-direction: column; }
.store small { font: 600 8px/9px Inter, sans-serif; }
.store b { font: 600 15px/17px Inter, sans-serif; letter-spacing: -.3px; }
.store[aria-disabled="true"] { background: var(--light-pill); color: rgba(3, 0, 3, .45); pointer-events: none; }
/* The holographic Swipe Court card, floating beside it. */
.hologram { width: 360px; max-width: 100%; }
.hologram video { width: 100%; height: auto; }
@media (max-width: 699px) {
  /* As orb.club's home on a phone: no QR code (you're on the phone). */
  .home .qr { display: none; }
  .home .stores { margin-top: 20px; }
}
@media (min-width: 700px) {
  .home .stores { display: none; }
}
