/* One stylesheet for the whole site. The palette is the extension's palette —
   the landing and the product should feel like the same object. */

:root {
  --ground: #EEF1F5;
  --surface: #FFFFFF;
  --sunk: #F4F7FA;
  --line: #D9E1E9;
  --line-soft: #E7ECF2;
  --ink: #131F2A;
  --ink-soft: #47586A;
  --ink-faint: #7A8A99;
  --accent: #23507E;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE6F2;
  --ok: #2C6B4F;
  --shadow: 0 1px 2px rgba(19, 31, 42, .05), 0 12px 32px -20px rgba(19, 31, 42, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F151B;
    --surface: #171F27;
    --sunk: #121920;
    --line: #2A3641;
    --line-soft: #222D37;
    --ink: #E5EBF1;
    --ink-soft: #A6B4C1;
    --ink-faint: #74848F;
    --accent: #6FA0D6;
    --accent-ink: #0F151B;
    --accent-soft: #1D2C3E;
    --ok: #74BC96;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -22px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.6vw, 30px); line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 58ch; }

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

code, kbd {
  font: 500 .88em/1.4 var(--mono);
  background: var(--sunk);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ---------- header ---------- */

header.bar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

header.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 15px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 24px; height: 24px; border-radius: 5px; }

nav { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover { color: var(--ink); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.hero { padding: 84px 0 72px; }
.hero .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn.ghost:hover { background: var(--surface); filter: none; }
.btn.wide { width: 100%; justify-content: center; }

.fine { font-size: 14px; color: var(--ink-faint); }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- steps ---------- */

ol.steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }

ol.steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

ol.steps .n {
  font: 600 12px/1 var(--mono);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

ol.steps p { color: var(--ink-soft); font-size: 16px; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.plan .name {
  font: 600 11.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font: 600 38px/1 var(--serif); letter-spacing: -.02em; }
.price .period { font-size: 14.5px; color: var(--ink-faint); }

.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }

.plan li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.plan li::before { content: "→"; color: var(--accent); font: 500 14px/1.5 var(--mono); }
.plan li.off { color: var(--ink-faint); }
.plan li.off::before { content: "·"; color: var(--ink-faint); }

.save {
  display: inline-block;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- faq ---------- */

.faq { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }

details {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-faint); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 66ch; }

/* ---------- prose pages ---------- */

.prose { max-width: 680px; padding: 56px 0 80px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 21px; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16.5px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.prose .updated { font: 500 12px/1 var(--mono); color: var(--ink-faint); }

/* ---------- footer ---------- */

footer.bar {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 26px 0 36px;
}

footer.bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-faint);
}

footer.bar nav { gap: 16px; font-size: 14px; }

/* Class selectors like .btn out-rank the browser's own [hidden] rule, so a
   hidden button would otherwise stay on screen. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
