:root {
  --paper: #fffdf8;
  --ink: #191919;
  --red: #d83126;
  --gray: #ebe8e0;
  --rule: #9b9891;
  --badge-bg: #f1ede3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: 15px/1.5 ui-monospace, "Roboto Mono", "SF Mono", Menlo, Consolas, monospace;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  border-bottom: 2px solid var(--ink);
  padding: 12px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-mark { display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 36px;
}

.tagline {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 12px;
}

h1 {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  font-weight: 400;
}
.accent-text { color: var(--red); }
.summary-text { font-size: 17px; line-height: 1.6; margin: 0 0 24px; }

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray);
  border-left: 4px solid var(--red);
  padding: 12px 16px;
  font-size: 13px;
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.receipt-card {
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 24px;
  box-shadow: 4px 4px 0px var(--rule);
}
.receipt-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: #555;
}
.receipt-title {
  font-family: Anton, Impact, sans-serif;
  font-size: 32px;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  font-weight: 400;
}

.badge-preview-area {
  background: var(--badge-bg);
  border: 1px dashed var(--rule);
  padding: 14px;
  margin-bottom: 18px;
  text-align: center;
}
.badge-label { font-size: 11px; letter-spacing: 1px; color: #777; margin-bottom: 6px; }
.reading-badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.field-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.preset-buttons { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.btn-preset {
  background: var(--gray);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.btn-preset:hover { background: #ddd8ce; }

textarea {
  width: 100%;
  border: 1px solid var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 13px;
  background: var(--paper);
  resize: vertical;
}

.calc-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-top: 10px;
  border-top: 1px dashed var(--rule);
  padding-top: 8px;
  color: #444;
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
  margin-top: 18px;
  color: #666;
}

.principles-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 14px 0;
  margin: 32px 0;
  font-size: 13px;
  font-weight: 700;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading {
  font-family: Anton, Impact, sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
}

.facts-table-wrap { overflow-x: auto; margin-bottom: 48px; }
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border: 1px solid var(--ink);
}
.receipt-table th, .receipt-table td {
  padding: 12px 16px;
  border: 1px solid var(--rule);
}
.receipt-table th { background: var(--gray); font-weight: 700; }
.receipt-table code { background: #eee; padding: 2px 6px; font-size: 13px; }

.pricing-section { border-top: 2px solid var(--ink); padding-top: 36px; }
.pricing-header { margin-bottom: 28px; }
.pricing-note { font-size: 14px; color: #555; margin-top: 8px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.plan-card {
  border: 1px solid var(--rule);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.highlight-card {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px var(--ink);
}
.plan-badge {
  font-size: 11px;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
}
.plan-title { font-size: 18px; margin: 0 0 12px; }
.plan-price {
  font-family: Anton, Impact, sans-serif;
  font-size: 42px;
  margin: 0 0 14px;
  font-weight: 400;
}
.plan-price .unit { font-family: inherit; font-size: 16px; color: #555; }
.plan-details { font-size: 13px; color: #444; line-height: 1.5; margin: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 60px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-disclaimer { font-size: 11px; color: #777; }

@media (max-width: 860px) {
  .hero-section { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
}
