/* Tinyrise site — shared styles for every page in docs/. */
:root {
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-2: #efeff5;
  --line: #e6e6ef;
  --text: #111127;
  --text-2: #3d3d55;
  --muted: #62627a;
  --brand: #5b4fd6;
  --brand-soft: rgba(91, 79, 214, 0.1);
  --sun: #ff8a4c;
  --hero-1: #7c6bff;
  --hero-2: #5236d9;
  --hero-3: #2e1a8f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(17, 17, 39, 0.05), 0 10px 30px -14px rgba(17, 17, 39, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0f;
    --surface: #15151c;
    --surface-2: #1f1f29;
    --line: #262633;
    --text: #f5f5f7;
    --text-2: #d0d0dc;
    --muted: #9a9aab;
    --brand: #8b7ff5;
    --brand-soft: rgba(139, 127, 245, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
/* height:auto keeps width/height attributes as an aspect-ratio hint instead of a fixed height. */
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-play { background: #0b0b12; color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
@media (prefers-color-scheme: dark) { .btn-play { background: #fff; color: #0b0b12; } }
.btn-play small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; line-height: 1.1; }
.btn-play span { line-height: 1.15; text-align: left; font-size: 17px; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero-cta { justify-content: center; } .hero-logo { margin: 0 auto; } }
.hero-logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 40px -14px rgba(82, 54, 217, 0.7); }
.eyebrow { display: inline-block; margin: 20px 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -2px; margin: 0 0 16px; font-weight: 850; }
.grad { background: linear-gradient(100deg, var(--hero-1), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
@media (max-width: 860px) { .lead { margin-left: auto; margin-right: auto; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-phone { position: relative; justify-self: center; width: min(300px, 80vw); }
.hero-phone::before { content: ""; position: absolute; inset: 10% -14% -6%; background: radial-gradient(closest-side, rgba(124, 107, 255, 0.45), transparent); filter: blur(10px); z-index: -1; }
.phone { border-radius: 34px; overflow: hidden; border: 8px solid #0b0b12; box-shadow: var(--shadow); background: #0b0b12; }
.phone img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -1px; line-height: 1.15; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }

.privacy-band { background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3)); color: #fff; border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.privacy-band h2 { color: #fff; }
.privacy-band p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.privacy-band .btn { background: #fff; color: var(--hero-2); }
@media (max-width: 720px) { .privacy-band { grid-template-columns: 1fr; padding: 28px; } }

/* Document pages */
.doc { padding: 40px 0 56px; }
.doc-head { margin-bottom: 24px; }
.doc-head h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -1.2px; margin-bottom: 6px; }
.doc-head .meta { color: var(--muted); font-size: 14px; }
.doc section { padding: 0; }
.doc section.card { padding: 20px 22px; margin-bottom: 14px; box-shadow: none; }
.doc h2 { font-size: 20px; letter-spacing: -0.3px; margin: 0 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0 0; }
.doc li + li { margin-top: 4px; }
.doc .summary { border-color: var(--brand); background: var(--brand-soft); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-2); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 600; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin: 10px 0 0; color: var(--text-2); }

kbd, .path { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
