@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

/* Kinetic Reader — Landing Page Styles
   Palette (matches app + bair.dev dark theme):
   - Background:  #2E3E31  (leather desk)
   - Surface:     #364b3c  (raised card)
   - Ink:         #F7EBDF  (parchment)
   - Muted:       #D5CBB3  (subdued text)
   - Accent:      #D5A873  (warm brass)
*/

:root {
  --bg:         #2E3E31;
  --surface:    #364b3c;
  --surface2:   #3d5443;
  --ink:        #F7EBDF;
  --muted:      #D5CBB3;
  --accent:     #D5A873;
  --accent-ink: #2B200F;
  --ring:       rgba(213,168,115,.5);
  --border:     rgba(255,255,255,.07);
  --shadow:     0 10px 30px rgba(0,0,0,.3);
  --radius:     16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 800px at 20% -10%, #3b5244 0%, var(--bg) 55%), var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; text-decoration: underline; }

/* ── Layout ── */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #c8905a);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  color: var(--accent-ink);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.brand strong { display: block; font-size: 17px; line-height: 1.2; }
.brand .kicker {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.topnav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topnav a {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 14px;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--ink); border-color: rgba(255,255,255,.18); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, opacity .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 1; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost   { border-color: rgba(247,235,223,.2); color: var(--ink); background: rgba(255,255,255,.04); }
.btn.subtle  { border-color: rgba(213,168,115,.35); color: var(--accent); background: transparent; font-size: 14px; }

/* ── Cards ── */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.45); border-color: rgba(255,255,255,.12); }


/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid rgba(213,168,115,.4);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}

.hero-copy .lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.note { font-size: 13px; color: var(--muted); margin: 0; }
.note a { color: var(--muted); text-decoration: underline; }

/* ── Demo card (right side of hero) ── */
.demo-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.speed-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.focus-word {
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  transition: opacity .05s;
}

.speed-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-stats {
  display: flex;
  gap: 12px;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  background: rgba(0,0,0,.15);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  display: block;
}

/* ── Features ── */
.section { margin-bottom: 28px; }
.section-title {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--ink);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card { display: flex; flex-direction: column; gap: 8px; }
.feature-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}
.feature-card h3 { margin: 0; font-size: 16px; }
.feature-card p  { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ── Formats strip ── */
.formats-card { text-align: center; }
.formats-card h3 { margin: 0 0 14px; font-size: 18px; }

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
}

/* ── Promise bar ── */
.promise-bar {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  background: rgba(213,168,115,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
}
.promise-bar p { margin: 0; font-size: 15px; color: var(--muted); }
.promise-bar strong { color: var(--accent); }

/* ── Footer ── */
footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── Privacy page ── */
.prose h1 { font-size: 30px; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-style: italic; margin: 0 0 24px; font-size: 14px; }
.prose h2 { font-size: 18px; margin: 24px 0 8px; color: var(--accent); }
.prose p  { margin: 0 0 12px; color: var(--muted); line-height: 1.65; }
.prose ul { margin: 0 0 12px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; line-height: 1.55; }
.prose strong { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero       { grid-template-columns: 1fr; }
  .grid-3     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-copy h1    { font-size: 30px; }
  header           { flex-direction: column; align-items: flex-start; }
}