/* Shared look for the landing page (index.html, while no PDF is open) and about.html.
   Theme: <html data-theme="light|dark">, set by site.js. Light is the default. */
.site {
  --lp-bg: #ffffff; --lp-tint: #f3f6fa; --lp-ink: #121820; --lp-soft: #5a6472; --lp-line: #e5e9ef;
  --lp-accent: #1f5fd1; --lp-accent-ink: #ffffff;
  background: var(--lp-bg); color: var(--lp-ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
:root[data-theme="dark"] .site {
  --lp-bg: #111513; --lp-tint: #1a201d; --lp-ink: #eef2ef; --lp-soft: #a3aea8; --lp-line: #29312d;
  --lp-accent: #86a9ff; --lp-accent-ink: #0b1733;
}
:root[data-theme="dark"] { color-scheme: dark; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 12px; background: var(--lp-accent); color: var(--lp-accent-ink) !important; font-weight: 600; font-size: 16.5px; text-decoration: none !important; border: 0; cursor: pointer; }
.lp-btn:hover { filter: brightness(1.06); }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--lp-line); background: transparent; color: var(--lp-ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--lp-tint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.lp-free { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.lp-free li { display: inline-flex; align-items: center; gap: 7px; }
.lp-free svg { width: 18px; height: 18px; color: #1b8a4a; flex: none; }
:root[data-theme="dark"] .lp-free svg { color: #5fd38d; }
/* About page */
.lp-doc { max-width: 72ch; padding: 40px 0 72px; }
.lp-doc h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 20px; }
.lp-doc .lead { font-size: 19px; line-height: 1.55; color: var(--lp-soft); margin: 0 0 12px; }
.lp-doc h2 { font-size: 24px; letter-spacing: -0.015em; font-weight: 600; margin: 48px 0 12px; }
.lp-doc p, .lp-doc li { font-size: 16.5px; line-height: 1.65; }
.lp-doc p { margin: 0 0 14px; }
.lp-doc ul { padding-left: 20px; margin: 0 0 14px; }
.lp-doc li { margin-bottom: 6px; color: var(--lp-soft); }
.lp-doc .lp-band { margin: 40px 0 0; padding: 36px 40px; }
.lp-doc .lp-band h2 { margin-top: 0; }
@media (max-width: 960px) { .lp-doc .lp-band { padding: 28px 22px; } }
.lp { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.lp a, .lp-link { color: var(--lp-accent); }
.lp-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.lp-link:hover, .lp a:hover { text-decoration: underline; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.lp-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.lp-links a, .lp-links .lp-link { color: var(--lp-ink); text-decoration: none; }
.lp-links .coffee-link { color: var(--lp-accent); }
.lp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 48px 0 96px; }
.lp-copy h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 24px; max-width: 13ch; text-wrap: balance; }
.lp-copy p { font-size: 19px; line-height: 1.55; color: var(--lp-soft); margin: 0 0 32px; max-width: 44ch; }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.lp-actions .btn { height: 52px; padding: 0 28px; font-size: 16.5px; border-radius: 12px; }
.lp-copy small { display: block; color: var(--lp-soft); font-size: 14px; }
.lp-install { margin-top: 10px; font-size: 14px; }
.lp-stage { position: relative; background: var(--lp-tint); border-radius: 28px; padding: 56px 32px; display: grid; place-items: center; min-height: 480px; }
.lp-sticker {
  position: absolute; top: -18px; left: -22px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 16px; border-radius: 16px;
  background: #1b8a4a; color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 14px 30px -10px rgba(16, 80, 44, 0.55), 0 2px 4px rgba(16, 80, 44, 0.25);
  pointer-events: none;
}
.lp-sticker svg { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); box-sizing: content-box; }
.lp-sticker strong { display: block; font-size: 18px; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; }
.lp-sticker small { display: block; font-size: 13.5px; opacity: 0.85; margin-top: 2px; }
:root[data-theme="dark"] .lp-sticker { background: #2fa866; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
.drop {
  position: relative;
  width: min(320px, 100%); aspect-ratio: 1 / 1.414;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 32px; border: 0; border-radius: 6px;
  background: #fff; color: #121820; font: inherit; cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 24, 32, 0.08), 0 24px 48px -12px rgba(18, 24, 32, 0.22);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.drop::after { content: ""; position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-bottom-left-radius: 6px; background: linear-gradient(225deg, transparent 50%, #e3e8ef 50%); }
.drop:hover, .drop:focus-visible { transform: translateY(-4px) rotate(-0.6deg); }
.drop:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 6px; }
.sheet-lines { position: absolute; top: 40px; left: 32px; right: 72px; display: grid; gap: 10px; }
.sheet-lines i { display: block; height: 6px; border-radius: 3px; background: #edf0f4; }
.sheet-lines i:nth-child(2) { width: 82%; } .sheet-lines i:nth-child(3) { width: 90%; } .sheet-lines i:nth-child(4) { width: 55%; }
.drop svg { width: 44px; height: 44px; color: #1f5fd1; margin-bottom: 8px; padding: 10px; border-radius: 50%; background: rgba(31, 95, 209, 0.1); box-sizing: content-box; }
.drop strong { font-size: 19px; font-weight: 600; }
.drop span { color: #5a6472; font-size: 14px; }
.lp-section { padding: 88px 0; }
.lp-section h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 40px; max-width: 20ch; }
.lp-band { background: var(--lp-tint); border-radius: 28px; padding: 64px; }
.lp-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.lp-split h2 { margin: 0; }
.lp-split p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; max-width: 60ch; }
.lp-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 32px 0 48px; border-top: 1px solid var(--lp-line); font-size: 14px; color: var(--lp-soft); }
.lp-foot span { margin-right: auto; font-weight: 600; color: var(--lp-ink); }
.lp-foot a, .lp-foot .lp-link { color: var(--lp-soft); text-decoration: none; }
.lp-foot a:hover, .lp-foot .lp-link:hover { color: var(--lp-ink); }
.lp-brand, .lp-links a, .lp-links .lp-link { white-space: nowrap; }
@media (max-width: 960px) {
  .lp { padding: 0 20px; }
  .lp-hero { grid-template-columns: 1fr; gap: 40px; padding: 16px 0 64px; }
  .lp-stage { min-height: 0; padding: 40px 24px; border-radius: 22px; }
  .drop { width: min(260px, 100%); }
    .lp-section { padding: 56px 0; }
  .lp-band { padding: 36px 24px; border-radius: 22px; }
  .lp-split { grid-template-columns: 1fr; gap: 24px; }
  .lp-links { gap: 18px; }
  .lp-links a[href="about.html"] { display: none; }
  .lp-foot span { width: 100%; }
}
@media (max-width: 560px) {
    .lp-links .coffee-link { display: none; }
  .lp-links a[href="./#open"] { display: none; }
  .lp-links { gap: 14px; }
  .drop { width: min(220px, 100%); }
  .sheet-lines { display: none; }
  }
@media (prefers-reduced-motion: reduce) { .drop { transition: none; } .drop:hover, .drop:focus-visible { transform: none; } }
.lp a.lp-brand { color: var(--lp-ink); text-decoration: none; }
.lp-links a.lp-btn { padding: 0 16px; height: 38px; font-size: 15px; border-radius: 10px; }
.site, .site *, .site *::before, .site *::after { box-sizing: border-box; }

/* Section heading with intro */
.lp-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.lp-sechead h2 { margin: 0; }
.lp-sechead p { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--lp-soft); }

/* Tool explorer */
.lp-explorer { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: stretch; }
.lp-ex-tabs { display: flex; flex-direction: column; gap: 6px; }
.lp-ex-tabs button {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 12px 14px; border: 1px solid transparent; border-radius: 18px;
  background: transparent; color: var(--lp-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lp-ex-tabs button:hover { background: var(--lp-tint); }
.lp-ex-tabs button[aria-selected="true"] { background: var(--lp-tint); border-color: var(--lp-line); }
.lp-ex-tabs button:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.lp-ex-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--lp-tint); color: var(--lp-accent); transition: background 0.15s ease, color 0.15s ease; }
.lp-ex-tabs button[aria-selected="true"] .lp-ex-icon { background: var(--lp-accent); color: var(--lp-accent-ink); }
.lp-ex-icon svg { width: 26px; height: 26px; }
.lp-ex-name strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.lp-ex-name small { color: var(--lp-soft); font-size: 14px; }
.lp-ex-panel { background: var(--lp-tint); border-radius: 28px; padding: 40px; outline: none; }
.lp-ex-head { display: flex; gap: 22px; align-items: center; margin-bottom: 32px; }
.lp-ex-big { flex: none; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--lp-bg); color: var(--lp-accent); box-shadow: 0 1px 2px rgba(18, 24, 32, 0.06), 0 12px 24px -12px rgba(18, 24, 32, 0.2); }
.lp-ex-big svg { width: 42px; height: 42px; }
.lp-ex-head h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.lp-ex-head p { margin: 0; color: var(--lp-soft); font-size: 17px; line-height: 1.5; max-width: 52ch; }
.lp-ex-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lp-ex-tools li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--lp-bg); font-weight: 500; font-size: 15.5px; }
.lp-ex-ti { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(31, 95, 209, 0.1); color: var(--lp-accent); }
:root[data-theme="dark"] .lp-ex-ti { background: rgba(134, 169, 255, 0.14); }
.lp-ex-ti svg { width: 22px; height: 22px; }

