/* Greenkeeper website: shared styles for index.html, privacy.html and terms.html.
   System fonts only, no external assets. Light and dark themes via prefers-color-scheme. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Brand */
  --green: #22c55e;       /* fills, dots, highlights */
  --green-deep: #15803d;  /* green text and buttons on light backgrounds (5:1 on white) */

  /* Light theme */
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --surface: #ffffff;
  --surface-muted: #eef3f0;
  --border: #e0e7e3;
  --border-strong: #c8d2cc;
  --text: #101814;
  --text-muted: #4d5952;
  --accent: var(--green-deep);
  --accent-soft: #ecf9f1;
  --accent-line: #b5e3c5;
  --button-bg: var(--green-deep);
  --button-bg-hover: #166534;
  --button-text: #ffffff;
  --focus: #15803d;
  --header-bg: rgb(255 255 255 / 0.84);
  --shadow-sm: 0 1px 2px rgb(16 24 20 / 0.06), 0 1px 1px rgb(16 24 20 / 0.03);
  --shadow-md: 0 10px 28px -10px rgb(16 24 20 / 0.18);
  --shadow-lg: 0 30px 60px -22px rgb(16 24 20 / 0.3), 0 8px 20px -10px rgb(16 24 20 / 0.14);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --gutter: 16px;
  --header-h: 60px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e0c;
    --bg-alt: #0f1512;
    --surface: #131a16;
    --surface-muted: #1a231e;
    --border: #232d28;
    --border-strong: #35423b;
    --text: #e8eee9;
    --text-muted: #a2aea7;
    --accent: #4ade80;
    --accent-soft: rgb(34 197 94 / 0.12);
    --accent-line: rgb(74 222 128 / 0.32);
    --button-bg: var(--green);
    --button-bg-hover: #4ade80;
    --button-text: #04150a;
    --focus: #4ade80;
    --header-bg: rgb(10 14 12 / 0.8);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-md: 0 10px 28px -10px rgb(0 0 0 / 0.65);
    --shadow-lg: 0 30px 60px -22px rgb(0 0 0 / 0.75), 0 8px 20px -10px rgb(0 0 0 / 0.5);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: rgb(34 197 94 / 0.28);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: calc(800px + 2 * var(--gutter));
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.eyebrow {
  margin-bottom: 0.875rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.fineprint {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

.badge-muted {
  background: var(--surface-muted);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-muted);
}

/* Check-mark list, drawn with borders so it follows the theme. */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin-bottom: 0.625rem;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0.3rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.button-primary {
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.button-primary:hover {
  background: var(--button-bg-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--text-muted);
}

.button-sm {
  min-height: 38px;
  padding: 0.4rem 0.875rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.button-lg {
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  font-size: 1.0625rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cta-row-center {
  justify-content: center;
}

@media (max-width: 479px) {
  .cta-row .button {
    flex: 1 1 100%;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  border-radius: 8px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

@media (min-width: 760px) {
  .site-nav { display: block; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

.section-tight {
  padding-block: clamp(2.75rem, 2rem + 2.5vw, 4.25rem);
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: -25%;
  width: min(70rem, 150vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(34 197 94 / 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.75rem, 2rem + 2.5vw, 3.5rem);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.hero h1 .accent {
  display: block;
  color: var(--accent);
}

.lead {
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* A small "desktop": wallpaper, menu bar and the real menu screenshot. */
.hero-visual {
  display: flex;
  justify-content: center;
}

.desktop {
  width: 100%;
  max-width: 440px;
  padding-bottom: 2.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 60% 6%, rgb(34 197 94 / 0.4), transparent 62%),
    linear-gradient(165deg, #1f2c3b 0%, #111a26 55%, #0b1119 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), var(--shadow-lg);
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  height: 30px;
  padding-inline: 0.625rem;
  background: rgb(8 12 18 / 0.5);
  color: rgb(255 255 255 / 0.92);
  font-size: 13px;
  font-weight: 500;
}

.mb-item {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding-inline: 4px;
  border-radius: 5px;
}

.mb-item.is-open {
  background: rgb(255 255 255 / 0.2);
}

.mb-clock {
  padding-inline: 6px;
  white-space: nowrap;
}

.menu-panel {
  width: min(320px, calc(100% - 2rem));
  margin: 0.5rem 1rem 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.3), 0 22px 48px rgb(0 0 0 / 0.45);
}

.menu-panel img {
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .menu-panel {
    background: #282828;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 22px 48px rgb(0 0 0 / 0.55);
  }
}

/* ---------- Use cases ---------- */

.uses-title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.015em;
  text-align: center;
}

.uses {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uses li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 0.875rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.use-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.use-icon svg {
  width: 22px;
  height: 22px;
}

.uses h3 {
  margin: 0 0 0.125rem;
  font-size: 1rem;
}

.uses p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .uses { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .uses li { grid-template-columns: minmax(0, 1fr); }
  .uses li:last-child:nth-child(odd) { grid-column: auto; }
  .use-icon { grid-row: auto; margin-bottom: 0.875rem; }
}

/* ---------- How it works ---------- */

.split {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.steps {
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -0.15rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.4rem;
  bottom: 0.3rem;
  left: calc(1.125rem - 1px);
  width: 2px;
  border-radius: 1px;
  background: var(--border);
}

.steps h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.dot-key {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dot-key-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.dot-key ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.dot-key li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.dot-key svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

/* Screenshots */
.shot {
  width: 100%;
  margin: 0;
}

.shot img {
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.shot figcaption {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Features ---------- */

.tiers {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

@media (min-width: 760px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tier {
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tier-pro {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}

.tier .badge {
  margin-bottom: 0.875rem;
}

.tier h3 {
  font-size: 1.375rem;
}

.tier > p {
  color: var(--text-muted);
}

.tier .checklist {
  margin-top: 1.25rem;
}

.feature-row {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
}

.feature-row + .feature-row {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

@media (min-width: 960px) {
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature-row-flip .feature-text { order: 2; }
}

.feature-text h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  letter-spacing: -0.025em;
}

.feature-text .badge {
  margin-bottom: 0.875rem;
}

.feature-text > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.feature-text .checklist {
  margin-top: 1.25rem;
}

.feature-text .list-intro {
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.feature-text .list-intro + .checklist {
  margin-top: 0;
}

/* ---------- Comparison ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.compare th,
.compare td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare thead th,
.compare thead td {
  background: var(--surface-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.compare tbody th {
  width: 40%;
  font-weight: 500;
  text-align: left;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare .us {
  background: var(--accent-soft);
}

.compare thead .us {
  color: var(--accent);
}

.compare .icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-inline: auto;
}

.compare .yes {
  color: var(--accent);
}

.compare .no,
.compare .some {
  color: var(--text-muted);
}

.compare .note {
  display: block;
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

@media (max-width: 559px) {
  .compare { font-size: 0.875rem; }
  .compare th,
  .compare td { padding: 0.75rem 0.5rem; }
  .compare thead th,
  .compare thead td { font-size: 0.8125rem; }
  .compare tbody th { width: 34%; }
  .compare .note { font-size: 0.75rem; }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 1.25rem;
  max-width: 880px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.price-card-pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.price-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.price .amount {
  font-size: clamp(2.5rem, 2.2rem + 1vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.price .term {
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.price-card .checklist {
  flex: 1;
  margin-bottom: 1.75rem;
}

.price-foot .button {
  width: 100%;
}

.price-foot .fineprint {
  margin: 0.875rem 0 0;
}

.buy-note {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  color: var(--text);
  font-size: 0.9375rem;
  text-align: center;
}

/* Stays in the accessibility tree (so screen readers announce it) but takes no space until filled. */
.buy-note:empty {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 48rem;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 1.125rem 2.5rem 1.125rem 0.25rem;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.4rem;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] > summary::after {
  margin-top: -0.1rem;
  transform: rotate(-135deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq .answer {
  padding: 0 0.25rem 1.25rem;
  color: var(--text-muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Changelog ---------- */

.releases {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release {
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.release h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.release-summary {
  color: var(--text-muted);
}

.release ul {
  margin: 0;
  padding-left: 1.25rem;
}

.release li {
  margin-bottom: 0.5rem;
}

.release li::marker {
  color: var(--accent);
}

/* ---------- Final call to action ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(56rem, 160vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(34 197 94 / 0.13), transparent 70%);
  pointer-events: none;
}

.final-cta img {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
}

.final-cta p {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.final-cta .fineprint {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.footer-top .brand {
  margin-right: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-legal p {
  max-width: 62rem;
  margin-bottom: 0.5rem;
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.legal-inner {
  max-width: 44rem;
  margin-inline: auto;
}

.legal h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
}

.legal .updated {
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.legal h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal li::marker {
  color: var(--accent);
}

.legal a {
  overflow-wrap: anywhere;
}

.summary-box {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.summary-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .final-cta {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}

/* ---------- Launch state ----------
   <html data-launch="soon|live"> (set by scripts/site_mode.sh). Before launch,
   download and buy buttons give way to "Get notified". */

html[data-launch="soon"] .when-live,
html[data-launch="live"] .when-soon {
  display: none !important;
}

.notify {
  display: grid;
  gap: 0.75rem;
  max-width: 30rem;
  margin-top: 2rem;
}

.notify [hidden] {
  display: none !important;
}

.notify > .button {
  justify-self: start;
}

.notify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notify-form input[type="email"] {
  flex: 1 1 15rem;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
}

.notify-form input[type="email"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.notify-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 479px) {
  .notify > .button,
  .notify-form .button {
    flex: 1 1 100%;
    justify-self: stretch;
  }
}
