/* DocGen landing page (docgenapp.com). Static, no scripts; colours follow the brand palette
   (docs/SITE.md). Layout: "paper on a desk": the hero shows a Word template and the document
   generated from it, white sheets in both themes; the sections below alternate plain and washed
   bands. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  --paper: #ffffff;
  --wash: #f6f8fc;
  --ink: #0f1b3d;
  --muted: #5e6a85;
  --line: #e2e7f0;
  --line-strong: #cbd3e1;
  --brand: #2b55e0;
  --brand-hover: #2247c4;
  --on-brand: #ffffff;
  --brand-soft: #eaf0fe;
  /* Marker yellow: a background only, always with --sheet-ink text on it. */
  --marker: #ffd43b;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(15 27 61 / 6%), 0 18px 40px -18px rgb(15 27 61 / 28%);
  /* The sample documents are white paper in both themes. */
  --sheet: #ffffff;
  --sheet-ink: #0f1b3d;
  --sheet-muted: #5e6a85;
  --sheet-line: #e2e7f0;
  --band-dark: #0f1b3d;
  --band-dark-ink: #ffffff;
  --band-dark-muted: #c7d4fa;

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1526;
    --wash: #111a30;
    --ink: #e8ecf7;
    --muted: #98a3bd;
    --line: #24304d;
    --line-strong: #384667;
    --brand: #7c9dff;
    --brand-hover: #96b0ff;
    --on-brand: #0e1526;
    --brand-soft: #1c2b52;
    --card: #152038;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 40px -18px rgb(0 0 0 / 60%);
    --band-dark: #152038;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p,
