/* Ropework website. Colours, spacing and radii come from tokens.css (the same file the app uses); type is set larger for reading. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/ropework/fonts/atkinson-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/ropework/fonts/atkinson-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/ropework/fonts/familjen-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/ropework/fonts/familjen-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/ropework/fonts/atkinson-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, .eyebrow, .price b { font-family: var(--font-display); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--color-accent); color: var(--color-on-accent); padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 49px); }
.muted { color: var(--color-text-muted); }
.mono { font-family: var(--font-mono); }
.ico { vertical-align: -4px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-head .wrap { display: flex; align-items: center; gap: 44px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--color-accent); }
.nav a[aria-current="page"] { color: var(--color-accent); }
.head-cta { margin-inline-start: auto; }
.menu { display: none; margin-inline-start: auto; }
.menu-btn { font: inherit; background: transparent; color: inherit; list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--color-border-input); border-radius: 8px; font-weight: 500; }
.menu-panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 12px clamp(16px, 4vw, 49px) 20px; display: grid; gap: 4px; }
.menu-panel a { padding: 10px 0; color: var(--color-text); text-decoration: none; font-weight: 500; }
@media (max-width: 860px) { .site-head .nav, .site-head .head-cta { display: none; } .menu { display: block; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--color-border-input); background: transparent; color: var(--color-text); font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: default; }
.btn:hover { background: var(--color-surface); text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 82%, black)); border-color: var(--color-accent); color: var(--color-on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; pointer-events: none; }
.btn.block { width: 100%; }

/* bands */
.band { padding: clamp(40px, 7vw, 72px) 0; }
.band.tint { background: var(--color-surface); }
.band.edge { border-top: 1px solid var(--color-border); }
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); background: var(--color-surface); }
.page-title { padding: clamp(36px, 5vw, 62px) 0 clamp(36px, 5vw, 64px); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.page-title h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 650; }
.page-title p { margin: 12px 0 0; max-width: 62ch; color: var(--color-text-muted); font-size: 15px; }
.eyebrow { font: 500 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 3.9vw, 50px); font-weight: 650; line-height: 1.14; letter-spacing: -0.015em; }
.hero .lead { font-size: 17px; color: var(--color-text-muted); max-width: 56ch; margin: 22px 0 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin-top: 24px; font-size: 14px; color: var(--color-text-muted); }

