/* Sitewright website. Same design language as the sites it generates: pale surface, white cards, soft shadow, pill buttons. */
:root {
  --surface: #f3f5fa; --raised: #ffffff; --raised-2: #f8f9fc; --ink: #0d1424; --muted: #55607a; --line: #dfe4ee; --line-strong: #c9d1e0;
  --primary: #1e5bd8; --primary-ink: #ffffff; --primary-wash: #e6eefc; --signal: #14a6cc; --signal-wash: #e0f4fa; --ok: #12805c;
  --code-bg: #0d1424; --code-ink: #dbe4f7; --code-muted: #8191b3;
  --shadow: 0 1px 2px rgba(13, 20, 36, .05), 0 14px 34px -14px rgba(30, 91, 216, .22);
  --shadow-lift: 0 2px 4px rgba(13, 20, 36, .06), 0 36px 70px -24px rgba(30, 91, 216, .38);
  --radius: 18px; --ease: cubic-bezier(.215, .61, .355, 1);
  --font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --surface: #0a0e16; --raised: #121826; --raised-2: #182033; --ink: #eef2fb; --muted: #9aa7c2; --line: #232d44; --line-strong: #33405e;
    --primary: #5b8cff; --primary-ink: #0a0e16; --primary-wash: #16213d; --signal: #3cc6ea; --signal-wash: #102a35; --ok: #3dd9ae;
    --code-bg: #070a11; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -16px rgba(0, 0, 0, .8);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 36px 70px -24px rgba(0, 0, 0, .9); color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --surface: #0a0e16; --raised: #121826; --raised-2: #182033; --ink: #eef2fb; --muted: #9aa7c2; --line: #232d44; --line-strong: #33405e;
  --primary: #5b8cff; --primary-ink: #0a0e16; --primary-wash: #16213d; --signal: #3cc6ea; --signal-wash: #102a35; --ok: #3dd9ae;
  --code-bg: #070a11; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -16px rgba(0, 0, 0, .8);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 36px 70px -24px rgba(0, 0, 0, .9); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--surface); }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--primary-wash); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 13px; font-weight: 500; box-shadow: var(--shadow); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font: 600 14.5px var(--font); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--primary-ink); }
.btn.primary:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
header.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--surface) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.top nav a:hover { color: var(--ink); background: var(--raised); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }
.gh { min-height: 44px; padding: 0 16px; }

/* hero */
.hero { padding: 64px 0 34px; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; background:
  radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
  radial-gradient(40% 40% at 8% 30%, color-mix(in srgb, var(--signal) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 580px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.copyline { display: flex; align-items: center; gap: 10px; max-width: 580px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); }
.copyline code { flex: 1; font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere; padding: 10px 0; }
.copyline code::-webkit-scrollbar { display: none; }
.copyline code b { color: var(--signal); font-weight: 500; }
.copy { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; font: 600 12.5px var(--font); cursor: pointer; flex: none; }
.copy:hover { background: rgba(255, 255, 255, .16); }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 30px; margin-top: 28px; }
.facts div { font-size: 13px; color: var(--muted); }
.facts b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }

