/* =========================================================
   VALUEBACK — design tokens
   Palette: ledger green + warm paper + toned gold accent
   Type: Fraunces (display) / Public Sans (body) / IBM Plex Mono (data)
   ========================================================= */

:root {
  --bg: #F7F5EF;
  --bg-alt: #EDE8DA;
  --bg-alt-2: #E3DCC8;
  --ink: #16231C;
  --ink-soft: #4A5750;
  --forest: #0B3D2E;
  --forest-light: #2D6A4F;
  --forest-pale: #E4EEE8;
  --gold: #B9872F;
  --gold-soft: #F1E4C6;
  --line: #D8D2C0;
  --white: #FFFFFF;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-card: 0 1px 2px rgba(22, 35, 28, 0.06), 0 8px 24px rgba(22, 35, 28, 0.06);
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--forest);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.mono {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

/* visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------- layout helpers -------------------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

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

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--forest);
  color: var(--bg);
}
.btn-primary:hover { background: var(--forest-light); }

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-ghost:hover { background: var(--forest-pale); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a37827; }

.btn-block { width: 100%; }

/* -------------------- header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--forest);
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.nav-links a[aria-current="page"] { color: var(--forest); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--forest);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* -------------------- hero -------------------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 0.3em;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 30px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hero-trust div strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.3rem;
  color: var(--forest);
}

.hero-trust div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---- signature receipt visual ---- */
.receipt {
  position: relative;
  background: var(--white);
  border-radius: 4px;
  padding: 30px 28px 40px;
  box-shadow: var(--shadow-card);
  transform: rotate(1.4deg);
  max-width: 380px;
  margin: 0 auto;
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background:
    linear-gradient(-45deg, var(--bg) 8px, transparent 0),
    linear-gradient(45deg, var(--bg) 8px, transparent 0);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

.receipt-top {
  text-align: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.receipt-top .brand {
  justify-content: center;
  font-size: 1.15rem;
}

.receipt-top small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding: 7px 0;
  color: var(--ink);
}

.receipt-row span:first-child { color: var(--ink-soft); }

.receipt-row .amt {
  font-family: "IBM Plex Mono", monospace;
}

.receipt-row .cb {
  color: var(--forest-light);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.receipt-divider {
  border-top: 1px dashed var(--line);
  margin: 12px 0;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
}

.receipt-total span:first-child {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--forest);
}

.receipt-total strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.6rem;
  color: var(--gold);
}

.receipt-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--forest);
  color: var(--bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: var(--shadow-card);
}

/* -------------------- steps -------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 26px;
}

.step-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: block;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.step p { margin: 0; font-size: 0.94rem; }

/* -------------------- category grid -------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.cat-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--forest-pale);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cat-card .icon svg { width: 20px; height: 20px; }

.cat-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cat-rate {
  font-family: "IBM Plex Mono", monospace;
  color: var(--forest-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* -------------------- feature list -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  padding: 4px 0;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature .icon svg { width: 22px; height: 22px; }

.feature h3 { font-size: 1.1rem; }
.feature p { font-size: 0.95rem; }

/* -------------------- testimonials -------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
}

.quote-card p {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.quote-who .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-pale);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.quote-who span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: block;
}

.quote-who strong { font-size: 0.92rem; }

/* -------------------- faq -------------------- */
.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--forest);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  color: var(--gold);
  margin-left: 16px;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--forest);
  border-radius: var(--radius-l);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--bg); margin-bottom: 0.2em; }
.cta-band p { color: #C7D6CD; margin: 0; }

/* -------------------- footer -------------------- */
.site-footer {
  background: var(--ink);
  color: #C9CFC9;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2B362F;
}

.footer-brand .brand { color: var(--bg); }
.footer-brand .brand span { color: var(--gold); }

.footer-brand p {
  color: #9BA69E;
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h5 {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #7E8B81;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
  color: #C9CFC9;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7E8B81;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a { color: #C9CFC9; font-size: 0.85rem; }
.footer-social a:hover { color: var(--gold); }

/* -------------------- inner page / legal -------------------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow { margin-bottom: 10px; }

.content-block {
  max-width: 760px;
}

.content-block h2 {
  font-size: 1.4rem;
  margin-top: 2em;
}

.content-block h2:first-child { margin-top: 0; }

.content-block ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--ink-soft);
  margin-bottom: 1em;
}

.content-block li { margin-bottom: 6px; }

.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}

.content-block th,
.content-block td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.content-block th {
  background: var(--bg-alt);
  color: var(--forest);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.updated-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* -------------------- about page bits -------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
}

.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-row div strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  color: var(--forest);
}

.stat-row div span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* -------------------- contact page -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  margin-bottom: 18px;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p { margin: 0; font-size: 0.92rem; }

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* -------------------- responsive -------------------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .receipt { margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
