/* re-view.ai — marketing site styles
   Design system: dark slate, IBM Plex Sans + JetBrains Mono, green CTA.
   Rules: 4.5:1 contrast, visible focus, cursor-pointer, 150-300ms
   transitions, prefers-reduced-motion, responsive 375-1440px. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0F172A;
  --surface: #1E293B;
  --surface-2: #334155;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.18);
  --cta: #22C55E;
  --cta-strong: #16A34A;
  --radius: 12px;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 18px; font-weight: 600; }
p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--cta); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
a { color: inherit; }
.mono { font-family: var(--mono); }

/* focus + cursor + motion */
a:focus-visible, button:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
a { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.logo { font-family: var(--mono); font-weight: 600; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #22C55E, #0EA5E9); display: inline-flex; align-items: center; justify-content: center; color: #050B16; font-weight: 700; font-size: 13px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; transition: color 200ms; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; transition: background 200ms, border-color 200ms, color 200ms;
}
.btn-primary { background: var(--cta); color: #041104; }
.btn-primary:hover { background: #4ADE80; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(148,163,184,0.08); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 108px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%;
  background: radial-gradient(600px 300px at 70% 20%, rgba(34, 197, 94, 0.14), transparent 70%),
              radial-gradient(500px 260px at 20% 10%, rgba(14, 165, 233, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 span { color: var(--cta); }
.hero .lead { margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); font-family: var(--mono); }

/* review mockup */
.mock {
  margin-top: 56px; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}
.mock-bar { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.mock-title { margin-left: 8px; color: var(--muted); }
.mock-body { padding: 16px; }
.mock .persona-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mock .avatar { width: 28px; height: 28px; font-size: 11px; }
.mock .persona-head strong { font-family: var(--sans); font-size: 14px; }
.mock .persona-head span { color: var(--muted); font-family: var(--sans); font-size: 13px; }
.mock .verdict { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; margin-bottom: 10px; }
.verdict-changes { background: rgba(248, 113, 113, 0.14); color: #FCA5A5; }
.mock .file { color: var(--muted); margin-bottom: 4px; }
.mock .comment { border-left: 2px solid var(--border); padding: 2px 0 2px 12px; margin-bottom: 12px; color: #E2E8F0; }
.mock .comment em { color: var(--muted); font-style: normal; }
.mock .sig { color: var(--muted); font-size: 12px; }

/* cast */
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.persona-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color 200ms, transform 200ms;
}
.persona-card:hover { border-color: var(--accent, var(--muted)); }
.persona-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 14px;
  color: var(--bg); background: var(--accent, var(--muted));
}
.persona-card h3 { font-size: 16px; }
.persona-card .role { font-family: var(--mono); font-size: 12px; color: var(--accent, var(--muted)); margin-bottom: 8px; }
.persona-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cast-sub { margin: 34px 0 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .num { font-family: var(--mono); color: var(--cta); font-size: 13px; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.code {
  background: #0B1120; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  padding: 16px 18px; overflow-x: auto; margin-top: 14px; color: #CBD5E1;
}
.code .k { color: #7DD3FC; } .code .s { color: #86EFAC; } .code .c { color: #64748B; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature svg { width: 20px; height: 20px; flex: none; color: var(--cta); margin-top: 2px; }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--cta); position: relative; }
.tier.featured::after {
  content: "Most popular"; position: absolute; top: -11px; right: 18px;
  background: var(--cta); color: #041104; font-family: var(--mono);
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.tier h3 { font-family: var(--mono); font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tier .price { font-size: 40px; font-weight: 700; margin: 10px 0 2px; letter-spacing: -0.02em; }
.tier .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; margin: 18px 0; flex: 1; }
.tier li { padding: 6px 0; font-size: 14px; color: #CBD5E1; display: flex; gap: 9px; }
.tier li svg { width: 15px; height: 15px; color: var(--cta); flex: none; margin-top: 4px; }
.tier .btn { justify-content: center; }
.pricing-note { margin-top: 26px; color: var(--muted); font-size: 14px; max-width: 720px; }
.pricing-note code { font-family: var(--mono); color: #CBD5E1; background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* faq */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 18px; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
