/* Bufferpot landing page.
   Inter if the visitor happens to have it, system stack otherwise. No webfont
   request: a page selling privacy shouldn't phone a third party. */

:root {
  /* Surfaces, dark to light. */
  --c-bg-deep:   oklch(0.13 0.02 260);
  --c-bg-strip:  oklch(0.14 0.02 260);
  --c-bg:        oklch(0.16 0.02 260);
  --c-bg-card:   oklch(0.20 0.02 260);
  --c-bg-pill:   oklch(0.24 0.03 260);

  --c-border:        oklch(0.28 0.02 260);
  --c-border-strong: oklch(0.30 0.02 260);
  --c-border-pill:   oklch(0.32 0.03 260);

  /* Text. Nothing below 0.60 lightness: 0.55 measures 4.00:1 on --c-bg,
     under the 4.5:1 AA floor for the 14px sizes it was being used at. */
  --c-heading:     oklch(0.97 0.01 260);
  --c-heading-alt: oklch(0.95 0.01 260);
  --c-text:        oklch(0.94 0.01 260);
  --c-nav:         oklch(0.75 0.02 260);
  --c-body:        oklch(0.68 0.02 260);
  --c-muted:       oklch(0.65 0.02 260);
  --c-faint:       oklch(0.60 0.02 260);
  --c-sep:         oklch(0.40 0.02 260);

  /* The app's brand ramp: 300 for accent text, 500 for solid fills, 600 on hover. */
  --c-accent:       #a8e468;
  --c-accent-hover: #c8f19d;
  --c-brand:        #6bbd2a;
  --c-brand-hover:  #529b1f;
  --c-on-brand:     #111318;

  --shadow-frame: 0 30px 80px -20px oklch(0 0 0 / 0.6);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- base ---------- */

body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}

::selection { background: rgb(107 189 42 / 0.35); }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }

/* Ring sits outside the element, so on the green CTA it lands on the page
   background rather than on the button, where it would be near-invisible. */
:focus-visible {
  outline: 3px solid var(--c-heading);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { letter-spacing: -0.02em; color: var(--c-heading); }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--c-brand);
  color: var(--c-on-brand);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.15s ease-in;
}
.skip-link:focus { top: 16px; color: var(--c-on-brand); }

/* The 0x0 <symbol> holder. Out of flow so it can never affect layout — and in
   the stylesheet rather than a style attribute, so the CSP can stay strict. */
.sprite { position: absolute; }

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

/* ---------- layout primitives ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.container--narrow { max-width: 820px; }
.container--extras { max-width: 1100px; padding: 80px 32px; }
.container--flush  { padding-block: 0; }

/* A full-bleed band that is a shade darker than the page, ruled top and bottom. */
.band {
  background: var(--c-bg-deep);
  border-block: 1px solid var(--c-border);
}
.band--strip { background: var(--c-bg-strip); }
.band--top   { border-block: none; border-top: 1px solid var(--c-border); }

/* Grid items default to min-width:auto, so a 1755px-wide screenshot would
   force its column to the image's intrinsic width and blow the layout out. */
.split { display: grid; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split--hero     { grid-template-columns: 1.02fr 0.98fr; padding: 64px 32px 80px; }
.split--progress { grid-template-columns: 0.95fr 1.05fr; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.grid-3 > *, .grid-4 > * { min-width: 0; }

.section-head {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 { font-size: 40px; font-weight: 800; margin: 0 0 16px; }
.section-head p  { font-size: 17px; line-height: 1.6; color: var(--c-body); margin: 0; }

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -0.02em;
}
.wordmark svg { fill: var(--c-accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--c-nav);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--c-brand);
  color: var(--c-on-brand);
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover { background: var(--c-brand-hover); color: var(--c-on-brand); }
.btn--nav   { padding: 10px 20px; font-size: 14px; border-radius: 8px; flex-shrink: 0; }
.btn--hero  { padding: 15px 28px; font-size: 16px; }
.btn--large { padding: 17px 36px; font-size: 17px; }

.btn-ghost {
  color: var(--c-text);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 8px;
}
.btn-ghost:hover { color: var(--c-heading); }

/* ---------- hero ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-pill);
  border: 1px solid var(--c-border-pill);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  margin: 0 0 24px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--c-body);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.fineprint { font-size: 14px; color: var(--c-faint); margin: 20px 0 0; }

.hero__art { position: relative; }
.hero__art::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 60% 40%, rgb(82 155 31 / 0.28), transparent 70%);
  filter: blur(30px);
}

/* ---------- screenshots ---------- */

.shot-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  border: 1px solid var(--c-border-strong);
}
.shot-frame--float { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* height:auto is load-bearing: it lets the intrinsic height attribute give way
   once the width scales down, while still reserving the right box up front. */
.shot { width: 100%; height: auto; display: block; }

/* ---------- trust strip ---------- */

.trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--c-faint);
  font-size: 15px;
  text-align: center;
  flex-wrap: wrap;
}
.sep { color: var(--c-sep); }

