:root {
  color-scheme: dark;
  --ink: #14111a;
  --panel: #211a2c;
  --paper: #fbf8f2;
  --muted: #c8bdcf;
  --line: #493b52;
  --accent: #f4ff82;
  --violet: #d3b5ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9463d6; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: var(--ink); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 22px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; white-space: nowrap; }
.brand img { border-radius: 25%; }
.nav-pro { color: var(--accent); border: 1px solid var(--line); border-radius: 30px; padding: 7px 15px; }
.hero { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(42px, 7vw, 100px); }
.home { background: radial-gradient(ellipse 900px 620px at 88% 280px, #38244b, transparent), var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--violet); text-transform: uppercase; font-weight: 750; letter-spacing: .12em; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 6.5vw, 6.15rem); letter-spacing: -.075em; line-height: .96; }
.hero h1 { margin-block: 22px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lede { font-size: clamp(1.075rem, 2vw, 1.27rem); color: var(--muted); max-width: 35ch; line-height: 1.6; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.store img { width: 150px; height: 50px; }
.button { display: inline-flex; min-height: 50px; align-items: center; padding-inline: 19px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-decoration: none; }
.button:hover { filter: brightness(1.13); }
.secondary { border-color: var(--line); }
.secondary:hover { background: var(--panel); }
.primary { background: var(--accent); color: var(--ink); }
.fine { color: var(--muted); margin-top: 12px; font-size: .875rem; }
.demo { overflow: hidden; position: relative; border: 1px solid #715c7c; border-radius: 22px; background: #1d1725; box-shadow: 0 22px 70px #07060b60; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 10px 16px; font-weight: 700; }
.demo-tag { color: var(--muted); font-size: .875rem; font-weight: 500; }
.demo-image { aspect-ratio: 16 / 9; overflow: hidden; background: #413746; }
.demo-image img { width: 100%; height: 100%; object-fit: cover; }
.demo-controls { display: grid; grid-template-columns: 1.15fr 1fr .8fr; gap: 6px; padding: 12px 14px; }
.demo-controls button { min-height: 44px; color: var(--paper); background: #2b2335; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font: inherit; font-size: .925rem; }
.demo-controls button:hover { border-color: var(--violet); }
.demo-controls button[aria-pressed="true"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.demo-result { display: flex; align-items: flex-start; gap: 10px; min-height: 72px; padding: 12px 16px; border-top: 1px solid var(--line); }
.demo-result strong, .demo-result small { display: block; }
.demo-result small { color: var(--muted); margin-top: 4px; font-size: .875rem; }
.signal { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #a995b2; flex: none; }
.demo-result[data-active="true"] .signal { background: var(--accent); box-shadow: 0 0 10px #d9ee61; }
.uses { padding-block: clamp(40px, 7vw, 80px); background: var(--accent); color: var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.05; letter-spacing: -.045em; }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 32px; }
.examples article { border-top: 1px solid #53531f; padding-top: 14px; }
.example-mark { font-size: 2rem; }
.examples h3, .plans h3 { font-size: 1.35rem; margin-block: 8px; }
.examples p { max-width: 34ch; line-height: 1.55; }
.plans { display: grid; grid-template-columns: .95fr 1.05fr; gap: 32px; align-items: center; padding-block: clamp(44px, 8vw, 96px); }
.plans h2 { margin-block: 12px; }
.plans .button { margin-top: 18px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.plan-grid .pro-card { border-color: var(--violet); }
.pro-card h3 { color: var(--violet); }
.plan-grid ul { padding-left: 18px; line-height: 1.55; }
.plan-grid li + li { margin-top: 7px; }
.site-footer { border-top: 1px solid var(--line); font-size: .875rem; }
.guide { color-scheme: light; background: var(--paper); color: var(--ink); }
.guide .site-header, .guide .site-footer { border-color: #ded6e0; }
.guide .nav-pro { color: #643490; border-color: #cbb8d9; }
.guide .eyebrow { color: #643490; }
.guide-layout { display: grid; grid-template-columns: 200px minmax(0, 690px); gap: clamp(24px, 5vw, 72px); padding-block: 44px 70px; }
.guide-sidebar { border-right: 1px solid #ded6e0; padding-right: 20px; }
.guide-sidebar nav { display: grid; gap: 2px; }
.guide-sidebar h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .11em; margin: 8px 10px 10px; }
.guide-sidebar a { padding: 7px 10px; border-radius: 7px; text-decoration: none; }
.guide-sidebar a:hover, .guide-sidebar a[aria-current="page"] { background: #ebdef7; color: #512573; }
.guide-sidebar a[aria-current="page"] { font-weight: 700; }
.article h1 { font-size: clamp(2.7rem, 5vw, 4.65rem); margin-block: 12px; }
.article .intro { font-size: 1.22rem; color: #51445a; line-height: 1.55; max-width: 49ch; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump-links a { background: #eee5f6; color: #502771; border-radius: 30px; padding: 8px 11px; font-size: .875rem; }
.guide-figure { margin: 24px 0 32px; padding: 22px 22px 14px; border-radius: 16px; background: radial-gradient(ellipse at top, #e4cdff, #eae1ef); text-align: center; }
.guide-figure img { width: min(100%, 190px); height: auto; margin: auto; border-radius: 16px; }
.guide-figure figcaption { margin-top: 10px; font-size: .875rem; color: #51445a; }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); margin-bottom: 12px; }
.article h3 { font-size: 1.25rem; margin-top: 24px; }
.article p, .article ol { line-height: 1.6; }
.article details { padding: 12px 15px; border: 1px solid #ded6e0; border-radius: 8px; }
.article summary { cursor: pointer; font-weight: 650; }
.settings-shot { width: min(100%, 260px); margin-top: 12px; border-radius: 10px; }
.next { display: grid; gap: 5px; margin-top: 26px; color: #502771; border: 1px solid #cbb8d9; border-radius: 8px; padding: 13px; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 36px); }
  .hero, .plans { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .wide { display: none; }
  .demo { max-width: 540px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { border-right: 0; border-bottom: 1px solid #ded6e0; padding: 0 0 12px; }
  .guide-sidebar nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .guide-sidebar h2 { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .site-header nav, .site-footer nav { gap: 12px; }
  .site-header, .site-footer { flex-wrap: wrap; }
  .examples { grid-template-columns: 1fr; }
  .plan-grid article { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.guide-sidebar nav { display: block; }
.guide-sidebar ul { list-style: none; margin: 0; padding: 0; }
.guide-sidebar li { min-width: 0; }
.guide-sidebar li a { display: block; }
.guide-sidebar li ul { border-left: 1px solid #ded6e0; margin: 2px 0 4px 10px; padding-left: 6px; font-size: .9rem; }
.article { min-width: 0; overflow-wrap: anywhere; }
.article .jump-links { margin-bottom: 18px; }
.article h2 { margin-top: 1.1em; }
.article h4 { margin: 1.3em 0 .5em; }
.article p + p, .article details + details { margin-top: 12px; }
.article ul, .article ol { line-height: 1.6; }
.article a:not(.jump-links a) { color: #502771; }
.article figure:not(.guide-figure) { margin: 20px 0; }
.article figure:not(.guide-figure) img { border-radius: 10px; height: auto; }
.article figcaption { margin-top: 8px; font-size: .875rem; color: #51445a; }
.article .guide-table { overflow-x: auto; margin-block: 14px; }
.article table { width: 100%; border-collapse: collapse; text-align: left; }
.article th, .article td { border-bottom: 1px solid #ded6e0; padding: 9px 12px; vertical-align: top; }
.article th { background: #eee5f6; }
.article :where(blockquote, .guide-hint) { margin: 18px 0; padding: 10px 14px; border-left: 3px solid #9463d6; background: #f2ebf8; }
.article .guide-hint.warning { border-color: #9b651e; background: #fcf1dd; }
.article pre { overflow: auto; padding: 14px; border-radius: 8px; background: #eee5f6; }
.article hr { border: 0; border-top: 1px solid #ded6e0; margin-block: 24px; }
@media (min-width: 801px) {
  .guide-sidebar { align-self: start; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
@media (max-width: 800px) {
  .guide-sidebar nav > ul { display: flex; flex-wrap: wrap; }
  .guide-sidebar li ul { max-width: 230px; }
}
