/* ReelWise website — colours follow the app theme (ui/theme/Color.kt). */
:root {
  --violet: #7c5cff;
  --violet-bright: #a38dff;
  --violet-deep: #5b3df0;
  --magenta: #e04fd9;
  --coral: #ff6b8b;
  --mint: #22c997;
  --amber: #f5a524;
  --danger: #f0445a;

  --bg: #f5f4fa;
  --bg-alt: #efeef7;
  --surface: #ffffff;
  --surface-2: #f7f6fc;
  --border: #e2e0ee;
  --text: #16162a;
  --text-2: #4c4e68;
  --text-3: #6b6d88;
  --accent: #5b3df0;
  --accent-text: #4a2fd6;
  --glow: rgba(124, 92, 255, 0.18);
  --shadow: 0 1px 2px rgba(22, 22, 42, 0.05), 0 12px 32px -12px rgba(22, 22, 42, 0.16);
  --header-bg: rgba(245, 244, 250, 0.82);
  --grad: linear-gradient(135deg, #5b3df0 0%, #7c5cff 45%, #e04fd9 100%);
  --hero-card: linear-gradient(140deg, #3a2a9a 0%, #5a2b8f 55%, #7a2a62 100%);

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c16;
    --bg-alt: #101020;
    --surface: #161627;
    --surface-2: #1c1c30;
    --border: #2a2b45;
    --text: #ededf7;
    --text-2: #b4b6cf;
    --text-3: #8c8ead;
    --accent: #a38dff;
    --accent-text: #b9a8ff;
    --glow: rgba(124, 92, 255, 0.28);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(12, 12, 22, 0.78);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c16;
  --bg-alt: #101020;
  --surface: #161627;
  --surface-2: #1c1c30;
  --border: #2a2b45;
  --text: #ededf7;
  --text-2: #b4b6cf;
  --text-3: #8c8ead;
  --accent: #a38dff;
  --accent-text: #b9a8ff;
  --glow: rgba(124, 92, 255, 0.28);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(12, 12, 22, 0.78);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -10px rgba(124, 92, 255, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(124, 92, 255, 0.85); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

@media (max-width: 880px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(600px 380px at 75% 30%, var(--glow), transparent 70%), radial-gradient(420px 300px at 15% 10%, rgba(224, 79, 217, 0.12), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-2); font-size: 0.93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-2); margin-bottom: 22px; }
.pill b { background: var(--grad); color: #fff; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; letter-spacing: .03em; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 720 / 1494; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2b2c45, #0f0f1c); box-shadow: 0 40px 80px -30px rgba(40, 20, 120, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.phone.back { position: absolute; width: min(250px, 60vw); transform: translate(-58%, 34px) rotate(-7deg); opacity: .96; z-index: 0; }
.phone.front { z-index: 1; transform: translateX(16%); }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.85rem; color: var(--text-2); animation: bob 6s ease-in-out infinite; }
.float-chip strong { display: block; color: var(--text); font-size: 1rem; font-family: var(--display); }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.float-chip .dot svg { width: 18px; height: 18px; }
.chip-a { top: 54px; right: -6px; }
.chip-b { bottom: 70px; left: -4px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 0; padding: 10px 0 30px; }
  .phone.back { display: none; }
  .phone.front { transform: none; }
  .chip-a { right: 2%; top: 30px; }
  .chip-b { left: 2%; bottom: 60px; }
}

/* ---------- Platforms strip ---------- */
.platforms { padding: 26px 0 10px; }
.platforms p { text-align: center; color: var(--text-3); font-size: 0.88rem; margin-bottom: 14px; }
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.platform-row li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; font-weight: 600; font-size: 0.95rem; }
.platform-row li span.feed { color: var(--text-3); font-weight: 500; }
.platform-row i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }

@media (max-width: 520px) { .platform-row { gap: 8px; } .platform-row li { padding: 8px 12px; font-size: 0.88rem; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-top: 16px; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: 0.97rem; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.feature-icon svg { width: 22px; height: 22px; }
.fi-violet { background: linear-gradient(135deg, #5b3df0, #7c5cff); }
.fi-magenta { background: linear-gradient(135deg, #b03ac9, #e04fd9); }
.fi-coral { background: linear-gradient(135deg, #f0445a, #ff6b8b); }
.fi-mint { background: linear-gradient(135deg, #14a57a, #22c997); }
.fi-amber { background: linear-gradient(135deg, #e08a0b, #f5a524); }
.fi-ink { background: linear-gradient(135deg, #343552, #5d5f7a); }

/* Showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.reverse .showcase-media { order: 2; }
.showcase-media { display: flex; justify-content: center; position: relative; }
.showcase-media::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.showcase-media .phone { width: min(280px, 72vw); }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 2px; }
.check-list strong { color: var(--text); }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse .showcase-media { order: 0; }
  .showcase + .showcase { margin-top: 72px; }
}

/* Mode compare (Alert vs Block) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.mode { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--surface); }
.mode h4 { font-family: var(--display); margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.mode p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.tag-amber { background: color-mix(in srgb, var(--amber) 18%, transparent); color: #b87400; }
.tag-red { background: color-mix(in srgb, var(--danger) 16%, transparent); color: #d02a40; }
:root[data-theme="dark"] .tag-amber { color: #ffbe4d; } :root[data-theme="dark"] .tag-red { color: #ff6a7c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag-amber { color: #ffbe4d; } :root:not([data-theme="light"]) .tag-red { color: #ff6a7c; } }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.step p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { position: relative; border-radius: 28px; padding: 56px; background: var(--hero-card); color: #fff; overflow: hidden; }
.privacy-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent); }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .eyebrow { color: #d8ceff; }
.privacy-band p { color: rgba(255, 255, 255, 0.82); }
.privacy-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.privacy-cols > div { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 22px; }
.privacy-cols h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.privacy-cols svg { width: 20px; height: 20px; }
.privacy-cols p { font-size: 0.93rem; margin: 0; }
.privacy-band a { color: #fff; }
@media (max-width: 860px) { .privacy-band { padding: 36px 22px; } .privacy-cols { grid-template-columns: 1fr; } }

/* Screens gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 26px; margin: 0 -20px; scrollbar-width: thin; }
.gallery figure { flex: 0 0 auto; width: 220px; margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #0c0c16; }
.gallery figcaption { text-align: center; font-size: 0.88rem; color: var(--text-2); margin-top: 12px; font-weight: 500; }
.note-sample { text-align: center; font-size: 0.8rem; color: var(--text-3); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 600; display: block; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; position: absolute; right: 4px; top: 22px; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA */
.cta { text-align: center; padding: 72px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta img.app-icon { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 36px -14px rgba(124, 92, 255, 0.8); }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }

/* Play badge-style button */
.play-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; border-radius: 14px; background: #0c0c16; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.18); min-height: 56px; transition: transform .15s; }
.play-btn:hover { transform: translateY(-1px); text-decoration: none; }
.play-btn svg { width: 26px; height: 26px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-btn small { font-size: 0.68rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.play-btn b { font-size: 1.1rem; font-weight: 600; font-family: var(--display); }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--border); background: radial-gradient(600px 240px at 20% 0%, var(--glow), transparent 70%); }
.doc-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.doc-hero p { color: var(--text-2); max-width: 720px; font-size: 1.06rem; margin: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-meta span { font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 44px 0 88px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 0.9rem; }
.toc h2 { font-family: var(--font); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--violet); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; padding-top: 0.2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 0.85rem; }
.prose tr:last-child td { border-bottom: 0; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--violet); margin: 0 0 1.4em; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 2px; }
.callout p { margin: 0; }
.callout.good { border-left-color: var(--mint); } .callout.good svg { color: var(--mint); }
.callout.warn { border-left-color: var(--amber); } .callout.warn svg { color: var(--amber); }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 2em; }
.summary-grid > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.summary-grid b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 4px; }
.summary-grid span { color: var(--text); font-size: 0.95rem; }
.path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.step-list { list-style: none; counter-reset: s; padding: 0 !important; }
.step-list li { counter-increment: s; position: relative; padding: 4px 0 14px 48px; }
.step-list li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
  .summary-grid { grid-template-columns: 1fr; }
}

/* Support page cards */
.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.contact-card h3 { margin: 0 0 4px; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-cards a { display: block; padding: 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .15s; }
.link-cards a:hover { border-color: var(--violet); transform: translateY(-2px); }
.link-cards b { display: block; font-family: var(--display); margin: 12px 0 4px; }
.link-cards span { color: var(--text-2); font-size: 0.92rem; }
@media (max-width: 760px) { .link-cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-family: var(--font); font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--text-2); max-width: 340px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.84rem; }
.footer-bottom p { margin: 0; max-width: 720px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .big { font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; margin-bottom: 10px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
