/* KeepJar public site. Tokens follow docs/design/DESIGN.md ("Highlighter").
   This block is the site's token file: colours appear nowhere else. */
:root {
  --paper: #F4F4F1;
  --surface: #FFFFFF;
  --ink: #17181C;
  --ink-2: #5C5E66;
  --muted: #6B6D75;
  --hairline: #E6E6E1;
  --highlight: #FFD43B;
  --note: #FFF1B8;
  --on-ink: #FFFFFF;
  --on-highlight: #17181C;
  --kept-disc: #17181C;
  --kept-check: #FFD43B;
  /* Flat preview illustrations in the hero demo: quiet, distinct, never the highlighter. */
  --tile-sand: #EAD9BF;
  --tile-custard: #D9A65E;
  --tile-dusk: #C6BAD6;
  --tile-sun: #E8A47F;
  --tile-roof: #A98E8A;
  --tile-clay: #D9B0A3;
  --tile-plate: #F6EBDD;
  --tile-sage: #C5D8CC;
  --tile-route: #4E7A68;
  --tile-line: #D3D3CC;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121316;
    --surface: #1C1D21;
    --ink: #F2F2EE;
    --ink-2: #B4B5BC;
    --muted: #B4B5BC;
    --hairline: #2E2F35;
    --note: #3B3417;
    --on-ink: #121316;
    --kept-disc: #FFD43B;
    --kept-check: #17181C;
    --tile-sand: #4A3F31;
    --tile-custard: #9C7440;
    --tile-dusk: #3E3650;
    --tile-sun: #B0715A;
    --tile-roof: #5C4A48;
    --tile-clay: #5A403A;
    --tile-plate: #8B7765;
    --tile-sage: #2F4239;
    --tile-route: #8FB8A6;
    --tile-line: #3C3D44;
  }
}

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/Newsreader-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

p { margin: 0; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.2em;
}

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

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

::selection {
  background: var(--note);
  color: var(--ink);
}

code {
  font-family: inherit;
  font-size: 0.95em;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Highlighter stroke: lower 44% of the line, rotated -1.4deg, 3px radius, 4px past the text. */
.kept-word,
.nav-link[aria-current="page"] {
  position: relative;
  isolation: isolate;
}

.kept-word::before,
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 44%;
  background: var(--highlight);
  border-radius: 3px;
  transform: rotate(-1.4deg);
}

/* Dark mode: light text over a half-height stroke is unreadable, so the stroke covers the
   whole word and the text switches to ink, as DESIGN.md asks (ink text on the highlighter). */
