/* SleepyBytes company site. Calm night theme. */

:root {
  --bg: #0e1220;
  --bg-raised: #131829;
  --bg-card: #171d33;
  --line: #262e4d;
  --text: #eef0fa;
  --muted: #a6adcc;
  --accent: #8b9dff;
  --accent-2: #c3b5ff;
  --radius: 16px;
  --maxw: 1080px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 18, 32, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 600px) { .site-nav { gap: 14px; } }

/* Hero */
.hero { padding: 84px 0 48px; text-align: left; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 18px; max-width: 22ch; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 8px; }
.proof-item { font-size: 0.9rem; color: var(--muted); }
.proof-item strong { display: block; color: var(--text); font-size: 1.3rem; }

/* Sections */
section { padding: 64px 0; }
section.tint { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
h2.section-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 38px; }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }
.app-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.app-card img { width: 72px; height: 72px; border-radius: 17px; border: 1px solid var(--line); }
.app-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.app-card .cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 6px; }
.app-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.app-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.9rem; font-weight: 600; }
.app-links .store { color: var(--accent-2); }
.rating-note { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }

/* About */
.about p { color: #d5d9ee; max-width: 68ch; margin-bottom: 16px; }
.about a { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 0.9rem; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-note { border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.8rem; }

/* Article pages (privacy, support) */
article.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
article.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 10px; }
article.page .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 32px; }
article.page h2 { font-size: 1.35rem; margin: 38px 0 12px; letter-spacing: -0.01em; }
article.page p { margin-bottom: 15px; color: #d5d9ee; }
article.page ul { margin: 0 0 16px 24px; color: #d5d9ee; }
article.page li { margin-bottom: 7px; }
article.page strong { color: var(--text); }
article.page table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.92rem; }
article.page th, article.page td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
article.page th { background: var(--bg-card); color: var(--text); }
article.page td { color: #d5d9ee; }
.summary-callout {
  background: var(--bg-card); border: 1px solid rgba(139, 157, 255, 0.4); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 20px 22px; margin: 24px 0;
}
.summary-callout p:last-child { margin-bottom: 0; }