/* app card (hero sketch) */
.appcard { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.1); overflow: hidden; font-size: 13px; }
.appcard .row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--color-border); }
.appcard .row:first-child { border-top: 0; font-family: var(--font-mono); }
.appcard .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
.appcard .name { font-family: var(--font-mono); flex: 1; }
.appcard .state { color: var(--color-text-muted); }
.appcard .pill { margin-inline-start: auto; background: var(--color-accent); color: var(--color-on-accent); border-radius: 4px; padding: 3px 10px; font-weight: 600; font-family: var(--font-sans); }
.appcard .bar { width: 110px; height: 6px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.appcard .bar i { display: block; height: 100%; width: 62%; background: var(--color-accent); }
.shot { border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px rgb(0 0 0 / 0.1); }
.shot img { display: block; width: 100%; height: auto; }

/* grids and cards */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.points.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .points, .points.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points, .points.three { grid-template-columns: 1fr; } }
.point .ico, .card .ico { color: var(--color-accent); margin-bottom: 10px; display: block; }
.point h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.point p { color: var(--color-text-muted); margin: 0; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 10px; padding: 22px 22px 24px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--color-text-muted); font-size: 14px; }
.card .soon { display: inline-block; margin-top: 12px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-on-info-subtle); background: var(--color-info-subtle); border-radius: 4px; padding: 5px 8px; }
h2.section { font-size: 20px; font-weight: 650; margin-bottom: 24px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan h3 { font-size: 19px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 13px; color: var(--color-text-muted); }
.plan p { flex: 1; }
.notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid; border-radius: 8px; padding: 14px 18px; margin-top: 24px; }
.notice.good { background: var(--color-accent-subtle); border-color: var(--color-accent); color: var(--color-on-accent-subtle); }
.notice.info { background: var(--color-info-subtle); border-color: var(--color-info); color: var(--color-on-info-subtle); }
.notice.warn { background: var(--color-warning-subtle); border-color: var(--color-warning); color: var(--color-on-warning-subtle); }
.notice .ico { flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice a { color: inherit; }
.faq { max-width: 820px; }
.faq h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.faq div { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.faq div:first-child { padding-top: 0; }
.faq p { margin: 0; color: var(--color-text-muted); }

/* migrate */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 44px; margin-bottom: 22px; border-bottom: 1px solid var(--color-border); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); display: grid; place-items: center; font: 700 13px/1 var(--font-sans); }
.steps h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--color-text-muted); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; font-size: 15px; }
.table th { font-weight: 600; font-size: 13px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.table td:last-child { color: var(--color-text-muted); }

/* download manager */
.dl-tabs { display: inline-flex; border: 1px solid var(--color-border-input); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.dl-tabs button { appearance: none; border: 0; background: transparent; color: var(--color-text); font: 600 15px/1 var(--font-sans); padding: 12px 20px; cursor: default; display: inline-flex; gap: 8px; align-items: center; }
.dl-tabs button + button { border-inline-start: 1px solid var(--color-border-input); }
.dl-tabs button[aria-selected="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.dl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.dl-head h2 { font-size: 22px; font-weight: 700; }
.pill { display: inline-block; font: 600 11px/1 var(--font-mono); border-radius: 4px; padding: 4px 7px; border: 1px solid; }
.pill.steady { background: var(--color-accent-subtle); color: var(--color-on-accent-subtle); border-color: var(--color-accent); }
.pill.edge { background: var(--color-info-subtle); color: var(--color-on-info-subtle); border-color: var(--color-info); }
.files { display: grid; gap: 14px; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 10px; padding: 18px 22px; }
@media (max-width: 700px) { .file { grid-template-columns: 1fr; } }
.file .fname { font: 500 14px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.file .meta { color: var(--color-text-muted); font-size: 14px; }
.sum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 12px/1.4 var(--font-mono); color: var(--color-text-muted); overflow-wrap: anywhere; }
.copy { appearance: none; border: 1px solid var(--color-border-input); background: transparent; color: var(--color-text); border-radius: 6px; font: 600 12px/1 var(--font-sans); padding: 6px 10px; cursor: default; display: inline-flex; gap: 6px; align-items: center; }
.copy:hover { background: var(--color-surface); }
.older-item { border-top: 1px solid var(--color-border); padding: 14px 0; }
.older-btn { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; font-weight: 600; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; text-align: start; inline-size: 100%; }
.older-btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
pre.code { background: var(--color-surface-sunken); border: 1px solid var(--color-border); border-radius: 8px; padding: 14px 16px; overflow: auto; font: 400 13px/1.6 var(--font-mono); margin: 0 0 16px; }
code { font-family: var(--font-mono); font-size: 0.92em; background: var(--color-surface-sunken); padding: 1px 5px; border-radius: 4px; }
pre.code code { background: none; padding: 0; }

/* forms */
.form-card { background: var(--color-surface-raised); border: 1px solid var(--color-border); border-radius: 12px; padding: 28px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.05); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.field .hint { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border-input); border-radius: 8px; font: inherit; }
.field textarea { min-height: 110px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--color-danger); border-width: 2px; }
.err { color: var(--color-danger); font-size: 13px; margin-top: 4px; font-weight: 500; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-inline-size: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.field .choice, .choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--color-border-input); border-radius: 8px; padding: 10px 12px; margin: 0; font-weight: 500; font-size: 15px; cursor: default; }
.field .choice:has(input:checked), .choice:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-subtle); color: var(--color-on-accent-subtle); }
.choice input, .tick input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 18px; height: 18px; margin: 0; border: 1px solid var(--color-border-input); background: var(--color-bg); cursor: default; }
.choice input { border-radius: 50%; }
.tick input { border-radius: 4px; }
.choice input:checked, .tick input:checked { background: var(--color-accent); border-color: var(--color-accent); }
.choice input:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--color-on-accent); }
.tick input:checked::after { content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 4px; height: 9px; border: solid var(--color-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field label.tick, .tick { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; margin: 0; }
.tick input { margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 16px; }
.status[hidden] { display: none; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { color: var(--color-accent); }

/* releases and prose */
.rel { max-width: 820px; }
.rel article { padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.rel article:first-child { padding-top: 0; }
.rel h2 { font: 700 20px/1.2 var(--font-mono); display: inline; margin-right: 10px; }
.rel time { color: var(--color-text-muted); font-size: 14px; margin-left: 8px; }
.rel ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.rel li b { font-weight: 600; }
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .lists { grid-template-columns: 1fr; } }
.lists .card p { margin: 0 0 12px; color: var(--color-text); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 820px; }
.doc-list a { display: block; padding: 16px 20px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-raised); text-decoration: none; color: var(--color-text); font-weight: 600; }
.doc-list a span { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 14px; margin-top: 2px; }
.status-pill { font: 600 12px/1 var(--font-mono); padding: 4px 8px; border-radius: 4px; background: var(--color-warning-subtle); color: var(--color-on-warning-subtle); }

/* footer */
.site-foot { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 48px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot-grid h4 { font-size: 14px; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--color-text-muted); text-decoration: none; font-size: 14px; }
.foot-grid a:hover { color: var(--color-accent); text-decoration: underline; }
.foot-grid .brand-line { color: var(--color-text-muted); font-size: 14px; margin-top: 12px; max-width: 40ch; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 14px; }
.theme { display: inline-flex; border: 1px solid var(--color-border-input); border-radius: 8px; overflow: hidden; }
.theme button { appearance: none; border: 0; background: transparent; color: var(--color-text); font: 500 13px/1 var(--font-sans); padding: 8px 12px; cursor: default; }
.theme button + button { border-inline-start: 1px solid var(--color-border-input); }
.theme button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-on-accent); }

