/* ===========================================================
   HappyMod — Modern Redesign
   Single stylesheet. Mobile-first. Light + dark themes.
   Brand: Android green. Inspired by the official HappyMod look.
   =========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4faf6;
  --bg-elev: #ffffff;
  --text: #0f1f17;
  --text-muted: #5b6b62;
  --border: #e3ece6;
  --border-strong: #cfdcd5;
  --primary: #16A34A;
  --primary-600: #0F7A36;
  --primary-50: #ECFDF3;
  --accent: #23C552;
  --warn: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 31, 23, .04), 0 1px 3px rgba(15, 31, 23, .06);
  --shadow-md: 0 8px 24px rgba(15, 31, 23, .08);
  --shadow-lg: 0 20px 60px rgba(15, 31, 23, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1200px;
  --header-h: 68px;
  --transition: 200ms cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1410;
  --bg-alt: #0e1a14;
  --bg-elev: #11211a;
  --text: #e7f3ec;
  --text-muted: #99ad9f;
  --border: #1c2e25;
  --border-strong: #28402f;
  --primary: #34D26A;
  --primary-600: #16A34A;
  --primary-50: rgba(52,210,106,.12);
  --accent: #34D26A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; transition: color var(--transition); }
[data-theme="dark"] a { color: var(--accent); }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.1em; margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.visually-hidden {
  position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden;
}

.skip-link {
  position: absolute; left: -9999px; top: 12px; background: var(--primary); color: #fff;
  padding: 10px 14px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.15rem; }
.brand-accent { color: var(--primary); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-link { display: inline-block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-link:hover { background: var(--bg-alt); color: var(--text); }
.nav-link.active { background: var(--primary-50); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.icon-btn:hover { background: var(--bg-alt); border-color: var(--border-strong); }
.icon-btn:active { transform: translateY(1px); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  box-shadow: 0 10px 24px color-mix(in oklab, var(--primary) 35%, transparent);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.hero { position: relative; padding: clamp(50px, 8vw, 100px) 0 clamp(40px, 7vw, 80px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% auto -10%; height: 80%;
  background:
    radial-gradient(45% 55% at 18% 20%, color-mix(in oklab, var(--primary) 26%, transparent), transparent 60%),
    radial-gradient(40% 50% at 82% 30%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 60%);
  filter: blur(20px); z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-600); font-weight: 600; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--primary); }
.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-cta .btn-primary svg { width: 22px; height: 22px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px; margin-top: 36px; max-width: 540px;
}
.hero-stats > div {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: var(--radius);
}
.hero-stats strong { display: block; font-size: 1.3rem; font-weight: 800; }
.hero-stats span { font-size: .8rem; color: var(--text-muted); }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; align-items: center;
  color: var(--text-muted); font-size: .85rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 16px; height: 16px; color: var(--primary); }

/* Hero phone mockup (HappyMod style) */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px;
}
.phone-mock {
  width: 280px; height: 560px; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #0f1f17, #051008);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; color: #fff;
}
.phone-screen .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; background: #051008; border-radius: 999px;
}
.phone-logo { width: 140px; height: 140px; margin-bottom: 14px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.phone-screen .name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.phone-screen .tag { font-size: .85rem; opacity: .9; margin-top: 4px; }

.float-card {
  position: absolute; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
  animation: floatY 5s ease-in-out infinite;
}
.float-card .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 25%, transparent); }
.float-card .dot.amber { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warn) 25%, transparent); }
.fc1 { top: 36px; right: -10px; }
.fc2 { bottom: 50px; left: -20px; animation-delay: -2s; }

@keyframes float { 0%,100%{transform: rotate(-3deg) translateY(0);} 50%{transform: rotate(-3deg) translateY(-10px);} }
@keyframes floatY { 0%,100%{transform: translateY(0);} 50%{transform: translateY(-8px);} }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head.center { display: block; text-align: center; margin-bottom: 36px; }
.section-head.center p { max-width: 60ch; margin: 0 auto; }
.link-arrow { font-weight: 600; color: var(--primary); }
.link-arrow:hover { color: var(--primary-600); }

/* Card grid */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none; color: var(--text);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); color: var(--text); }
.card-top { display: flex; align-items: center; gap: 12px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 1.2rem; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.app-meta h3 { margin: 0 0 2px; font-size: 1rem; }
.app-meta .sub { font-size: .85rem; color: var(--text-muted); }
.card-desc { color: var(--text-muted); font-size: .92rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; }
.rating svg { width: 14px; height: 14px; fill: var(--warn); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-size: .75rem; font-weight: 600; }
[data-theme="dark"] .tag { color: var(--accent); }

/* Features */
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in oklab, var(--c, var(--primary)) 14%, transparent);
  color: var(--c, var(--primary));
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; }