/* ---------- cards ---------- */

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 32px;
}
.card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; color: var(--c-heading-alt); }
.card p  { font-size: 15px; line-height: 1.6; color: var(--c-muted); margin: 0; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgb(107 189 42 / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* ---------- how it works ---------- */

.steps { margin-bottom: 72px; }
.step h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; color: var(--c-heading-alt); }
.step p  { font-size: 15px; line-height: 1.6; color: var(--c-muted); margin: 0; }
/* Scoped, and after `.step p`, so the eyebrow doesn't lose to it on specificity. */
.step .step__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-accent);
  margin: 0 0 12px;
}

/* ---------- progress ---------- */

.prose h2 { font-size: 36px; font-weight: 800; margin: 0 0 20px; }
.prose p  { font-size: 17px; line-height: 1.65; color: var(--c-body); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- extras ---------- */

.extra h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--c-heading-alt); }
.extra p  { font-size: 14px; line-height: 1.6; color: var(--c-faint); margin: 0; }

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

.faq-title { font-size: 36px; font-weight: 800; margin: 0 0 48px; text-align: center; }

/* 1px of gap over a light background is what draws the hairlines between rows. */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--c-border);
  border-radius: 14px;
  overflow: hidden;
}
.faq__item { background: var(--c-bg); padding: 26px 28px; }
.faq__item h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--c-heading-alt); }
.faq__item p  { font-size: 15px; line-height: 1.6; color: var(--c-muted); margin: 0; }

/* ---------- closing cta ---------- */

.closing { text-align: center; padding: 110px 32px; }
.closing h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.closing p {
  font-size: 18px;
  color: var(--c-body);
  margin: 0 auto 36px;
  max-width: 500px;
}
/* `auto` sides matter here: `.closing p` caps the width at 500px, so margin:0
   would park the box at the left edge and the centred text with it. */
.closing .fineprint { margin: 20px auto 0; }

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

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .wordmark { font-size: 15px; font-weight: 700; }

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--c-faint); font-size: 14px; }
.footer-links a:hover { color: var(--c-text); }

/* ---------- legal pages (privacy, terms) ---------- */

.legal { padding-block: 56px 96px; }
.legal h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px;
}
.legal__updated { font-size: 14px; color: var(--c-faint); margin: 0 0 40px; }
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-heading-alt);
  margin: 40px 0 12px;
}
.legal p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  margin: 0 0 14px;
}
.legal p:last-child { margin-bottom: 0; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* The wordmark is a link on these pages, so it needs the colour spelled out —
   the generic `a` rule would otherwise leave it accent-coloured on hover only. */
.wordmark a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-accent);
}
.wordmark a:hover { color: var(--c-accent-hover); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .container { padding-block: 72px; }
  .split--hero, .split--progress, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .closing h2 { font-size: 36px; }
  .section-head h2 { font-size: 32px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 14px; }
  /* The bullet orphans onto its own line once the strip wraps. */
  .sep { display: none; }
  /* The screenshot leads on desktop; below the fold of a phone it should follow
     the words that explain it. */
  .split--progress .shot-frame { order: 2; }
}

@media (max-width: 720px) {
  /* Stack rather than hide: the section links are the only navigation there is. */
  .site-header__inner { flex-direction: column; gap: 18px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 18px 20px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .split--hero { padding: 40px 20px 56px; }
  .closing { padding: 72px 20px; }
  .container--extras { padding: 56px 20px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .closing h2 { font-size: 30px; }
  .faq__item { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-frame--float { animation: none; }
  .skip-link { transition: none; }
}
