/*
 * Shared styling for the Colorfy site.
 *
 * The two privacy policies carry their own inline copies of this and are NOT
 * linked here on purpose: /privacy/ is frozen as 1.2.0's policy and
 * /privacy/1.3.0/ is the URL in the published Chrome Web Store listing. Neither
 * may change underneath the version it describes (see site/README.md), and a
 * shared stylesheet is a way for them to change by accident.
 *
 * Everything else on the site links this, so the pages stay one design.
 *
 * Neutrals carry a violet bias so they sit with Colorfy's accent rather than
 * reading as default grey — same palette as the policy pages.
 */

:root {
  --paper: #faf8fc;
  --surface: #fff;
  --ink: #1b1a20;
  --muted: #6a6377;
  --rule: #e3dced;
  --accent: #603582;
  --accent-wash: #f1eaf7;
  --ok: #17692c;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17151c;
    --surface: #201d27;
    --ink: #efeaf4;
    --muted: #a49cb2;
    --rule: #322c3c;
    --accent: #b48ada;
    --accent-wash: #271f33;
    --ok: #3fbf5f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 56px 80px;
  padding-left: 20px;
  padding-right: 20px;
}

h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 .3em; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 2.4em 0 .6em; text-wrap: balance; }
h3 { font-size: 1.02rem; margin: 1.8em 0 .4em; }

.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 2em; }
.updated { color: var(--muted); font-size: .9rem; }

p, li { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
a { color: var(--accent); }

.box {
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 1.6em 0;
}
.box p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Plans, side by side on a wide screen and stacked on a phone. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.6em 0; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.plan {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--surface);
}
.plan h3 { margin-top: 0; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: 0 0 .2em; }
.plan .price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li { margin-bottom: .5em; }

.cta {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

footer {
  margin-top: 3.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .92rem;
}
footer a { color: var(--accent); }
footer nav { margin-bottom: .8em; display: flex; flex-wrap: wrap; gap: 4px 18px; }

code {
  background: var(--accent-wash);
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .9em;
}
