/* HomeTab promo site. Light by default, dark when the system is or the toggle says so
   (data-theme on <html>). The class names match what site/render.mjs produces. */

:root {
  --bg: #f6f7fa;
  --card: #ffffff;
  --fg: #1b1f27;
  --muted: #5d6472;
  --border: #e3e6ec;
  --secondary: #eceef3;
  --primary: #2868e8;
  --primary-fg: #ffffff;
  --accent: #d8792a;
  --map: #f0f2f6;
  --map-line: #dfe3ea;
  --shadow: 0 30px 80px -40px rgba(15, 19, 24, .35);
  --radius: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

/* Dark palette, used when the system is dark and the toggle has not said "light", or the toggle
   says "dark". The two selectors carry the same values; keep them in step. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13161c; --card: #1b1f27; --fg: #f0f2f5; --muted: #a3abb9; --border: #2c313c; --secondary: #262b35;
    --primary: #4d86f0; --accent: #f0a24a; --map: #171b22; --map-line: #262b35;
    --shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13161c; --card: #1b1f27; --fg: #f0f2f5; --muted: #a3abb9; --border: #2c313c; --secondary: #262b35;
  --primary: #4d86f0; --accent: #f0a24a; --map: #171b22; --map-line: #262b35;
  --shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
}

/* Screenshots show the extension's light theme on the light page and its dark theme on the dark
   one; the toggle shows the moon on the light page and the sun on the dark one. */
.frame .shot-dark, .gallery-shot .shot-dark, .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.frame, .gallery-shot) .shot-dark, :root:not([data-theme="light"]) .sun { display: block; }
  :root:not([data-theme="light"]) :is(.frame, .gallery-shot) .shot-light, :root:not([data-theme="light"]) .moon { display: none; }
}
:root[data-theme="dark"] :is(.frame, .gallery-shot) .shot-dark, :root[data-theme="dark"] .sun { display: block; }
:root[data-theme="dark"] :is(.frame, .gallery-shot) .shot-light, :root[data-theme="dark"] .moon { display: none; }

* { box-sizing: border-box; }
/* Smooth scrolling only once the page is up (site.js adds .ready): a link to #something must
   land instantly, before lazy content around it changes the layout. */
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html.ready { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--secondary); padding: 1px 6px; border-radius: 5px; }
pre { overflow: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); line-height: 1.5; }
pre code { background: none; padding: 0; font-size: 13.5px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
p + p, .intro p + p, .answer p + p { margin-top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-accent { color: var(--accent); margin-top: 3px; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; background: var(--secondary); color: var(--primary);
}
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band + .band { border-top: 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 15px; line-height: 1.2;
  white-space: nowrap; cursor: pointer; transition: filter .15s, background .15s;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button-lg { padding: 14px 26px; font-size: 16px; }
.button-sm { padding: 8px 16px; font-size: 14px; }
.button-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.button-ghost:hover { background: var(--secondary); filter: none; }
.button-soon { background: var(--secondary); color: var(--muted); cursor: default; }
.button-soon:hover { filter: none; }

/* "New in x.y.z" */
.new {
  display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary);
}

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--fg); letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.top-nav { display: flex; gap: 28px; font-size: 15px; }
.top-nav a { color: var(--muted); }
.top-nav a:hover { color: var(--fg); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { background: var(--secondary); color: var(--fg); }

/* Hero */
.hero { padding: 72px 0 96px; text-align: center; }
.hero-inner { max-width: 760px; }
.eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 14px; color: var(--muted); }
h1 { margin: 24px 0 20px; font-size: clamp(42px, 8vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
h1 .accent { color: var(--primary); }
.lede { max-width: 600px; margin: 0 auto; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.review-note { max-width: 620px; margin: 18px auto 0; padding: 10px 16px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 14px; color: var(--fg); }
.hero-shot { margin-top: 56px; }

/* Browser frame around screenshots */
.frame { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--secondary); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.frame-pill { padding: 3px 12px; border-radius: 6px; background: var(--card); font-size: 12px; color: var(--muted); }
.frame img { display: block; width: 100%; height: auto; }

/* Hero switcher: the frames sit on top of each other and crossfade; a labelled dot each. */
.switcher-stage { display: grid; }
.switcher-stage .frame { grid-area: 1 / 1; transition: opacity .7s ease; }
.switcher-stage .frame[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.switcher-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.switcher-dots button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer;
}
.switcher-dots button:hover { color: var(--fg); }
.switcher-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--border); transition: width .3s, background .3s; }
.switcher-dots button[aria-selected="true"] { color: var(--fg); }
.switcher-dots button[aria-selected="true"] i { width: 20px; background: var(--primary); }

/* Zoom: a frame that opens full size on click */
.frame[data-zoomable] { position: relative; cursor: zoom-in; }
.zoom {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--fg); cursor: zoom-in;
  opacity: 0; transition: opacity .15s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.frame[data-zoomable]:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover: none) { .zoom { opacity: 1; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 10, 14, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox img { display: block; width: auto; height: auto; max-width: min(96vw, 1600px); max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); cursor: zoom-out; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; }
.section-head h2 { margin-bottom: 14px; }
.intro { color: var(--muted); font-size: 17px; }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; }

/* Steps + demo */
.step-list { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.step-list li { display: flex; gap: 16px; counter-increment: step; }
.step-list li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600;
}
.step-list h3 { margin-bottom: 4px; }
.step-list p { color: var(--muted); font-size: 15px; }

.demo { overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); font-size: 13px; }
.demo-body { display: grid; grid-template-columns: 220px 1fr; min-height: 340px; }
.demo-map { position: relative; overflow: hidden; border-right: 1px solid var(--border); background-color: var(--map);
  background-image: repeating-radial-gradient(circle at 30% 40%, transparent 0 22px, var(--map-line) 22px 23px),
    repeating-radial-gradient(circle at 78% 70%, transparent 0 18px, var(--map-line) 18px 19px); }
