/* reports.codegrain.dev: one stylesheet, no external resources (CSP style-src 'self', no fonts, no CDN).
   Mobile-first: base rules target 320px; wider layouts come from min-width media queries. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #555c66;
  --border: #d9dde2;
  --accent: #1d4ed8;
  --accent-hover: #1e3a9e;
  --on-accent: #ffffff;
  --notice-bg: #eef3fd;
  --radius: 0.625rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #191d23;
    --text: #e7e9ec;
    --muted: #a6adb7;
    --border: #2e343c;
    --accent: #8ab4ff;
    --accent-hover: #b5cffd;
    --on-accent: #0b1220;
    --notice-bg: #16213a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}

/* ---- layout ---- */

.wrap {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0.5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.5rem;
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  padding-block: 0.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  margin-inline: -0.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

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

/* ---- sections ---- */

.section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}

.section--first {
  border-top: 0;
}

@media (min-width: 48rem) {
  .section {
    padding-block: 3.5rem;
  }
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

@media (min-width: 48rem) {
  .section h2 {
    font-size: 1.75rem;
  }
}

.section h1 {
  font-size: 1.875rem;
  margin: 0 0 1rem;
}

/* ---- hero ---- */

.hero {
  padding-block: 2.5rem 2.75rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-block: 4.5rem 4.5rem;
  }
}

.hero h1 {
  font-size: clamp(1.875rem, 1.2rem + 3.2vw, 3rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 38rem;
}

.cta {
  margin: 1.5rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* ---- what you get ---- */

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 48rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features li {
  padding: 1rem 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.features strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---- setup steps ---- */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: 40rem;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  min-height: 2rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.125rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ---- pricing ---- */

.price-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.price-card--pilot {
  border: 2px solid var(--accent);
}

.price-card p {
  margin: 0;
}

.price-card__label {
  margin-bottom: 0.5rem;
}

.price-card__amount {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.price-card__note {
  margin-top: 0.5rem;
  color: var(--muted);
}

.conditions,
.data-list {
  padding-left: 1.25rem;
  max-width: 44rem;
}

.conditions li,
.data-list li {
  margin-bottom: 0.625rem;
}

/* ---- status, fine print ---- */

.notice {
  max-width: 44rem;
  padding: 1rem 1.25rem;
  background: var(--notice-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---- legal pages (rendered markdown) ---- */

.page-legal {
  padding-block: 2rem 3rem;
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.25rem);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: 1.3125rem;
  margin: 2.25rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.table-wrap th,
.table-wrap td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap th {
  background: var(--surface);
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
}

.site-footer__nav {
  margin: 0 0 0.75rem -0.25rem;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
}
