:root {
  --bg: #f7f6fb;
  --surface: #ffffff;
  --text: #17161f;
  --muted: #5b6070;
  --rule: #e4e2ec;
  --chip: #f0eef6;
  --surjam: #d9480f;
  --surjam-2: #c2255c;
  --hokayantra: #1f3a8a;
  --hokayantra-2: #f2622e;
  --shadow: 0 1px 2px rgb(20 18 40 / 6%), 0 8px 24px rgb(20 18 40 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e17;
    --surface: #1a1926;
    --text: #f4f3fa;
    --muted: #a3a8b8;
    --rule: #2d2b3d;
    --chip: #24223a;
    --surjam: #ff8a3d;
    --surjam-2: #f0507f;
    --hokayantra: #8fa8ff;
    --hokayantra-2: #ff8a5c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e17;
  --surface: #1a1926;
  --text: #f4f3fa;
  --muted: #a3a8b8;
  --rule: #2d2b3d;
  --chip: #24223a;
  --surjam: #ff8a3d;
  --surjam-2: #f0507f;
  --hokayantra: #8fa8ff;
  --hokayantra-2: #ff8a5c;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.site-header nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Home hero */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 16ch; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 56ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.pills li { background: var(--chip); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; color: var(--muted); }

/* App cards on the home page */
.apps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.card-head { display: flex; gap: 16px; align-items: center; }
.card-head img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.card h2 { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.tagline { color: var(--muted); margin: 2px 0 0; font-size: 0.95rem; }
.card p { margin: 0; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.95rem; }
.features li { padding-left: 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.surjam { --accent: var(--surjam); --accent-2: var(--surjam-2); }
.hokayantra { --accent: var(--hokayantra); --accent-2: var(--hokayantra-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn-play { background: var(--text); color: var(--bg); }
.btn-play svg { width: 18px; height: 18px; }
.btn-ghost { border-color: var(--rule); color: var(--text); }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent, var(--hokayantra)); outline-offset: 2px; }

/* Screenshot strip */
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.shots img {
  width: 150px; height: auto; aspect-ratio: 1 / 2; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--rule); scroll-snap-align: start; flex: none;
  background: var(--chip);
}

/* App detail pages */
.app-hero { padding: 32px 0 8px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.app-hero img { width: 96px; height: 96px; border-radius: 24px; }
.app-hero h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
.app-hero .tagline { font-size: 1.05rem; }
.accent-bar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin: 24px 0; }
.section { margin-top: 40px; }
.section h2 { font-size: 1.25rem; margin: 0 0 14px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.box { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px 20px; }
.box h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--accent); }
.box ul { margin: 0; padding-left: 18px; }
.box li { margin: 3px 0; }
.page-shots .shots img { width: 200px; }
.note { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 480px) {
  .card { padding: 18px; }
  .shots img { width: 128px; }
  .page-shots .shots img { width: 160px; }
  .site-header nav { gap: 12px; }
}