ul,
ol {
  margin: 0;
}
a {
  color: var(--brand);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
img,
svg {
  max-width: 100%;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (max-width: 480px) {
  .wrap {
    padding-inline: 16px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.eyebrow {
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* A field placeholder as written in the Word template. */
.field {
  padding: 0.05em 0.35em;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}
/* A value filled in: the marker stroke of the brand. */
.hl {
  padding: 0 0.12em;
  color: var(--sheet-ink);
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 55%;
  background-size: 100% 78%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  h1 .hl {
    animation: marker 0.8s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s both;
  }
  .paper-doc .hl {
    animation: marker 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) both;
  }
  .paper-doc p:nth-of-type(3) .hl:nth-of-type(1) {
    animation-delay: 0.9s;
  }
  .paper-doc p:nth-of-type(3) .hl:nth-of-type(2) {
    animation-delay: 1.1s;
  }
  .paper-doc p:nth-of-type(3) .hl:nth-of-type(3) {
    animation-delay: 1.3s;
  }
  .paper-doc p:nth-of-type(4) .hl {
    animation-delay: 1.5s;
  }
  html {
    scroll-behavior: smooth;
  }
}
@keyframes marker {
  from {
    background-size: 0% 78%;
  }
  to {
    background-size: 100% 78%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-ghost {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-marker {
  background: var(--marker);
  color: var(--sheet-ink);
}
.btn-marker:hover {
  background: #ffdf6b;
}
.btn-sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.9375rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo .mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wordmark span {
  color: var(--brand);
}
.nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.nav a,
.link-quiet {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover,
.link-quiet:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav + .header-actions {
  margin-left: 0;
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
}
@media (max-width: 380px) {
  .link-quiet {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 72px 88px;
  background:
    radial-gradient(
      60% 70% at 85% 30%,
      color-mix(in srgb, var(--brand) 10%, transparent),
      transparent 70%
    ),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.1875rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fine {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 920px) {
  .hero {
    padding-block: 48px 64px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

/* The two sheets: the template behind, the generated document in front. */
.papers {
  display: grid;
  margin: 0;
  padding: 8px 0;
}
.paper {
  display: grid;
  gap: 10px;
  padding: 22px 24px 24px;
  border: 1px solid var(--sheet-line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow: var(--shadow);
  font-size: 0.96875rem;
  line-height: 1.65;
}
.paper-template {
  width: 88%;
  transform: rotate(-2deg);
}
/* Overlaps only the template's bottom padding: every field of the template stays readable. */
.paper-doc {
  position: relative;
  width: 88%;
  margin-top: -18px;
  margin-left: auto;
  transform: rotate(1deg);
}
.paper-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sheet-line);
  color: var(--sheet-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  min-width: 0;
}
.paper-file span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-badge {
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: #2b55e0;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.file-badge.pdf {
  background: #c43d4f;
}
.paper-title {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.paper .field {
  background: #eaf0fe;
  color: #2b55e0;
}
@media (max-width: 480px) {
  .paper {
    padding: 18px 18px 20px;
  }
  .paper-template,
  .paper-doc {
    width: 94%;
  }
  .paper-doc {
    margin-top: -14px;
  }
}

/* ---------- Bands ---------- */
.band {
  padding-block: 96px;
}
.band-wash {
  background: var(--wash);
}
.band-head {
  display: grid;
  gap: 14px;
  max-width: 46rem;
  margin-bottom: 48px;
}
.band-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.875rem);
  font-weight: 750;
}
.band-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.125rem;
}
@media (max-width: 720px) {
  .band {
    padding-block: 64px;
  }
  .band-head {
    margin-bottom: 32px;
  }
}

/* How it works: a real sequence of four steps. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  min-width: 0;
}
.step-n {
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.steps h3,
.feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.steps p,
.feature p {
  color: var(--muted);
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  min-width: 0;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature {
    padding: 22px;
  }
}

/* ---------- Pricing ---------- */
.free-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: 20px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.free-plan h3 {
  font-size: 1.375rem;
}
.free-plan p {
  color: var(--muted);
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.plan {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 10px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  min-width: 0;
}
.plan h3 {
  font-size: 1.375rem;
}
.plan-for {
  color: var(--muted);
  font-size: 0.9375rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 6px;
}
.amount {
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.per {
  color: var(--muted);
  font-size: 0.9375rem;
}
.annual {
  color: var(--muted);
  font-size: 0.875rem;
}
.annual strong {
  color: var(--ink);
  font-weight: 600;
}
.plan-limits {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan-limits li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
}
/* A check mark drawn with two borders (the page loads no images besides its own files). */
.plan-limits li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 11px;
  margin: 0.32em 6px 0 4px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plan .btn {
  width: 100%;
  margin-top: 6px;
}
.pricing-notes {
  display: grid;
  gap: 6px;
  max-width: 52rem;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 1040px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .free-plan {
    grid-template-columns: minmax(0, 1fr);
  }
  .free-plan .btn {
    justify-self: start;
  }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}
.faq-grid .band-head {
  margin-bottom: 0;
  align-content: start;
}
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* The +/− sign is decoration (details already exposes open/closed): empty alternative text keeps
   it out of the question's accessible name; the first line is the fallback for older browsers. */
.faq summary::after {
  content: '+';
  content: '+' / '';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
  content: '\2212' / '';
}
.faq details p {
  max-width: 40rem;
  padding: 0 44px 22px 0;
  color: var(--muted);
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------- Closing band and footer ---------- */
.closing {
  padding-block: 88px;
  background: var(--band-dark);
  color: var(--band-dark-ink);
}
.closing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.closing h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
.closing p {
  margin-top: 12px;
  color: var(--band-dark-muted);
}
/* The brand-coloured ring would be 2.8:1 on the navy band. */
.closing :focus-visible {
  outline-color: var(--marker);
}
.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.footer-grid h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-about {
  display: grid;
  align-content: start;
  gap: 14px;
}
.legal-line {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Not found page ---------- */
.not-found {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-block: 120px 140px;
}
.not-found h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
}
.not-found p {
  max-width: 36rem;
  color: var(--muted);
}

/* ---------- Guides and use-case pages ---------- */
.article {
  padding-block: 56px 96px;
}
.article-head {
  display: grid;
  gap: 18px;
  max-width: 50rem;
  margin-bottom: 40px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--muted);
}
.article h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.article-head .lead {
  max-width: 44rem;
}
.prose {
  display: grid;
  gap: 18px;
  max-width: 46rem;
}
.prose h2 {
  margin-top: 30px;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 750;
}
.prose h3 {
  margin-top: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 1.3em;
}
.prose li::marker {
  color: var(--muted);
}
.prose strong {
  font-weight: 650;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table-wrap table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.96875rem;
}
.table-wrap caption {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}
.table-wrap th,
.table-wrap td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap th {
  background: var(--wash);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--wash);
}
.examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.example {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  min-width: 0;
}
.example h3 {
  margin: 0;
}
.example p {
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 640px) {
  .examples {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cta-box {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 46rem;
  margin-top: 48px;
  padding: 28px;
  border-radius: 16px;
  background: var(--band-dark);
  color: var(--band-dark-ink);
}
.cta-box h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
}
.cta-box p {
  color: var(--band-dark-muted);
}
.cta-box :focus-visible {
  outline-color: var(--marker);
}
.related {
  display: grid;
  gap: 10px;
  max-width: 46rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1.125rem;
  font-weight: 700;
}
.related ul {
  display: grid;
  gap: 6px;
  padding-left: 1.2em;
}
