/* ==========================================================================
   Use As Is™ — useasis.com
   Design: an inspection report that gave up. Aged form paper, ink-dark type,
   rubber-stamp red, monospace form fields.

   Contrast on --paper (#f6f2e8, L≈0.89), measured not guessed:
     --ink        #20242b   ~13.9:1  body text
     --ink-soft   #545a66   ~6.5:1   secondary text
     --stamp      #b8352b   ~5.2:1   AA at normal size — fine for the big
                                     stamp and headings; small accent text
                                     uses --stamp-deep instead
     --stamp-deep #8f2620   ~7.6:1   small red text, links
   ========================================================================== */

:root {
  --paper:      #f6f2e8;   /* aged form paper */
  --paper-2:    #efe8d6;   /* alternate band */
  --paper-card: #fbf8f1;   /* raised cards / the NCR form */
  --ink:        #20242b;
  --ink-soft:   #545a66;
  --line:       #d9d1bd;   /* form rules */
  --line-soft:  #e6dfcd;
  --stamp:      #b8352b;
  --stamp-deep: #8f2620;
  --focus:      #1a4f8a;

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

  --radius: 10px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(32, 36, 43, 0.08), 0 8px 24px rgba(32, 36, 43, 0.07);
}

/* ---------- Reset / base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* faint ruled-paper texture, pure CSS so there is nothing to download */
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(32, 36, 43, 0.025) 31px 32px
  );
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--stamp-deep); }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Only the hero H1 uses italic for emphasis; keep it red like ink that bled */
h1 em { font-style: italic; color: var(--stamp); }

.br-wide { display: none; }
@media (min-width: 860px) { .br-wide { display: inline; } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.7rem;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--stamp); text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: 0.01em; }
.brand-name sup { color: var(--stamp-deep); font-size: 0.6em; }
.brand-sub {
  font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}

.nav-menu {
  display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--stamp-deep); }
.nav-menu .nav-real { color: var(--stamp-deep); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.4rem 0.75rem; cursor: pointer;
}
.nav-toggle-bar {
  width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after  { top: 5px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; right: 1rem; top: calc(100% + 0.4rem);
    flex-direction: column; gap: 0;
    background: var(--paper-card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 0.4rem; min-width: 200px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 0.6rem 0.9rem; border-radius: 6px; }
  .nav-menu a:hover { background: var(--paper-2); }
  .nav { position: relative; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; text-align: center;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 0.75rem 1.5rem; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--stamp-deep);
  transition: transform 80ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.btn-primary:hover { background: var(--stamp-deep); border-color: var(--stamp-deep); }
.btn-ghost { background: transparent; color: var(--stamp-deep); }
.btn-ghost:hover { background: rgba(184, 53, 43, 0.08); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }

.hero-inner {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--stamp-deep); margin-bottom: 1rem;
}
.eyebrow-tag { color: var(--ink-soft); letter-spacing: 0.06em; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.fn-ref { text-decoration: none; font-weight: 700; }
.fn {
  margin-top: 1.4rem; font-size: 0.8rem; color: var(--ink-soft);
  font-family: var(--font-mono);
}
.fn a { text-decoration: none; }

.stamp-count {
  margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--ink-soft);
}
.stamp-count strong { color: var(--stamp-deep); }

/* ---------- The NCR form ---------- */

.hero-form { position: relative; }

.ncr {
  position: relative;
  background: var(--paper-card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transform: rotate(0.6deg);
}

.ncr-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.8rem;
}
.ncr-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.ncr-no { color: var(--stamp-deep); font-weight: 700; }

.ncr-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; margin: 0;
}
.ncr-wide { grid-column: 1 / -1; }
.ncr-field dt {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-bottom: 0.1rem;
}
.ncr-field dd {
  margin: 0; border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem; min-height: 1.3em;
}
.ncr-note { color: var(--ink-soft); }

