/* Rawelier · site styles. The palette is the app's own (VisorDesign). No external fonts or requests. */
:root {
  --ground: #0c0c0d;
  --surface: #1a1a1c;
  --raised: #232326;
  --ink: #f2f0eb;
  --secondary: #a3a199;
  --line: rgba(163, 161, 153, 0.18);
  --accent: #ffb224;
  --blue: #5aa8ff;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1120px;
  --text: 68ch;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(12, 12, 13, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 18px; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--secondary); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; color: var(--secondary); }

/* Type */
.k { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 88px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--secondary); line-height: 1.45; max-width: 34em; }
.lead b, .muted b { color: var(--ink); font-weight: 600; }
.muted { color: var(--secondary); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto 0; height: 620px; pointer-events: none;
  background: radial-gradient(520px 320px at 22% 30%, rgba(255, 140, 40, 0.16), transparent 70%), radial-gradient(520px 340px at 70% 20%, rgba(70, 140, 255, 0.14), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; text-decoration: none; }
.pill.go { background: var(--accent); color: #17120a; border-color: transparent; }
a.pill:hover { border-color: var(--accent); color: var(--ink); }
a.pill.go:hover { color: #17120a; filter: brightness(1.08); }

/* Demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 14px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.scene { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; background: #111; }
.scene .img { position: absolute; inset: 0; will-change: filter;
  background:
    radial-gradient(60% 34% at 68% 44%, rgba(255, 196, 120, 0.85), transparent 70%),
    linear-gradient(180deg, #243a5e 0%, #6f6a8c 34%, #d98a5c 52%, #f0b072 60%, #2a2f3a 60.2%, #151a22 100%); }
.scene .m1, .scene .m2, .scene .m3 { position: absolute; inset: 0; }
.scene .m1 { background: #3b4763; clip-path: polygon(0 62%, 14% 48%, 26% 55%, 41% 36%, 55% 52%, 68% 44%, 83% 56%, 100% 46%, 100% 100%, 0 100%); opacity: 0.9; }
.scene .m2 { background: #232b3d; clip-path: polygon(0 74%, 18% 60%, 33% 70%, 50% 57%, 64% 69%, 80% 60%, 100% 72%, 100% 100%, 0 100%); }
.scene .m3 { background: linear-gradient(180deg, #141922, #0b0e13); clip-path: polygon(0 86%, 22% 78%, 45% 85%, 70% 77%, 100% 86%, 100% 100%, 0 100%); }
.scene .hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); pointer-events: none; transition: opacity 0.3s; }
.scene.used .hint { opacity: 0; }
.scene .read { position: absolute; top: 12px; left: 12px; background: rgba(12, 12, 13, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.scene .read span { color: var(--accent); margin-left: 6px; }
.rings { display: flex; gap: 10px; justify-content: center; padding: 16px 4px 6px; flex-wrap: wrap; }
.ring { background: none; border: 0; color: var(--secondary); font: inherit; font-size: 12px; font-weight: 600; display: grid; justify-items: center; gap: 6px; cursor: pointer; padding: 4px 6px; border-radius: 12px; min-width: 72px; }
.ring svg { width: 58px; height: 58px; }
.ring .track { stroke: rgba(163, 161, 153, 0.28); }
.ring .arc { stroke: var(--ink); transition: stroke 0.2s; }
.ring .glyph { stroke: var(--secondary); fill: none; }
.ring[aria-pressed="true"] { color: var(--ink); }
.ring[aria-pressed="true"] .arc { stroke: var(--accent); }
.ring[aria-pressed="true"] .glyph { stroke: var(--ink); }
.reset { display: block; margin: 4px auto 2px; background: none; border: 0; color: var(--secondary); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { margin: 14px 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--secondary); font-size: 16px; }
.card .n { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); }
.tools { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools > div { background: var(--ground); display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px 24px; align-items: baseline; }
.tools dt { font-weight: 600; }
.tools dd { color: var(--secondary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); align-items: start; }
.nolist { list-style: none; padding: 0; display: grid; gap: 14px; }
.nolist li { padding-left: 30px; position: relative; color: var(--secondary); }
.nolist li b { color: var(--ink); font-weight: 600; }
.nolist li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent); }
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 0 80px rgba(255, 150, 60, 0.25); }
.cta h2 { margin-bottom: 14px; }
.cta .badges { justify-content: center; }

/* Documents (privacy, terms, licences, support) */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.doc .wrap { max-width: calc(var(--text) + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 14px 0 14px; }
.doc p.k { color: var(--accent); margin: 0; }
.doc .stamp { color: var(--secondary); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: 26px; margin: 46px 0 12px; line-height: 1.2; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol, .doc dl { margin: 0 0 16px; color: #d9d6cf; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc li b, .doc p b { color: var(--ink); }
.doc code, .doc pre { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.doc code { background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.doc pre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; margin-bottom: 16px; }
.doc pre code { background: none; border: 0; padding: 0; }
.summary { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 20px 22px; margin: 0 0 12px; }
.summary p:last-child { margin-bottom: 0; }
.tablewrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--secondary); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
.downloads { display: grid; gap: 10px; margin-bottom: 18px; }
.downloads a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-decoration: none; font-weight: 600; }
.downloads a span { color: var(--secondary); font-weight: 400; font-size: 14px; text-align: right; }
.downloads a:hover { border-color: var(--accent); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 4px; }
mark.todo { background: rgba(255, 178, 36, 0.16); color: var(--accent); border: 1px dashed var(--accent); border-radius: 6px; padding: 0 6px; font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--secondary); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { margin-top: 26px; max-width: 70em; line-height: 1.55; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .tools > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
