/* codePogo — shared styles. Clean, minimal, no build step. */
:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #63636b;
  --line: #e7e5e4;
  --accent: #2f5bea;
  --review: #8a5a00;
  --radius: 22px;
  --max: 68rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f10;
    --surface: #18181b;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2a2a2e;
    --accent: #7c9bff;
    --review: #f0b55a;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #18181b;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: #2a2a2e;
  --accent: #7c9bff;
  --review: #f0b55a;
}

*, *::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(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.wordmark { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); }
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 6rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 14ch; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 36rem; margin: 1.25rem 0 0; }

.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1.5rem; }

/* App cards */
.apps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.app-card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; color: var(--ink); position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.app-card:hover { text-decoration: none; border-color: var(--muted); transform: translateY(-2px); }
.app-icon { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.app-card h3 { font-size: 1.35rem; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-card .more:hover { text-decoration: none; }
.app-card .badge { position: relative; z-index: 1; align-self: flex-start; }
.app-card .more { margin-top: auto; color: var(--accent); font-size: 0.95rem; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap;
}
.status { display: inline-flex; align-items: center; gap: 0.4rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.review { color: var(--review); border-color: color-mix(in srgb, var(--review) 35%, transparent); }
.status.beta { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.status.live { color: #15803d; border-color: color-mix(in srgb, #15803d 35%, transparent); }

/* Principles */
.principles { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.principles h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.principles p { margin: 0; color: var(--muted); }

/* Log */
.log { list-style: none; padding: 0; margin: 0; max-width: 42rem; }
.log li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin: 0; }
.muted { color: var(--muted); }

/* App page */
.app-hero { padding: 4.5rem 0 3rem; }
.app-hero .app-icon { width: 112px; height: 112px; }
.app-hero h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.app-hero .tagline { font-size: 1.25rem; color: var(--muted); margin: 0.5rem 0 0; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button {
  display: inline-block; padding: 0.7rem 1.25rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.95rem;
}
.button:hover { text-decoration: none; opacity: 0.88; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.button.soon:hover { opacity: 1; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 40px; width: auto; }
.badge:hover { opacity: 0.88; }
.badge .for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge .for-light { display: none; }
  :root:not([data-theme="light"]) .badge .for-dark { display: inline; }
}
:root[data-theme="dark"] .badge .for-light { display: none; }
:root[data-theme="dark"] .badge .for-dark { display: inline; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-card:has(.more:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.app-card .more:focus-visible { outline: none; }

.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.4rem; }
.features strong { display: block; margin-bottom: 0.25rem; }
.features span { color: var(--muted); font-size: 0.97rem; }

.shots { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.shots img { width: 15rem; flex: none; border-radius: 28px; border: 1px solid var(--line); scroll-snap-align: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.site-footer .footer-h { margin: 0 0 0.6rem; font-size: 0.85rem; letter-spacing: 0; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.copyright { margin-top: 2.5rem; }

@media (max-width: 560px) {
  .hero { padding: 4rem 0 3rem; }
  .nav { gap: 1rem; }
  .log li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* Policy pages */
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }
.policy h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; }
.policy ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.policy li { margin-bottom: 0.4rem; }
