/*
 * The purchase page is a standalone static site: it cannot import the
 * extension's components/tokens.css, so the Quiet Utility values are
 * transplanted here. Keep them in step with that file by value, not by import.
 * Fonts are copied into the output by scripts/build-purchase-site.mjs and
 * served from the same origin — this page fetches nothing at runtime either.
 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --tabgod-font: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --tabgod-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --tabgod-bg: #fcfcfd;
  --tabgod-bg-subtle: #f6f7f9;
  --tabgod-text: #16181d;
  --tabgod-text-muted: #5e6470;
  --tabgod-text-faint: #666c7a;
  --tabgod-border: #e2e4e8;
  --tabgod-accent: #3d6ea8;
  font-family: var(--tabgod-font);
  color: var(--tabgod-text);
  background: var(--tabgod-bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #d4562a;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: #17231f;
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #c8c1b2;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 650;
}

.hero {
  max-width: 900px;
  padding: 104px 0 88px;
}

.eyebrow,
.plan-label,
.promise-number {
  margin: 0 0 12px;
  color: #9c3f20;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  font-weight: 500;
}

.hero-copy {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid #17231f;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: #17231f;
  color: #fff;
}

.button-secondary {
  background: transparent;
}

[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  text-decoration: none;
}

.fine-print {
  margin: 16px 0 0;
  color: #46514d;
  font-size: 0.9rem;
}

.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #c8c1b2;
}

.promise article {
  padding: 34px 30px 34px 0;
}

.promise article + article {
  padding-left: 30px;
  border-left: 1px solid #c8c1b2;
}

.promise h2 {
  margin: 0;
  font-size: 1.5rem;
}

.promise p:last-child {
  margin-bottom: 0;
  color: #46514d;
}

.comparison,
.privacy,
.questions {
  padding: 104px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0 0 44px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.plan {
  padding: 34px;
  border: 1px solid #b9b1a2;
  border-radius: 18px;
  background: #fbf8f1;
}

.plan-paid {
  background: #dce8df;
  border-color: #809c87;
}

.price {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  line-height: 1;
}

.price span {
  font-family: inherit;
  font-size: 1rem;
}

.plan ul {
  margin: 0;
  padding-left: 20px;
}

.plan li + li {
  margin-top: 10px;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 70px;
  border-block: 1px solid #c8c1b2;
}

.privacy-copy {
  font-size: 1.05rem;
}

.privacy-copy p {
  margin: 0;
}

.privacy-copy p + p {
  margin-top: 24px;
}

details {
  border-top: 1px solid #b9b1a2;
}

details:last-of-type {
  border-bottom: 1px solid #b9b1a2;
}

summary {
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 750;
}

details > p {
  max-width: 760px;
  margin: -4px 4px 24px;
  color: #3c4843;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 50px;
  border-top: 1px solid #c8c1b2;
  color: #46514d;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 4px;
    text-align: right;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .promise,
  .plans,
  .privacy {
    grid-template-columns: 1fr;
  }

  .promise article,
  .promise article + article {
    padding: 26px 0;
    border-left: 0;
  }

  .promise article + article {
    border-top: 1px solid #c8c1b2;
  }

  .comparison,
  .privacy,
  .questions {
    padding: 72px 0;
  }

  .privacy {
    gap: 12px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Legal pages (terms, privacy). They share the purchase page's shell, so only
   the long-form reading column and the draft banner are new. */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.legal h1 {
  margin-bottom: 4px;
}

.legal-updated {
  margin: 0 0 40px;
  color: var(--tabgod-text-faint);
  font-family: var(--tabgod-font-mono);
  font-size: 0.85rem;
}

.legal section {
  margin-bottom: 40px;
}

.legal h2 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.legal p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.legal-note {
  color: var(--tabgod-text-muted);
  font-size: 0.92rem;
}

.legal blockquote {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--tabgod-accent);
}

/* Loud on purpose. An unreviewed legal page reaching production is the failure
   this banner exists to prevent, so it must not read as decoration. */
.legal-review {
  margin-bottom: 48px;
  padding: 20px 22px;
  border: 2px solid #a8442f;
  border-radius: 8px;
  background: #fdf4f1;
}

.legal-review h2 {
  margin-bottom: 10px;
  color: #a8442f;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-review ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-review li {
  margin-bottom: 6px;
  line-height: 1.55;
}

.legal-review code {
  font-family: var(--tabgod-font-mono);
  font-size: 0.88em;
}

.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--tabgod-border);
  color: var(--tabgod-text-faint);
  font-size: 0.9rem;
  text-align: center;
}
