/* ============================================================
   VOLKRON Peps × Webcraft Studio - Digital Marketing Proposal
   Palette drawn from volkron.io: charcoal ink, champagne gold,
   warm ivory paper. Sharp 3px corners throughout.
   ============================================================ */

:root {
  --ink: #1C1C1C;
  --ink-soft: #3A3A3A;
  --body: #4E4A44;
  --muted: #857F74;
  --gold: #B88A42;
  --gold-deep: #8B6A2E;
  --gold-light: #F0D8A8;
  --cream: #F8E8D8;
  --paper: #FCFBF8;
  --paper-alt: #F6F2EA;
  --desk: #E9E4DB;
  --line: rgba(184, 138, 66, 0.28);
  --line-soft: rgba(184, 138, 66, 0.16);
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Inter', Arial, sans-serif;
  --font-label: 'Montserrat', Arial, sans-serif;
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Toolbar ---------- */
.doc-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 28, 28, 0.96);
  border-bottom: 1px solid rgba(184, 138, 66, 0.35);
}
.doc-toolbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.toolbar-label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1C1408;
  background: linear-gradient(135deg, #F0D8A8 0%, #D4B078 45%, #B88A42 100%);
  border: 1px solid rgba(184, 138, 66, 0.5);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-print:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Document ---------- */
.doc {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.page {
  background: var(--paper);
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(40, 32, 18, 0.07), 0 14px 40px rgba(40, 32, 18, 0.09);
  display: flex;
  flex-direction: column;
  min-height: 1080px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.page-head-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.page-head-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.page-head-brand span {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.page-head-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.page-body {
  flex: 1;
  padding: 2.5rem 2.5rem 2rem;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 2.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Typography ---------- */
.doc-ref {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.cover-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cover-title .times { color: var(--gold); font-weight: 500; padding: 0 0.1em; }
.cover-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--gold-deep);
  margin-top: 0.6rem;
}
.gold-rule {
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), transparent);
  border-radius: 2px;
  margin: 1.5rem 0;
}
.gold-rule.short { width: 56px; }

.section-label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sub-heading, .block-heading {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2rem 0 0.9rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold);
}
.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.body-text { margin-bottom: 1rem; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Cover layout ---------- */
.cover-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}
.cover-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(40, 32, 18, 0.12);
}
.cover-photo img {
  width: 100%;
  aspect-ratio: 731 / 1300;
  object-fit: cover;
  object-position: center;
}
.cover-photo figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.66rem;
  line-height: 1.5;
  color: var(--muted);
  background: var(--paper-alt);
  border-top: 1px solid var(--line-soft);
  font-style: italic;
}
.at-a-glance {
  margin-top: 1.25rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.at-a-glance h3 {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}
.at-a-glance dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.at-a-glance dl div:last-of-type { border-bottom: none; }
.at-a-glance dt {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}
.at-a-glance dd {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
.at-a-glance div.highlight {
  background: rgba(184, 138, 66, 0.08);
  margin: 0 -0.5rem;
  padding: 0.4rem 0.5rem;
  border-bottom: none;
}
.at-a-glance div.highlight dd { color: var(--gold-deep); }
.jump-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.jump-link:hover { color: var(--ink); }

/* ---------- Objectives ---------- */
.objective-list { list-style: none; margin-top: 0.25rem; }
.objective-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.objective-list li:last-child { border-bottom: none; }
.obj-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.objective-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 0.86rem;
}
.data-table th {
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 1.1rem;
}
.data-table th.num, .data-table td.num { text-align: right; }
.data-table td {
  padding: 0.68rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.best-value-row td {
  background: rgba(184, 138, 66, 0.12);
  font-weight: 600;
}

.value-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}

.pricing-table tfoot td {
  background: rgba(184, 138, 66, 0.1);
  border-top: 2px solid var(--gold);
  font-weight: 700;
  color: var(--ink);
  padding: 0.8rem 1.1rem;
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 14px rgba(184, 138, 66, 0.12);
}
.pillar h4 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.pillar h4 span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}
.pillar p { font-size: 0.8rem; line-height: 1.55; color: var(--body); }
.pillar:last-child { grid-column: 1 / -1; }

/* ---------- Check lists ---------- */
.check-list { list-style: none; margin: 0.5rem 0 1.1rem; }
.check-list li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: rotate(45deg);
}
.check-list.cols {
  columns: 2;
  column-gap: 2.5rem;
}
.check-list.cols li { break-inside: avoid; }

/* ---------- Two column blocks ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.25rem;
}
.two-col .col-block > .block-heading:first-child { margin-top: 0; }
.two-col .col-block > .body-text:last-child { margin-bottom: 0; }

/* ---------- Notes & callouts ---------- */
.note-box {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.75rem;
}
.note-box h4 {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.45rem;
}
.note-box p { font-size: 0.84rem; line-height: 1.6; color: var(--ink-soft); }
.note-box strong { color: var(--ink); font-weight: 600; }
.callout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.callout-row .note-box { margin-top: 0; }
.note-box.honesty {
  background: rgba(184, 138, 66, 0.07);
  border-left-color: var(--ink);
}