.ncr-dispo { margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.ncr-dispo-label {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); display: block; margin-bottom: 0.4rem;
}
.ncr-checks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
}
.ncr-checks li { display: flex; align-items: center; gap: 0.4rem; }
.box {
  width: 0.9em; height: 0.9em; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; font-size: 0.9em; line-height: 1;
}
.box-checked { color: var(--stamp); font-weight: 700; border-color: var(--stamp-deep); }
.ncr-checks .checked strong { color: var(--stamp-deep); text-transform: uppercase; }

.ncr-signs {
  display: flex; gap: 1rem; margin-top: 1rem;
}
.ncr-sign { flex: 1; display: flex; flex-direction: column; }
.sig {
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 0.95rem; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem;
  transform: rotate(-2deg); transform-origin: left bottom;
}
.sig-blank { transform: none; }
.sig-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-top: 0.25rem;
}

/* ---------- The stamp ---------- */

.stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--stamp);
  border: 4px double var(--stamp);
  border-radius: 6px;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0.35em 0.55em;
  filter: url(#stamp-rough);
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}

.stamp-hero {
  position: absolute;
  right: 4%; bottom: 16%;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  transform: rotate(-9deg);
  animation: stamp-thud 420ms cubic-bezier(0.2, 1.6, 0.4, 1) 500ms backwards;
}

/* Stamps spawned by the "Stamp It Now" button (script.js) */
.stamp-spawn {
  position: fixed; z-index: 60;
  font-size: 1.5rem;
  animation: stamp-thud 380ms cubic-bezier(0.2, 1.6, 0.4, 1) backwards,
             stamp-fade 900ms ease 2200ms forwards;
}

@keyframes stamp-thud {
  from { transform: scale(3) rotate(var(--rot, -9deg)); opacity: 0; }
  to   { transform: scale(1) rotate(var(--rot, -9deg)); opacity: 0.88; }
}
@keyframes stamp-fade { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stamp-hero, .stamp-spawn { animation: none; }
  .reveal { transition: none; }
}

/* ---------- Stats band ---------- */

.stats {
  background: var(--ink); color: var(--paper);
  padding-block: 2.2rem;
}
.stats-grid {
  display: grid; gap: 1.6rem 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-n {
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800;
  color: #e8b6b1; /* stamp red lifted for dark bg — ~7.8:1 on --ink */
  font-variant-numeric: tabular-nums;
}
.stat-l { font-size: 0.9rem; color: #c8cbd2; /* ~9:1 on --ink */ max-width: 16em; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--stamp-deep); margin-bottom: 0.8rem;
}
.section-lede { color: var(--ink-soft); font-size: 1.1rem; max-width: 42em; margin-bottom: 2rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 680px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--stamp-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
  align-items: start;
}
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.price-featured { border: 2px solid var(--stamp); }
.price-flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  background: var(--stamp); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem; border-radius: 99px; white-space: nowrap; margin: 0;
}
.price-name { font-size: 1.2rem; margin-bottom: 0.3rem; }
.price-amount { font-size: 2rem; font-weight: 800; margin-bottom: 0.2rem; }
.price-per { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.price-tag { color: var(--ink-soft); font-size: 0.95rem; min-height: 3em; }
.price-list {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  font-size: 0.95rem;
}
.price-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.price-list li::before {
  content: "✕"; /* the disposition checkbox mark, not a bullet */
  position: absolute; left: 0.2rem;
  color: var(--stamp); font-weight: 700;
}

.fine-print {
  margin-top: 2rem; font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--ink-soft); text-align: center;
}

/* ---------- Testimonials ---------- */

.quote-grid {
  display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 2rem;
}
@media (min-width: 780px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }

.quote {
  margin: 0; background: var(--paper-card);
  border: 1px solid var(--line); border-left: 4px solid var(--stamp);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.quote p { font-size: 1.05rem; font-style: italic; }
.quote footer { font-size: 0.88rem; color: var(--ink-soft); font-style: normal; }
.quote-note { opacity: 0.8; }

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-card); box-shadow: var(--shadow);
  margin-top: 0.8rem; padding: 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 1rem 1.3rem;
  list-style-position: outside;
}
.faq-item summary::marker { color: var(--stamp); }
.faq-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-item p { padding: 0.9rem 1.3rem 0.2rem 2.4rem; color: var(--ink-soft); }

