/* Shared styles for the public site.
 *
 * Deliberately carries NO webfonts and no third-party resource of any kind.
 * The privacy policy on this same domain states that the extension contacts
 * no one; a site that phones out to a font CDN undercuts that on its own
 * doorstep. Font stacks fall back to system faces.
 *
 * The values here are copied from store-listing/privacy-policy.html, which
 * keeps its own inline copy on purpose: that file is the document Chrome Web
 * Store review points at, and it stays self-contained so it can never be
 * broken by a stylesheet change. If you restyle the site, check the policy
 * page still looks like it belongs.
 */
:root {
  --bg: #FAF9FC;
  --surface: #F1EEF7;
  --surface-border: #E2DEEC;
  --text: #1C1B22;
  --text-muted: #6B6775;
  --accent: #6D28D9;
  --accent-soft: #EDE5FB;
  --rule: #E2DEEC;
  --good: #1F7A4C;
  --good-soft: #E3F3EA;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17151C;
    --surface: #211F29;
    --surface-border: #322E3D;
    --text: #F0EEF5;
    --text-muted: #9C97AA;
    --accent: #A78BFA;
    --accent-soft: #2E2540;
    --rule: #322E3D;
    --good: #7FD8AA;
    --good-soft: #1C3129;
  }
}

/* One container width for the whole page chrome, so nav, main and footer can
   never disagree.
   680px is a READING measure — right for Terms and the privacy policy, where
   long prose at 1100px is genuinely harder to read. It is wrong for a landing
   page or a pricing table on a desktop monitor, which just looked like a phone
   layout stranded in the middle of the screen. Pages that are mostly prose
   keep the narrow measure; pages that are mostly layout opt into the wide one
   with <body class="wide">. */
:root { --measure: 680px; }
body.wide { --measure: 1120px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--measure); margin: 0 auto; padding: 40px 24px 96px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
  font-size: 14px;
}

.nav-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.nav a:not(.nav-brand) { color: var(--text-muted); text-decoration: none; }
.nav a:not(.nav-brand):hover { color: var(--accent); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------- headings ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-wrap: balance;
}

.subtitle { color: var(--text-muted); font-size: 16.5px; margin: 0 0 28px; max-width: 52ch; }

section { margin-bottom: 40px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 16px; margin: 26px 0 8px; }

/* ---------- fact strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
}

.fact { background: var(--surface); padding: 14px 16px; }

.fact dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.fact dd { margin: 0; font-size: 14px; font-weight: 500; }

@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- callout ---------- */
.tldr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--good-soft);
  border: 1px solid var(--good-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 44px;
}

.tldr-mark {
  color: var(--good);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 1px;
}

.tldr p { margin: 0; font-size: 15px; }

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 12px; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px;
}

.plan.is-pro { border-color: var(--accent); }

.plan-name {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.plan-price { font-family: var(--display); font-size: 30px; font-weight: 600; margin: 0; line-height: 1.1; }
.plan-per { color: var(--text-muted); font-size: 14px; margin: 2px 0 14px; }

.plan ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; }
.plan li { margin-bottom: 6px; }

/* ---------- misc ---------- */
ul.features { padding-left: 1.15em; }
ul.features li { margin-bottom: 9px; }

.note { font-size: 14px; color: var(--text-muted); }

dl.terms dt { font-weight: 600; margin-top: 18px; }
dl.terms dd { margin: 4px 0 0; color: var(--text-muted); }

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 24px 64px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); }
footer p { margin: 0 0 6px; }

/* ---------- Pro block on the landing page ---------- */
/* Was a paragraph ending in an inline link, at the very bottom of a long
   page. A paid upgrade that reads as body copy is a paid upgrade nobody
   clicks. */
.procard {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 22px;
}

.prolead { margin: 0 0 14px; }
.procard ul.features { margin: 0 0 18px; font-size: 15px; }

.procta {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent);
  border-radius: 9px;
  text-decoration: none;
}

.procta:hover { filter: brightness(1.08); text-decoration: none; }
.procta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.install { margin: 26px 0 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.installcta {
  display: inline-block;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
}

.installcta:hover { filter: brightness(1.08); text-decoration: none; }
.installcta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.install-note { font-size: 13px; color: var(--text-muted); }

/* ---------- wide-page layout ---------- */
/* Prose still gets a readable measure inside a wide container — widening the
   container is not a licence to run body text to 1100px. Only things that
   benefit from horizontal room actually use it. */
body.wide h1 { font-size: clamp(34px, 5.5vw, 52px); }
body.wide .subtitle { font-size: 18px; max-width: 56ch; }
body.wide section > p,
body.wide .prolead,
body.wide .note { max-width: 68ch; }

@media (min-width: 900px) {
  /* Two columns for scannable lists, one for prose. */
  body.wide ul.features {
    columns: 2;
    column-gap: 44px;
  }
  body.wide ul.features li {
    break-inside: avoid;
    margin-bottom: 14px;
  }
  /* The Pro card's own list stays single-column: it is a short pitch, and
     splitting three bullets across two columns reads as a mistake. */
  body.wide .procard ul.features { columns: 1; }

  /* Give the plan cards real room and let the page breathe around them. */
  body.wide .plans {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    max-width: 860px;
  }

  body.wide .facts { max-width: 860px; }

}

/* ---------- multi-column blocks on wide pages ---------- */
/* Explicit child divs in a grid, NOT a row-spanning grid on the section.
   An earlier attempt used `grid-row: 1 / span 99` to make a heading span its
   column; that created 99 grid rows and, with a 48px row gap, roughly 4,700px
   of blank space per section. Predictable columns beat clever spanning. */
.cols { display: grid; gap: 30px; }
.cols > div > h3 { margin-top: 0; }
.cols > div > p { margin-bottom: 0; max-width: 46ch; }

@media (min-width: 900px) {
  body.wide .cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- uninstall page ---------- */
/* Big tap targets, because the person reading this is on their way out: one
   press records the reason, and the note box underneath is optional. */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

.reason {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 76px;
  padding: 16px 20px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .12s, background-color .12s, opacity .12s;
}
.reason-wide { grid-column: 1 / -1; min-height: 60px; }
.reason:hover:not(:disabled) { border-color: var(--accent); }
.reason:disabled { cursor: default; }
.reason:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reason-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.reason-sub { font-size: 14px; color: var(--text-muted); line-height: 1.35; }

.reasons.has-choice .reason { opacity: .55; }
.reasons.has-choice .reason:hover { opacity: .85; }
.reason[aria-pressed="true"],
.reasons.has-choice .reason[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.followup {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 18px 20px 20px;
  margin: 0 0 26px;
}
.followup-status { margin: 0 0 12px; font-weight: 600; color: var(--good); }
.followup-status.is-error { color: var(--text); }
.followup-label { display: block; font-size: 15px; margin: 0 0 8px; }
.followup textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--surface-border);
  border-radius: 10px;
  resize: vertical;
}
.followup textarea:focus { outline: none; border-color: var(--accent); }
.followup-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.followup-actions .installcta { border: 0; cursor: pointer; font-family: inherit; }
.followup-actions .installcta:disabled { opacity: .6; cursor: default; }
.followup-alt { font-size: 15px; }
.back { margin-top: 8px; }