/* ---------- Bundle card ---------- */
.bundle-card {
  margin: 1.75rem 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #FDF9F0 0%, #FAF4E8 100%);
  box-shadow: 0 6px 28px rgba(184, 138, 66, 0.16);
  overflow: hidden;
}
.bundle-left {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: rgba(184, 138, 66, 0.06);
}
.bundle-eyebrow {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.bundle-price { color: var(--ink); line-height: 1; }
.bundle-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
}
.bundle-price .per {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.4rem;
}
.bundle-savings {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.bundle-savings strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.bundle-right {
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bundle-right > p:first-child { font-size: 0.88rem; color: var(--ink-soft); }
.bundle-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 0.9rem 0;
}
.bundle-footnote { font-size: 0.7rem; color: var(--muted); font-style: italic; }

/* ---------- Terms & next steps ---------- */
.terms-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.terms-list { list-style: none; }
.terms-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.3rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.terms-list li:last-child { border-bottom: none; }
.terms-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.steps-list { margin-left: 1.2rem; }
.steps-list li {
  padding: 0.35rem 0 0.35rem 0.35rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.steps-list li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}
.steps-list strong { color: var(--ink); }

/* ---------- Closing & signatures ---------- */
.closing-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.closing-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46rem;
}
.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.25rem;
  max-width: 40rem;
}
.sig-line { border-bottom: 1.5px solid var(--ink); height: 2rem; }
.sig-name {
  margin-top: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.sig-sub { margin-top: 0.2rem; font-size: 0.74rem; color: var(--muted); }

/* ---------- Subtle entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .page { animation: page-in 0.5s ease both; }
  .page:nth-child(2) { animation-delay: 0.05s; }
  .page:nth-child(3) { animation-delay: 0.1s; }
  .page:nth-child(4) { animation-delay: 0.15s; }
  .page:nth-child(5) { animation-delay: 0.2s; }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .page { min-height: 0; }
  .page-head, .page-body, .page-foot { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cover-layout { grid-template-columns: 1fr; }
  .cover-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
  .at-a-glance { margin-top: 0; }
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .callout-row { grid-template-columns: 1fr; gap: 1rem; }
  .bundle-card { grid-template-columns: 1fr; }
  .bundle-left { border-right: none; border-bottom: 1px solid var(--line); }
  .terms-next { grid-template-columns: 1fr; gap: 1rem; }
  .check-list.cols { columns: 1; }
  .pillar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .doc { padding: 1.25rem 0.75rem 2.5rem; gap: 1.5rem; }
  .page-head, .page-body, .page-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .page-body { padding-top: 1.75rem; }
  .cover-aside { grid-template-columns: 1fr; }
  .signature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .doc-toolbar-inner { padding: 0.6rem 1rem; }
  .toolbar-label { font-size: 0.6rem; }
  .bundle-price .amount { font-size: 2.5rem; }
}

/* ============================================================
   PRINT STYLESHEET - clean letter output, one section per page
   ============================================================ */
@page {
  size: letter;
  margin: 0.55in;
}

@media print {
  :root { --desk: #FFFFFF; }
  body { background: #FFFFFF; font-size: 11.5px; }
  .doc-toolbar { display: none !important; }
  .doc { max-width: none; padding: 0; margin: 0; gap: 0; }
  .page {
    min-height: 0;
    box-shadow: none;
    border: none;
    border-top: 2px solid var(--gold);
    border-radius: 0;
    page-break-after: always;
    break-after: page;
    animation: none !important;
  }
  .page:last-child { page-break-after: auto; break-after: auto; }
  .page-head, .page-body, .page-foot { padding: 0.4rem 0; }
  .page-head { border-bottom: 1px solid var(--line-soft); margin-bottom: 1rem; }
  .page-foot { border-top: 1px solid var(--line-soft); margin-top: 1rem; }
  .page-body { padding-top: 0.75rem; }
  .section-title { font-size: 20pt; }
  .cover-title { font-size: 26pt; }
  .lead, .body-text, .check-list li, .terms-list li, .steps-list li, .pillar p, .note-box p { font-size: 9.5pt; }
  .data-table { font-size: 9pt; page-break-inside: avoid; }
  .data-table tr, .check-list.cols li, .objective-list li, .pillar { page-break-inside: avoid; }
  .pillar-grid, .two-col, .terms-next, .callout-row, .signature-row, .cover-aside { page-break-inside: avoid; }
  .bundle-card, .note-box, .at-a-glance, .closing-block { page-break-inside: avoid; }
  .check-list.cols { columns: 2; }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .jump-link { display: none; }
  .cover-photo img { aspect-ratio: 731 / 1300; max-height: 3.2in; width: auto; max-width: 100%; margin: 0 auto; }
}
