/* reppo.games portal - liquid-glass redesign (issue #19).
   Tokens live in tokens.css; this file never hardcodes a colour, only references
   --tokens. The portal stays usable with no JS: theme follows the OS via the
   media query below, locale falls back to the in-markup English, and every link
   (including the contact mailto) is plain HTML. */

/* No-JS / no-stored-choice dark theme: when the root has no explicit data-theme,
   follow the OS. An explicit data-theme (set from the persisted cookie) wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0a0a10;
    --ink: #ffffff;
    --ink-sec: rgba(255, 255, 255, 0.55);
    --ink-faint: rgba(255, 255, 255, 0.5);
    --rule: rgba(255, 255, 255, 0.1);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.22);
    --accent-ink: #8cc4ff;
    --ok: #30d158;
    --warn: #ff9f0a;
    --red: #ff453a;
    --violet: #bf5af2;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.22);
    --bar-bg: rgba(22, 22, 26, 0.6);
    --glass-sh: 0 1px 3px rgba(0, 0, 0, 0.4), 0 12px 36px rgba(0, 0, 0, 0.5);
    --wallpaper: radial-gradient(900px 500px at 100% -10%, #3a1e6b 0%, transparent 55%),
      radial-gradient(900px 500px at -10% 50%, #0f3b6c 0%, transparent 55%),
      radial-gradient(700px 400px at 50% 110%, #6b1e4a 0%, transparent 55%),
      linear-gradient(180deg, #0a0a10 0%, #14121d 100%);
  }
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image: var(--wallpaper);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- logo coin ---------------------------------------------------------- */
.logo {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--logo-grad);
  box-shadow: var(--logo-sh);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-glyph {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  text-shadow: var(--logo-glyph-sh);
  transform: translate(-0.5px, -0.5px);
}
.logo-glyph .dot {
  font-style: normal; /* the period is upright */
}
.logo--lg {
  width: 28px;
  height: 28px;
}
.logo--lg .logo-glyph {
  font-size: 17px;
}

/* The glass header is now the shared <reppo-header> web component (/header.js,
   issue #22) - its markup, styles and theme/locale logic live there, not here.
   `.rh-title` stays because the footer brand reuses the wordmark style. */
.rh-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- main shell --------------------------------------------------------- */
.shell {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
}
.col {
  width: 100%;
  max-width: 460px;
  padding: 22px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Visually hidden but exposed to assistive tech / crawlers (no vertical
   footprint, so it never affects the .col flex layout). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* icon tile */
.tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--r-tile);
  box-shadow: var(--tile-sh);
  color: #fff;
}
.tile-glyph {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}
.tile--num .tile-glyph {
  font-family: var(--font-mono);
  font-weight: 700;
}
.tile {
  width: 60px;
  height: 60px;
}
.tile .tile-glyph {
  font-size: 28px;
}
.t-minesweeper {
  background: var(--grad-minesweeper);
}
.t-blockfall {
  background: var(--grad-blockfall);
}
.t-solitaire {
  background: var(--grad-solitaire);
}
.t-sudoku {
  background: var(--grad-sudoku);
}
.t-dig {
  background: var(--grad-dig);
}
.t-reversi {
  background: var(--grad-reversi);
}
/* Reversi disc glyph: an Othello disc split half-black / half-white, drawn
   purely in CSS (no glyph/SVG) - the duality of the game. */
.t-reversi .tile-glyph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(90deg, #101015 0 50%, #f5f5f7 50% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.t-burtulis {
  background: var(--grad-burtulis);
}
/* Burtulis letter-tile glyph: two small rounded-square Wordle-style feedback
   tiles - green (correct) and yellow (present), the game's own tile colours -
   drawn purely in CSS via pseudo-elements (no glyph/SVG). */
