/* ============================================================
   One — homepage styles (redesign 2026)
   The privacy policy pages still use the legacy styles.css.
   ============================================================ */

/* ---------- Tokens: light ---------- */
:root {
  --bg: #f3f5f3;
  --surface: #ffffff;
  --surface-2: #eaeeeb;
  --text: #1e241f;
  --text-2: #57605a;
  --text-3: #8a938c;
  --line: #dfe5e0;
  --accent: #109d58;
  --accent-ink: #0b7a44;        /* accent for small text, higher contrast */
  --accent-soft: rgba(16, 157, 88, 0.11);
  --glow: rgba(16, 157, 88, 0.22);
  --shot-bg: #181818;           /* screenshots are dark-native, always */
  --badge-bg: #000000;
  --badge-line: #5f6a63;
  --shadow: 0 10px 30px rgba(20, 40, 28, 0.10);
  --shadow-soft: 0 4px 14px rgba(20, 40, 28, 0.07);
  --header-bg: rgba(243, 245, 243, 0.82);
}
/* ---------- Tokens: dark (system preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161816;
    --surface: #1f221f;
    --surface-2: #262a26;
    --text: #eef1ee;
    --text-2: #a9b1ab;
    --text-3: #6f7772;
    --line: #2c302d;
    --accent: #1db26b;
    --accent-ink: #3ecb8a;
    --accent-soft: rgba(29, 178, 107, 0.14);
    --glow: rgba(29, 178, 107, 0.20);
    --badge-bg: #000000;
    --badge-line: #3d423f;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(22, 24, 22, 0.82);
  }
}
/* ---------- Tokens: dark (explicit toggle) ---------- */
:root[data-theme="dark"] {
  --bg: #161816;
  --surface: #1f221f;
  --surface-2: #262a26;
  --text: #eef1ee;
  --text-2: #a9b1ab;
  --text-3: #6f7772;
  --line: #2c302d;
  --accent: #1db26b;
  --accent-ink: #3ecb8a;
  --accent-soft: rgba(29, 178, 107, 0.14);
  --glow: rgba(29, 178, 107, 0.20);
  --badge-bg: #000000;
  --badge-line: #3d423f;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(22, 24, 22, 0.82);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Ubuntu', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
.mono { font-family: 'Ubuntu Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-soft); }
.brand span { font-size: 1.3rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--accent-ink); background: var(--accent-soft); }
#theme-toggle {
  margin-left: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
#theme-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
#theme-toggle svg { width: 18px; height: 18px; }
#theme-toggle .icon-sun { display: none; }
@media (max-width: 620px) { .nav a { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding: 72px 24px 84px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.charge-line {
  height: 4px; border-radius: 2px; background: var(--surface-2);
  margin: 18px 0 22px; max-width: 420px; overflow: hidden;
}
.charge-line i {
  display: block; height: 100%; width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #7fe0ae);
  transform-origin: left;
  animation: charge 1.6s cubic-bezier(0.25, 0.8, 0.35, 1) both;
}
@keyframes charge { from { transform: scaleX(0.06); } to { transform: scaleX(1); } }
.hero .lead { color: var(--text-2); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 500;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, border-color 0.2s;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent); }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--text-2); font-size: 0.95rem;
}
.trust b { color: var(--text); font-weight: 700; }
.trust .star { color: var(--accent-ink); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.hero-art::before {
  content: ""; position: absolute; inset: 10% 8%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(10px);
}
.shot-card {
  position: relative; width: 232px; border-radius: 20px;
  background: var(--shot-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.shot-card img { width: 100%; }
.hero-art .shot-card:first-child {
  transform: rotate(-5deg) translate(14px, 16px);
  z-index: 1;
}
.hero-art .shot-card:last-child {
  transform: rotate(4deg) translate(-14px, -10px);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding: 0 24px 48px; }
  .hero-art { min-height: 0; margin-top: 8px; }
  .shot-card { width: 190px; }
}

/* ---------- Google Play badge ---------- */
.gp-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-line);
  border-radius: 12px;
  padding: 9px 18px 9px 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}
.gp-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gp-badge svg { width: 26px; height: 28px; }
.gp-badge .gp-text { display: flex; flex-direction: column; line-height: 1.15; }
.gp-badge .gp-text small {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffffff; opacity: 0.85;
}
.gp-badge .gp-text strong { font-size: 1.12rem; font-weight: 500; color: #ffffff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; margin-bottom: 10px; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }

/* ---------- App rows ---------- */
.apps { background: var(--surface); border-block: 1px solid var(--line); }
.app-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
  align-items: center; padding: 46px 0;
}
.app-row + .app-row { border-top: 1px solid var(--line); }
.app-row.flip .app-info { order: 2; }
.app-row.flip .app-gallery { order: 1; }

