/* slazarenko.com — app catalog styles. System font stack, light/dark aware. */

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e4e8f0;
  --brand: #2457d6;
  --brand-ink: #ffffff;
  --accent: #2457d6;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -20px rgba(15, 23, 42, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #131a2e;
    --surface-2: #1a2340;
    --ink: #e8ecf5;
    --ink-2: #c3cbe0;
    --muted: #93a0bd;
    --line: #243052;
    --brand: #6f95ff;
    --brand-ink: #0b1020;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2457d6, #7c3aed); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: 0;
}
.brand-text small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.menu { display: flex; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.menu a { color: var(--ink-2); padding: .45rem .7rem; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.menu a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.menu a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.menu-store { color: var(--brand) !important; }
@media (max-width: 1100px) { .menu-cat { display: none; } }
@media (max-width: 520px) {
  .brand-text { font-size: .92rem; }
  .menu a { padding: .4rem .55rem; font-size: .88rem; }
  .menu a[href="/#about"] { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  background:
    radial-gradient(60% 80% at 15% 0%, color-mix(in srgb, #2457d6 18%, transparent), transparent 70%),
    radial-gradient(50% 70% at 90% 10%, color-mix(in srgb, #7c3aed 16%, transparent), transparent 70%),
    radial-gradient(40% 60% at 60% 100%, color-mix(in srgb, #14b8a6 14%, transparent), transparent 70%);
}
.hero-inner { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.eyebrow a { color: inherit; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.hero-icons { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-icons img { width: 56px; height: 56px; border-radius: 22%; box-shadow: var(--shadow); transition: transform .2s ease; }
.hero-icons a:hover img { transform: scale(1.08) rotate(-2deg); }

/* Category nav & sections */
.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; }
.cat-nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: .92rem; font-weight: 500;
}
.cat-nav a:hover { text-decoration: none; border-color: var(--brand); color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78em; font-weight: 600; }
.section { padding: 2.5rem 0 1rem; scroll-margin-top: 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: .25rem; }
.section-head h2 a { color: inherit; }
.section-head p { margin: 0; max-width: 60ch; }
.link-arrow { white-space: nowrap; font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* App cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.card {
  display: flex; gap: 1rem; padding: 1.15rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 80%); opacity: .8;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-icon { flex: none; }
.card-icon img { width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); flex: none; }
.card-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.card-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.card-tagline { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.chips, .meta-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.chip {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: .74rem; font-weight: 600; letter-spacing: .01em;
}
.chip-accent { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.chip-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Page head, breadcrumbs */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; max-width: 820px; }
.crumbs { padding-top: 1.25rem; font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink-2); }

/* Category cards */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cat-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.cat-card:hover { text-decoration: none; border-color: var(--brand); }
.cat-card .count { align-self: flex-start; margin-top: .25rem; }

/* About */
.about { border-top: 1px solid var(--line); margin-top: 2rem; padding-bottom: 3rem; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.facts { margin: 0; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: .1rem; } }

/* App page */
.app-hero {
  padding: 1.5rem 0 2rem;
  background:
    radial-gradient(70% 90% at 10% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%),
    radial-gradient(40% 60% at 95% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.app-hero-inner { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; }
.app-icon-wrap { position: relative; }
.app-icon { width: 160px; height: 160px; border-radius: 22%; box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--accent) 70%, #000), 0 0 0 1px rgba(0,0,0,.05); }
.app-hero-text h1 { margin-bottom: .35rem; }
.app-hero-text .eyebrow a { color: var(--accent); }
.meta-chips { list-style: none; padding: 0; margin: .5rem 0 0; gap: .5rem .9rem; color: var(--muted); font-size: .9rem; }
.meta-chips strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .app-icon, .app-icon-wrap { width: 120px; height: 120px; }
}

.store-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #000; color: #fff; padding: .55rem 1.1rem .55rem .9rem; border-radius: 12px;
  border: 1px solid #333; line-height: 1.05; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.store-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
@media (prefers-color-scheme: dark) { .store-btn { background: #fff; color: #000; border-color: #fff; } }

.shots-section { margin: 0 0 1rem; }
.shots {
  display: flex; gap: 1rem; overflow-x: auto; padding: 1rem calc((100vw - var(--wrap)) / 2 + 1.25rem) 1.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
@media (max-width: 1160px) { .shots { padding-inline: 1.25rem; } }
.shot { margin: 0; flex: none; scroll-snap-align: start; }
.shot img { height: min(560px, 70vh); width: auto; border-radius: 26px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface-2); }
.shot-ipad img { border-radius: 18px; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding: 1.5rem 0 4rem; align-items: start; }
.app-main > section { margin-bottom: 2.75rem; scroll-margin-top: 90px; }
.prose p, .prose-p { font-size: 1.06rem; color: var(--ink-2); max-width: 70ch; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.features li { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.features li::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: .7rem; }
.features h3 { margin-bottom: .3rem; font-size: 1rem; }
.features p { margin: 0; color: var(--muted); font-size: .93rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; color: var(--ink-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); margin-top: .2rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.steps li { counter-increment: step; position: relative; padding: .9rem 1rem .9rem 3.4rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: .85rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq details p { margin: 0 0 1rem; color: var(--ink-2); max-width: 70ch; }
.notes { color: var(--ink-2); padding-left: 1.2rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.cta h2 { margin-bottom: .2rem; font-size: 1.3rem; }
.cta p { margin: 0; }

.app-aside { position: sticky; top: 84px; display: grid; gap: 1.25rem; }
.info-card, .related, .keywords { padding: 1.15rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-aside h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding: .42rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.aside-links { margin: .9rem 0 0; font-size: .9rem; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.related-list a { display: flex; align-items: center; gap: .75rem; color: var(--ink); padding: .4rem; border-radius: var(--radius-sm); }
.related-list a:hover { background: var(--surface-2); text-decoration: none; }
.related-list img { width: 48px; height: 48px; border-radius: 22%; flex: none; }
.related-list span { display: flex; flex-direction: column; line-height: 1.3; }
.related-list strong { font-size: .95rem; }
.related-list small { color: var(--muted); font-size: .8rem; }
.keywords p { margin: 0; line-height: 1.7; }
@media (max-width: 960px) { .app-layout { grid-template-columns: 1fr; gap: 2rem; } .app-aside { position: static; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: .25rem; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.footer-links a { color: var(--ink-2); }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .hero-icons img, .store-btn { transition: none; }
}
