/* Shared design for every RS APPS STUDIO app site. Each app sets --brand/--brand2/--glow/--hero. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #0f1222;
  --muted: #5a6178;
  --border: #e3e6f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b17;
    --surface: #12142a;
    --surface-2: #1a1d38;
    --text: #eef0ff;
    --muted: #a3a9c9;
    --border: #262a4a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #a5b4fc; } }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.08rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.top .cta { padding: 9px 14px; font-size: .9rem; }
@media (max-width: 760px) { .nav { display: none; } .top .cta { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.badge-soon { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 75% 0%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 60%), radial-gradient(900px 500px at 0% 100%, color-mix(in srgb, var(--brand2) 50%, transparent), transparent 60%), var(--hero); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin: 14px 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dfe3ff; max-width: 40rem; margin: 0 0 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { margin-top: 18px; color: #c4c9f2; font-size: .9rem; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(300px, 70vw); border-radius: 26%; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 80px color-mix(in srgb, var(--glow) 60%, transparent); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 48px; text-align: center; } .hero .actions { justify-content: center; } .hero p.lead { margin-inline: auto; } .hero-art { order: -1; } .hero-art img { width: 150px; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.stats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px; }
.stats b { display: block; font-size: 1.4rem; }
.stats span { color: #c4c9f2; font-size: .85rem; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.section-head h2, h2.title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #a5b4fc; } }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card .emoji { font-size: 1.7rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin: 4px 0; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.more { display: inline-block; margin-top: 12px; font-weight: 700; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 14px 44px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: #16a34a; font-weight: 900; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--brand); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); }

/* Developer */
.dev { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.dev img { width: 96px; height: 96px; border-radius: 22px; }
.dev h2 { margin: 0 0 6px; font-size: 1.4rem; }
.dev p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 560px) { .dev { grid-template-columns: 1fr; text-align: center; } .dev img { margin-inline: auto; } }

/* Article pages (legal, support, feature pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0 26px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 46rem; }
.prose { max-width: 50rem; padding: 32px 0 56px; }
.prose h2 { margin: 2em 0 .5em; font-size: 1.4rem; line-height: 1.3; scroll-margin-top: 80px; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 1.12rem; scroll-margin-top: 80px; }
.prose li { margin: 4px 0; }
.prose .wc-meta { color: var(--muted); font-size: .92rem; }
.prose .wc-box { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 18px; margin: 18px 0; }
.prose .wc-table { overflow-x: auto; margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 11px; vertical-align: top; text-align: left; }
.prose th { background: var(--surface-2); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: .93rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 52px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.note { background: color-mix(in srgb, #f59e0b 12%, var(--surface)); border-left: 4px solid #f59e0b; border-radius: 12px; padding: 12px 18px; }
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-radius: 24px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: 1.6rem; }
.cta-band p { margin: 6px 0 0; color: #e0e4ff; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0 28px; font-size: .93rem; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .studio { display: flex; gap: 12px; align-items: flex-start; }
.foot .studio img { width: 48px; height: 48px; border-radius: 12px; }
.foot .studio p { margin: 4px 0 0; color: var(--muted); }
.legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* App family cards: icon, name and status */
.app-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.app-row h3 { margin: 0 0 4px; }
.app-ico { border-radius: 14px; flex: none; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); background: #fff; }
.app-ico-text { display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.pill-live { background: color-mix(in srgb, #16a34a 16%, transparent); color: #15803d; }
@media (prefers-color-scheme: dark) { .pill { color: #c7d2fe; } .pill-live { color: #86efac; } }