.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-id img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow-soft); }
.app-id h3 { font-size: 1.45rem; font-weight: 700; }
.app-id .cat {
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-family: 'Ubuntu Mono', Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 0.85rem; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid transparent;
}
.chip.neutral { background: var(--surface-2); color: var(--text-2); }
.app-info > p { color: var(--text-2); margin-bottom: 16px; max-width: 48ch; }
.feature-list { list-style: none; margin-bottom: 24px; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; align-items: baseline; color: var(--text); }
.feature-list li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: translateY(-1px);
}
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.apk-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 0.92rem; font-weight: 500;
  padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.apk-link:hover { color: var(--accent-ink); border-color: var(--accent); }
.apk-link svg { width: 15px; height: 15px; }

.app-gallery {
  display: flex; gap: 14px; overflow-x: auto; padding: 10px 2px 18px;
  scroll-snap-type: x mandatory;
}
/* Branded scrollbar, echoes the hero charge line. Chromium/Safari: */
.app-gallery::-webkit-scrollbar { height: 4px; }
.app-gallery::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.app-gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
/* Slider affordance: accent triangles at both ends (still clickable to scroll) */
.app-gallery::-webkit-scrollbar-button {
  display: block; width: 12px; height: 4px;
  background-repeat: no-repeat; background-position: center; background-size: 3.5px 4px;
}
.app-gallery::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M7 0 2 4l5 4z' fill='%23109d58'/%3E%3C/svg%3E");
}
.app-gallery::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M0 0 5 4 0 8z' fill='%23109d58'/%3E%3C/svg%3E");
}
/* Hide the doubled inner buttons some Chromium configs render */
.app-gallery::-webkit-scrollbar-button:horizontal:start:increment,
.app-gallery::-webkit-scrollbar-button:horizontal:end:decrement { display: none; }
/* Dark theme: arrows match the brighter dark accent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-gallery::-webkit-scrollbar-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M7 0 2 4l5 4z' fill='%231db26b'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .app-gallery::-webkit-scrollbar-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M0 0 5 4 0 8z' fill='%231db26b'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] .app-gallery::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M7 0 2 4l5 4z' fill='%231db26b'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .app-gallery::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8'%3E%3Cpath d='M0 0 5 4 0 8z' fill='%231db26b'/%3E%3C/svg%3E");
}
/* Firefox only (Chromium would drop ::-webkit-* styling if these were set unscoped): */
@supports (-moz-appearance: none) {
  .app-gallery { scrollbar-width: thin; scrollbar-color: var(--accent) var(--surface-2); }
}
.app-gallery .shot {
  flex: none; width: 168px; border-radius: 16px; overflow: hidden;
  background: var(--shot-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .app-row { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .app-row.flip .app-info { order: 1; }
  .app-row.flip .app-gallery { order: 2; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-soft);
}
.why-card .num {
  font-family: 'Ubuntu Mono', Consolas, monospace; font-variant-numeric: tabular-nums;
  font-size: 1.9rem; font-weight: 700; color: var(--accent-ink);
  display: block; margin-bottom: 6px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Social ---------- */
.social { background: var(--surface); border-block: 1px solid var(--line); }
.social-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.social-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-weight: 500;
  transition: transform 0.2s, border-color 0.2s;
}
.social-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.social-card svg { width: 22px; height: 22px; color: var(--accent-ink); }
.social-card small { display: block; color: var(--text-3); font-weight: 400; font-size: 0.8rem; }
.social-note { margin-top: 22px; color: var(--text-2); font-size: 0.95rem; }
.social-note a { font-weight: 500; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.footer-grid h4 {
  font-family: 'Ubuntu Mono', Consolas, monospace;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid ul a { color: var(--text-2); font-size: 0.95rem; }
.footer-grid ul a:hover { color: var(--accent-ink); }
.footer-brand p { color: var(--text-2); font-size: 0.95rem; max-width: 38ch; margin-top: 12px; }
.copyright { color: var(--text-3); font-size: 0.85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Privacy policy pages ---------- */
/* The reading column (hero text + card) is centered on wide screens */
.page-hero .wrap, .policy-body .wrap { max-width: calc(76ch + 48px); }
.privacy-policy { margin: 0 auto; }
.page-hero { padding: 44px 0 0; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; margin: 4px 0 12px; }
.page-hero .lead { color: var(--text-2); max-width: 62ch; font-size: 1.05rem; }
.policy-body { padding: 36px 0 72px; }
.privacy-policy {
  max-width: 76ch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 40px; box-shadow: var(--shadow-soft);
  display: grid; gap: 30px;
}
.privacy-policy section { padding: 0; }
.privacy-policy h2 { font-size: 1.25rem; margin-bottom: 10px; }
.privacy-policy h3 { font-size: 1.02rem; margin: 18px 0 8px; color: var(--accent-ink); }
.privacy-policy p { color: var(--text-2); margin-bottom: 10px; }
.privacy-policy ul { list-style: disc; padding-left: 1.25em; margin-bottom: 10px; color: var(--text-2); }
.privacy-policy li { margin-bottom: 4px; }
.privacy-policy a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .privacy-policy { padding: 26px 20px; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .charge-line i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