/* device frames */
.stage { position: relative; padding: 0 0 56px; }
.browser { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--raised-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 360px; font: 400 11px var(--mono); color: var(--muted); background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; background: var(--raised-2); }
.phone { background: #0d1424; border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lift); width: 100%; }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--raised-2); }
.stage .phone { position: absolute; right: -10px; bottom: 0; width: 31%; max-width: 210px; transform: rotate(3deg); }
.stage .float { position: absolute; left: -22px; bottom: 18px; width: 44%; max-width: 300px; transform: rotate(-2.5deg); }
.stage .float .browser img { aspect-ratio: 1440 / 800; }

/* sections */
section { padding: 84px 0; }
section.tight { padding: 48px 0; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.band { background: var(--raised); border-block: 1px solid var(--line); }

/* modules */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--raised-2); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.card:hover .shot img { transform: scale(1.03); }
.card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card h3 code { font-size: 11.5px; font-weight: 500; background: var(--primary-wash); color: var(--primary); padding: 3px 9px; border-radius: 999px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.card li { padding-left: 22px; position: relative; }
.card li::before { content: ''; position: absolute; left: 3px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-50%); }
.card .needs { margin-top: auto; padding-top: 10px; font: 400 12px var(--mono); color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: start; }
.step-list { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid transparent; transition: background .2s, border-color .2s; cursor: pointer; text-align: left; background: none; font: inherit; color: inherit; width: 100%; }
.step:hover, .step.on { background: var(--raised); border-color: var(--line); box-shadow: var(--shadow); }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--primary-wash); color: var(--primary); }
.step.on .n { background: var(--primary); color: var(--primary-ink); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }
.term { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; position: sticky; top: 92px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.term-bar span { margin-left: 8px; font: 400 12px var(--mono); color: var(--code-muted); }
.term pre { margin: 0; padding: 20px 22px 24px; font-size: 12.8px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; min-height: 340px; }
.term .u { color: #fff; } .term .a { color: var(--code-ink); } .term .d { color: var(--code-muted); } .term .g { color: #4ade80; } .term .k { color: #7cc4ff; } .term .y { color: #ffd479; }
.term .pane { display: none; } .term .pane.on { display: block; }

/* gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font: 600 14px var(--font); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 9px; }
.tab i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.tab[aria-selected='true'] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.gal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.gal-phone .phone { max-width: 250px; margin-inline: auto; }
.gal-side { grid-column: 1 / -1; }
.gal-side .browser img { aspect-ratio: 1440 / 520; }
.gal img { transition: opacity .3s; }
.gal-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.gal-meta h3 { font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 500 12px var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--primary-wash); color: var(--primary); }
.swatches { display: flex; gap: 6px; align-items: center; font: 400 12px var(--mono); color: var(--muted); }
.swatches b { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--raised); box-shadow: 0 0 0 1px var(--line-strong); }

/* phones row */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.phones figure { margin: 0; display: grid; gap: 12px; }
.phones figure:nth-child(even) { margin-top: 36px; }
.phones figcaption { text-align: center; font-size: 13.5px; color: var(--muted); }
.phones .phone { max-width: 260px; margin-inline: auto; }

/* light + dark */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.duo figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.duo figure { margin: 0; }

/* backend */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat > div { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feat h3 { font-size: 16.5px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.feat h3 svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feat p { color: var(--muted); font-size: 14px; }

/* install */
.install { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: start; }
.os-tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 16px; flex-wrap: wrap; }
.os-tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: none; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; }
.os-tabs button[aria-selected='true'] { background: var(--primary); color: var(--primary-ink); }
.code { background: var(--code-bg); color: var(--code-ink); border-radius: 14px; position: relative; margin: 0 0 14px; box-shadow: var(--shadow); }
.code pre { margin: 0; padding: 18px 70px 18px 18px; overflow-x: auto; font-size: 12.8px; line-height: 1.75; }
.code .copy { position: absolute; top: 10px; right: 10px; min-height: 34px; padding: 0 12px; }
.code .c { color: var(--code-muted); }
.code .lbl { display: block; padding: 10px 18px 0; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--code-muted); }
.panel { display: none; } .panel.on { display: block; }
.req { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.req h3 { font-size: 17px; margin-bottom: 12px; }
.req ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.req li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.req li svg { width: 20px; height: 20px; stroke: var(--ok); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.req code, .note code, .faq code, .feat code { background: var(--primary-wash); color: var(--primary); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.prompts { display: grid; gap: 10px; margin-top: 16px; }
.prompts q { quotes: none; display: block; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-size: 14px; }
.prompts q::before { content: '\203A  '; color: var(--primary); font-weight: 800; }

/* tested */
.tested { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.tested div { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tested b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--primary); }
.tested span { font-size: 13px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two .req ul { gap: 8px; }
.two .no li svg { stroke: #c2410c; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow); margin-bottom: 26px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--raised-2); }
tr:last-child td { border-bottom: 0; }
td.ok { color: var(--ok); font-weight: 700; font-family: var(--mono); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 38px 0 54px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--primary); }

/* motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.js-off .reveal { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid, .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 680px; margin-inline: auto; width: 100%; }
  .term { position: static; }
  .cards, .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones figure:nth-child(even) { margin-top: 0; }
  .tested { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the full nav needs about 900px; below 980px it collapses into the menu button */
@media (max-width: 980px) {
  .top nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; gap: 2px; display: none; box-shadow: var(--shadow); }
  .top nav.open { display: flex; }
  .top nav a { padding: 13px 14px; font-size: 16px; }
  .menu-btn { display: inline-grid; margin-left: auto; }
  .gh-top { display: none; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding-top: 40px; }
  .foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .cards, .feat, .two, .duo { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, auto); }
  .gal { grid-template-columns: minmax(0, 1fr); }
  .gal-phone .phone { max-width: 220px; }
  .gal-side .browser img { aspect-ratio: 1440 / 700; }
  .tested { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage .float { display: none; }
  .stage .phone { width: 38%; right: 0; transform: rotate(2deg); }
  .cta .btn { flex: 1 1 100%; }
  .step { padding: 14px; }
  .code pre { padding-right: 14px; padding-top: 52px; }
  .code .copy { top: 8px; }
  .term pre { font-size: 12px; padding: 16px; }
}
@media (max-width: 460px) {
  .phones { grid-template-columns: 1fr 1fr; gap: 12px; }
  .phones .phone { padding: 5px; border-radius: 22px; } .phones .phone img { border-radius: 17px; }
  .tabs .tab { padding: 0 14px; flex: 1 1 auto; justify-content: center; }
}
@media (pointer: coarse) { .btn, .tab, .copy, .code .copy, .os-tabs button, .step { min-height: 44px; } }

/* effects section */
.fx-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fx-tile, .fig-tile { margin: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.fx-tile:hover, .fig-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fx-tile img, .fig-tile img { width: 100%; aspect-ratio: 700 / 380; object-fit: cover; display: block; border-bottom: 1px solid var(--line); background: var(--raised-2); }
.fx-tile figcaption, .fig-tile figcaption { padding: 10px 12px 12px; display: grid; gap: 2px; }
.fx-tile b, .fig-tile b { font-size: 14px; }
.fx-tile span, .fig-tile span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.fx-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.fx-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.fx-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips span { font: 500 12px var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--primary-wash); color: var(--primary); }
.fx-live { margin-top: 34px; }
.fx-live-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.fx-live-head h3 { font-size: 22px; margin-bottom: 4px; }
.fx-live-head p { max-width: 640px; font-size: 14.5px; }
.fx-live-head code { background: var(--primary-wash); color: var(--primary); padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.fx-frame { display: block; width: 100%; height: 780px; border: 0; background: var(--surface); }
@media (max-width: 1020px) { .fx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .fx-tiles.two { grid-template-columns: minmax(0, 1fr); } .fx-tiles, .fx-tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fx-tile span, .fig-tile span { display: none; } .fx-frame { height: 640px; } .fx-live-head .btn { flex: 1 1 100%; } }

/* inline code (paths, file names) may break anywhere instead of pushing a phone-width page sideways */
:not(pre) > code { overflow-wrap: anywhere; }
.req li { grid-template-columns: 22px minmax(0, 1fr); }
.req li > span { min-width: 0; }

/* phones: the results table becomes a list (site and result on one line, description under it), commands wrap instead of hiding */
@media (max-width: 640px) {
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { padding: 0; border: 0; }
  .table-wrap td:nth-child(1) { font-weight: 600; }
  .table-wrap td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 13px; margin-top: 2px; }
  .table-wrap td:nth-child(3) { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .code pre, .copyline code { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* ---- icons: the home page preview and the /icons browser (generated markup: tools/make-icon-gallery.mjs) ---- */
.ic { flex: none; }
.ic-preview { margin-top: 30px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px 26px; }
.ic-preview-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.ic-preview-head h3 { font-size: 19px; }
.ic-preview-head p { font-size: 13.5px; margin-top: 6px; max-width: 70ch; }
.ic-strip { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px; }
.ic-strip li { display: grid; place-items: center; height: 52px; border-radius: 14px; background: var(--raised-2); border: 1px solid var(--line); color: var(--ink); transition: color .18s, border-color .18s, transform .18s var(--ease); }
.ic-strip li:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.ic-page { padding-block: 112px 90px; }
.ic-page h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; margin: 14px 0; }
.ic-page .sec-head p { color: var(--muted); }
.ic-page .sec-head code, .ic-note code, .ic-empty code, .ic-how code { font-size: .88em; background: var(--primary-wash); color: var(--primary); padding: 2px 7px; border-radius: 8px; }
.ic-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 30px; }
.ic-sets div { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.ic-sets b { display: block; font-size: 24px; letter-spacing: -.02em; }
.ic-sets span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }
.ic-tools { position: sticky; top: 64px; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); padding: 12px 0 10px; display: grid; gap: 10px; }
.ic-search input { width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); padding: 0 20px; font: 500 15px var(--font); }
.ic-search input:focus-visible { border-color: var(--primary); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ic-chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font: 500 13.5px var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ic-chip span { color: var(--muted); margin-left: 4px; font-size: 12px; }
.ic-chip:hover { border-color: var(--primary); }
.ic-chip.on { background: var(--primary); border-color: transparent; color: var(--primary-ink); }
.ic-chip.on span { color: inherit; }
.ic-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ic-fmt .ic-chip code { font-size: 12px; background: none; padding: 0; color: inherit; }
.ic-keys { margin-left: auto; }
.ic-keys kbd { border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 7px; font-size: 12px; color: var(--ink); }
.ic-note { color: var(--muted); font-size: 13.5px; margin: 8px 0 4px; min-height: 1.5em; }
.ic-cat { margin-top: 26px; scroll-margin-top: 150px; }
.ic-cat h2 { font-size: 19px; display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.ic-cat h2 span { font: 500 12px var(--mono); color: var(--muted); }
.ic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.ic-grid li[hidden], .ic-cat[hidden] { display: none; }
.ic-card { width: 100%; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 14px 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; font: 500 12px var(--font); transition: transform .18s var(--ease), border-color .18s, box-shadow .18s, color .18s; }
.ic-card svg { width: 26px; height: 26px; }
.ic-card span { color: var(--muted); max-width: 100%; overflow-wrap: anywhere; line-height: 1.25; text-align: center; }
.ic-card:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.ic-card.copied { border-color: var(--ok); color: var(--ok); }
.ic-empty { margin-top: 30px; color: var(--muted); }
.ic-how { margin-top: 50px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.ic-how h2 { font-size: 20px; margin-bottom: 12px; }
.ic-how pre { margin: 0 0 14px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.ic-how pre code { background: none; color: inherit; padding: 0; }
.ic-how p { font-size: 14px; }
@media (max-width: 640px) {
  .ic-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
  .ic-tools { top: 58px; }
  .ic-strip { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
}