/* App info table */
.app-info {
  display: grid; gap: 24px; grid-template-columns: 1.2fr 1fr; align-items: start;
}
.info-table {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.info-table table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 14px 18px; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--border); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 45%; color: var(--text-muted); font-weight: 500; background: var(--bg-alt); }
.info-table td { font-weight: 600; }
.info-table .badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary-600); font-size: .8rem; font-weight: 700;
}
[data-theme="dark"] .info-table .badge { color: var(--accent); }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h4 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* Screenshots gallery */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.shot {
  aspect-ratio: 9/19; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  box-shadow: var(--shadow-md);
  display: flex; align-items: flex-start; justify-content: center;
}
.shot::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 70px; height: 14px; background: rgba(0,0,0,.6); border-radius: 999px; }
.shot::after {
  content: ""; position: absolute; inset: 38px 14px 14px 14px; border-radius: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 16px, transparent 16px 36px),
    rgba(255,255,255,.12);
  backdrop-filter: blur(2px);
}
.shot:nth-child(2n) { background: linear-gradient(180deg, #0F7A36, #064721); }
.shot:nth-child(3n) { background: linear-gradient(180deg, #34D26A, #16A34A); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 18px;
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--transition);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--primary); }
.faq details > p { color: var(--text-muted); padding: 0 0 16px; margin: 0; }

/* CTA band */
.cta-band { padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.9); margin: 0; }
.cta-inner .btn-primary {
  background: #fff; color: var(--primary-600);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.cta-inner .btn-primary:hover { color: var(--primary-600); }

/* Disclaimer callout */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px 22px; border-radius: var(--radius);
  background: color-mix(in oklab, var(--warn) 10%, var(--bg-elev));
  border: 1px solid color-mix(in oklab, var(--warn) 40%, var(--border));
}
.callout-icon { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in oklab, var(--warn) 22%, transparent); color: var(--warn); display: grid; place-items: center; flex-shrink: 0; }
.callout h3 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: start; padding-bottom: 24px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.foot-cols h4 { margin: 0 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--text); }
.foot-cols a:hover { color: var(--primary); }
.foot-bottom { padding: 16px 20px 0; border-top: 1px solid var(--border); }

/* Page hero */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-hero.slim { padding: 24px 0 0; }
.page-hero h1 { margin-bottom: 12px; }
.breadcrumb { color: var(--text-muted); font-size: .9rem; }
.breadcrumb span { margin: 0 6px; }

/* Toolbar (downloads/listing page) */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 12px; min-width: 280px; flex: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent); }
.search svg { color: var(--text-muted); flex-shrink: 0; }
.search input { border: 0; background: transparent; outline: none; color: var(--text); font-size: .95rem; width: 100%; font-family: inherit; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.results-meta { color: var(--text-muted); margin-bottom: 16px; font-size: .9rem; }
.empty-state { text-align: center; padding: 40px 20px; }

/* App detail */
.app-detail { display: grid; gap: 24px; }
.detail-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.detail-head .app-icon { width: 88px; height: 88px; border-radius: 20px; font-size: 1.8rem; }
.detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; }
.detail-head .sub { color: var(--text-muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .9rem; color: var(--text-muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }

.detail-body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.detail-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.detail-card h2 { font-size: 1.2rem; }
.spec-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { font-weight: 600; }
.spec-list span { color: var(--text-muted); }

/* Two-column page layout */
.two-col { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in oklab, var(--success) 18%, transparent); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

/* Contact form */
.contact-layout { grid-template-columns: 1.4fr 1fr; }
.contact-form { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent); }
.form-status { min-height: 1.2em; margin: 0; font-size: .9rem; color: var(--success); }
.form-status.error { color: var(--danger); }
.contact-aside { display: grid; gap: 16px; }
.info-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.info-card.subtle { background: var(--bg-alt); }
.info-card h3 { margin-bottom: 8px; font-size: 1rem; }
.info-card ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.sort select {
  appearance: none; padding: 10px 36px 10px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-elev) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") right 12px center / 12px no-repeat;
  color: var(--text); font-family: inherit; font-size: .9rem; cursor: pointer;
}

/* AdSense ad slots — placeholder styling, hides cleanly when filled */
.ad-slot {
  position: relative;
  min-height: 100px;
  margin: 28px 0;
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-align: center;
  font-size: .85rem;
  overflow: hidden;
}
.ad-slot:has(ins.adsbygoogle) { border: 0; padding: 0; min-height: 0; background: transparent; }
.ad-slot-label {
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  font-size: .7rem; color: var(--text-muted); opacity: .8;
}
.ad-slot:has(ins.adsbygoogle) .ad-slot-label { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 360px; }
  .phone-mock { transform: rotate(-2deg) scale(.85); }
  .footer-inner { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .app-info { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    transform: translateY(-110%); transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }
  .primary-nav.open { transform: none; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .nav-link { display: block; }
  .detail-head { grid-template-columns: auto 1fr; }
  .detail-head .btn { grid-column: 1 / -1; width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
