/* TextLighter website — plain CSS, no frameworks, no external requests.
   Palette follows the extension itself: paper, ink, marker yellow, orange. */
:root {
  color-scheme: light;
  --paper: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6B6B66;
  --line: #E5E5E0;
  --soft: #F1EFE8;
  --marker: #FDE68A;
  --marker-soft: #FFF0A0;
  --orange: #E87A3C;
  --orange-deep: #A8440F;
  --amber: #F28C28;
  --leaf: #3FA97A;
  --sky: #4474A0;
  --rose: #E85D7E;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 8px 28px rgba(26, 26, 26, .08);
  --shadow-lg: 0 2px 4px rgba(26, 26, 26, .06), 0 20px 50px rgba(26, 26, 26, .14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1A1A1A;
  --surface: #262626;
  --ink: #FAFAF8;
  --muted: #A8A8A3;
  --line: #444444;
  --soft: #2E2E2E;
  --marker: #EAB308;
  --marker-soft: #E9B949;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--marker); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep);
  margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--amber); }

/* ---- jagged marker stroke (the extension's own look) ---- */
.mark {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 2px;
}
/* Hero sweep: the marker draws itself across the word, left to right. */
.mark-sweep {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60' preserveAspectRatio='none' viewBox='0 0 300 60'%3E%3Cpath d='M4 12 Q 40 6 80 10 T 160 9 T 240 11 T 296 9 L 296 48 Q 250 54 200 50 T 110 51 T 4 49 Z' fill='%23FDE68A'/%3E%3C/svg%3E");
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  padding: 0 .12em;
  animation: sweep 1.1s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}
@keyframes sweep { to { background-size: 100% 100%; } }
/* dark mode: the sweep keeps a light marker, so its text must go dark or it
   reads white-on-yellow — same pairing the extension uses (Butter dark). */
[data-theme="dark"] .mark-sweep {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='60' preserveAspectRatio='none' viewBox='0 0 300 60'%3E%3Cpath d='M4 12 Q 40 6 80 10 T 160 9 T 240 11 T 296 9 L 296 48 Q 250 54 200 50 T 110 51 T 4 49 Z' fill='%23E9B949'/%3E%3C/svg%3E");
  color: #1C1500;
}

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--soft); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 16px; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
[data-theme="dark"] .btn-primary { background: var(--paper); color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn .chrome-dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); flex: none; }
.store-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.store-note[hidden] { display: none; }

