/* ===== Tokens ===== */
:root {
  --bg: #fbf8f4; --bg-2: #f3ede4; --fg: #1f1b16; --muted: #5c554d; --card: #fff; --line: #e6dfd6;
  --accent: #b3261e; --accent-ink: #fff; --accent-soft: #f9e3df; --live: #1e6b45; --live-soft: #dff1e6;
  --shadow: 0 1px 2px rgb(31 27 22 / .06), 0 10px 30px rgb(31 27 22 / .08);
  --android: #1e6b45; --windows: #1f5fa8; --web: #8a3a2b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130f; --bg-2: #1d1914; --fg: #efe8df; --muted: #b5ada3; --card: #211d18; --line: #3a342d;
    --accent: #ffb4a9; --accent-ink: #561e17; --accent-soft: #3b211c; --live: #8fd6ab; --live-soft: #1c3326;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
    --android: #5cc28d; --windows: #7fb0ec; --web: #e08f7c;
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.05rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* Plain main: privacy.html and 404.html. The home page opts out with main.home. */
main { max-width: 42rem; margin: 0 auto; padding: 3rem 1rem 2rem; }
main.home { max-width: none; margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
h3 { margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a:focus-visible, .btn:focus-visible, input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
a:focus-visible { border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--fg); padding: .75rem 1rem; z-index: 30; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }
.home section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.home section.band { background: var(--bg-2); }
.home h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); line-height: 1.05; margin: 0 0 1.25rem; }
.home h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem); line-height: 1.15; margin: 0 0 .75rem; }
.eyebrow { text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin: 0 0 .75rem; }
.section-lead { max-width: 40rem; font-size: 1.1rem; }
.hl { color: var(--accent); }

/* ===== Components ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--fg); }
.btn-light { background: #fbf8f4; color: #1f1b16; }
.btn-outline-light { border-color: rgb(251 248 244 / .55); color: #fbf8f4; }
.btn-sm { min-height: 40px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.badge { display: inline-block; border-radius: 999px; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; line-height: 1.4; }
.badge-soon { background: var(--accent-soft); color: var(--accent); }
.badge-dev, .badge-tool { border: 1px solid var(--line); color: var(--muted); }
.badge-live { background: var(--live-soft); color: var(--live); }
.plat { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.plat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.plat-android::before { background: var(--android); }
.plat-windows::before { background: var(--windows); }
.plat-web::before { background: var(--web); }
.tile { display: inline-flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 24%; color: #fff; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15), var(--shadow); }
.g1 { background: linear-gradient(135deg, #b3261e, #e8590c); }
.g2 { background: linear-gradient(135deg, #1e6b45, #2f9e6b); }
.g3 { background: linear-gradient(135deg, #1f5fa8, #3b8be0); }
.g4 { background: linear-gradient(135deg, #0f766e, #14a394); }
.g5 { background: linear-gradient(135deg, #8a3a2b, #c2643f); }
.g6 { background: linear-gradient(135deg, #92400e, #c2740c); }
.g7 { background: linear-gradient(135deg, #334155, #56657a); }
.g8 { background: linear-gradient(135deg, #9d174d, #d0336f); }

/* ===== Header ===== */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; min-height: 44px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; margin-left: auto; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bar nav a:hover { color: var(--accent); }
@media (max-width: 759px) { .bar-cta { display: none; } }

/* ===== Hero ===== */
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.proof { display: flex; flex-wrap: wrap; gap: 1rem 0; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.proof li { padding-right: 1.5rem; }
.proof li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.proof strong { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--fg); }
@media (max-width: 479px) {
  .proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .proof li { padding-right: .9rem; }
  .proof li + li { padding-left: .9rem; }
}
/* ponytail: the mask hides anything outside the wall's box, so columns are minmax(0,1fr) and padding keeps the shadows inside */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; rotate: -6deg; padding: 1rem 1rem 2.75rem; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.wall .tile { width: 100%; align-self: start; font-size: 1.4rem; }
.wall .tile:nth-child(4n+2), .wall .tile:nth-child(4n) { margin-top: 1.75rem; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .wall .tile { animation: rise .7s ease-out both; }
  .wall .tile:nth-child(3n+1) { animation-delay: 0s; }
  .wall .tile:nth-child(3n+2) { animation-delay: 90ms; }
  .wall .tile:nth-child(3n) { animation-delay: 180ms; }
}
@media (max-width: 859px) {
  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); rotate: none; max-width: 30rem; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .wall .tile { font-size: 1rem; }
  .wall .tile:nth-child(4n+2), .wall .tile:nth-child(4n) { margin-top: 0; }
}