/* FAQ */
.lp-faqwrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.lp-faq-side { position: sticky; top: 24px; }
.lp-faq-side h2 { margin: 0 0 14px; }
.lp-intro { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--lp-soft); max-width: 40ch; }
.lp-ask { background: var(--lp-tint); border-radius: 20px; padding: 24px; max-width: 380px; }
.lp-ask strong { display: block; font-size: 17px; margin-bottom: 4px; }
.lp-ask p { margin: 0 0 16px; color: var(--lp-soft); }
.lp-ask .lp-btn { height: 44px; padding: 0 20px; font-size: 15px; }
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { background: var(--lp-tint); border: 1px solid transparent; border-radius: 18px; padding: 0; transition: background 0.15s ease, border-color 0.15s ease; }
.lp-faq details[open] { background: var(--lp-bg); border-color: var(--lp-line); box-shadow: 0 12px 28px -18px rgba(18, 24, 32, 0.3); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 17px; border-radius: 18px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.lp-faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lp-bg) no-repeat center / 14px 14px;
  background-image: linear-gradient(var(--lp-ink), var(--lp-ink)), linear-gradient(var(--lp-ink), var(--lp-ink));
  background-size: 12px 2px, 2px 12px;
  transition: transform 0.2s ease;
}
.lp-faq details[open] summary::after { background-color: var(--lp-tint); background-size: 12px 2px, 0 0; }
.lp-faq details p { margin: 0; padding: 0 22px 22px; color: var(--lp-soft); font-size: 16px; line-height: 1.65; max-width: 62ch; }