@media (prefers-color-scheme: dark) {
  .kept-word,
  .nav-link[aria-current="page"] { color: var(--on-highlight); }

  .kept-word::before,
  .nav-link[aria-current="page"]::before {
    top: -0.05em;
    bottom: -0.05em;
    height: auto;
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.625rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.button-secondary,
.appstore-link {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.button:hover,
.appstore-link:hover { opacity: 0.88; }

.button-small {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover { text-decoration: underline; }

/* Keep the header on one line down to 360px wide. */
@media (max-width: 24rem) {
  .brand { gap: 0.5rem; }
  .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
  .brand-name { font-size: 1.0625rem; }
  .site-nav { gap: 0.875rem; }
  .site-nav .button-small { padding: 0 0.875rem; }
}

/* Hero */
.hero-inner {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.5rem, 6vw, 6rem) clamp(3.5rem, 7vw, 7rem);
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }
}

.hero h1 { max-width: 13em; }

.lead {
  margin-top: 1.5rem;
  max-width: 32em;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  margin-top: 2rem;
}

.hero-aside {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.appstore {
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.appstore-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.125rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* Hero demo stage: Save, Find, Ask your AI. Without JavaScript (or before it runs) the final state
   of every scene is shown, stacked. hero.js adds .is-enhanced: the scenes then share one cell and
   the controls appear. Inactive scenes are only transparent, so screen readers still get every scene. */
.demo {
  margin: 0;
  display: grid;
  gap: 0.875rem;
  width: 100%;
  max-width: 34rem;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-controls[hidden] { display: none; }

.demo-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.demo-tab,
.demo-pause {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.demo-tab[aria-pressed="false"]:hover { color: var(--ink); }

.demo-tab[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.demo-pause {
  min-height: 42px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
}

.demo-pause:hover { opacity: 0.88; }
.demo-pause[hidden] { display: none; }
.demo-pause-icon { display: block; flex: none; fill: currentColor; }
.demo-pause .icon-play,
.demo.is-paused .demo-pause .icon-pause { display: none; }
.demo.is-paused .demo-pause .icon-play { display: inline; }

.demo-stage {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}

.scene {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.scene + .scene {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.demo.is-enhanced .demo-stage { gap: 0; }

.demo.is-enhanced .scene { grid-area: 1 / 1; }

/* Cross-fades start only after the first render, so enhancing the page does not animate. */
.demo.is-ready .scene { transition: opacity 260ms ease-out; }

.demo.is-enhanced .scene + .scene {
  padding-top: 0;
  border-top: 0;
}

.demo.is-enhanced .scene:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

.scene-caption {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Steps appear one after another while a scene plays. */
[data-step] { transition: opacity 320ms ease-out, transform 320ms ease-out; }

.scene.is-playing [data-step]:not(.is-in) {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

/* Save: the jar */
.jar {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jar-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0.875rem;
}

.jar-item-note {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 0.25rem;
}

.jar-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
}

/* Source label, then the Kept mark on the same line, then the title (or the note) below. */
.jar-text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.625rem;
  row-gap: 0.125rem;
  min-width: 0;
}

.jar-title,
.jar-note { grid-column: 1 / -1; }

.jar-source {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.jar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.jar-note {
  margin-top: 0.25rem;
  padding: 0.625rem 0.875rem 0.75rem;
  border-radius: 14px;
  background: var(--note);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.3;
}

/* The Kept mark: shown on the item that just landed (the one bold moment). Its space stays reserved. */
.kept.jar-kept {
  grid-row: 1;
  grid-column: 2;
  justify-self: start;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.2;
  visibility: hidden;
}

.jar-kept .kept-disc { width: 16px; height: 16px; }
.is-kept .jar-kept { visibility: visible; }

.kept {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.kept-disc { display: block; flex: none; }
.kept-disc circle { fill: var(--kept-disc); }
.kept-disc path { stroke: var(--kept-check); }

.scene.is-playing .is-kept .kept-disc {
  animation: kept-pop 340ms cubic-bezier(0.34, 1.56, 0.64, 1) 80ms both;
}

.scene.is-playing .is-kept .kept-word::before {
  animation: kept-sweep 220ms ease-out 200ms both;
}

@keyframes kept-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes kept-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Flat preview illustrations, one shape per kind of thing (no photos, no logos). */
.preview {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.preview-post {
  width: 56px;
  height: 56px;
  background: var(--tile-sand);
}

.post-tart {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--tile-custard);
}

.post-tart::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 12px;
  width: 8px;
  height: 6px;
  border-radius: 50%;
  background: var(--tile-roof);
}

.preview-vertical {
  width: 32px;
  height: 56px;
  background: var(--tile-dusk);
}

.vertical-sun {
  position: absolute;
  top: 17px;
  left: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tile-sun);
}

.preview-vertical::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  background: var(--tile-roof);
  clip-path: polygon(0 45%, 22% 45%, 22% 15%, 42% 15%, 42% 55%, 62% 55%, 62% 0, 82% 0, 82% 35%, 100% 35%, 100% 100%, 0 100%);
}

.preview-video {
  width: 56px;
  height: 32px;
  background: var(--tile-clay);
}

.video-plate {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tile-plate);
}

.preview-duration {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.2;
}

.preview-article {
  display: grid;
  align-content: start;
  gap: 5px;
  width: 56px;
  height: 56px;
  padding: 10px 9px;
  background: var(--paper);
}

.preview-article span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--tile-line);
}

.preview-article span:first-child {
  height: 6px;
  margin-bottom: 2px;
  background: var(--ink-2);
}

.preview-article span:last-child { width: 70%; }

.preview-screenshot {
  width: 30px;
  height: 56px;
  border: 2px solid var(--ink-2);
  border-radius: 7px;
  background: var(--tile-sage);
}

.screenshot-route {
  position: absolute;
  top: 10px;
  left: 7px;
  width: 11px;
  height: 26px;
  border-left: 3px solid var(--tile-route);
  border-bottom: 3px solid var(--tile-route);
  border-bottom-left-radius: 6px;
}

.screenshot-route::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tile-route);
}

/* Find */
.demo-search {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.demo-search-icon {
  flex: none;
  margin-top: 0.15em;
  color: var(--muted);
}

.demo-query {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 500;
}

/* Typed text keeps its full layout: the untyped rest is only invisible, so nothing reflows. */
.typed-off { visibility: hidden; }

.scene.is-typing .typed-on {
  margin-right: -2px;
  border-right: 2px solid var(--ink);
}

.demo-label {
  margin-top: 0.25rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.note {
  margin: 0;
  padding: 1rem 1.125rem 1.125rem;
  border-radius: 14px;
  background: var(--note);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.3;
}

.find-result { display: grid; gap: 0.5rem; }
.find-result.jar-item { display: grid; margin-top: 0.25rem; }

.demo-meta {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Ask your AI */
.chat {
  display: grid;
  gap: 1rem;
}

.chat-line {
  display: grid;
  gap: 0.25rem;
  font-size: 1rem;
  line-height: 1.5;
}

.chat-who {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.chat-you {
  justify-self: end;
  justify-items: end;
  max-width: 88%;
}

.chat-you .chat-text {
  padding: 0.625rem 0.9375rem;
  border-radius: 18px;
  background: var(--paper);
}

/* The answer is typed as three short lines: morning, lunch, sunset. */
.chat-ai .demo-typed { white-space: pre-line; }

.chat-tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.chat-tool-icon { flex: none; }

/* A real status line, so one separator dot is drawn here (a shape, not a middle-dot character). */
.chat-tool-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-tool-count::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* Sections: an editorial index, heading on the left and text on the right. No boxes. */
.feature,
.faq,
.closing { border-top: 1px solid var(--hairline); }

.feature-inner {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 60rem) {
  .feature-inner { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

.feature-body > * + * { margin-top: 1rem; }
.feature-body p { max-width: 34em; }

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  max-width: 40em;
}

.facts li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-2);
}

.facts strong { color: var(--ink); font-weight: 600; }

.faq-list {
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 48rem) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.faq-item h3 { margin-bottom: 0.375rem; }
.faq-item p { color: var(--ink-2); max-width: 34em; }

.closing-inner {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.closing-inner p { color: var(--ink-2); max-width: 34em; }
.closing-inner .button { margin-top: 0.5rem; }

/* Support, privacy, terms and 404 */
.doc {
  max-width: 48rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.doc h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }

.doc-date {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.doc-lead {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.5;
  max-width: 34em;
}

.doc-toc { margin-top: 2rem; }

.doc .doc-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.doc-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.doc h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  scroll-margin-top: 1.5rem;
}

.doc-section > * + * { margin-top: 0.875rem; }
.doc p, .doc li { max-width: 34em; }

.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc li::marker { color: var(--muted); }
.doc .doc-toc li { margin-top: 0; }

.notfound-links { margin-top: 2rem; }

/* Guides: the question pages, the home page list of them and the comparison table */
.doc-wide { max-width: 64rem; }

.guides-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  max-width: 40em;
}

.guides-list li { border-bottom: 1px solid var(--hairline); }
.guides-list a { display: block; padding-block: 0.875rem; font-weight: 600; }

.guide-example {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  max-width: 34em;
}

.guide-example-label { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.guide-example-label + .note { margin-top: 0; }

.guide-example-query {
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 0.75rem;
}

.compare { margin-top: 1.5rem; }

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

.compare-table caption {
  caption-side: bottom;
  padding-top: 0.875rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 0.875rem 1.25rem 0.875rem 0;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th { font-weight: 600; font-size: 1rem; }
.compare-table tbody th { width: 9rem; font-weight: 600; }
.compare-table td { color: var(--ink-2); }
.compare-table td.col-keepjar { color: var(--ink); }

.compare-table .source {
  display: block;
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Below tablet width each row becomes a short block: the row name, then one labelled answer per product. */
@media (max-width: 47.99rem) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compare-table caption { display: block; padding: 0 0 0.5rem; }
  .compare-table tr { padding-block: 1rem; border-bottom: 1px solid var(--hairline); }
  .compare-table tbody th { width: auto; padding: 0 0 0.25rem; border: 0; font-size: 1.0625rem; }
  .compare-table td { padding: 0.5rem 0 0; border: 0; }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
  }
}

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }

.footer-inner {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-company { color: var(--ink-2); max-width: 40em; }

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

.footer-copy { color: var(--muted); }

.footer-guides { display: grid; gap: 0.375rem; }
.footer-heading { color: var(--ink); font-weight: 600; }

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

/* One orchestrated motion only, and none at all for people who ask for less. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
