/* Dan Studio Apps — design system */
:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --brand: #f5c518;
  --brand-ink: #111;
  --accent: var(--brand);
  --accent-rgb: 245, 197, 24;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Per-app accent colors */
.theme-bitcoin { --accent: #f7931a; --accent-rgb: 247, 147, 26; }
.theme-calculadora { --accent: #f5c518; --accent-rgb: 245, 197, 24; }
.theme-alarmobus { --accent: #34d399; --accent-rgb: 52, 211, 153; }
.theme-personaltrainer { --accent: #ff6b4a; --accent-rgb: 255, 107, 74; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--brand-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.main-nav a.active { color: var(--text); background: rgba(255,255,255,0.08); }
.lang-toggle { display: flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-toggle button { all: unset; cursor: pointer; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang-toggle button.active { background: var(--text); color: var(--bg); }
.nav-toggle { all: unset; display: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .lang-toggle { margin-left: auto; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(11, 11, 13, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--brand-ink); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(var(--accent-rgb), 0.85); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px; background: #fff; color: #000;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(255,255,255,0.4); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; line-height: 1; opacity: 0.7; }
.store-btn strong { display: block; font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.h-xl { font-size: clamp(42px, 7.2vw, 88px); }
.h-lg { font-size: clamp(34px, 5vw, 56px); }
.h-md { font-size: clamp(24px, 3vw, 32px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.grad-text { font-style: normal; padding-right: .04em; background: linear-gradient(100deg, var(--accent) 0%, #fff6d6 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 16px; margin-bottom: 56px; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Background FX ---------- */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.section > .wrap, .hero > .wrap { position: relative; z-index: 1; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(72px, 10vw, 120px) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.hero .glow-a { width: 620px; height: 620px; background: rgba(245,197,24,0.35); top: -260px; left: 50%; transform: translateX(-50%); }
.home-hero { text-align: center; }
.home-hero .lead { margin: 24px auto 40px; }
.home-hero .btn-row { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 28px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,0.03);
  font-size: 14px; color: var(--muted);
}
.pill b { background: var(--accent); color: var(--brand-ink); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.icon-orbit { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); margin-top: 72px; }
.icon-orbit a {
  width: clamp(64px, 11vw, 104px); aspect-ratio: 1; border-radius: 26%; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9), 0 0 0 1px var(--line-strong);
  transition: transform 0.4s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.icon-orbit a:nth-child(2) { animation-delay: -1.5s; }
.icon-orbit a:nth-child(3) { animation-delay: -3s; }
.icon-orbit a:nth-child(4) { animation-delay: -4.5s; }
.icon-orbit a:hover { transform: translateY(-8px) scale(1.06); }
.icon-orbit img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- App cards (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .bento { grid-template-columns: 1fr; } }
.app-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 460px; padding: 32px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.02) 45%), var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.3s;
  isolation: isolate;
}
.app-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), 0.45); }
.app-card::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; z-index: -1;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 65%);
  transition: transform 0.6s var(--ease);
}
.app-card:hover::after { transform: scale(1.25); }
.app-card__head { display: flex; align-items: center; gap: 16px; }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-strong); }
.app-card h3 { font-size: 26px; }
.app-card__cat { font-size: 13px; color: var(--accent); font-weight: 600; }
.app-card p { color: var(--muted); margin: 20px 0 0; max-width: 380px; }
.app-card__shot {
  margin-top: auto; align-self: flex-end; width: 62%; max-width: 280px; margin-bottom: -96px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
  transition: transform 0.6s var(--ease);
}
.app-card:hover .app-card__shot { transform: translateY(-16px) rotate(-2deg); }
.app-card__go {
  position: absolute; left: 32px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
}
.app-card__go i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--brand-ink); font-style: normal; transition: transform 0.3s var(--ease); }
.app-card:hover .app-card__go i { transform: translateX(4px); }
.app-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text); }