@media (max-width: 960px) {
  .lp-sechead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lp-explorer { grid-template-columns: 1fr; }
  .lp-ex-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; }
  .lp-ex-tabs::-webkit-scrollbar { display: none; }
  .lp-ex-tabs button { width: auto; flex: none; padding: 8px 14px 8px 8px; gap: 10px; }
  .lp-ex-icon { width: 40px; height: 40px; border-radius: 11px; }
  .lp-ex-icon svg { width: 22px; height: 22px; }
  .lp-ex-name strong { font-size: 15px; white-space: nowrap; }
  .lp-ex-name small { display: none; }
  .lp-ex-panel { padding: 24px; border-radius: 22px; }
  .lp-ex-big { width: 60px; height: 60px; border-radius: 18px; }
  .lp-ex-big svg { width: 30px; height: 30px; }
  .lp-ex-head { gap: 16px; margin-bottom: 22px; }
  .lp-ex-head h3 { font-size: 22px; }
  .lp-ex-head p { font-size: 15.5px; }
  .lp-ex-tools { grid-template-columns: 1fr 1fr; }
  .lp-faqwrap { grid-template-columns: 1fr; gap: 28px; }
  .lp-faq-side { position: static; }
}
@media (max-width: 560px) {
  .lp-ex-tools { grid-template-columns: 1fr; }
  .lp-ex-tools li { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .lp-ex-tabs button, .lp-ex-icon, .lp-faq details, .lp-faq summary::after { transition: none; } }

/* Strong one-line statements */
.lp-sechead .lp-statement { color: var(--lp-ink); font-size: 18px; }
.lp-sechead .lp-statement strong { font-weight: 600; }

/* Privacy band */
.lp-private-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.lp-private-head h2 { margin: 0; max-width: 18ch; }
.lp-private-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lp-soft); max-width: 52ch; }
.lp-proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-proof li { background: var(--lp-bg); border-radius: 20px; padding: 28px; }
.lp-proof-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(27, 138, 74, 0.1); color: #1b8a4a; margin-bottom: 18px; }
:root[data-theme="dark"] .lp-proof-icon { background: rgba(95, 211, 141, 0.12); color: #5fd38d; }
.lp-proof-icon svg { width: 28px; height: 28px; }
.lp-proof strong { display: block; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.lp-proof p { margin: 0; color: var(--lp-soft); font-size: 15.5px; line-height: 1.6; }
.lp-private-note { margin: 24px 0 0; font-size: 14.5px; color: var(--lp-soft); }
@media (max-width: 960px) {
  .lp-private-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .lp-proof { grid-template-columns: 1fr; gap: 12px; }
  .lp-proof li { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .lp-proof-icon { grid-row: span 2; margin-bottom: 0; width: 48px; height: 48px; border-radius: 14px; }
  .lp-proof-icon svg { width: 24px; height: 24px; }
}
.lp-free { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; font-size: 15.5px; }
@media (max-width: 400px) { .lp-free { grid-template-columns: 1fr; } }

/* Darker body text and highlighted key phrases in the privacy band */
.site { --lp-body: #2b3440; --lp-mark: rgba(46, 168, 95, 0.16); --lp-mark-ink: #0f6434; }
:root[data-theme="dark"] .site { --lp-body: #d3dbd6; --lp-mark: rgba(95, 211, 141, 0.16); --lp-mark-ink: #86e8ad; }
.lp-private-head p, .lp-proof p { color: var(--lp-body); }
.lp-private mark {
  color: var(--lp-mark-ink); font-weight: 600; background: var(--lp-mark);
  padding: 1px 5px; border-radius: 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Donation */
.lp-donate[hidden] { display: none; }
.lp-donate { padding: 32px 0 0; }
.lp-donate-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; border-radius: 28px; background: #fff6e5; color: #2b2112; }
:root[data-theme="dark"] .lp-donate-card { background: #2a2416; color: #f3ead8; }
.lp-donate-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: #ffe2a8; font-size: 36px; }
:root[data-theme="dark"] .lp-donate-icon { background: #4a3c1d; }
.lp-donate-text h2 { margin: 0 0 6px; }
.lp-donate-text p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 60ch; opacity: 0.85; }
.lp-donate .lp-btn { background: #ffbe3d; color: #2b2112 !important; white-space: nowrap; }
.lp-donate .lp-btn:hover { filter: brightness(1.04); }
@media (max-width: 960px) {
  .lp-donate-card { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; border-radius: 22px; }
  .lp-donate-icon { width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
  .lp-donate .lp-btn { justify-self: start; }
}

/* Install guide */
dialog.inst { width: min(560px, calc(100vw - 24px)); padding: 32px; border: 0; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(10, 16, 24, 0.45); }
dialog.inst::backdrop { background: rgba(10, 14, 12, 0.45); }
.inst-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--lp-soft); font-size: 26px; line-height: 1; cursor: pointer; }
.inst-x:hover { background: var(--lp-tint); color: var(--lp-ink); }
.inst-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; padding-right: 32px; }
.inst-head img { border-radius: 14px; flex: none; }
.inst-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.inst-head p { margin: 0; color: var(--lp-soft); font-size: 15.5px; line-height: 1.55; }
.inst-on { margin: 0 0 10px; font-size: 14px; color: var(--lp-soft); }
.inst-on strong { color: var(--lp-ink); }
.inst-steps { list-style: none; counter-reset: s; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.inst-steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; background: var(--lp-tint); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.45; }
.inst-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-accent); color: var(--lp-accent-ink); font-weight: 600; font-size: 14px; }
.inst-glyph { width: 20px; height: 20px; vertical-align: -4px; color: var(--lp-accent); }
.inst-other { margin: 4px 0 22px; padding: 16px; border: 1px solid var(--lp-line); border-radius: 14px; }
.inst-other-label { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--lp-ink); }
.inst-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inst-chips button { border: 1.5px solid var(--lp-line); background: var(--lp-bg); color: var(--lp-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.inst-chips button[aria-pressed="true"] { border-color: var(--lp-accent); background: var(--lp-accent); color: var(--lp-accent-ink); }
.inst-chips button:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.inst-chips button:hover { border-color: var(--lp-accent); }
.inst-actions { display: flex; justify-content: flex-end; }
.inst-actions .lp-btn { height: 46px; }
.lp-install-btn { display: inline-flex; align-items: center; gap: 8px; }
.lp-install-btn svg { width: 18px; height: 18px; }
[data-install][hidden] { display: none !important; }
@media (max-width: 560px) { dialog.inst { padding: 24px 20px; } .inst-head img { width: 44px; height: 44px; } .inst-head h2 { font-size: 20px; } }

/* Legal pages */
.lp-legal h2 { font-size: 21px; margin-top: 40px; }
.lp-legal .lp-summary { margin: 28px 0 8px; padding: 28px 32px; }
.lp-legal .lp-summary h2 { margin-top: 0; font-size: 20px; }
.lp-legal .lp-summary li { color: var(--lp-body, var(--lp-ink)); }
.lp-legal .lp-summary p { margin: 12px 0 0; font-size: 14px; color: var(--lp-soft); }
.cfg-missing { background: #fff1c7; color: #6b4b00; border-radius: 4px; padding: 0 4px; }
:root[data-theme="dark"] .cfg-missing { background: #4a3c1d; color: #ffd98a; }
.lp-agree { margin: 18px 0 0 !important; font-size: 13.5px !important; color: var(--lp-soft); }

/* Donate links: outline cup icon */
.coffee-link { display: inline-flex; align-items: center; gap: 6px; }
.coffee-link[hidden] { display: none !important; }
.ico-cup { width: 1.15em; height: 1.15em; flex: none; }
.lp-donate-icon .ico-cup { width: 36px; height: 36px; color: #a0620a; }
:root[data-theme="dark"] .lp-donate-icon .ico-cup { color: #ffcf6b; }
.lp-donate .lp-btn { gap: 8px; }
.lp-donate .lp-btn .ico-cup { width: 20px; height: 20px; }
@media (max-width: 960px) { .lp-donate-icon .ico-cup { width: 28px; height: 28px; } }
.lp-faq details p.lp-faq-action { padding-top: 0; }
.lp-faq-action .lp-btn { height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.lp-faq-action .lp-btn svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .lp-sticker { top: -14px; left: 12px; padding: 10px 14px 10px 12px; gap: 10px; border-radius: 13px; }
  .lp-sticker svg { width: 22px; height: 22px; padding: 5px; }
  .lp-sticker strong { font-size: 15.5px; }
  .lp-sticker small { font-size: 12.5px; }
}

/* FreePDFWriter wordmark: Free in the button blue, PDF in the text colour, Writer in a soft slate, set in a logo font */
@font-face { font-family: "brand"; font-weight: 700; font-display: swap; src: url(vendor/gfonts/montserrat-700.ttf) format("truetype"); }
:root { --brand-blue: #1f5fd1; --brand-ink: #121820; --brand-soft: #6b7890; --brand-font: "brand", "Instrument Sans", system-ui, sans-serif; }
:root[data-theme="dark"] { --brand-blue: #86a9ff; --brand-ink: #eef2ef; --brand-soft: #9aa7ba; }
.wordmark { font-family: var(--brand-font); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.wm-free { color: var(--brand-blue); }
.wm-name { color: var(--brand-ink); }
.wm-soft { color: var(--brand-soft); }
.lp-brand { font-size: 19px; gap: 9px; }
.lp-foot .wordmark { font-size: 15px; }

/* Sponsor card (site.js): 4:3, bottom right on every page. Own colour tokens because the editor body isn't .site. */
.sponsor {
  --sp-bg: #ffffff; --sp-ink: #121820; --sp-soft: #5a6472; --sp-line: #dfe5ee; --sp-accent: #1f5fd1; --sp-tint: #eef3fd;
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 200px; aspect-ratio: 4 / 3; box-sizing: border-box;
  background: var(--sp-bg); color: var(--sp-ink); border: 1px solid var(--sp-line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(18, 24, 32, .14), 0 2px 6px rgba(18, 24, 32, .06);
  font-family: "Instrument Sans", system-ui, sans-serif; overflow: hidden;
  animation: sponsor-in .35s ease-out;
}
:root[data-theme="dark"] .sponsor { --sp-bg: #1a201d; --sp-ink: #eef2ef; --sp-soft: #a3aea8; --sp-line: #2f3934; --sp-accent: #86a9ff; --sp-tint: #1f2a3d; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
@keyframes sponsor-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .sponsor { animation: none; } }
.sponsor-slides, .sponsor-slide { position: absolute; inset: 0; }
.sponsor-slide { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; color: inherit !important; text-decoration: none !important; }
.sponsor-slide[hidden] { display: none; }
.sponsor-slide.has-img { padding: 0; }
.sponsor-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sponsor-house { background: linear-gradient(150deg, var(--sp-tint) 0%, var(--sp-bg) 70%); }
.sponsor-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.sponsor-text { font-size: 12.5px; line-height: 1.35; color: var(--sp-soft); }
.sponsor-cta { font-size: 13px; font-weight: 600; color: var(--sp-accent); margin-top: 2px; }
.sponsor-slide:hover .sponsor-cta { text-decoration: underline; }
.sponsor-tag { position: absolute; top: 10px; left: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-soft); }
.has-img .sponsor-tag { top: 8px; left: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; letter-spacing: .04em; }
.sponsor-x { position: absolute; top: 6px; right: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 8px; border: 0; padding: 0; background: transparent; color: var(--sp-soft); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sponsor-x:hover, .sponsor-x:focus-visible { background: rgba(127, 140, 160, .18); color: var(--sp-ink); }
.has-img ~ .sponsor-x, .sponsor-slides:has(.has-img:not([hidden])) + .sponsor-x { background: rgba(0, 0, 0, .55); color: #fff; }
.sponsor-dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; }
.sponsor-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--sp-line); cursor: pointer; }
.sponsor-dots button[aria-current="true"] { background: var(--sp-accent); }
/* Out of the way of the email-updates popup, which sits in the same corner, and of printing */
body:has(#nudge:not([hidden])) .sponsor { display: none; }
@media print { .sponsor { display: none; } }
@media (max-width: 600px) {
  .sponsor { width: 160px; border-radius: 12px; }
  .sponsor-slide { padding: 11px; }
  .sponsor-title { font-size: 14px; }
  .sponsor-text { display: none; }
}
