/* PRNeuron website.

   The same neo-brutalist language as the app (frontend/src/index.css):
   warm paper, ink outlines, flat saturated fills, hard offset shadows.
   Someone moving from the website into the product should not feel the
   floor change. Tokens are copied rather than shared because the site is
   a separate static deploy with no build step. */

:root {
  color-scheme: light;

  --ink: #111111;
  --stroke: 2px;
  --stroke-bold: 3px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 3px 3px 0 0 var(--ink);
  --shadow-md: 5px 5px 0 0 var(--ink);
  --shadow-lg: 8px 8px 0 0 var(--ink);

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;

  --bg: #fff4dc;
  --surface: #ffffff;
  --surface-sunken: #fffaf0;
  --surface-inset: #fff0cc;
  --yellow: #ffe14d;
  --pink: #ff9ec7;
  --blue: #8ecbff;
  --green: #9be89b;
  --orange: #ffb86b;
  --purple: #c9b6ff;

  --text: #111111;
  --text-muted: #4a4235;
  --danger-bg: #ffd6d6;
  --danger-text: #8a1111;
  --success-bg: #d6f5d6;
  --success-text: #135c13;

  --max: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:focus-visible {
  outline: var(--stroke-bold) solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  padding: 8px 12px;
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--stroke-bold) solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-inset);
}

.nav a[aria-current='page'] {
  background: var(--yellow);
  outline: var(--stroke) solid var(--ink);
}

.nav-actions {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-primary {
  background: var(--yellow);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
}

.btn-lg:hover {
  box-shadow: 6px 6px 0 0 var(--ink);
}

/* ------------------------------------------------------------------ Hero */

.hero {
  padding: 72px 0 88px;
  border-bottom: var(--stroke-bold) solid var(--ink);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 700;
}

h1 mark,
h2 mark {
  background: var(--yellow);
  color: inherit;
  padding: 0 6px;
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow-sm);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* The pull request mock: plain markup styled like a GitHub review, so it
   stays crisp at every size and costs nothing to load. */

.pr-mock {
  background: var(--surface);
  border: var(--stroke-bold) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.9rem;
}

.pr-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-inset);
  border-bottom: var(--stroke) solid var(--ink);
}

.pr-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
}

.pr-verdict {
  margin-left: auto;
  padding: 2px 10px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
}

.pr-mock-body {
  padding: 14px 16px 16px;
}

.pr-summary {
  margin: 0 0 12px;
}

.pr-ticket {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: var(--surface-sunken);
  border: var(--stroke) dashed var(--ink);
  border-radius: var(--radius-sm);
}

.pr-ticket b {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.diff {
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.diff-file {
  padding: 6px 10px;
  background: var(--surface-inset);
  border-bottom: var(--stroke) solid var(--ink);
  font-weight: 700;
}

.diff-line {
  display: grid;
  grid-template-columns: 36px 1fr;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diff-line span:first-child {
  color: var(--text-muted);
  text-align: right;
  padding-right: 8px;
  user-select: none;
}

.diff-line.add {
  background: #e6ffe6;
}

.diff-line.del {
  background: #ffe9e9;
}

.diff-comment {
  margin: 0;
  padding: 10px 12px;
  background: var(--surface);
  border-top: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  white-space: normal;
}

.tag {
  display: inline-block;
  padding: 0 8px;
  margin-right: 6px;
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: 1px;
}

.tag-high {
  background: var(--pink);
}
.tag-sec {
  background: var(--orange);
}
.tag-ok {
  background: var(--green);
}

.pr-flow {
  margin-top: 14px;
  padding: 10px 12px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
}

.pr-flow summary {
  font-weight: 700;
  cursor: pointer;
}

.flow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
}

.flow-node {
  padding: 3px 8px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
}

.flow-node.added {
  background: var(--green);
}

.flow-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* -------------------------------------------------------------- Sections */

.section {
  padding: 88px 0;
  border-bottom: var(--stroke-bold) solid var(--ink);
}

.section-alt {
  background: var(--surface-sunken);
}

.section-head {
  max-width: 44em;
  margin-bottom: 48px;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.bg-yellow { background: var(--yellow); }
.bg-pink { background: var(--pink); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.checklist li::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: var(--green);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------- FAQ */

.faq {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------- CTA */

.cta {
  padding: 88px 0;
  background: var(--yellow);
  border-bottom: var(--stroke-bold) solid var(--ink);
  text-align: center;
}

.cta p {
  font-size: 1.15rem;
  margin: 0 auto 28px;
  max-width: 36em;
}

.cta .btn-primary {
  background: var(--surface);
}

/* --------------------------------------------------------------- Pricing */

.currency {
  display: inline-flex;
  margin-bottom: 40px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface);
}

.currency button {
  padding: 8px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.currency button + button {
  border-left: var(--stroke) solid var(--ink);
}

.currency button[aria-pressed='true'] {
  background: var(--yellow);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan.featured {
  background: var(--surface-inset);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 2px 10px;
  background: var(--pink);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan h3 {
  margin-bottom: 6px;
}

/* Three lines at the widest, so the prices line up across the cards. */
.plan .plan-for {
  min-height: 4.8em;
}

.price {
  margin: 20px 0 4px;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-note {
  min-height: 1.6em;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.plan li {
  padding-left: 26px;
  position: relative;
}

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.plan .btn {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ink);
}

thead th {
  background: var(--surface-inset);
  border-bottom: var(--stroke) solid var(--ink);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ------------------------------------------------------------ Prose page */

.page-head {
  padding: 64px 0 40px;
  border-bottom: var(--stroke-bold) solid var(--ink);
}

.page-head p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42em;
  margin: 0;
}

.prose {
  max-width: 760px;
  padding: 56px 0 88px;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 48px;
}

.prose h3 {
  margin-top: 28px;
}

.prose ul {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose table {
  min-width: 0;
}

.draft-banner {
  margin: 0 0 32px;
  padding: 14px 18px;
  background: var(--danger-bg);
  color: var(--danger-text);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.ph {
  background: var(--yellow);
  padding: 0 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0 88px;
}

.contact-grid a.mail {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: #f4ecd8;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer .brand-mark {
  box-shadow: 3px 3px 0 0 #f4ecd8;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  color: #cfc6b0;
  font-size: 0.92rem;
}

.footer-base {
  grid-column: 1 / -1;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid #4a4235;
  font-size: 0.85rem;
  color: #cfc6b0;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 960px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features,
  .plans,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: var(--stroke-bold) solid var(--ink);
  }
  .nav.open {
    display: flex;
  }
  .nav-actions {
    margin: 10px 0 0;
  }
  .nav-actions .btn {
    flex: 1;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .section,
  .cta {
    padding: 64px 0;
  }
  .steps,
  .features,
  .plans,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .pr-verdict {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