.t-burtulis .tile-glyph {
  position: relative;
  width: 42px;
  height: 19px;
}
.t-burtulis .tile-glyph::before,
.t-burtulis .tile-glyph::after {
  content: '';
  position: absolute;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.t-burtulis .tile-glyph::before {
  left: 0;
  background: #6aaa64;
}
.t-burtulis .tile-glyph::after {
  right: 0;
  background: #c9b458;
}
.t-zole {
  background: var(--grad-zole);
}
.t-novuss {
  background: var(--grad-novuss);
}
.t-snake {
  background: var(--grad-snake);
}
/* Snake glyph: three rounded body segments turning a corner - echoes the game's
   own rounded-cell snake, drawn purely in CSS (no glyph/SVG) like the Reversi and
   Burtulis tiles, so it never risks a missing-glyph box for an uncovered codepoint.
   One segment plus two box-shadow copies form an L-bend; --seg/--gap size it, and
   the transform re-centres the L (its mass sits up-and-right of the base box).
   Placeholder art (see #50). */
.t-snake .tile-glyph {
  --seg: 9.5px;
  --gap: 12px;
  width: var(--seg);
  height: var(--seg);
  border-radius: 2.5px;
  background: #fff;
  box-shadow: var(--gap) 0 0 #fff, var(--gap) calc(-1 * var(--gap)) 0 #fff;
  transform: translate(calc(var(--gap) / -2), calc(var(--gap) / 2));
}
.t-riverwing {
  background: var(--grad-riverwing);
}
/* Riverwing jet glyph: an upward dart/arrowhead with a notched tail - the player's
   jet flying up-river - drawn purely in CSS via clip-path (no glyph/SVG) like the
   Reversi, Burtulis and Snake tiles, so no codepoint can render as a missing-glyph
   box. Provisional placeholder art (see #55). */
.t-riverwing .tile-glyph {
  width: 24px;
  height: 27px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
}
.t-ricu-racu {
  background: var(--grad-ricu-racu);
}
/* Riču-raču glyph: four pawns in a 2x2 yard, the arrangement every Ludo board opens
   with. Drawn purely in CSS via box-shadow copies of one dot (no glyph/SVG) like the
   Reversi, Burtulis, Snake, Riverwing and Tanku tiles, so no codepoint can render as
   a missing-glyph box - which matters more here than elsewhere, since the game's own
   name carries diacritics. Provisional placeholder art (see #102 / ricu-racu#5). */
.t-ricu-racu .tile-glyph {
  --dot: 9px;
  --gap: 13px;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    var(--gap) 0 0 #fff,
    0 var(--gap) 0 #fff,
    var(--gap) var(--gap) 0 #fff;
  transform: translate(calc(var(--gap) / -2), calc(var(--gap) / -2));
}
.t-tanku {
  background: var(--grad-tanku);
}
/* Tank glyph: a side-view hull with a turret and forward gun barrel, drawn
   purely in CSS via pseudo-elements (no glyph/SVG) like the Reversi, Burtulis,
   Snake and Riverwing tiles, so no codepoint can render as a missing-glyph box.
   Provisional placeholder art (see #59). The hull is the base element; ::before
   is the turret and ::after the barrel. */
.t-tanku .tile-glyph {
  position: relative;
  width: 28px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
}
.t-tanku .tile-glyph::before {
  content: '';
  position: absolute;
  left: 5px;
  top: -6px;
  width: 12px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #fff;
}
.t-tanku .tile-glyph::after {
  content: '';
  position: absolute;
  left: 15px;
  top: -4px;
  width: 12px;
  height: 2.5px;
  border-radius: 1.5px;
  background: #fff;
}
.t-rallijs {
  background: var(--grad-rallijs);
}
/* Rallijs chequered-flag glyph: a 3x3 chequerboard tilted off-axis, drawn purely
   in CSS via a repeating-conic-gradient (no glyph/SVG) like the Reversi, Burtulis,
   Snake, Riverwing and Tanku tiles, so no codepoint can render as a missing-glyph
   box. A flag reads as motorsport at 24px where a car silhouette would not.
   --chk is the gradient TILE, which holds a 2x2 cell block - so cells are --chk/2
   and a box of 1.5 * --chk lands exactly 3x3 with no clipped row.
   Provisional placeholder art (see #75). */
.t-rallijs .tile-glyph {
  --chk: 18px;
  width: calc(var(--chk) * 1.5);
  height: calc(var(--chk) * 1.5);
  border-radius: 3px;
  background: repeating-conic-gradient(#fff 0 25%, rgba(0, 0, 0, 0.5) 0 50%) 0 0 / var(--chk)
    var(--chk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transform: rotate(-8deg);
}
.t-vardu-rats {
  background: var(--grad-vardu-rats);
}
/* Vārdu rats glyph: a single wheel wedge - the game's own spinning wheel, drawn
   purely in CSS via clip-path (no glyph/SVG) like the Reversi, Burtulis, Snake,
   Riverwing, Ricu-raču, Tanku and Rallijs tiles, so no codepoint can render as a
   missing-glyph box - which matters here too, since the game's own name carries a
   diacritic. Sized to match Reversi's disc exactly - both read as a simple filled circle-derived shape at the same
   visual weight. Provisional placeholder art, like every other tile here. */
.t-vardu-rats .tile-glyph {
  width: 28px;
  height: 28px;
  background: #fff;
  clip-path: polygon(50% 50%, 50% 0%, 100% 50%);
}

.tagline {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-sec);
}

/* ---- home ---------------------------------------------------------------- */
.col.home {
  max-width: 1240px;
  padding: 24px 20px 72px;
  gap: 72px;
}
body[data-page='home'] .ft-in {
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
}
.sec-head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.sec-h {
  flex-grow: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sec-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-sec);
}

/* hero carousel */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-frame {
  position: relative;
  height: clamp(520px, 46vw, 600px);
  border-radius: var(--r-frame);
  overflow: hidden;
  box-shadow: var(--frame-sh);
  background: var(--hero-frame-bg);
}
.hero-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.hero--js .hero-track {
  scrollbar-width: none;
}
.hero--js .hero-track::-webkit-scrollbar {
  display: none;
}
.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: var(--hero-ink);
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide--tanks .slide-img {
  object-position: 50% 55%;
}
.slide--rally .slide-img {
  object-position: 50% 40%;
}
.slide-scrim {
  position: absolute;
  inset: 0;
  background-image: var(--hero-scrim);
}
.slide-scrim--narrow {
  display: none;
  background-image: var(--hero-scrim-narrow);
}
.slide-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}
.slide--photo .slide-copy {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: 24px;
  bottom: clamp(32px, 5vw, 64px);
}
.slide-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
}
.slide-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  box-shadow: var(--tile-sh);
}
.slide-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  white-space: pre-line;
  color: var(--hero-ink);
}
.slide-sub {
  margin: 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--hero-ink-sec);
}
.slide-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cta--store {
  color: var(--hero-cta-ink);
  background: var(--hero-cta-bg);
}
.cta--web {
  color: var(--hero-ink);
  background: var(--hero-ghost-bg);
  border: 1px solid var(--hero-ghost-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta:hover {
  filter: brightness(0.94);
}
.slide--device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 5vw, 64px);
}
.slide--device .slide-copy {
  flex: 1 1 340px;
}
.slide-device {
  flex: 0 1 300px;
  height: 92%;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide-device img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  border: 8px solid var(--hero-bezel);
  box-shadow: var(--hero-device-sh);
}
.slide-device picture {
  height: 100%;
}
.slide--pare {
  background: var(--hero-pare-bg);
  color: var(--hero-pare-ink);
}
.slide--pare .slide-eyebrow {
  color: var(--hero-pare-ink-sec);
}
.slide--pare .slide-title {
  color: var(--hero-pare-ink);
}
.slide--pare .slide-sub {
  color: var(--hero-pare-ink-sec);
}
.slide--pare .cta--store {
  color: var(--hero-pare-bg);
  background: var(--hero-pare-ink);
}
.slide--pare .cta--web {
  color: var(--hero-pare-ink);
  background: var(--hero-pare-bg);
  border-color: var(--hero-pare-line);
}
.slide--burtulis {
  background-color: var(--hero-burtulis-solid);
  background-image: var(--hero-burtulis-bg);
}
.slide--burtulis .cta--store {
  color: var(--hero-burtulis-solid);
}
.slide--burtulis .cta--web {
  background: var(--hero-burtulis-solid);
  border-color: var(--hero-burtulis-line);
}
.hero-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--hero-ink);
  background: var(--hero-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.hero-nav--prev {
  left: 16px;
}
.hero-nav--next {
  right: 16px;
}
.hero-nav[hidden],
.hero-controls[hidden],
.hero-pause[hidden] {
  display: none;
}
.hero-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.hero-dots {
  display: flex;
}
.hero-dot {
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  padding: 8px;
  border: 0;
  background-clip: content-box;
  border-radius: var(--r-pill);
  background-color: var(--ink-faint);
  cursor: pointer;
  transition: width 0.3s ease;
}
.hero-dot[aria-current='true'] {
  width: 28px;
  background-color: var(--ink);
}
.hero-pause {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink-sec);
  background: var(--glass-bg);
  cursor: pointer;
}
.hero-play-icon,
.hero-pause[aria-pressed='true'] .hero-pause-icon {
  display: none;
}
.hero-pause[aria-pressed='true'] .hero-play-icon {
  display: block;
}

