/* Accent colors (--accent, --accent-2, --on-accent) come from /static/theme.css, generated by build.py. */
:root {
  --bg: #0e0f12;
  --surface: #17181c;
  --surface-2: #1e1f24;
  --text: #f5f5f7;
  --muted: #a3a4ad;
  --faint: #6f707a;
  --line: #2a2b31;
  --line-strong: #3a3b42;
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
main { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip:focus { top: 12px; }

/* Header: sticky glass bar with pill navigation */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.pills { display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { padding: 6px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; transition: color .15s, background .15s; }
.pills a:hover { color: var(--text); background: var(--surface-2); }
.pills a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* Hero: centered, with a glow + grid backdrop (or the product's feature art, dimmed) */
.hero { position: relative; isolation: isolate; text-align: center; padding: 104px 0 88px; display: flex; flex-direction: column; align-items: center; }
.hero-bg {
  position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); overflow: hidden; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 72% 45%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 78%); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .3; filter: blur(6px) saturate(1.2); transform: scale(1.06); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.hero-logo {
  width: min(460px, 86%); margin: -32px auto 8px;
  mix-blend-mode: lighten; /* the logo sits on near-black: lighten drops that backdrop into the hero glow */
}
.hero-logo + h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.hero .lead { margin-left: auto; margin-right: auto; text-wrap: pretty; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.section > .eyebrow { margin-bottom: 12px; }
.dot { opacity: .6; }

.product-hero { padding-top: 72px; padding-bottom: 40px; }
.icon.big {
  width: 128px; height: 128px; border-radius: 30px; margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent), 0 20px 60px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}
a.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
a.btn.ghost:hover { border-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
/* Google Play button: a band of accent color runs around the border, with a soft glow behind it */
@property --spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --spin: 360deg; } }
.btn.store {
  --ring: conic-gradient(from var(--spin), var(--line) 0 40%, var(--accent) 60%, var(--accent-2) 75%, var(--line) 92%);
  position: relative; isolation: isolate; color: var(--text); text-align: left; line-height: 1.2; box-shadow: none;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--ring) border-box;
  animation: spin 3.5s linear infinite;
}
.btn.store::before {
  content: ""; position: absolute; z-index: -1; inset: -1.5px; border-radius: inherit;
  background: var(--ring); filter: blur(12px); opacity: .45; animation: inherit;
}
a.btn.store:hover { box-shadow: none; }
a.btn.store:hover::before { opacity: .7; }
.btn.store small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); }
.btn.store.disabled { cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 24px; }
.narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.about { font-size: 1.08rem; color: var(--muted); text-align: center; }
.about p:last-child:not(:only-child) { font-size: .9rem; color: var(--faint); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 16px; }
.panel p:last-child { margin-bottom: 0; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--accent); margin: 0 0 6px; }

/* Product cards on the home page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 22px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 16%, transparent); }
.card > div { padding-right: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .kicker { color: var(--accent); }
.card .arrow { position: absolute; top: 18px; right: 20px; color: var(--faint); transition: transform .2s, color .2s; }
.card:hover .arrow { color: var(--accent); transform: translateX(3px); }
.icon { width: 72px; height: 72px; border-radius: 18px; flex: none; object-fit: cover; border: 1px solid var(--line); }

/* Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.features li {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.features li:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-2px); }
.features .num { display: block; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.features strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.features li > span:last-child { color: var(--muted); font-size: .94rem; }

/* Screenshots */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--line-strong) transparent; }
.shots figure { margin: 0; flex: 0 0 min(560px, 85%); scroll-snap-align: start; }
.shots img { border-radius: 16px; border: 1px solid var(--line); }
.shots figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.shots.portrait { gap: 18px; padding-bottom: 16px; }
.shots.portrait figure { flex: 0 0 min(250px, 64%); }
.shots.portrait img { border-radius: 26px; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shots.portrait figcaption { display: none; } /* the caption is already printed on the Play Store screenshot; it stays as alt text */

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 20px; }
.facts div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: .75rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.panel .actions { margin-bottom: 20px; }
.panel .actions:last-child { margin-bottom: 0; }
.email { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; margin: 0; word-break: break-all; }

/* Legal / hand-written pages */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; font-size: .88rem; color: var(--faint); max-width: 780px; margin: 0 auto; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.legal { padding-top: 16px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; }
.legal h2 { font-size: 1.15rem; margin: 36px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: #d6d6dc; }
.legal li { margin-bottom: 6px; }
.legal code { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.legal .en { margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal .en h1 { font-size: 1.4rem; margin-top: 0; }

/* Footer */
.foot { max-width: var(--max); margin: 56px auto 0; padding: 32px 16px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .brand { margin-bottom: 12px; font-size: .85rem; }
.foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot p { margin: 4px 0; }
.small { font-size: .8rem; color: var(--faint); }

@media (max-width: 640px) {
  .top-inner { padding: 10px 16px; }
  .top .brand span { display: none; }
  .hero { padding: 64px 0 56px; }
  .product-hero { padding-top: 48px; padding-bottom: 24px; }
  .top-inner { gap: 10px; }
  .pills a { padding: 6px 10px; font-size: .84rem; }
  .pills a[href="/"] { display: none; }
  .icon.big { width: 104px; height: 104px; border-radius: 26px; }
  .section { padding: 36px 0; }
  .panel { padding: 22px; }
  .cards { grid-template-columns: 1fr; }
  .actions.center .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