/* logos follow the theme */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }

@media (prefers-reduced-motion: no-preference) { .btn, .card, .doc-list a { transition: background-color 0.12s, filter 0.12s, border-color 0.12s; } }
@media (forced-colors: active) { .btn.primary, .dl-tabs button[aria-selected="true"], .theme button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; } }

.notice + h2, .notice + p { margin-top: 36px; }
.notice + .notice { margin-top: 16px; }

.notice + .plans, .notice.info + .plans { margin-top: 24px; }
.form-card .btn.block { margin-top: 4px; }

/* scrollbars drawn from the tokens, thin and quiet, never the system's white bar */
::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-input, rgba(128, 128, 128, 0.5)); border: 3px solid transparent; background-clip: content-box; border-radius: 99px; min-height: 36px; min-width: 36px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted, rgba(128, 128, 128, 0.8)); background-clip: content-box; }
html { scrollbar-gutter: auto; }

/* screens page: the picture that matches the chosen theme */
.sgrid { display: grid; gap: 40px; margin-top: 32px; }
.sfig { margin: 0; }
.sfig img { width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--elev-2); }
.sfig figcaption { margin-top: 12px; max-width: 70ch; color: var(--color-text-muted); }
.sfig figcaption strong { color: var(--color-text); }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
:root[data-theme="light"] .shot-light { display: block; }
:root[data-theme="light"] .shot-dark { display: none; }
.labs { padding-left: 20px; }
.labs li { margin: 8px 0; }
.prose h3 { margin-top: 22px; }

/* home: a window that cycles through real screens, with no script */
.deck { position: relative; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgb(0 0 0 / 0.14); background: var(--color-surface-raised); aspect-ratio: 1280 / 800; }
.deck .slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: deck-fade 24s infinite; }
.deck .slide:nth-child(1) { animation-delay: 0s; }
.deck .slide:nth-child(2) { animation-delay: 6s; }
.deck .slide:nth-child(3) { animation-delay: 12s; }
.deck .slide:nth-child(4) { animation-delay: 18s; }
.deck img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck .slide figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--color-surface-raised); border: 1px solid var(--color-border); font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgb(0 0 0 / 0.16); }
.deck:hover .slide { animation-play-state: paused; }
@keyframes deck-fade { 0% { opacity: 0; transform: scale(1.015); } 4% { opacity: 1; } 24% { opacity: 1; transform: scale(1); } 28% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .deck .slide { animation: none; } .deck .slide:first-child { opacity: 1; } }
.deck-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.deck-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--color-border-strong, var(--color-border)); overflow: hidden; position: relative; }
.deck-dots i::after { content: ""; position: absolute; inset: 0; background: var(--color-accent, currentColor); transform: scaleX(0); transform-origin: left; animation: deck-bar 24s infinite; }
.deck-dots i:nth-child(2)::after { animation-delay: 6s; }
.deck-dots i:nth-child(3)::after { animation-delay: 12s; }
.deck-dots i:nth-child(4)::after { animation-delay: 18s; }
@keyframes deck-bar { 0% { transform: scaleX(0); } 24% { transform: scaleX(1); } 25%, 100% { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .deck-dots { display: none; } }
.see-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .see-more { grid-template-columns: 1fr; } }
.see-more a { display: block; text-decoration: none; color: var(--color-text); }
.see-more img { width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 10px; }
.see-more span { display: block; margin-top: 8px; font-weight: 600; }

