:root {
  --mat-black: #151412;
  --mat-elev: #201E1B;
  --mat-line: #312E29;
  --mat-muted: #B8B2A6;
  --parchment: #FBF8F1;
  --sand: #F1EBD9;
  --paper: #FFFFFF;
  --rule: #DDD4C1;
  --rule-strong: #C2B69D;
  --ink: #191815;
  --ink-muted: #544E43;
  --holo-yellow: #F4C430;
  --holo-yellow-hover: #FFCF3F;
  --holo-yellow-ink: #8C6400;
  --cobalt: #1D4ED8;
  --cobalt-soft: #E9EFFC;
  --ok: #14532D;
  --ok-bg: #EBF7EF;
  --danger: #991B1B;
  --danger-bg: #FEF2F2;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--mat-black);
}

::selection {
  background: var(--holo-yellow);
  color: var(--mat-black);
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.6;
  caret-color: var(--cobalt);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--holo-yellow);
  outline-offset: 2px;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--mat-black);
  border-bottom: 1px solid var(--mat-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FBF8F1;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--holo-yellow);
  color: var(--mat-black);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--mat-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.16s var(--ease);
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-cta {
  background: var(--holo-yellow);
  color: var(--mat-black) !important;
  font-weight: 700 !important;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.nav-cta:hover {
  background: var(--holo-yellow-hover);
  transform: translateY(-1px);
}

/* Hero — Obsidian Collector's Mat */
.hero {
  background: var(--mat-black);
  color: #FBF8F1;
  padding: 44px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #FFFFFF;
}

.hero-highlight {
  color: var(--holo-yellow);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 1.1rem;
  line-height: 1.58;
  color: #DCD6CA;
  max-width: 54ch;
}

.hero-lead strong {
  color: #FFFFFF;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--holo-yellow);
  color: var(--mat-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary:hover {
  background: var(--holo-yellow-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FBF8F1;
  background: var(--mat-elev);
  border: 1px solid var(--mat-line);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 10px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-ghost:hover {
  background: #2C2925;
  border-color: #4A453D;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid var(--mat-line);
  list-style: none;
  font-size: 0.93rem;
  color: var(--mat-muted);
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-facts svg {
  color: var(--holo-yellow);
  flex-shrink: 0;
}

.hero-media {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 410px;
}

.hero-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #35312B;
  background: #0D0C0B;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.65;
  object-fit: cover;
  object-position: center;
}

.hero-caption {
  padding: 11px 14px;
  font-size: 0.87rem;
  color: var(--mat-muted);
  background: #1B1917;
  border-top: 1px solid var(--mat-line);
  line-height: 1.45;
}

.hero-caption strong {
  color: #FBF8F1;
  font-weight: 600;
}

/* Town Ribbon */
.town-strip {
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  padding: 13px 0;
}

.town-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

.town-strip strong {
  color: var(--ink);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-sand {
  background: var(--sand);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-dark {
  background: var(--mat-black);
  color: #FBF8F1;
}

.section-dark h2 {
  color: #FFFFFF;
}

.section-dark .section-intro {
  color: var(--mat-muted);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 34px;
}

h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Visual Era Guide (Real Mark Photos!) */
.era-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.era-item {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.era-photo {
  background: #121110;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.era-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease);
}

.era-item:hover .era-photo img {
  transform: scale(1.025);
}

.era-body {
  padding: 18px 20px 20px;
}

.era-years {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--holo-yellow-ink);
  background: #FCF0CC;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.era-body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ink);
}

.era-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.skip-bar {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--sand);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
}

.skip-bar svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--ink-muted);
}

/* Recent Local Buys Strip */
.buys-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.buys-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mat-line);
  background: #0D0C0B;
}

.buys-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.buys-photo figcaption {
  padding: 11px 14px;
  font-size: 0.87rem;
  color: var(--mat-muted);
  background: var(--mat-elev);
  border-top: 1px solid var(--mat-line);
}

.buys-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.buy-story {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mat-line);
}

.buy-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.buy-story h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--holo-yellow);
}

.buy-story p {
  margin: 0;
  color: #DDD7CB;
  font-size: 0.97rem;
}

/* Steps Ledger */
.steps-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--mat-black);
  border-bottom: 1px solid var(--rule-strong);
}

.step-col {
  padding: 26px 26px 26px 0;
  border-right: 1px solid var(--rule);
}

.step-col:not(:first-child) {
  padding-left: 26px;
}

.step-col:last-child {
  border-right: 0;
  padding-right: 0;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cobalt);
  margin-bottom: 8px;
}

.step-col h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ink);
}

.step-col p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* Quote Workbench */
.quote-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: start;
}

.quote-sidebar p {
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.family-figure {
  margin: 20px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}

.family-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.family-figure figcaption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}

.mark-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-size: 0.95rem;
}

.mark-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.03rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.mark-note p {
  margin: 0;
  color: var(--ink-muted);
}

.quote-form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

.field-hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 400;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  background: #FFFFFF;
  border-color: var(--mat-black);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.reply-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reply-opt {
  position: relative;
}

.reply-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reply-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--parchment);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.reply-opt input:checked + span {
  background: var(--mat-black);
  border-color: var(--mat-black);
  color: var(--holo-yellow);
}

.reply-opt input:focus-visible + span {
  outline: 2.5px solid var(--holo-yellow);
  outline-offset: 2px;
}

.dropzone {
  border: 1.5px dashed var(--rule-strong);
  border-radius: 10px;
  background: var(--parchment);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--mat-black);
  background: var(--sand);
}

.dropzone-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.dropzone-sub {
  margin: 4px 0 0;
  font-size: 0.87rem;
  color: var(--ink-muted);
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.thumb-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  aspect-ratio: 1 / 1;
  background: var(--mat-black);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: rgba(21, 20, 18, 0.88);
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.submit-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-status {
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.form-status.is-error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #F2B8B5;
}

.form-status.is-ok {
  display: block;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #9BD4B0;
}

/* Comparison Table */
.compare-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--mat-black);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule-strong);
  vertical-align: top;
  font-size: 0.95rem;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.compare-table .col-us {
  background: rgba(244, 196, 48, 0.16);
  font-weight: 600;
  color: var(--ink);
}

/* FAQ */
.faq-list {
  border-top: 2px solid var(--mat-black);
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--rule-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--ink-muted);
  max-width: 68ch;
}

.faq-answer p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--mat-black);
  color: var(--mat-muted);
  padding: 42px 0 52px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--mat-line);
  padding-bottom: 22px;
  margin-bottom: 18px;
}

.footer-title {
  font-family: var(--font-display);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.footer-note {
  margin: 0;
  font-size: 0.84rem;
  color: #8D8679;
  max-width: 80ch;
}

@keyframes riseIn {
  from {
    opacity: 0.01;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: riseIn 0.5s var(--ease) both;
}

.hero-media {
  animation: riseIn 0.6s var(--ease) 0.07s both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-media { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 900px) {
  .hero-grid,
  .quote-layout,
  .buys-grid,
  .era-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-media {
    justify-self: start;
    max-width: 480px;
  }
  .steps-ledger {
    grid-template-columns: 1fr;
  }
  .step-col {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 20px 0;
  }
  .step-col:not(:first-child) { padding-left: 0; }
  .step-col:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .container { padding: 0 18px; }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand { font-size: 0.96rem; gap: 8px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 0.87rem !important; }
  .hero { padding: 30px 0 42px; }
  .section { padding: 48px 0; }
  .quote-form-wrap { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