/* Generated "phone" for apps without screenshots */
.mini-phone {
  margin-top: auto; align-self: flex-end; width: 210px; height: 300px; margin-bottom: -110px;
  border-radius: 34px; padding: 10px; background: #050505; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9);
  transition: transform 0.6s var(--ease);
}
.app-card:hover .mini-phone { transform: translateY(-16px) rotate(-2deg); }
.mini-phone__screen { height: 100%; border-radius: 26px; background: linear-gradient(180deg, #19191d, #0e0e11); padding: 22px 14px; display: grid; align-content: start; gap: 10px; }

/* ---------- Values / feature tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.tile:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-4px); }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); margin-bottom: 22px; }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 21px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile .num { font-family: var(--display); font-size: 14px; color: var(--accent); font-weight: 600; display: block; margin-bottom: 18px; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.split .lead { margin-top: 20px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.5);
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px; border-radius: 32px;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(var(--accent-rgb), 0.28), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta-panel .lead { margin: 18px auto 36px; }
.cta-panel .btn-row { justify-content: center; }

/* ---------- App page hero ---------- */
.app-hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: 0; }
.app-hero .glow-a { width: 700px; height: 700px; background: rgba(var(--accent-rgb), 0.3); top: -300px; right: -200px; left: auto; transform: none; }
.app-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .app-hero__grid { grid-template-columns: 1fr; } }
.breadcrumb { font-size: 14px; color: var(--dim); margin-bottom: 32px; display: flex; gap: 8px; }
.breadcrumb a:hover { color: var(--text); }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.app-id img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -16px rgba(var(--accent-rgb), 0.6); }
.app-id .meta { display: grid; gap: 4px; }
.app-id .meta span { font-size: 14px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; font-weight: 600; }
.rating svg { width: 14px; height: 14px; color: var(--accent); }
.app-hero h1 { margin-bottom: 22px; }
.app-hero .btn-row { margin-top: 36px; }
.app-hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.app-hero__visual img { position: relative; z-index: 1; max-height: 600px; width: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7)); }
.app-hero__visual::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 65%); }
.app-hero__visual .ring { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(var(--accent-rgb), 0.3); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Screenshot gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 32px; margin: 0 -24px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery img { height: clamp(380px, 52vw, 520px); width: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.6)); transition: transform 0.5s var(--ease); }
.gallery figure:hover img { transform: translateY(-8px); }
.gallery figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (min-width: 1000px) { .gallery { justify-content: center; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: 40px; font-weight: 700; color: rgba(var(--accent-rgb), 0.9); margin-bottom: 14px; }
.step p { color: var(--muted); }

/* Other apps strip */
.more-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .more-apps { grid-template-columns: 1fr; } }
.more-app { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.more-app:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-3px); }
.more-app img { width: 52px; height: 52px; border-radius: 14px; }
.more-app strong { display: block; font-family: var(--display); }
.more-app span { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.timeline { position: relative; display: grid; gap: 28px; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.tl-item { position: relative; padding-left: 64px; }
.tl-item::before { content: ""; position: absolute; left: 12px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item .when { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { font-size: 24px; margin: 6px 0 12px; }
.tl-item p { color: var(--muted); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-grid .tile p { font-size: 17px; color: var(--text); }
.quote { font-family: var(--display); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.02em; text-align: center; max-width: 900px; margin: 0 auto; }

/* ---------- Policy ---------- */
.policy { max-width: 760px; margin: 0 auto; }
.policy .note { padding: 20px 22px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--muted); }
.policy-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.policy-apps a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.policy-apps a.active, .policy-apps a:hover { border-color: var(--accent); }
.policy-apps img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font-family: var(--font); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  .brand { font-size: 0; gap: 0; }
  .site-footer .brand { font-size: 17px; gap: 10px; }
  .app-card { padding: 24px; min-height: 0; }
  .app-card__go { position: static; margin-top: 24px; order: 1; }
  .app-card__shot, .mini-phone { order: 2; }
  .app-card__shot, .mini-phone { margin-top: 28px; margin-bottom: -120px; align-self: center; }
  .app-card__shot { width: 70%; }
  .app-hero__visual { min-height: 0; }
  .app-hero__visual img { max-height: 440px; }
  .btn-row .store-btn, .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Policy text ---------- */
.policy-body { color: #d4d4d8; font-size: 16.5px; line-height: 1.75; }
.policy-body h2 { font-size: 22px; margin: 44px 0 14px; color: var(--text); }
.policy-body h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); font-family: var(--font); letter-spacing: 0; }
.policy-body p + p { margin-top: 14px; }
.policy-body ul { padding-left: 22px; margin: 14px 0; }
.policy-body li + li { margin-top: 6px; }
.policy-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.policy-body .updated { color: var(--muted); font-size: 14px; }
.policy .app-id h1 { font-size: clamp(28px, 4vw, 44px); }

/* ---------- Donate ---------- */
.wallet { display: grid; gap: 16px; justify-items: start; }
.wallet code { font-size: 14.5px; word-break: break-all; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); width: 100%; }
.wallet .btn { height: 44px; cursor: pointer; font: inherit; font-weight: 600; background: none; color: var(--text); }
@media (max-width: 700px) { .tiles[style*="1fr 1fr"], .more-apps[style*="1fr 1fr"] { grid-template-columns: 1fr !important; } }
.more-app span a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.more-app span a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.err-code { font-family: var(--display); font-weight: 700; font-size: clamp(96px, 18vw, 200px); line-height: 1; letter-spacing: -0.05em; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), 0.08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
