:root {
  --ink: #171717;
  --paper: #f5f0e5;
  --panel: #fffdf7;
  --blue: #153f5f;
  --blue-dark: #0c263b;
  --yellow: #f6d365;
  --green: #1f6b4f;
  --line: #b8ad98;
  --muted: #5d5a53;
  --shadow: 5px 5px 0 #171717;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.58;
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  padding: 18px max(18px, calc((100% - 1120px) / 2));
  color: #fff;
  background: var(--blue-dark);
  border-bottom: 6px solid var(--yellow);
}

.brand {
  display: inline-block;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 3px 3px 0 #000;
}

.site-header > p {
  margin: 8px 0 14px;
  color: var(--yellow);
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: bold;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

nav a {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--blue-dark);
  font-family: Arial, sans-serif;
  line-height: 1.12;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

p { margin-top: 0; }
.lede { max-width: 720px; font-size: 22px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  color: var(--ink);
  background: #ded8ca;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

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

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

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.small-print {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.terminal, .file-tree {
  overflow: hidden;
  color: #e9f4ec;
  background: #101a18;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.terminal-bar {
  padding: 8px 12px;
  color: var(--ink);
  background: #d7d2c5;
  border-bottom: 3px solid var(--ink);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 15px;
  line-height: 1.52;
  white-space: pre;
}

.terminal pre { padding: 24px; }
.terminal .muted { color: #8fd2af; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }

.product-grid, .kit-summary, .detail-hero, .preview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.3fr;
  gap: 44px;
  align-items: center;
}

.document-preview {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: top;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.product-copy { max-width: 680px; }
.check-list { margin: 24px 0 30px; padding: 0; list-style: none; }

.guide-form {
  margin: 28px 0 12px;
  padding: 22px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.guide-form > label:first-child {
  display: block;
  margin-bottom: 9px;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.guide-form-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
}

.guide-form input[type="email"] {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  font: 16px Arial, sans-serif;
}

.consent-copy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--muted);
  font: 14px/1.45 Arial, sans-serif;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font: 14px/1.4 Arial, sans-serif;
}

.form-status-success { color: #176037; }
.form-status-error { color: #9e251f; }
.text-link { font-family: Arial, sans-serif; font-weight: bold; }

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "[x]";
  color: var(--green);
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.section-dark {
  color: #fff;
  background: var(--blue-dark);
  border-top: 6px solid var(--yellow);
  border-bottom: 6px solid var(--yellow);
}

.section-dark h2, .section-dark .eyebrow { color: var(--yellow); }
.file-tree { padding: 24px; box-shadow: 5px 5px 0 var(--yellow); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card, .outcome-box, .contents-box, .notice-box, .article-callout {
  padding: 24px;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--line);
}

.card p { margin-bottom: 0; }
.other-guides { background: #ded8ca; border: 2px solid var(--ink); }

.other-guides summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: bold;
}

.other-guides > p { margin: 0 22px 18px; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 22px 22px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

.guide-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.guide-card h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.guide-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.guide-price {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.guide-view {
  width: max-content;
  margin-top: auto;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; margin-right: 14px; margin-left: 14px; }
  .other-guides > p { margin-right: 14px; margin-left: 14px; }
}

.site-footer {
  padding: 36px 0;
  color: #fff;
  background: #101a18;
  border-top: 6px solid var(--yellow);
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.site-footer a { color: var(--yellow); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; }
.detail-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  padding-top: 64px;
  padding-bottom: 54px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
}

.price { font-family: Arial, sans-serif; font-size: 38px; font-weight: bold; }
.detail-visual { display: grid; min-width: 0; gap: 20px; }
.starter-kit-cover {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  justify-self: center;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}
.coupon-note {
  margin: -12px 0 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff8d7;
  border-left: 5px solid var(--yellow);
  font: 16px/1.4 Arial, sans-serif;
}
.coupon-note code { font-weight: bold; }
.outcome-box h2, .contents-box h2, .notice-box h2 { font-size: 28px; }
.file-list { margin: 0; padding-left: 22px; }
.file-list li { margin-bottom: 12px; }

.code-block {
  margin: 26px 0;
  padding: 20px;
  overflow-x: auto;
  color: #e9f4ec;
  background: #101a18;
  border-left: 6px solid var(--yellow);
}

.article {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.article h1 { font-size: clamp(38px, 6vw, 60px); }
.article h2 { margin-top: 44px; font-size: 32px; }
.article-meta { color: var(--muted); font-family: Arial, sans-serif; font-size: 14px; }
.article-callout { margin: 36px 0; background: #fff8d7; }
.breadcrumbs { margin-bottom: 24px; font-family: Arial, sans-serif; font-size: 14px; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero, .product-grid, .kit-summary, .detail-hero, .preview-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; padding-bottom: 52px; }
  .product-grid { gap: 30px; }
  .document-preview { max-height: 500px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap, .article { width: min(100% - 22px, 1120px); }
  .site-header { padding-right: 12px; padding-left: 12px; }
  h1 { font-size: 40px; }
  .lede { font-size: 19px; }
  .actions, .price-line, .footer-grid { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .guide-form { padding: 16px; }
  .guide-form-row { grid-template-columns: 1fr; }
  .section { padding-top: 52px; padding-bottom: 52px; }
}
