/* RPN 50g — site */
:root {
  --bg: #0e0e10; --panel: #18181b; --text: #ececf0; --muted: #a0a0ab; --accent: #f2a33a; --accent2: #e8e8ee; --border: #2a2a30;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f6f8; --panel: #ffffff; --text: #17171c; --muted: #5c5c66; --accent: #c8781a; --accent2: #17171c; --border: #e2e2e8; }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; font: 17px/1.55 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
header.top .brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
header.top .brand img { width: 36px; height: 36px; }
header.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
header.top nav a { margin-left: 22px; color: var(--muted); font-size: 15px; white-space: nowrap; }
header.top nav a.lang { border: 1px solid var(--border); border-radius: 8px; padding: 3px 9px; }
header.top nav { align-items: center; }
header.top nav a[aria-current="page"], header.top nav summary.here { color: var(--text); }
/* the drop-down menus (tools/nav.py) */
nav details.menu { position: relative; margin-left: 22px; }
nav details.menu summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 15px; white-space: nowrap; }
nav details.menu summary::-webkit-details-marker { display: none; }
nav details.menu summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
nav details.menu[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
nav details.menu summary:hover { color: var(--text); }
nav .panel { position: absolute; right: -12px; top: calc(100% + 10px); z-index: 10; min-width: 230px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
header.top nav .panel a { display: block; margin: 0; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
header.top nav .panel a:hover { background: var(--border); text-decoration: none; }
header.top nav .panel a[aria-current="page"] { color: var(--accent); }
nav .panel a small { display: block; color: var(--muted); font-size: 12.5px; }
header.top nav .panel a.all { border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; color: var(--accent); }
footer .links { margin: 0 0 6px; }
footer .links span { display: inline-block; min-width: 90px; color: var(--text); margin-right: 12px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero h1 small { display: block; font-size: 20px; font-weight: 500; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--accent2); color: var(--bg); border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.store:hover { text-decoration: none; opacity: .9; }
.store small { display: block; font-weight: 400; font-size: 11px; opacity: .75; line-height: 1; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.shots { display: flex; gap: 14px; justify-content: center; }
.shots img { height: 420px; width: auto; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.shots img.mac { height: 420px; border-radius: 10px; }
.hero.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shots img.wide { height: auto; width: 100%; max-width: 520px; border-radius: 18px; }
section { padding: 36px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 28px; margin: 0 0 18px; letter-spacing: -0.01em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.gallery img { height: 360px; border-radius: 18px; border: 1px solid var(--border); }
.note { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: 15px; }
footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); margin-right: 16px; }
article { max-width: 760px; padding: 20px 0 40px; }
article h1 { font-size: 36px; margin: 20px 0 8px; letter-spacing: -0.02em; }
article h2 { font-size: 22px; margin: 28px 0 8px; }
article p, article li { color: var(--text); }
article .meta { color: var(--muted); font-size: 15px; }
code { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
@media (max-width: 800px) {
  .hero, .hero.wide { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero h1 { font-size: 36px; }
  .stores { justify-content: center; }
  .shots img { height: 300px; }
  .features { grid-template-columns: 1fr; }
  header.top { flex-wrap: wrap; gap: 10px; }
  header.top .brand { white-space: nowrap; }
  header.top nav { justify-content: flex-start; }
  header.top nav a { margin: 0 14px 0 0; }
  nav details.menu { margin: 0 14px 0 0; }
  nav .panel { left: -6px; right: auto; }
  footer .links span { display: block; margin-bottom: 2px; }
}

/* FAQ */
#faq { max-width: 760px; }
#faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
#faq summary { cursor: pointer; font-weight: 600; }
#faq details p { color: var(--muted); margin: 8px 0 4px; }