/* guide */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 84px; font-size: 14px; }
@media (max-width: 900px) { .toc { position: static; } }
.toc strong { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (max-width: 900px) { .toc ol { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; border-inline-start: 2px solid transparent; color: var(--color-text-muted); text-decoration: none; }
.toc a:hover { background: var(--color-surface); color: var(--color-text); }
.toc a[aria-current="true"] { color: var(--color-text); font-weight: 600; border-inline-start-color: var(--color-accent, currentColor); background: var(--color-surface); }
.guide-body section { scroll-margin-top: 84px; }
.guide-body h2 { font-size: 26px; margin: 48px 0 12px; }
.guide-body section:first-child h2 { margin-top: 0; }
.guide-body h4 { font-size: 17px; margin: 24px 0 6px; }
.guide-body p, .guide-body li { max-width: 70ch; }
.guide-body .code { max-width: 70ch; }
.qa-tools { margin: 8px 0 18px; }
.qa-search { width: 100%; max-width: 420px; padding: 10px 14px; font: inherit; color: var(--color-text); background: var(--color-surface-raised); border: 1px solid var(--color-border-strong, var(--color-border)); border-radius: 8px; -webkit-appearance: none; appearance: none; }
.qa-search:focus-visible { outline: 2px solid var(--color-accent, currentColor); outline-offset: 2px; }
.qa-list { max-width: 760px; border-top: 1px solid var(--color-border); }
.qa { border-bottom: 1px solid var(--color-border); }
.qa h3 { margin: 0; font-size: 16px; }
.qa-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; font: inherit; font-weight: 600; text-align: left; color: var(--color-text); background: none; border: 0; cursor: pointer; }
.qa-q:hover { color: var(--color-accent, inherit); }
.qa-q:focus-visible { outline: 2px solid var(--color-accent, currentColor); outline-offset: -2px; border-radius: 6px; }
.qa-q::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.qa-q[aria-expanded="true"]::after { transform: rotate(-135deg); }
.qa-a { padding: 0 4px 18px; color: var(--color-text-muted); }
.qa-a p { margin: 0 0 10px; }
.qa-none { margin: 16px 0; color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .qa-q::after { transition: none; } }

/* buttons: a soft shine on hover, a small pull towards the pointer on the main ones, and a quick press on every one */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%); transform: translateX(-120%); }
.btn:not(.primary)::before { background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--color-accent) 16%, transparent) 50%, transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.12s, filter 0.12s, border-color 0.12s, transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
  .btn:hover::before { transform: translateX(120%); transition: transform 0.65s ease; }
  .btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.965); transition-duration: 0.06s; }
  .btn.magnet { transform: translate(var(--mx, 0px), var(--my, 0px)); }
  .btn.pop::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 45%, transparent); animation: btn-pop 0.45s ease-out; }
  @keyframes btn-pop { to { box-shadow: 0 0 0 10px transparent; } }
}
@media (hover: none), (prefers-reduced-motion: reduce) { .btn::before { display: none; } }

/* hidden means hidden, even where a rule sets display */
[hidden] { display: none !important; }
/* nothing is wider than the screen on a phone */
.guide > *, .guide-body, .prose { min-width: 0; }
.prose pre, .guide-body pre, pre.code { max-width: 100%; overflow-x: auto; }
.prose table, .guide-body table { display: block; max-width: 100%; overflow-x: auto; }
.guide-body img { max-width: 100%; height: auto; }
.prose a, .guide-body a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .toc ol { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; grid-template-columns: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 14px; }
}

img, picture, svg { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.deck, .sfig, .see-more a { -webkit-touch-callout: none; }

/* generated from inline styles */
.st1 { margin-top:24px !important; }
.st2 { margin-top:28px !important; }
.st3 { margin:0 0 28px 0 !important; }
.st4 { font-size:22px !important; }
.st5 { margin-top:36px !important; font-size:20px !important; }
.st6 { margin-top:0 !important; }
.st7 { background:var(--color-surface) !important; border-bottom:1px solid var(--color-border) !important; }
.st8 { align-items:start !important; }
.st9 { font-size:clamp(30px,4vw,38px) !important; font-weight:700 !important; }
.st10 { font-size:18px !important; margin-top:14px !important; max-width:44ch !important; }
.st11 { margin-top:22px !important; }
.st12 { font-size:20px !important; margin:0 0 12px !important; }
.st13 { margin-top:36px !important; }
.st14 { margin:0 0 28px !important; }
.st15 { max-width:62ch !important; font-size:18px !important; }
.st16 { margin-top:32px !important; }