/* ---- hero ---- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em; }
.hero .lede { margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points svg { color: var(--leaf); flex: none; }

/* browser mockup */
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(1.2deg);
  animation: float-in .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes float-in { from { opacity: 0; transform: rotate(1.2deg) translateY(18px); } to { opacity: 1; transform: rotate(1.2deg) translateY(0); } }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser-bar .dot:first-child { background: #F28C8C; }
.browser-bar .dot:nth-child(2) { background: #F5C86B; }
.browser-bar .dot:nth-child(3) { background: #7BC8A4; }
.browser-url { flex: 1; margin-left: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.browser-url svg { flex: none; }
.browser-body { padding: 26px 28px 30px; font-family: var(--serif); font-size: 17.5px; line-height: 1.85; }
.browser-body h4 { font-family: var(--font); font-size: 21px; margin: 0 0 4px; letter-spacing: -0.01em; }
.browser-body .byline { font-family: var(--font); font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.browser-body p { margin: 0 0 14px; }
.browser-body p:last-child { margin-bottom: 0; }
.mock-menu {
  margin: 18px 0 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); width: 230px; padding: 6px;
  font-family: var(--font); font-size: 14px;
  animation: menu-pop 1s ease 1.4s both;
}
@keyframes menu-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.mock-menu .mi { padding: 7px 10px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.mock-menu .mi.hl { background: var(--soft); font-weight: 600; }
.mock-menu .mi .arrow { color: var(--muted); }
.mock-menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.mock-menu .sub { padding: 7px 10px 7px 26px; border-radius: 6px; color: var(--muted); }
.mock-menu .sub.hl { background: var(--marker-soft); color: var(--ink); font-weight: 600; }

/* tooltip that appears on the hero highlight */
.hl-tip {
  display: inline-block; position: relative;
}
.hl-tip .tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--paper); font-family: var(--font); font-size: 13.5px; line-height: 1.45;
  padding: 8px 12px; border-radius: 8px; width: max-content; max-width: 260px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  box-shadow: var(--shadow-lg); z-index: 5;
}
.hl-tip:hover .tip, .hl-tip:focus-within .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.hl-tip .tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--ink);
}

/* ---- marquee strip ---- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; background: var(--surface); }
.strip-track { display: flex; gap: 44px; width: max-content; animation: marquee 36s linear infinite; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.strip-track span { display: inline-flex; align-items: center; gap: 8px; }
.strip-track .sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip:hover .strip-track { animation-play-state: paused; }

/* ---- sections ---- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---- live demo ---- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--soft); }
.demo-bar .demo-title { font-weight: 750; font-size: 15px; margin-right: auto; }
.demo-bar .demo-hint { font-size: 13.5px; color: var(--muted); }
.demo-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.demo-article { padding: 30px 32px 34px; font-family: var(--serif); font-size: 18px; line-height: 1.9; min-width: 0; }
.demo-article p { margin-bottom: 18px; }
.demo-article p:last-child { margin-bottom: 0; }
.demo-article .hl { cursor: default; }
.demo-side { border-left: 1px solid var(--line); padding: 26px 24px; background: var(--paper); min-width: 0; }
.demo-side h3 { font-size: 16px; margin-bottom: 4px; }
.demo-side .side-note { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.colour-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; position: relative;
  box-shadow: inset 0 0 0 1px rgba(26, 26, 26, .12);
  transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.12); }
.swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 L6.5 12 L13 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.custom-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 10px 0 18px; }
.custom-wrap input[type="color"] { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.demo-field { margin-bottom: 14px; }
.demo-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.demo-field input, .demo-field select {
  width: 100%; font: inherit; font-size: 15px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink);
}
.demo-field input:focus, .demo-field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.demo-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.demo-list li {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
}
.demo-list .chip { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.demo-list .word { font-weight: 700; }
.demo-list .desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.demo-list .rm { margin-left: auto; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.demo-list .rm:hover { color: var(--ink); background: var(--soft); }
.demo-empty { font-size: 14px; color: var(--muted); }
.demo-count { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
/* the demo's "Highlight this word" button: a plain static button in the demo
   bar, disabled until text is selected. The extension itself shows NOTHING on
   selection — words are added from the right-click menu — so the demo must
   never teach a floating selection button. */
.sel-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: inherit; font-size: 14px; font-weight: 700;
  background: var(--ink); color: var(--paper); border: none; border-radius: 999px;
  padding: 9px 15px; cursor: pointer; box-shadow: var(--shadow);
}
.sel-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.sel-btn:not(:disabled):hover { transform: translateY(-1px); }
.mock-caption { font-family: var(--font); font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---- feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--marker-soft); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--orange-deep); margin-top: 12px; }
[data-theme="dark"] .card .tag { color: var(--amber); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.step .num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 800; font-size: 15px;
  align-items: center; justify-content: center; margin-bottom: 14px;
}
[data-theme="dark"] .step .num { background: var(--paper); color: var(--ink); }
.step p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.step code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 5px; }

/* ---- colour section ---- */
.palette-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.palette-cell {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.palette-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.palette-cell .swatch-big { height: 74px; display: flex; align-items: flex-end; padding: 10px 12px; }
.palette-cell .swatch-big span { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.palette-cell .meta { padding: 12px 14px 14px; }
.palette-cell .meta b { display: block; font-size: 15px; }
.palette-cell .meta small { color: var(--muted); font-size: 13.5px; }

/* ---- import/export + privacy strip ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel p { color: var(--muted); font-size: 15.5px; }
.panel .btn { margin-top: 6px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; margin: 4px 6px 4px 0;
}
.privacy-strip {
  background: var(--ink); color: var(--paper); border-radius: 20px;
  padding: 44px 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
[data-theme="dark"] .privacy-strip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.privacy-strip h2 { color: inherit; }
.privacy-strip p { color: inherit; opacity: .78; margin-bottom: 0; }
.privacy-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy-facts li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; font-size: 15.5px; }
.privacy-facts svg { flex: none; transform: translateY(2px); }
.privacy-strip .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--paper); margin-top: 20px; }
[data-theme="dark"] .privacy-strip .btn-ghost { border-color: var(--line); color: var(--ink); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; font: inherit; font-size: 18px; font-weight: 700; text-align: left;
  padding: 20px 4px; cursor: pointer; color: var(--ink);
}
.faq-q .plus { font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .25s ease; flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; margin: 0; }
.faq-a a { color: var(--ink); }

/* ---- final CTA ---- */
.cta { text-align: center; }
.cta .browser-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); font-size: 15px; }
.site-footer a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 340px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* ---- privacy page ---- */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 24px 90px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--orange-deep); }
[data-theme="dark"] .prose a { color: var(--amber); }
.back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { border-left: none; border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .privacy-strip { grid-template-columns: 1fr; padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* mobile header: brand + actions on row one, nav as a scrollable row two */
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 4px; }
  .header-actions { margin-left: auto; }
  .site-nav { display: flex; order: 3; flex-basis: 100%; margin-left: -12px; margin-right: -12px; padding: 2px 12px 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .browser-body { padding: 20px; font-size: 16px; }
  .demo-article { padding: 22px 20px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
  .mark-sweep { background-size: 100% 100%; animation: none; }
}
