/* Sevendyne technical one-pager — print to PDF (A4) */
/* System fonts only — wkhtmltopdf cannot load Google Fonts @import */

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

:root {
  --ink: #1a1a1a;
  --rule: #c8b89a;
  --gold: #a8894a;
  --muted: #5c5648;
  --light: #f7f4ef;
  --white: #fefcf9;
  --accent: #2563eb;
  --pad: 32px;
}

html { font-size: 14px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #e8e4dd;
  line-height: 1.55;
}

.print-bar {
  max-width: 210mm;
  margin: 0.75rem auto;
  padding: 0.65rem 1rem;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.85rem;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.print-bar a { color: #93c5fd; }

.print-bar button {
  font: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-weight: 600;
}

.page {
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto 1rem;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

@media print {
  .print-bar { display: none !important; }
  @page { size: A4; margin: 10mm 8mm; }
  html, body { background: #fff !important; }
  .page { box-shadow: none; max-width: none; min-height: 0; page-break-after: always; }
  .page:last-child { page-break-after: auto; }
}

.header {
  padding: 24px var(--pad) 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 0.2rem;
}

.doc-type {
  text-align: right;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}

.hero {
  padding: 20px var(--pad) 18px;
  background: linear-gradient(135deg, #f0f4ff 0%, var(--white) 100%);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.meta-row strong { color: var(--ink); }

.lede { font-size: 0.92rem; color: var(--muted); max-width: 52rem; }

.body { padding: 20px var(--pad) 28px; }

.section { margin-bottom: 1.15rem; }

.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section p, .section li { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.section ul { margin: 0.4rem 0 0 1rem; }
.section li { margin-bottom: 0.3rem; }

.stack-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.stack-pills span {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: var(--light);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

table.brief-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

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

table.brief-table th { background: var(--light); font-weight: 600; color: var(--ink); }
table.brief-table td { color: var(--muted); }

pre.code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.75rem 0.85rem;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-x: auto;
  margin-top: 0.35rem;
}

.outcomes {
  background: var(--light);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
}

.footer {
  padding: 16px var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer a { color: var(--accent); text-decoration: none; }

.sales-note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--gold);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.sales-note strong { color: var(--ink); }

.confidential { font-size: 0.68rem; font-style: italic; margin-top: 0.75rem; color: #888; }