/* apps row */
.apps-all {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}
.apps-all:hover {
  text-decoration: underline;
}
.apps-badge {
  display: inline-flex;
  line-height: 0;
}
.apps-badge img {
  height: 40px;
  width: auto;
}
.apps-badge img[hidden] {
  display: none;
}
.app-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--r-card-lg);
  text-decoration: none;
  color: inherit;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-sh);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scroll-snap-align: start;
  transition: transform 0.12s ease;
}
.app-card:active {
  transform: scale(0.985);
}
.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  box-shadow: var(--tile-sh);
}
.app-new {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-ink);
  background: var(--badge-new-bg);
}
.app-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.app-card .tagline {
  flex-grow: 1;
  margin-top: -10px;
  font-size: 14px;
  line-height: 1.4;
}
.app-get {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

/* games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.gcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--r-card);
  text-decoration: none;
  color: inherit;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-sh);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.12s ease;
}
.gcard:active {
  transform: scale(0.985);
}
.gcard-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gcard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.gcard-name {
  font-size: 16px;
  font-weight: 650;
  color: var(--ink);
}
.badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--online {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.badge--ios {
  text-transform: none;
  color: var(--ink-sec);
  border: 1px solid var(--rule);
}

/* follow band */
.follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-frame);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-sh);
}
.follow-copy {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.follow .sec-h {
  font-size: 28px;
}
.follow-links {
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
}
.social:hover {
  border-color: var(--ink-faint);
}
.social-icon {
  flex: 0 0 auto;
}

@media (min-width: 700px) {
  .slide-title {
    font-size: 52px;
  }
  .slide--device .slide-title {
    font-size: 44px;
  }
  .slide-sub {
    font-size: 17px;
  }
}
@media (min-width: 1100px) {
  .slide-title {
    font-size: 72px;
  }
  .slide--device .slide-title {
    font-size: 52px;
  }
  .slide-sub {
    font-size: 19px;
  }
}
@media (max-width: 899px) {
  .slide-device {
    display: none;
  }
}
@media (max-width: 699px) {
  .hero-frame {
    height: auto;
    border-radius: var(--r-card-lg);
  }
  .slide {
    height: auto;
    min-height: 520px;
  }
  .slide--device {
    padding: 28px 24px 32px;
  }
  .hero--js .hero-nav {
    display: none;
  }
  .slide-scrim {
    display: none;
  }
  .slide-scrim--narrow {
    display: block;
  }
  .sec-h {
    font-size: 26px;
  }
  .follow .sec-h {
    font-size: 24px;
  }
  .follow-copy,
  .follow-links {
    flex-basis: 100%;
  }
}

/* ---- content pages (About / Privacy / Terms / Contact) ----------------- */
.sheet {
  border-radius: var(--r-card-lg);
  padding: 22px 20px;
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-sh);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.page-head h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1;
  color: var(--ink);
}
.prose p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-sec);
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose h2 {
  margin: 20px 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
  color: var(--ink);
}
.prose a {
  color: var(--accent);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
}
.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: var(--r-tile);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--glass-sh);
}
.prose a.mail-btn {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 85%, black 15%);
}
.mail-btn:hover {
  filter: brightness(1.04);
}

/* ---- footer (portal only) ---------------------------------------------- */
.ft {
  margin-top: auto;
  width: 100%;
  border-top: 0.5px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.ft-in {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 18px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-self: flex-start;
}
.ft-brand .rh-title {
  font-size: 17px;
}
.ft-tag {
  margin: 0;
  max-width: 240px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-sec);
}
.ft-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 9px;
}
.ft-nav a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-sec);
  text-decoration: none;
}
.ft-nav a:hover {
  color: var(--ink);
}
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 0.5px solid var(--rule);
}
.ft-copy,
.ft-locale {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  .gcard,
  .app-card {
    transition: none;
  }
}
