:root {
  --bg: #f4f4ef;
  --surface: #ffffff;
  --surface-soft: #ebece6;
  --ink: #171815;
  --muted: #6d7067;
  --line: rgba(23, 24, 21, .12);
  --accent: #c9ff59;
  --dark: #171815;
  --radius-lg: 36px;
  --radius-md: 24px;
  --shadow: 0 24px 70px rgba(23, 24, 21, .10);
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 112px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--ink); color: white; border-radius: 11px; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .2s ease; }
.nav a:hover::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; font-weight: 700; cursor: pointer; }

.hero { padding-top: 72px; min-height: 760px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: 12px; margin: 0 0 20px; color: #777b6f; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(56px, 7vw, 98px); line-height: .92; letter-spacing: -.065em; margin-bottom: 28px; }
h1 span { color: #777b6f; }
.hero-text { max-width: 620px; font-size: 18px; color: var(--muted); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(23,24,21,.15); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.button-light { background: white; color: var(--ink); }

.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 90%; height: 90%; border-radius: 50%; border: 1px solid var(--line); }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-a { width: 260px; height: 260px; background: var(--accent); top: 5%; right: 6%; opacity: .85; }
.orb-b { width: 150px; height: 150px; background: #d7d6ff; bottom: 6%; left: 4%; }
.phone-card {
  position: relative; z-index: 3; width: 280px; height: 520px; padding: 34px 26px; border-radius: 44px;
  background: #141512; color: white; border: 8px solid #252621; box-shadow: 0 50px 80px rgba(15,15,13,.25); transform: rotate(5deg);
}
.phone-top { width: 74px; height: 18px; background: #080907; border-radius: 999px; margin: -20px auto 58px; }
.mini-label { font-size: 10px; letter-spacing: .22em; color: #a8aa9f; }
.mock-title { font-weight: 780; font-size: 38px; line-height: 1; letter-spacing: -.05em; margin-top: 22px; }
.mock-stack { display: grid; gap: 10px; margin-top: 78px; }
.mock-stack span { display: flex; align-items: center; min-height: 54px; padding: 0 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; color: #d7d9cf; }
.floating-card { position: absolute; z-index: 4; padding: 14px 18px; background: white; border-radius: 18px; box-shadow: var(--shadow); font-weight: 700; font-size: 13px; }
.card-one { top: 20%; left: 3%; transform: rotate(-8deg); }
.card-two { right: 0; top: 55%; transform: rotate(7deg); }
.card-three { left: 12%; bottom: 9%; transform: rotate(4deg); }

.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.section-heading h2 { font-size: clamp(40px, 4.5vw, 68px); line-height: .98; letter-spacing: -.055em; max-width: 760px; margin-bottom: 0; }
.feature-list { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature > span, .team-card > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin-bottom: 0; color: var(--muted); max-width: 600px; }

.apps-section { background: #1a1b17; color: white; }
.apps-section .eyebrow, .apps-section .section-note { color: #a6aa9e; }
.row-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-note { max-width: 340px; font-size: 13px; }
.section-note code { color: white; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filter-button { border: 1px solid rgba(255,255,255,.14); color: #c7c9c0; background: transparent; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.filter-button.active, .filter-button:hover { background: var(--accent); color: #11120f; border-color: var(--accent); }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.app-card { min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: #242520; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; padding: 24px; transition: transform .2s ease, border-color .2s ease; transition-delay: var(--delay, 0ms); }
.app-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.app-card-top, .app-card-footer { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.app-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #11120f; font-weight: 850; letter-spacing: -.04em; }
.app-icon-1 { background: #c9ff59; }
.app-icon-2 { background: #d9d6ff; }
.app-icon-3 { background: #ffd6dc; }
.app-icon-4 { background: #cce8ff; }
.app-icon-5 { background: #ffe6a5; }
.app-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.app-meta span { border: 1px solid rgba(255,255,255,.12); color: #b9bcb1; border-radius: 999px; padding: 6px 9px; font-size: 11px; }
.app-card h3 { font-size: 29px; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 12px; max-width: 440px; }
.app-card p { color: #aeb1a6; max-width: 520px; margin-bottom: 0; }
.app-card-footer { align-items: end; }
.app-card-footer code { color: #7e8178; font-size: 10px; overflow-wrap: anywhere; max-width: 66%; }
.app-card-footer a { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.load-error { color: #ffb5b5; }

.about-card { background: white; border-radius: var(--radius-lg); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; box-shadow: 0 8px 30px rgba(23,24,21,.04); }
.about-copy { align-self: end; color: var(--muted); font-size: 17px; }
.about-copy p:last-child { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.team-card { background: white; min-height: 210px; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.team-card h3 { margin: auto 0 6px; font-size: 24px; letter-spacing: -.03em; }
.team-card p { color: var(--muted); margin-bottom: 0; }
.contact-card { min-height: 420px; padding: 60px; border-radius: var(--radius-lg); background: var(--accent); display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.contact-card .eyebrow { color: #4e5c2d; }
.contact-card h2 { max-width: 760px; font-size: clamp(48px, 6vw, 82px); line-height: .95; letter-spacing: -.06em; margin-bottom: 30px; }

.footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: 1fr auto auto; gap: 36px; align-items: end; }
.footer strong { font-size: 18px; }
.footer p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.footer-links { display: flex; gap: 18px; font-size: 13px; font-weight: 650; }
.copyright { white-space: nowrap; }

.legal-page { min-height: 100vh; }
.legal-shell { max-width: 850px; padding-top: 50px; }
.legal-shell h1 { font-size: clamp(60px, 8vw, 110px); }
.terms-page .legal-shell { max-width: 920px; }
.terms-page .legal-shell h1 { font-size: clamp(52px, 7vw, 96px); }
.legal-meta { color: var(--muted); font-size: 14px; font-weight: 650; margin: -12px 0 28px; }
.legal-intro { font-size: 20px; color: var(--muted); max-width: 720px; margin-bottom: 64px; }
.legal-shell section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-shell section h2 { font-size: 24px; letter-spacing: -.03em; }
.legal-shell section p, .legal-shell section li { color: var(--muted); }
.legal-shell section a { text-decoration: underline; text-underline-offset: 3px; }
.legal-opening { max-width: 800px; margin-bottom: 36px; }
.legal-opening p { color: var(--muted); font-size: 17px; }
.legal-shell ul { margin: 0; padding-left: 22px; }
.legal-shell li + li { margin-top: 12px; }
.legal-notice { margin: 0 0 64px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 36px rgba(23, 24, 21, .06); }
.legal-notice strong { display: block; margin-bottom: 8px; }
.legal-notice p { color: var(--muted); margin-bottom: 0; }
.legal-feature-list strong { color: var(--ink); }
.legal-contact { color: var(--muted); font-style: normal; line-height: 1.8; }
.legal-contact strong { color: var(--ink); }
.legal-table-wrap { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.legal-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.legal-table caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.legal-table th, .legal-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th + th, .legal-table td + td { border-left: 1px solid var(--line); }
.legal-table th { background: var(--ink); color: white; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.legal-table td { color: var(--muted); }
.legal-table td:first-child { width: 42%; color: var(--ink); font-weight: 650; }
.legal-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-soft) 52%, white); }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table code { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .section { padding: 86px 0; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero-grid, .split-grid, .about-card { grid-template-columns: 1fr; gap: 46px; }
  .hero-art { min-height: 520px; }
  .row-heading { align-items: flex-start; flex-direction: column; }
  .app-grid { grid-template-columns: 1fr; }
  .about-card { padding: 42px; }
  .footer-row { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 24px, 1180px); --radius-lg: 26px; }
  .section { padding: 72px 0; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; }
  .legal-nav { display: flex; position: static; background: transparent; border: 0; box-shadow: none; padding: 0; }
  h1 { font-size: 54px; }
  .hero-art { min-height: 450px; overflow: hidden; }
  .phone-card { width: 240px; height: 440px; }
  .mock-title { font-size: 32px; }
  .mock-stack { margin-top: 52px; }
  .floating-card { font-size: 11px; }
  .section-heading h2 { font-size: 42px; }
  .about-card, .contact-card { padding: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 46px 1fr; }
  .app-card { min-height: 320px; }
  .app-card-footer { flex-direction: column; align-items: flex-start; }
  .app-card-footer code { max-width: 100%; }
  .footer-links { flex-wrap: wrap; }
}

/* Live Google Play data */
.source-panel { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.source-panel .section-note { margin: 0; text-align: right; }
.source-panel .section-note strong { color: white; font-size: 18px; }
.refresh-button:disabled { opacity: .45; cursor: wait; }
.app-icon-image { object-fit: cover; background: #31322d; }
.app-card-loading { justify-content: flex-start; }
.loading-line { height: 12px; width: 100%; border-radius: 999px; background: rgba(255,255,255,.08); animation: pulse 1.2s ease-in-out infinite alternate; }
.loading-icon { width: 64px; height: 64px; border-radius: 20px; margin-bottom: 44px; }
.loading-title { width: 58%; height: 28px; margin-bottom: 18px; }
.loading-short { width: 72%; margin-top: 10px; }
@keyframes pulse { from { opacity: .45; } to { opacity: 1; } }

@media (max-width: 720px) {
  .source-panel { align-items: flex-start; }
  .source-panel .section-note { text-align: left; }
}
