/* ==========================================================================
   Rummy Appz — theme.css
   Standalone stylesheet for templates/rummy-appz. No external fonts, no CDN.
   Tokens are semantic; the accent is injected inline by layout.html.
   ========================================================================== */

:root {
  --ra-bg: #f7f5f1;
  --ra-surface: #ffffff;
  --ra-surface-alt: #efeae2;
  --ra-ink: #17130f;
  --ra-ink-soft: #3d352d;
  --ra-muted: #6b6259;
  --ra-line: #e2dbd0;
  --ra-line-strong: #cfc6b8;
  --ra-accent: #f2740d;
  --ra-accent-ink: #b34f00;
  --ra-accent-soft: #fdf0e3;
  --ra-deep: #14110d;
  --ra-deep-2: #221c16;
  --ra-success: #15704a;
  --ra-warning: #9a6100;
  --ra-danger: #b02a2a;
  --ra-focus: #1f6feb;

  --ra-radius-xs: 6px;
  --ra-radius-sm: 10px;
  --ra-radius-md: 14px;
  --ra-radius-lg: 20px;
  --ra-radius-pill: 999px;

  --ra-shadow-sm: 0 1px 2px rgba(23, 19, 15, .06), 0 1px 1px rgba(23, 19, 15, .04);
  --ra-shadow-md: 0 6px 18px rgba(23, 19, 15, .08), 0 1px 2px rgba(23, 19, 15, .05);
  --ra-shadow-lg: 0 18px 40px rgba(23, 19, 15, .12);

  --ra-wrap: 1120px;
  --ra-gutter: 16px;
  --ra-header-h: 58px;

  --ra-ease: cubic-bezier(.2, .7, .3, 1);
  --ra-fast: 150ms;
  --ra-base: 200ms;
}

body[data-accent="emerald"] { --ra-accent: #0f7a5a; --ra-accent-ink: #0b5c44; --ra-accent-soft: #e6f4ef; }
body[data-accent="indigo"] { --ra-accent: #4b4fd6; --ra-accent-ink: #3a3eae; --ra-accent-soft: #ececfb; }
body[data-accent="rose"] { --ra-accent: #d43a5a; --ra-accent-ink: #a92b45; --ra-accent-soft: #fcebee; }

/* ---------- base ---------- */

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

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

body.ra {
  margin: 0;
  background: var(--ra-bg);
  color: var(--ra-ink);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; flex: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); }
h3 { font-size: 1.06rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.ra-wrap {
  width: 100%;
  max-width: var(--ra-wrap);
  margin-inline: auto;
  padding-inline: var(--ra-gutter);
}

.ra-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ra-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--ra-radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--ra-fast) var(--ra-ease);
}
.ra-skip:focus-visible { transform: translateY(0); }

.ra-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ra-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ra-focus);
  outline-offset: 2px;
  border-radius: var(--ra-radius-xs);
}

/* ---------- buttons ---------- */

.ra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ra-radius-sm);
  background: var(--ra-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ra-fast) var(--ra-ease), background-color var(--ra-fast) var(--ra-ease), box-shadow var(--ra-fast) var(--ra-ease), border-color var(--ra-fast) var(--ra-ease);
}
.ra-btn svg { width: 18px; height: 18px; transition: transform var(--ra-base) var(--ra-ease); }
.ra-btn:hover { background: #000; }
.ra-btn:hover svg { transform: translateX(2px); }
.ra-btn:active { transform: translateY(1px); }

.ra-btn-ghost {
  background: transparent;
  color: var(--ra-ink);
  border-color: var(--ra-line-strong);
}
.ra-btn-ghost:hover { background: var(--ra-surface); border-color: var(--ra-ink); }

.ra-btn-outline {
  background: var(--ra-surface);
  color: var(--ra-ink);
  border-color: var(--ra-line-strong);
}
.ra-btn-outline:hover { background: var(--ra-ink); color: #fff; border-color: var(--ra-ink); }

.ra-btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.ra-btn-sm svg { width: 16px; height: 16px; }

.ra-btn-download {
  width: 100%;
  background: var(--ra-accent);
  color: #17130f;
  border-color: transparent;
  font-size: 1rem;
  min-height: 50px;
}
.ra-btn-download:hover { background: var(--ra-accent); filter: brightness(1.06); }
.ra-btn-download svg { width: 20px; height: 20px; }
.ra-btn-download:hover svg { transform: translateY(2px); }

/* ---------- header ---------- */

.ra-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 241, .94);
  border-bottom: 1px solid var(--ra-line);
  backdrop-filter: saturate(140%) blur(10px);
}