.ring { position: absolute; left: var(--x); top: var(--y); width: var(--r); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px dashed var(--muted); border-radius: 50%; opacity: .55; transition: opacity .5s, border-color .5s; }
.ring i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%); }
.ring b { position: absolute; left: 50%; top: 100%; margin-top: 4px; transform: translateX(-50%); font: 600 9px ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--muted); }
.ring-home { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ring-work { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.demo[data-place="home"] .ring-home, .demo[data-place="work"] .ring-work { opacity: 1; }
.you { position: absolute; left: var(--you-x); top: var(--you-y); transform: translate(-50%, -50%); transition: left 1s ease-in-out, top 1s ease-in-out; }
.you i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--card); background: var(--fg); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); position: relative; }
.you::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fg); animation: ping 1.8s ease-out infinite; }
.demo[data-place="home"] .you i, .demo[data-place="home"] .you::before { background: var(--accent); }
.demo[data-place="work"] .you i, .demo[data-place="work"] .you::before { background: var(--primary); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.demo-coords { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--card); }
.demo-coords span { display: none; flex-direction: column; gap: 2px; }
.demo-coords code { background: none; padding: 0; font-size: 11.5px; color: var(--fg); }
.demo-coords small { font: 600 10px ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.demo[data-place="home"] [data-for="home"], .demo[data-place="work"] [data-for="work"], .demo[data-place="away"] [data-for="away"] { display: flex; }
.demo[data-place="home"] small { color: var(--accent); }
.demo[data-place="work"] small { color: var(--primary); }
.demo-page { padding: 16px; min-width: 0; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.demo-tabs .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-tabs [data-place-tab="home"] .dot { background: var(--accent); }
.demo-tabs [data-place-tab="work"] .dot { background: var(--primary); }
.demo-tools { display: flex; gap: 10px; color: var(--muted); }
.demo-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation: rise .5s ease-out; }
.demo-panel[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.d-block { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); min-width: 0; }
.d-block.wide { grid-column: 1 / -1; }
.d-block header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.d-block h4 { font-size: 13px; font-weight: 600; }
.d-block header span { font: 11px ui-monospace, Menlo, monospace; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
.d-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.d-links li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--card); min-width: 0; }
.d-links span, .d-list span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-links i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--secondary); font: 600 11px/22px sans-serif; text-align: center; }
.d-list, .d-todo, .d-trains { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.d-list li { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.d-list .icon { color: var(--muted); }
.d-todo li { position: relative; padding-left: 24px; }
.d-todo li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--muted); }
.d-todo li.done { color: var(--muted); text-decoration: line-through; }
.d-todo li.done::before { background: var(--accent); border-color: var(--accent); }
.d-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-tiles li { overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 12px; }
.d-tiles li { display: flex; flex-direction: column; }
.d-tiles span:last-child { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 52px; padding: 0 8px 6px; background: var(--secondary); }
.bars i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--primary) 70%, transparent); }
.b0 i:nth-child(1) { height: 40%; } .b0 i:nth-child(2) { height: 65%; } .b0 i:nth-child(3) { height: 50%; } .b0 i:nth-child(4) { height: 80%; } .b0 i:nth-child(5) { height: 60%; }
.b1 i { background: color-mix(in srgb, var(--primary) 40%, transparent); }
.b1 i:nth-child(1) { height: 47%; } .b1 i:nth-child(2) { height: 72%; } .b1 i:nth-child(3) { height: 57%; } .b1 i:nth-child(4) { height: 87%; } .b1 i:nth-child(5) { height: 67%; }
.b2 i:nth-child(1) { height: 54%; } .b2 i:nth-child(2) { height: 79%; } .b2 i:nth-child(3) { height: 64%; } .b2 i:nth-child(4) { height: 4%; } .b2 i:nth-child(5) { height: 74%; }
.d-trains li { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.d-trains b { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.d-trains em { font-style: normal; color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.d-trains span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.d-trains small { margin-left: auto; font-size: 12px; color: var(--muted); }
.d-trains .cancelled { color: var(--muted); text-decoration: line-through; }

/* Tour */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 32px; }
.tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.tabs button:hover { background: var(--secondary); }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tour-stop { display: grid; grid-template-columns: 1fr 2.6fr; gap: 36px; align-items: start; animation: rise .3s ease-out; }
.tour-stop[hidden] { display: none; }
.tour-text { padding-top: 16px; }
.tour-text h3 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 10px; }
.tour-text p { color: var(--muted); }

/* Cards (what's new) */
.card-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* What's new: tagline and date under the title */
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--muted); }
.release-meta .tagline { font-size: 18px; color: var(--fg); }
.release-meta .date { font-size: 14px; }
.cards .more { margin-top: 28px; }

