/* ============================================================
   Amazon Review Analyzer — design tokens + shared UI
   Warm paper base, dark ink, single blue action color, Inter.
   ============================================================ */

:root {
  --paper: #faf8f5;
  --paper-2: #f4f0e9;
  --surface: #ffffff;

  --ink: #14151a;
  --ink-2: #4b4f59;
  --ink-3: #787d88;
  --ink-4: #9ba0ab;

  --line: #e6e1d8;
  --line-soft: #f1ede6;

  --blue: #1f5ae0;
  --blue-600: #1747b8;
  --blue-wash: #eff4fe;
  --blue-line: #cad9fb;

  --amber: #a4610c;
  --amber-wash: #fdf4e6;
  --red: #b42318;
  --red-wash: #fdf0ee;
  --green: #0f7b4f;
  --green-wash: #eef8f1;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(20, 21, 26, 0.05);
  --shadow: 0 1px 2px rgba(20, 21, 26, 0.04), 0 16px 36px -16px rgba(20, 21, 26, 0.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" 1, "cv05" 1;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
textarea { font-family: inherit; }

::selection { background: #d8e4ff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.015em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(155deg, #2f6bf0, #1747b8);
  display: grid; place-items: center; flex: none;
  box-shadow: 0 2px 6px rgba(31, 90, 224, 0.28);
}
.brand-mark svg { display: block; }
.brand-name { font-size: 15.5px; }
.brand-description { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; }

.head-nav { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.head-nav a {
  font-size: 13.5px; color: var(--ink-2); font-weight: 550;
  letter-spacing: -0.006em;
  padding: 7px 10px; border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}
.head-nav a:hover { color: var(--ink); background: rgba(20, 21, 26, 0.05); }
.head-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.head-actions { display: flex; align-items: center; gap: 10px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14.5px; font-weight: 550; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    transform 0.12s cubic-bezier(0.3, 0.8, 0.3, 1), box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn svg { transition: transform 0.18s cubic-bezier(0.3, 0.8, 0.3, 1); }

.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(23, 71, 184, 0.28), 0 6px 14px -6px rgba(31, 90, 224, 0.5);
}
.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(23, 71, 184, 0.3), 0 12px 24px -10px rgba(31, 90, 224, 0.58);
}
.btn-primary:hover svg { transform: translateX(2px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(23, 71, 184, 0.3); }

.btn-ghost {
  background: var(--surface); color: var(--ink-2);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--ink); border-color: #d5cec2; box-shadow: 0 2px 6px rgba(20, 21, 26, 0.07); }

.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: rgba(20, 21, 26, 0.045); color: var(--ink); }

.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-xs); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- small bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--blue); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border-radius: 99px;
  font-size: 11.5px; font-weight: 550; letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-blue { background: var(--blue-wash); border-color: var(--blue-line); color: var(--blue-600); }
.chip-amber { background: var(--amber-wash); border-color: #f0dcc0; color: var(--amber); }
.chip-green { background: var(--green-wash); border-color: #cfe8da; color: var(--green); }

.muted { color: var(--ink-3); }
.small { font-size: 13px; line-height: 1.55; }
.tiny { font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.hr { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- section headings ---------- */

.section { padding: 88px 0; }
.section-head { max-width: 700px; }
.section-head h2 {
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 620;
  margin-top: 14px;
}
.section-head .lede {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  margin-top: 40px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-size: 13.5px; color: var(--ink-3); }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-size: 12.5px; color: var(--ink-4); max-width: 320px; line-height: 1.55; }

/* ---------- misc ---------- */

.mono { font-family: var(--mono); font-size: 0.92em; }

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .head-nav { display: none; }
  .foot-inner { flex-direction: column; }
}