.ra-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--ra-header-h);
}

.ra-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.ra-brand-mark { display: inline-flex; color: var(--ra-ink); }
.ra-brand-mark svg { width: 30px; height: 30px; }
.ra-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ra-brand-name { font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.25; }
.ra-brand-tag {
  font-size: .72rem;
  color: var(--ra-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}

.ra-nav { display: none; }
.ra-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ra-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--ra-radius-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ra-ink-soft);
  text-decoration: none;
  transition: background-color var(--ra-fast) var(--ra-ease), color var(--ra-fast) var(--ra-ease);
}
.ra-nav a:hover { background: var(--ra-surface); color: var(--ra-ink); }
.ra-nav a.is-active { background: var(--ra-ink); color: #fff; }

.ra-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ra-line-strong);
  border-radius: var(--ra-radius-sm);
  background: var(--ra-surface);
  color: var(--ra-ink);
  cursor: pointer;
}
.ra-menu-btn svg { width: 22px; height: 22px; }
.ra-menu-close { display: none; }
.ra-menu-btn[aria-expanded="true"] .ra-menu-open { display: none; }
.ra-menu-btn[aria-expanded="true"] .ra-menu-close { display: block; }

.ra-drawer {
  border-top: 1px solid var(--ra-line);
  background: var(--ra-surface);
  box-shadow: var(--ra-shadow-md);
}
.ra-drawer[hidden] { display: none; }
.ra-drawer ul { margin: 0; padding: 6px 0; list-style: none; }
.ra-drawer li { border-bottom: 1px solid var(--ra-line); }
.ra-drawer li:last-child { border-bottom: 0; }
.ra-drawer li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px;
  text-decoration: none;
  font-weight: 500;
}
.ra-drawer li a.is-active { color: var(--ra-accent-ink); font-weight: 700; }
.ra-drawer li a svg { width: 16px; height: 16px; color: var(--ra-muted); }
.ra-drawer-tg { margin: 4px 0 14px; width: 100%; }
.ra-drawer-tg svg { width: 18px; height: 18px; }

/* ---------- notice ---------- */

.ra-notice {
  margin: 12px 0 0;
  border: 1px solid var(--ra-line);
  border-left: 3px solid var(--ra-accent);
  border-radius: var(--ra-radius-sm);
  background: var(--ra-surface);
  overflow: hidden;
}
.ra-notice > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--ra-ink-soft);
  list-style: none;
}
.ra-notice > summary::-webkit-details-marker { display: none; }
.ra-notice > summary strong { color: var(--ra-ink); }
.ra-notice-icon { width: 18px; height: 18px; color: var(--ra-accent-ink); }
.ra-notice-caret { margin-left: auto; width: 16px; height: 16px; color: var(--ra-muted); transition: transform var(--ra-base) var(--ra-ease); }
.ra-notice[open] .ra-notice-caret { transform: rotate(90deg); }
.ra-notice-body {
  padding: 4px 14px 12px;
  border-top: 1px solid var(--ra-line);
  font-size: .85rem;
  color: var(--ra-ink-soft);
}
.ra-notice-body p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */

.ra-hero {
  padding: 20px 0 8px;
  background:
    radial-gradient(900px 220px at 8% -40%, var(--ra-accent-soft), transparent 70%),
    var(--ra-bg);
}
.ra-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ra-accent-ink);
}
.ra-kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ra-accent); }
.ra-hero h1 { max-width: 20ch; margin-bottom: 10px; }
.ra-lead {
  max-width: 62ch;
  font-size: .95rem;
  color: var(--ra-ink-soft);
  margin-bottom: 14px;
}
.ra-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ra-hero-actions .ra-btn { flex: 1 1 180px; }

.ra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ra-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-pill);
  background: var(--ra-surface);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ra-ink-soft);
  white-space: nowrap;
}
.ra-chips svg { width: 14px; height: 14px; color: var(--ra-accent-ink); }

.ra-hero-compact .ra-chips li:nth-child(3) { display: none; }

/* ---------- sections ---------- */

.ra-list { padding: 18px 0 8px; }
.ra-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ra-section-head h2 { margin-bottom: 0; }
.ra-count {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ra-muted);
}
.ra-section-note { margin: 6px 0 0; font-size: .9rem; color: var(--ra-muted); max-width: 66ch; }

/* filter */
.ra-filter { position: relative; margin-bottom: 14px; }
.ra-filter input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--ra-line-strong);
  border-radius: var(--ra-radius-sm);
  background: var(--ra-surface);
  font: inherit;
  font-size: .95rem;
  color: var(--ra-ink);
}
.ra-filter input::placeholder { color: var(--ra-muted); }
.ra-filter-icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 20px;
  height: 20px;
  color: var(--ra-muted);
  pointer-events: none;
}
.ra-filter-hint { margin: 6px 0 0; font-size: .76rem; color: var(--ra-muted); }

/* ---------- cards ---------- */

.ra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ra-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--ra-surface);
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-md);
  box-shadow: var(--ra-shadow-sm);
  transition: border-color var(--ra-base) var(--ra-ease), box-shadow var(--ra-base) var(--ra-ease), transform var(--ra-base) var(--ra-ease);
}
.ra-card:hover { border-color: var(--ra-line-strong); box-shadow: var(--ra-shadow-md); }
.ra-card:has(a:focus-visible) { border-color: var(--ra-focus); }
.ra-card[hidden] { display: none; }

.ra-card-media {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--ra-radius-sm);
  background: var(--ra-surface-alt);
  overflow: hidden;
  text-decoration: none;
}
.ra-card-media img { width: 56px; height: 56px; object-fit: cover; display: block; }
.ra-card-glyph { display: grid; place-items: center; color: var(--ra-muted); }
.ra-card-glyph svg { width: 26px; height: 26px; }

.ra-card-body { min-width: 0; }
.ra-card-title { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.3; }
.ra-card-title a { text-decoration: none; }
.ra-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ra-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.ra-card-meta li { display: inline-flex; align-items: baseline; gap: 5px; font-size: .78rem; }
.ra-meta-k { color: var(--ra-muted); }
.ra-meta-v { font-weight: 700; color: var(--ra-ink); }
.ra-meta-note { margin-left: 3px; font-weight: 500; font-size: .68rem; color: var(--ra-muted); text-transform: uppercase; letter-spacing: .04em; }

.ra-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--ra-line);
}
.ra-card-rating {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ra-ink-soft);
}
.ra-card-rating span[aria-hidden] { color: var(--ra-accent); }
.ra-card-rating-muted { font-weight: 600; color: var(--ra-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }

.ra-empty {
  margin: 8px 0 0;
  padding: 14px;
  border: 1px dashed var(--ra-line-strong);
  border-radius: var(--ra-radius-md);
  font-size: .9rem;
  color: var(--ra-muted);
  text-align: center;
}
.ra-empty[hidden] { display: none; }

/* recently added */
.ra-new {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ra-line);
}
.ra-new-h {
  margin: 0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ra-muted);
}
.ra-new ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ra-new a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-pill);
  background: var(--ra-surface);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.ra-new a:hover { border-color: var(--ra-ink); }
.ra-new a svg { width: 14px; height: 14px; color: var(--ra-muted); }

