/* ==========================================================================
   Pencil This Underwriting — brand tokens (canon, from the locked Brand Kit)
   Flag Amber #A9791C / Flag Wash #FBF3E6 are RESERVED for report documents
   only and intentionally do NOT appear in this stylesheet.
   ========================================================================== */
:root {
  --color-primary: #1D4933;   /* Ledger Green — headings, buttons, dark sections */
  --color-bg: #F6ECCF;        /* Paper Cream — alternating section backgrounds */
  --color-ink: #1A1A1A;       /* Ink — body text */
  --color-wood: #E7C585;      /* Pencil Wood — small accents only */
  --color-eraser: #DF8F67;    /* Eraser Pink — small accents only */
  --color-ferrule: #BFC0B2;   /* Ferrule Gray — hairlines, dividers */

  --font-heading: 'Montserrat', 'Arial Black', sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --container: 1080px;
  --container-narrow: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
}

em { font-style: normal; font-weight: 600; }

.section { padding: 88px 0; }
.section-cream { background: var(--color-bg); }

/* Section label (all-caps per brand rules) */
.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26, 26, 26, 0.18); }
.btn-cream { background: var(--color-bg); color: var(--color-primary); }
.btn-green { background: var(--color-primary); color: var(--color-bg); }

/* ============ Section 1 — Hero ============ */
.hero {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 72px 0 96px;
  text-align: center;
}

.logo-lockup {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}
/* The production PNG carries its own Paper Cream ground; round it into a nameplate */
.logo-img {
  width: 340px;
  max-width: 85vw;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero h1 {
  color: var(--color-bg);
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 880px;
  margin: 0 auto 24px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: 0.95;
}
.hero-pricenote {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--color-wood);
}

/* ============ Section 2 / 2b ============ */
.section-cream h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 20px;
}
.section-cream .narrow p { font-size: 1.1rem; }

.section-band { border-top: 1px solid var(--color-ferrule); border-bottom: 1px solid var(--color-ferrule); }

.trust-line {
  margin-top: 24px;
  font-size: 0.9rem !important;
  color: rgba(26, 26, 26, 0.72);
  border-left: 3px solid var(--color-wood);
  padding-left: 14px;
}

/* ============ Section 2c — See a Sample ============ */
.section-samples { text-align: center; }
.section-samples h2 { margin-bottom: 14px; }

.sample-callout {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-primary);
  margin: 22px 0 26px;
  padding: 12px 18px;
  display: inline-block;
  border: 1px solid var(--color-ferrule);
  border-left: 4px solid var(--color-eraser);
  border-radius: 6px;
  background: #FFFDF6;
}

.sample-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sample-buttons .btn { font-size: 0.92rem; padding: 14px 24px; }

.sample-caption {
  font-size: 0.85rem !important;
  color: rgba(26, 26, 26, 0.66);
}

/* ============ Section 3 — Pricing ============ */
.section-pricing { background: var(--color-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.card {
  background: #FFFDF6;
  border: 1px solid var(--color-ferrule);
  border-radius: 10px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(29, 73, 51, 0.28);
}
.card-featured .card-name,
.card-featured .card-price { color: var(--color-bg); }
.card-featured .card-turnaround { color: var(--color-wood); }

.card-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-wood);
  margin-bottom: 14px;
}

.card-name {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card-tagline { font-size: 0.98rem; margin-bottom: 20px; opacity: 0.92; }

.card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.94rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 3px;
  background: var(--color-eraser);
  border-radius: 2px;
}

/* Price and turnaround always appear together (Pillar 3) */
.card-turnaround {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 22px;
}

.card .btn { text-align: center; font-size: 0.92rem; padding: 14px 20px; }

.retainer-line {
  margin-top: 48px;
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
}
.retainer-line strong { font-style: normal; color: var(--color-primary); }
.retainer-link { text-decoration: none; }
.retainer-link:hover strong { text-decoration: underline; }

.terms-line {
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.66);
}

/* ============ Section 4 — How It Works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step { text-align: left; }
.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--color-eraser);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.96rem; }

/* ============ Section 5 — Anchor ============ */
.section-anchor {
  background: var(--color-primary);
  text-align: center;
  padding: 100px 0;
}
.anchor-statement {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  color: var(--color-bg);
}

/* ============ Section 6 — Final CTA ============ */
.section-cta { text-align: center; }
.cta-tagline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 32px;
}
.contact-line { margin-top: 28px; font-size: 1rem; }
.contact-line a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

/* ============ Footer ============ */
.footer {
  background: var(--color-ink);
  color: rgba(246, 236, 207, 0.75);
  padding: 40px 0;
  font-size: 0.82rem;
  text-align: center;
}
.footer-copy { margin-top: 16px; opacity: 0.6; }

/* ============ Order + confirmation pages ============ */
.pagebar {
  background: var(--color-primary);
  padding: 18px 0;
}
.pagebar-home { display: inline-block; line-height: 0; }
.pagebar-logo { width: 180px; height: auto; border-radius: 8px; }

.order-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}
.order-intro { font-size: 1.05rem; margin-bottom: 40px; }

#order-form fieldset {
  border: 1px solid var(--color-ferrule);
  border-radius: 10px;
  background: #FFFDF6;
  padding: 26px 26px 18px;
  margin-bottom: 26px;
}
#order-form legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 0 10px;
}

.tier-picker { display: flex; flex-direction: column; gap: 10px; }
.tier-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--color-ferrule);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
}
.tier-option:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(29, 73, 51, 0.06);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.tier-option input { accent-color: var(--color-primary); }

.field { display: block; margin-bottom: 18px; }
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field-label em { color: var(--color-eraser); font-weight: 700; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-ferrule);
  border-radius: 6px;
  padding: 11px 12px;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
  border-color: var(--color-primary);
}
.field input[type="file"] { font-size: 0.88rem; }

.docs-note { font-size: 0.9rem; color: rgba(26, 26, 26, 0.72); margin-bottom: 18px; }
.field-hint { font-size: 0.8rem; color: rgba(26, 26, 26, 0.6); margin-top: 4px; }

.submit-row { text-align: center; padding: 10px 0 30px; }
.submit-row .btn { font-size: 1.05rem; padding: 16px 44px; }
.submit-note {
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}
.form-error {
  margin-top: 16px;
  color: #8C3B1F;
  background: rgba(223, 143, 103, 0.18);
  border: 1px solid var(--color-eraser);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.92rem;
}

.thanks-wrap { text-align: center; }
.thanks-order {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 30px;
}
.thanks-card {
  background: #FFFDF6;
  border: 1px solid var(--color-ferrule);
  border-radius: 10px;
  padding: 34px 28px;
  margin-bottom: 40px;
}
.thanks-tier {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.thanks-rules { text-align: left; max-width: 560px; margin: 0 auto; }
.thanks-rules h2 { font-size: 1.2rem; margin-bottom: 14px; }
.thanks-rules ul { list-style: none; }
.thanks-rules li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 0.96rem;
}
.thanks-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 3px;
  background: var(--color-eraser);
  border-radius: 2px;
}
.thanks-contact { margin-top: 18px; font-size: 0.95rem; }
.thanks-contact a { color: var(--color-primary); font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .section { padding: 64px 0; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .card-featured { transform: none; }
  /* Keep "Most Popular" first in the eye on mobile via order */
  .pricing-grid .card-featured { order: -1; }

  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