/* Changelog page */
.changelog { max-width: 860px; padding: 56px 0 24px; }
.changelog h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 12px; }
.changelog .lede { margin: 0 0 48px; font-size: 17px; }
.release { padding: 36px 0; border-top: 1px solid var(--border); }
.release-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release-head h2 { font-size: 28px; display: inline-flex; align-items: center; gap: 10px; }
.release-head h2 a { color: var(--fg); }
.release-head h2 a:hover { text-decoration: none; color: var(--primary); }
.release-head .date { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); vertical-align: middle; }
.release > .tagline { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.card-grid.compact { margin-top: 22px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card-grid.compact .card { padding: 18px; background: var(--card); }
.card-grid.compact .icon-box { width: 34px; height: 34px; border-radius: 10px; }
.card-grid.compact .card-head { gap: 10px; margin-bottom: 8px; }
.card-grid.compact .icon-box .icon { width: 18px; height: 18px; }
.card-grid.compact h3 { font-size: 16.5px; }
.card-grid.compact p { font-size: 14.5px; }
.release .notes { margin-top: 20px; }
.release .notes summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; color: var(--primary); }
.release .notes summary::-webkit-details-marker { display: none; }
.release .notes[open] .chev { transform: rotate(180deg); }
.release .notes .chev { transition: transform .2s; }
.notes-body { margin-top: 14px; padding: 4px 0 0 18px; border-left: 2px solid var(--border); color: var(--fg); font-size: 15.5px; }
.notes-body h3 { font-size: 16px; margin: 18px 0 6px; }
.notes-body p { margin: 0 0 10px; }
.notes-body ul { padding-left: 20px; margin: 0 0 12px; }
.notes-body li { margin: 5px 0; }
.notes-body li + li { margin-top: 8px; }

/* Showcase (widgets) */
.showcase .two-col { grid-template-columns: 1fr 1.3fr; }
.chips .intro ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .intro li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13.5px; color: var(--fg); }

