/* Ovlasiuk Apps — shared styles for every page */
:root {
  --bg: #fbf8fc;
  --surface: #ffffff;
  --text: #1d1724;
  --muted: #6b6276;
  --line: #ece6f1;
  --accent: #d63a7a;
  --accent-2: #8a4fd8;
  --accent-soft: #fde8f1;
  --shadow: 0 10px 30px rgba(60, 20, 80, 0.08);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141018;
    --surface: #1e1824;
    --text: #f4eff8;
    --muted: #a99fb5;
    --line: #2e2636;
    --accent: #ff6fa8;
    --accent-2: #b48cff;
    --accent-soft: #3a1f2e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; backdrop-filter: blur(12px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 900;
}
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: 28px; letter-spacing: -0.02em; margin: 48px 0 16px; line-height: 1.2; }
h3 { font-size: 20px; margin: 28px 0 8px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 24px; }
.app-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text);
}
.app-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.app-card h3 { margin: 2px 0 4px; font-size: 20px; }
.app-card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.app-card.placeholder { border-style: dashed; box-shadow: none; background: transparent; align-items: center; }
.app-card.placeholder .app-icon { box-shadow: none; background: var(--line); display: grid; place-items: center; font-size: 34px; color: var(--muted); }

/* App page */
.app-hero { display: flex; gap: 28px; align-items: center; padding: 56px 0 24px; flex-wrap: wrap; }
.app-hero .app-icon { width: 128px; height: 128px; border-radius: 30px; }
.app-hero h1 { margin: 0 0 6px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  background: var(--text); color: var(--bg);
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 230px; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; flex: none; border-radius: 26px; scroll-snap-align: start; box-shadow: var(--shadow); }

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

/* Documents (privacy, terms, support) */
.doc { padding-top: 48px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: -6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.callout { background: var(--accent-soft); border-radius: 16px; padding: 14px 18px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 2px; color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 12px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 44px 0 24px; }
  .app-hero { padding-top: 36px; gap: 18px; }
  .app-hero .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .shots img { width: 200px; }
}
