/* Bufera marketing site.
   Palette lifted from the app's own src/index.css so the site and the
   product read as one thing: hue 203 (#22A6F5, the logo's second bar) on a
   near-black cool ground. */

:root {
  --ink: #0C0D0F;
  --ink-2: #15161A;
  --surface: #142838;
  --edge: #284354;
  --paper: #F2F5F7;
  --dim: #9BB0BD;
  --azure: #22A6F5;
  --azure-ink: #22A6F5;
  --azure-soft: rgba(34, 166, 245, .13);
  --glow: rgba(34, 166, 245, .22);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shell: 1120px;
}

/* A cool paper for light mode, never cream. Azure darkens so it still holds
   text-weight contrast on a bright ground. */
@media (prefers-color-scheme: light) {
  :root {
    --ink: #F4F7F9;
    --ink-2: #FFFFFF;
    --surface: #FFFFFF;
    --edge: #D7E2EA;
    --paper: #0E1B24;
    --dim: #52697A;
    --azure-ink: #0F7FC4;
    --azure-soft: rgba(15, 127, 196, .09);
    --glow: rgba(34, 166, 245, .16);
  }
}

* { box-sizing: border-box; }

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

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--azure-ink);
  margin: 0;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.6vw, 4.9rem); font-weight: 800; letter-spacing: -.038em; line-height: .97; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.35rem); font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }

p { margin: 0; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--dim); max-width: 54ch; }
.muted { color: var(--dim); }

a { color: var(--azure-ink); }
:where(a, button):focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 6px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 22px;
}
.wordmark {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em;
  color: var(--paper); text-decoration: none;
}
/* Three bars; the second carries the brand colour, which is where the app's
   single accent came from. */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.bars i { width: 5px; border-radius: 2px; background: var(--edge); display: block; }
.bars i:nth-child(1) { height: 12px; }
.bars i:nth-child(2) { height: 22px; background: var(--azure); }
.bars i:nth-child(3) { height: 16px; }

.topnav { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.topnav a { color: var(--dim); text-decoration: none; }
.topnav a:hover { color: var(--paper); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 650;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--azure); color: #04121C; }
.btn-primary:hover { background: #45B6F8; }
.btn-ghost { border-color: var(--edge); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--azure-ink); background: var(--azure-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* ── Sections ───────────────────────────────────────────────────────── */
.band { padding: clamp(56px, 8vw, 92px) 0; border-top: 1px solid var(--edge); }
.band-head { display: flex; flex-direction: column; gap: 14px; max-width: 60ch; margin-bottom: clamp(30px, 4vw, 46px); }

.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.surface {
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 18px; padding: 22px 20px 24px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .2s ease, transform .2s ease;
}
.surface:hover { border-color: var(--azure-ink); transform: translateY(-2px); }
.surface .ic { color: var(--azure-ink); }
.surface p { font-size: .89rem; color: var(--dim); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.point { display: flex; flex-direction: column; gap: 10px; }
.point .rule { width: 34px; height: 3px; border-radius: 2px; background: var(--azure); }
.point p { font-size: .93rem; color: var(--dim); }

/* Numbered steps — used where the content genuinely is a sequence. */
ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; counter-reset: s; }
ol.steps li { display: flex; gap: 16px; counter-increment: s; }
ol.steps li::before {
  content: counter(s);
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  width: 29px; height: 29px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--azure-ink); color: var(--azure-ink);
}
ol.steps h3 { margin-bottom: 2px; }
ol.steps p { font-size: .9rem; color: var(--dim); }

.callout {
  margin-top: 22px; padding: 15px 17px;
  border-left: 2px solid var(--azure); background: var(--azure-soft);
  border-radius: 0 10px 10px 0; font-size: .87rem; color: var(--dim);
}

/* ── Document pages (privacy, terms, guide) ─────────────────────────── */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 88px); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.35rem; margin-top: 42px; margin-bottom: 12px; }
.doc h3 { margin-top: 26px; margin-bottom: 6px; }
.doc p, .doc li { color: var(--dim); font-size: .97rem; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc strong { color: var(--paper); font-weight: 650; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); color: var(--dim); }
.doc th { color: var(--paper); font-weight: 650; }
.updated { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.table-wrap { overflow-x: auto; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--edge); padding: 40px 0 56px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--dim); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .four { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .topnav { gap: 16px; font-size: .88rem; }
}
@media (max-width: 520px) {
  .four { grid-template-columns: 1fr; }
  .topnav a:not(.btn) { display: none; }
}