/* ---------- bands, steps, checks, faq ---------- */

.ra-band { padding: 24px 0; }
.ra-band-alt { background: var(--ra-surface-alt); }

.ra-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: ra-step; }
.ra-steps li {
  position: relative;
  padding: 14px;
  background: var(--ra-surface);
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-md);
}
.ra-steps h3 { margin: 0 0 4px; padding-left: 34px; }
.ra-steps p { margin: 0; padding-left: 34px; font-size: .88rem; color: var(--ra-ink-soft); }
.ra-step-n {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ra-accent-soft);
  color: var(--ra-accent-ink);
  font-size: .76rem;
  font-weight: 800;
}
.ra-steps-tight li { padding: 12px 14px; }
.ra-steps-tight h3 { font-size: 1rem; }

.ra-safety { display: grid; gap: 18px; }
.ra-safety-intro p { font-size: .92rem; color: var(--ra-ink-soft); max-width: 60ch; }
.ra-safety-age { font-size: .85rem; color: var(--ra-muted); }
.ra-safety-age span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: var(--ra-radius-pill);
  background: var(--ra-ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.ra-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ra-checks li {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  background: var(--ra-surface);
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-sm);
  font-size: .86rem;
  color: var(--ra-ink-soft);
}
.ra-checks svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ra-success); }
.ra-checks strong { color: var(--ra-ink); }

.ra-faq-list { display: grid; gap: 8px; }
.ra-faq-list details,
.ra-app-faq details {
  background: var(--ra-surface);
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-sm);
  overflow: hidden;
}
.ra-faq-list summary,
.ra-app-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  list-style: none;
}
.ra-faq-list summary::-webkit-details-marker,
.ra-app-faq summary::-webkit-details-marker { display: none; }
.ra-faq-list summary svg,
.ra-app-faq summary svg { width: 16px; height: 16px; color: var(--ra-muted); transition: transform var(--ra-base) var(--ra-ease); }
.ra-faq-list details[open] summary svg,
.ra-app-faq details[open] summary svg { transform: rotate(90deg); }
.ra-faq-list details p,
.ra-app-faq details p {
  margin: 0;
  padding: 0 14px 14px;
  border-top: 1px solid var(--ra-line);
  padding-top: 10px;
  font-size: .88rem;
  color: var(--ra-ink-soft);
}

/* ---------- prose ---------- */

.ra-prose { max-width: 72ch; font-size: .95rem; color: var(--ra-ink-soft); }
.ra-prose h2 { margin-top: 1.4em; color: var(--ra-ink); font-size: 1.25rem; }
.ra-prose h3 { margin-top: 1.2em; color: var(--ra-ink); }
.ra-prose h2:first-child, .ra-prose h3:first-child { margin-top: 0; }
.ra-prose p { margin: 0 0 1em; }
.ra-prose ul, .ra-prose ol { margin: 0 0 1em; padding-left: 1.15em; }
.ra-prose li { margin-bottom: .4em; }
.ra-prose a { color: var(--ra-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ra-prose strong { color: var(--ra-ink); }
.ra-prose img { border-radius: var(--ra-radius-sm); }

/* ---------- app detail ---------- */

.ra-app { padding-top: 12px; }

.ra-crumbs { margin-bottom: 12px; }
.ra-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  color: var(--ra-muted);
}
.ra-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.ra-crumbs li + li::before { content: "/"; color: var(--ra-line-strong); padding-right: 2px; }
.ra-crumbs a { text-decoration: none; color: var(--ra-ink-soft); }
.ra-crumbs a:hover { text-decoration: underline; }
.ra-crumbs [aria-current] { color: var(--ra-muted); }

.ra-app-grid { display: grid; gap: 20px; }

.ra-app-head { margin-bottom: 18px; }
.ra-app-id { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ra-app-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--ra-radius-md);
  border: 1px solid var(--ra-line);
  background: var(--ra-surface-alt);
  object-fit: cover;
  flex: none;
}
.ra-app-logo-empty { display: grid; place-items: center; color: var(--ra-muted); }
.ra-app-logo-empty svg { width: 28px; height: 28px; }
.ra-app-head h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); }
.ra-app-sub { margin: 0; font-size: .86rem; color: var(--ra-muted); }