/* Feature grid */
.feature-grid { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-grid li { display: flex; gap: 16px; }
.feature-grid h3 { margin-bottom: 4px; }
.feature-grid p { color: var(--muted); font-size: 15px; }

/* Privacy points */
.point-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.point-list li { display: flex; gap: 16px; }
.point-list h3 { margin-bottom: 4px; }
.point-list p { color: var(--muted); }

/* FAQ */
.faq .two-col { align-items: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { color: var(--muted); transition: transform .2s; }
.faq-list details[open] .chev { transform: rotate(180deg); }
.answer { padding: 0 0 18px; color: var(--muted); }

/* Final call to action */
.final { text-align: center; padding: 96px 0; }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 640px; }
.logo-lg { border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.final h2 { font-size: clamp(32px, 4.5vw, 48px); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 14px; font-weight: 500; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--fg); }
.foot-note { margin-top: 14px; font-size: 13px; }

/* Document pages (privacy policy, docs) */
.doc { max-width: 760px; padding: 56px 0 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--fg); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin: 6px 0; }
.doc pre { margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { font-weight: 600; }
.doc blockquote { margin: 0 0 14px; padding: 2px 16px; border-left: 3px solid var(--border); color: var(--muted); }

/* The built-in widget library on widgets.html */
.library-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.library-nav a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 13.5px; color: var(--fg); }
.library-nav a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.widget-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 36px 0 12px; }
.widget-entry { padding: 18px 20px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); scroll-margin-top: 150px; }
.widget-entry:target { border-color: var(--primary); }
.widget-entry header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.widget-entry h4 { margin: 0; font-size: 17px; font-weight: 600; }
.widget-entry h4 a { color: var(--fg); }
.widget-entry h4 a:hover { color: var(--primary); text-decoration: none; }
.widget-entry .meta { font-size: 13px; color: var(--muted); }
.widget-entry > p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.widget-entry .inputs { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.widget-entry .inputs li { margin: 3px 0; }
.widget-entry .inputs .hint { color: var(--muted); }
.preview-controls { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 8px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; }
.preview-controls-label { font-weight: 600; margin-right: 4px; }
.preview-controls label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.preview-controls select { font: inherit; font-size: 13.5px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }
.widget-preview { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--secondary); min-height: 64px; }
.widget-preview iframe { display: block; width: 100%; height: 120px; border: 0; background: transparent; transition: height .2s; }
.preview-pending { display: block; padding: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.sample-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.definition { margin-top: 12px; }
.definition summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; color: var(--primary); }
.definition summary::-webkit-details-marker { display: none; }
.definition .chev { transition: transform .2s; }
.definition[open] .chev { transform: rotate(180deg); }
.definition .copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.definition .copy:hover { border-color: var(--primary); color: var(--primary); }
.definition pre { margin: 10px 0 0; max-height: 420px; font-size: 12.5px; }

/* The block gallery on blocks.html */
.gallery-kind { padding: 28px 0 8px; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.gallery-kind h2 { font-size: 24px; margin: 0 0 6px; }
.gallery-kind h2 a { color: var(--fg); }
.gallery-kind h2 a:hover { color: var(--primary); text-decoration: none; }
.gallery-kind > p { color: var(--muted); margin: 0 0 14px; }
.tabs-sm { margin: 0 0 14px; gap: 6px; }
.tabs-sm button { padding: 5px 12px; font-size: 13px; }
.gallery-shot { margin: 0 0 12px; }
.gallery-shot[hidden] { display: none; }
.gallery-shot img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.grid-more { margin-top: 36px; }

/* Narrow screens */
@media (max-width: 900px) {
  .two-col, .showcase .two-col { grid-template-columns: 1fr; gap: 36px; }
  .tour-stop { grid-template-columns: 1fr; gap: 20px; }
  .card-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-map { height: 190px; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .top-nav { display: none; }
  .top-inner { height: 58px; }
  section { padding: 60px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-shot { margin-top: 36px; }
  .card-grid, .feature-grid, .card-grid.compact { grid-template-columns: 1fr; gap: 24px; }
  .demo-panel { grid-template-columns: 1fr; }
  .d-block.wide { grid-column: auto; }
  .frame { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .you::before, .demo-panel, .tour-stop { animation: none; }
  .you, .switcher-stage .frame, .switcher-dots i { transition: none; }
}