/* ---------- The gage: "Measure It Until It Fits" ----------
   Status colors, not categorical. Validated against --paper:
     --pass-mark #4f9e57  vs --stamp-deep  ΔE 18.6 deutan / 30.4 normal — PASS
   The mark green sits at 2.95:1 on paper, just under the 3:1 line, so every
   mark is backed by shape (● vs ✕) AND the readings table below the plot.
   Text never uses the mark green — small green text uses --pass-text (5.6:1). */

:root {
  --pass-mark: #4f9e57;
  --pass-text: #2e6b34;
}

.gage {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 940px) { .gage { grid-template-columns: 320px 1fr; align-items: start; } }

.gage-panel {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}

/* The indicator: a cheap shop-floor readout, lovingly rendered */
.gage-readout {
  background: var(--ink);
  border-radius: 8px;
  padding: 0.9rem 1rem 0.8rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.gage-readout-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: #9aa0ab;
}
.gage-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 2.7rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #e8b6b1;                       /* ~7.8:1 on --ink */
  transition: color 120ms ease;
}
.gage-value.is-in { color: #a8dfae; }   /* ~10:1 on --ink */
.gage-verdict {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #c8cbd2;
  min-height: 1.2em;
}

.gage-spec { margin: 1.1rem 0 1.2rem; font-family: var(--font-mono); font-size: 0.75rem; }
.gage-spec > div {
  display: flex; justify-content: space-between; gap: 0.6rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft);
}
.gage-spec dt { color: var(--ink-soft); white-space: nowrap; }
.gage-spec dd { margin: 0; font-weight: 700; text-align: right; }
.gage-grr { color: var(--stamp-deep); }

.gage-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

.gage-coach {
  margin: 1rem 0 0; min-height: 4.5em;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5;
  color: var(--ink-soft);
}
.gage-coach.is-win { color: var(--pass-text); font-weight: 700; }

/* The plot */
.gage-figure {
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1rem;
}
.gage-figcap {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin-bottom: 0.6rem;
}
#gage-chart { display: block; width: 100%; height: auto; overflow: visible; }

.gage-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
  margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line-soft);
}
@media (min-width: 620px) { .gage-stats { grid-template-columns: repeat(4, 1fr); } }
.gage-stats dt {
  font-family: var(--font-mono); font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.gage-stats dd {
  margin: 0.1rem 0 0; font-family: var(--font-mono);
  font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Game promo ---------- */

.section-game { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.game-promo {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
  background: var(--paper-card);
  border: 2px solid var(--stamp);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.8rem);
}
@media (min-width: 820px) { .game-promo { grid-template-columns: 1fr auto; } }

.game-promo-copy .section-lede { margin-bottom: 1.4rem; }
.game-promo-copy .fn { margin-top: 1rem; }
.game-promo-art { color: var(--ink-soft); justify-self: center; }
.game-promo-art svg { display: block; max-width: 100%; height: auto; }

/* ---------- Real talk ---------- */

.section-real {
  background: var(--ink); color: var(--paper);
}
.section-real h2 { color: #f6f2e8; }
.kicker-real { color: #e8b6b1; }
.real-body p { color: #c8cbd2; font-size: 1.08rem; }
.real-body em { color: #f6f2e8; }

.about-card {
  margin-top: 2.2rem;
  background: rgba(246, 242, 232, 0.07);
  border: 1px solid rgba(246, 242, 232, 0.25);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.about-card p { color: #dfe1e6; margin-bottom: 0.7em; }
.about-card p:last-child { margin-bottom: 0; }
.about-cta { font-weight: 600; }
.about-card a { color: #f0c9c5; text-decoration-color: rgba(240, 201, 197, 0.5); }
.about-card a:hover { color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  text-align: center;
}
.footer-inner p { margin-bottom: 0.4em; font-size: 0.95rem; color: var(--ink-soft); }
.footer-fine { font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- Scroll reveal (script.js adds .in) ----------
   Gated on .js (set by script.js) so content is never hidden when JS is off. */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
