/* Layout: a backup folder you can read. Copy on the left, the app and its folder listing on the right. */
:root {
  --bg: #f2f4fa;          /* cool paper, biased to the app's blue */
  --surface: #ffffff;
  --ink: #141a2e;
  --muted: #586079;
  --line: #dde2ee;
  --accent: #2f49c7;      /* the app's primary */
  --accent-ink: #ffffff;
  --ok-bg: #dff3e4; --ok-fg: #1d6b34;
  --warn-bg: #fdefd6; --warn-fg: #8a5300;
  --pro: #dca425;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e111a; --surface: #171b27; --ink: #e9ecf6; --muted: #9aa2bd; --line: #262c3d;
    --accent: #8c9eff; --accent-ink: #0e1440;
    --ok-bg: #153520; --ok-fg: #8fdba6; --warn-bg: #3a2a0c; --warn-fg: #f4c26b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e111a; --surface: #171b27; --ink: #e9ecf6; --muted: #9aa2bd; --line: #262c3d;
  --accent: #8c9eff; --accent-ink: #0e1440;
  --ok-bg: #153520; --ok-fg: #8fdba6; --warn-bg: #3a2a0c; --warn-fg: #f4c26b;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--body);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .play:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.label {
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.25rem/1 var(--display); }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top-end { display: flex; align-items: center; gap: 22px; }

/* light/dark toggle: the moon shows in light theme, the sun in dark */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* Google Play button */
.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.play svg { width: 22px; height: 22px; flex: none; }
.play:hover { filter: brightness(1.08); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta small { color: var(--muted); font-size: 0.95rem; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.facts li { font: 500 0.85rem/1 var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.stage { position: relative; min-width: 0; display: flex; justify-content: center; padding-bottom: 40px; }
.phone {
  width: min(300px, 70vw); border-radius: 34px; border: 10px solid #0b0e18;
  box-shadow: 0 30px 60px -20px rgba(20, 26, 46, 0.45); overflow: hidden; background: #0b0e18;
}
.phone img { width: 100%; height: auto; }
.listing {
  position: absolute; left: 0; bottom: 0; width: min(330px, 86%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font: 0.76rem/1.5 var(--mono); color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(20, 26, 46, 0.35);
}
.listing .path { color: var(--muted); margin-bottom: 6px; }
.listing .row { display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.listing .row span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.listing .size { color: var(--muted); font-variant-numeric: tabular-nums; }

/* sections */
section { padding-block: 72px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.job { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.job p { color: var(--muted); }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.82rem/1 var(--body); padding: 7px 11px; border-radius: 8px;
}
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip.plain { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shots img { border-radius: 20px; border: 1px solid var(--line); width: 100%; height: auto; }
.shots figcaption { color: var(--muted); font-size: 0.95rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan.pro { border-color: var(--pro); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-head .price { color: var(--muted); font-weight: 500; }
.pro-pill {
  font: 700 0.72rem/1 var(--body); letter-spacing: 0.08em; padding: 5px 9px; border-radius: 999px;
  background: linear-gradient(#f7dc7e, #dca425); color: #4a3200;
}
.plan ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }

.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.privacy .points { display: flex; flex-direction: column; gap: 18px; }
.privacy .points div { border-top: 1px solid var(--line); padding-top: 14px; }
.privacy .points p { color: var(--muted); }
.note { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mail { font-family: var(--mono); user-select: all; color: var(--ink); }

/* privacy policy page */
.policy { max-width: 760px; padding-block: 24px 72px; }
.policy h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.policy h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.policy p, .policy li { color: var(--ink); }
.policy p + p, .policy ul, .policy .table { margin-top: 12px; }
.policy .effective { color: var(--muted); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 24px; }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 6px 0; }
.policy .table { overflow-x: auto; }
.policy table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.policy th, .policy td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.policy th { background: var(--surface); }


/* "Coming soon" and "Premium" tags */
.tag {
  display: inline-block; vertical-align: 0.1em; margin-left: 6px;
  font: 600 0.72rem/1 var(--body); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 6px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap;
}
.tag.premium { background: linear-gradient(#f7dc7e, #dca425); color: #4a3200; border-color: transparent; }
.plan .price-note { color: var(--muted); font-size: 0.9rem; }

/* what's new */
.releases { overflow-x: auto; }
.releases table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.releases th, .releases td { border-top: 1px solid var(--line); padding: 14px 12px 14px 0; text-align: left; vertical-align: top; }
.releases th { font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.releases td:first-child { font: 600 1rem/1.4 var(--mono); white-space: nowrap; }
.releases td:nth-child(2) { color: var(--muted); white-space: nowrap; }

/* guides */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.guide-list a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.guide-list a:hover { border-color: var(--accent); }
.guide-list strong { font: 600 1.1rem/1.3 var(--display); }
.guide-list span { color: var(--muted); font-size: 0.95rem; }
.band .guide-list a { background: var(--bg); }
.policy .crumbs { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.policy .answer { font-size: 1.12rem; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.policy .soon-note { color: var(--warn-fg); background: var(--warn-bg); padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.policy ol { padding-left: 1.4em; margin-top: 12px; }
.guide-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 20px; margin: 24px 0 8px; }
.guide-shots figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.guide-shots img { border-radius: 16px; border: 1px solid var(--line); width: 100%; height: auto; }
.guide-shots figcaption { color: var(--muted); font-size: 0.9rem; }
.policy .more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy .more ul { list-style: none; padding: 0; }

@media (max-width: 900px) {
  .hero, .privacy { grid-template-columns: minmax(0, 1fr); }
  .jobs { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .top nav { display: none; }
  section { padding-block: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .play { transition: filter 0.15s; }
}