.ra-chips-app { margin-bottom: 14px; }
.ra-app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-app-actions .ra-btn-download { flex: 1 1 240px; width: auto; }
.ra-app-actions-note { margin: 8px 0 0; font-size: .76rem; color: var(--ra-muted); max-width: 60ch; }

.ra-app-facts { margin: 20px 0; }
.ra-facts {
  margin: 0;
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-md);
  background: var(--ra-surface);
  overflow: hidden;
}
.ra-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ra-line);
  font-size: .88rem;
}
.ra-facts > div:last-child { border-bottom: 0; }
.ra-facts dt { color: var(--ra-muted); }
.ra-facts dd { margin: 0; font-weight: 600; text-align: right; }
.ra-note { display: inline-block; margin-left: 4px; font-weight: 500; font-size: .7rem; color: var(--ra-muted); text-transform: uppercase; letter-spacing: .04em; }
.ra-facts-note { margin: 8px 0 0; font-size: .76rem; color: var(--ra-muted); }

.ra-app-check { margin: 22px 0; }
.ra-app-faq { margin: 22px 0; }
.ra-app-faq h2 { margin-bottom: 10px; }

.ra-back { margin: 22px 0 0; }
.ra-back a { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.ra-back svg { transform: rotate(180deg); }
.ra-back a:hover { text-decoration: underline; }

.ra-download-card {
  padding: 16px;
  background: var(--ra-surface);
  border: 1px solid var(--ra-line);
  border-radius: var(--ra-radius-lg);
  box-shadow: var(--ra-shadow-md);
}
.ra-download-h { margin: 0 0 10px; font-weight: 800; font-size: 1rem; }
.ra-download-note { margin: 8px 0 12px; font-size: .76rem; color: var(--ra-muted); }
.ra-download-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--ra-line); }
.ra-download-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ra-muted); }
.ra-download-facts dd { margin: 2px 0 0; font-weight: 700; font-size: .92rem; }
.ra-download-legal { margin: 0; font-size: .72rem; line-height: 1.55; color: var(--ra-muted); }

.ra-app-aside { display: none; }

.ra-related { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ra-line); }

/* sticky cta (mobile) */
.ra-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--ra-line);
  box-shadow: 0 -6px 20px rgba(23, 19, 15, .12);
  backdrop-filter: blur(8px);
}
.ra-sticky[hidden] { display: none; }
.ra-sticky-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ra-sticky-text strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-sticky-text span { font-size: .7rem; color: var(--ra-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-sticky .ra-btn-download { width: auto; flex: none; min-height: 46px; padding: 0 16px; font-size: .92rem; }

/* ---------- static page ---------- */

.ra-page { padding-top: 12px; }
.ra-page-head { margin-bottom: 16px; }
.ra-page-head h1 { margin-bottom: 0; max-width: 26ch; }
.ra-page-grid { display: grid; gap: 20px; }
.ra-page-aside { display: grid; gap: 12px; align-content: start; }
.ra-aside-card { box-shadow: var(--ra-shadow-sm); }
.ra-aside-plain { background: var(--ra-surface); border: 1px solid var(--ra-line); border-radius: var(--ra-radius-lg); padding: 16px; }
.ra-aside-text { margin: 0 0 12px; font-size: .84rem; color: var(--ra-muted); }

/* ---------- footer ---------- */

.ra-footer {
  margin-top: 32px;
  padding-top: 24px;
  background: var(--ra-deep);
  color: #d9d2c7;
  font-size: .84rem;
}
.ra-footer a { color: #f3eee6; text-decoration: none; }
.ra-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ra-footer-grid { display: grid; gap: 22px; padding-bottom: 20px; }
.ra-footer-name { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: -.015em; }
.ra-footer-note { margin: 0 0 12px; max-width: 42ch; color: #b7ae9f; }
.ra-footer-tg { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .84rem; }
.ra-footer-tg svg { width: 17px; height: 17px; }
.ra-footer-h { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9a9082; }
.ra-footer-nav ul, .ra-footer-legal ul { margin: 0; padding: 0; list-style: none; }
.ra-footer-nav li { margin-bottom: 6px; }
.ra-footer-legal li { position: relative; margin-bottom: 6px; padding-left: 12px; color: #b7ae9f; }
.ra-footer-legal li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ra-accent); }
.ra-footer-base {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--ra-deep-2);
  color: #9a9082;
  font-size: .76rem;
}
.ra-footer-base p { margin: 0; }
.ra-footer-age span {
  display: inline-block;
  margin-right: 4px;
  padding: 0 5px;
  border: 1px solid #4a423a;
  border-radius: 4px;
  color: #f3eee6;
  font-weight: 800;
  font-size: .68rem;
}

/* ---------- 404 ---------- */

.ra-404 { padding: 32px 0 48px; max-width: 640px; }
.ra-404-code {
  margin: 0 0 4px;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ra-line-strong);
}
.ra-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.ra-404-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ra-404-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ra-line-strong);
  border-radius: var(--ra-radius-pill);
  background: var(--ra-surface);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.ra-404-nav a svg { width: 14px; height: 14px; color: var(--ra-muted); }