/* ===== Featured spotlights ===== */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.spot-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem; }
.spot h3 { font-size: 1.75rem; line-height: 1.15; margin-bottom: .5rem; }
.spot-tag { font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.ticks { display: grid; gap: .6rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; align-items: start; }
.ticks li::before { content: "\2713"; display: flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; margin-top: .2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 800; }
.phone { width: min(18.5rem, 100%); margin-inline: auto; border: 10px solid #0f0d0b; border-radius: 2.4rem; padding: .9rem .9rem 1.1rem; background: var(--card); box-shadow: 0 2px 6px rgb(0 0 0 / .15), 0 30px 60px rgb(31 27 22 / .25); }
.phone-bar { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: .75rem; }
.phone-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.post { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; border-radius: 1rem; padding: 1.25rem; color: #fff; background: linear-gradient(140deg, #b3261e, #e8590c 60%, #f2a541); }
.post-quote { font-size: 1.35rem; font-weight: 800; line-height: 1.15; margin: 0; }
.post-handle { font-size: .8rem; opacity: .85; margin: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0; }
.sizes span { font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; }
.sizes .on { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 700; }
.phone-cta span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.window { margin: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--card); box-shadow: 0 2px 6px rgb(0 0 0 / .12), 0 30px 60px rgb(31 27 22 / .22); }
.window-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; padding-inline: .75rem; border-bottom: 1px solid var(--line); }
.window-bar span { position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; }
.window-bar span:nth-child(1) { left: .75rem; background: #ff5f57; }
.window-bar span:nth-child(2) { left: 1.85rem; background: #febc2e; }
.window-bar span:nth-child(3) { left: 2.95rem; background: #28c840; }
.window-bar b { font-size: .8rem; font-weight: 600; color: var(--muted); }
.window img { display: block; width: 100%; height: auto; }
@media (min-width: 860px) {
  .spot-rev .window { order: -1; }
  .phone { rotate: 2deg; }
  .window { rotate: -1.5deg; }
}
@media (max-width: 859px) { .spot { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Why ===== */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.25rem; margin-top: 2rem; }
.why li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.why-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.why h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.why p { margin: 0; font-size: .95rem; }

/* ===== Catalog ===== */
.filter { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.filter label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-weight: 600; cursor: pointer; }
.filter input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.count { font-size: .75rem; padding: 0 .5rem; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.filter input:checked + label .count { background: transparent; color: inherit; border: 1px solid currentColor; }
#apps:has(#f-android:checked) .app:not([data-p~="android"]),
#apps:has(#f-windows:checked) .app:not([data-p~="windows"]),
#apps:has(#f-web:checked) .app:not([data-p~="web"]) { display: none; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.app { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.app .tile { width: 3.25rem; font-size: 1.05rem; }
.app h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.app p { font-size: .95rem; }
.app .app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.app .app-links { margin: .5rem 0 0; }
.app .app-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ===== Hover lift ===== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .app, .why li, .btn { transition: transform .2s ease, box-shadow .2s ease; }
  .app:hover, .why li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .filter label { transition: background-color .15s ease; }
}

/* ===== Beta ===== */
.beta { border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); color: #fbf8f4; background: radial-gradient(60rem 30rem at 100% 0%, rgb(232 89 12 / .35), transparent 60%), #1f1b16; }
@media (prefers-color-scheme: dark) { .beta { background: radial-gradient(60rem 30rem at 100% 0%, rgb(232 89 12 / .35), transparent 60%), #2a231c; border: 1px solid var(--line); } }
.beta > * { max-width: 40rem; }
.beta .eyebrow { color: #ffb4a9; }
.beta h2 { color: #fbf8f4; }
.beta p { color: #e9e0d5; }
.beta .fine { font-size: .85rem; color: #cfc5b8; margin: 1.25rem 0 0; }
.beta .cta-row { margin-top: 1.5rem; }

/* ===== Contact + About ===== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.duo > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; }
.home .duo h2 { font-size: 1.35rem; }
.big-link { font-size: 1.2rem; font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.5rem; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 759px) { .duo { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 2rem; font-size: .9rem; color: var(--muted); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