.ra-404-note { font-size: .8rem; color: var(--ra-muted); }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  :root { --ra-gutter: 24px; }
  .ra-hero { padding: 32px 0 12px; }
  .ra-lead { font-size: 1rem; }
  .ra-hero-actions .ra-btn { flex: 0 0 auto; }
  .ra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ra-card { grid-template-columns: 60px 1fr; }
  .ra-card-media, .ra-card-media img { width: 60px; height: 60px; }
  .ra-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ra-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-download-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ra-footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; gap: 24px; }
  .ra-footer-base { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  :root { --ra-header-h: 66px; }
  .ra-nav { display: block; }
  .ra-menu-btn { display: none; }
  .ra-drawer { display: none !important; }
  .ra-hero { padding: 44px 0 16px; }
  .ra-hero h1 { max-width: 24ch; }
  .ra-list { padding: 24px 0 12px; }
  .ra-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ra-band { padding: 36px 0; }
  .ra-safety { grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
  .ra-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
  .ra-faq .ra-section-head { margin-bottom: 0; }
  .ra-app-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
  .ra-app-aside { display: block; position: sticky; top: calc(var(--ra-header-h) + 16px); }
  .ra-page-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
  .ra-related { margin-top: 36px; }
  .ra-sticky { display: none !important; }
  .ra-app-id { gap: 16px; }
  .ra-app-logo { width: 76px; height: 76px; }
}

@media (min-width: 1280px) {
  :root { --ra-wrap: 1200px; }
}

@media (max-width: 639px) {
  .ra-hero { padding: 12px 0 6px; }
  .ra-hero h1 { font-size: 1.4rem; margin-bottom: 8px; }
  .ra-lead { font-size: .875rem; line-height: 1.5; margin-bottom: 8px; }
  .ra-hero-actions { margin-bottom: 10px; }
  .ra-chips li { font-size: .7rem; padding: 4px 9px; }
  .ra-notice { margin-top: 10px; }
  .ra-list { padding: 12px 0 8px; }
  .ra-section-head { margin-bottom: 8px; }
  .ra-filter { margin-bottom: 10px; }
  .ra-filter-hint { display: none; }
}

@media (max-width: 400px) {
  .ra-brand-tag { display: none; }
  .ra-hero-actions .ra-btn { flex: 1 1 100%; }
  .ra-hero-secondary { display: none; }
  .ra-chips li:nth-child(n+3) { display: none; }
  .ra-lead { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
