:root {
  --brand-bg: #f2eee6;
  --brand-ink: #161412;
  --brand-accent: #6b655d;
  --brand-loud: #ff5a1f;
  --brand-on-loud: #161412;
  --brand-surface: #faf8f3;
  --brand-line: #d6cfc2;
  --brand-dark-bg: #161412;
  --brand-dark-ink: #f2eee6;
  --brand-dark-accent: #b3aca1;
  --brand-dark-surface: #211e1b;
  --brand-dark-line: #3a3530;
  --brand-print-bg: #ffffff;
  --brand-print-ink: #161412;
  --brand-print-accent: #e04e17;
  --brand-print-line: #d7d6d2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --brand-bg: var(--brand-dark-bg); --brand-ink: var(--brand-dark-ink); --brand-accent: var(--brand-dark-accent); --brand-surface: var(--brand-dark-surface); --brand-line: var(--brand-dark-line); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--brand-bg); color: var(--brand-ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea { font: inherit; color: inherit; }
button, .button { cursor: pointer; }
button, .button { border: 1px solid var(--brand-line); border-radius: 6px; padding: 12px 20px; background: var(--brand-surface); min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.4; text-align: center; }
button:hover, .button:hover { border-color: var(--brand-ink); }
button:disabled { opacity: .5; cursor: default; }
.primary { background: var(--brand-loud); color: var(--brand-on-loud); border-color: var(--brand-loud); font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 5px; }
p, h1, h2, h3, dd { margin: 0; overflow-wrap: anywhere; }
h2, h3 { font-weight: 500; line-height: 1.2; }
.page-header { max-width: 1280px; width: 100%; margin: 0 auto; padding: 30px 5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; flex-shrink: 0; color: var(--brand-ink); }
.mark { width: 34px; height: 34px; fill: currentColor; }
.brand { font-size: 26px; font-weight: 650; letter-spacing: -.055em; }
.agency { font-size: 13px; margin-left: 5px; }
.header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.language { display: flex; align-items: center; gap: 3px; font-size: 13px; }
.language button { padding: 8px; border: 0; background: none; min-width: 44px; min-height: 44px; font-size: 13px; }
.language [aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; font-weight: 700; }
.quote-main { max-width: 1080px; margin: 30px auto 90px; padding: 0 5%; }
.invoice { background: var(--brand-surface); border: 1px solid var(--brand-line); padding: clamp(24px, 5vw, 64px); }
.invoice-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--brand-line); }
.invoice-top .wordmark { margin-bottom: 25px; }
.invoice #invoice-title { font-size: clamp(32px, 6vw, 54px); font-weight: 500; line-height: 1.2; letter-spacing: -.05em; margin-top: 8px; }
.eyebrow { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-accent); }
.invoice-meta { display: grid; gap: 8px; margin: 0; font-size: 13px; max-width: 100%; }
.invoice-meta div { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 1.6fr); gap: 18px; }
dt { color: var(--brand-accent); }
.invoice-meta dd { text-align: right; font-variant-numeric: tabular-nums; }
.prepared { padding: 34px 0; }
.client-name { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 8px 0; letter-spacing: -.035em; }
.client-contact, .validity { font-size: 14px; color: var(--brand-accent); }
.validity { margin-bottom: 20px; }
.line-items { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.line-items th { font-size: 13px; font-weight: 400; color: var(--brand-accent); text-align: right; padding: 14px 0; border-block: 1px solid var(--brand-line); }
.line-items th:first-child { text-align: left; width: 48%; }
.line-items th:nth-child(2) { width: 10%; }
.line-items th:nth-child(3), .line-items th:nth-child(4) { width: 21%; }
.line-items td { vertical-align: top; text-align: right; padding: 24px 0 24px 16px; border-bottom: 1px solid var(--brand-line); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.line-items td:first-child { text-align: left; padding-left: 0; }
.item-description { font-weight: 600; }
.item-note, .cadence { display: block; font-size: 13px; color: var(--brand-accent); line-height: 1.55; margin-top: 6px; white-space: pre-line; }
.regular-price { display: block; font-size: 13px; color: var(--brand-accent); }
.invoice-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 32px; }
.payment-schedule h3 { font-size: 15px; margin-bottom: 10px; }
.payment-schedule p { font-size: 13px; color: var(--brand-accent); margin-bottom: 14px; }
.total-row { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; padding: 6px 0; }
.total-row strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--brand-line); }
.totals dt { font-size: 14px; }
.totals dd { text-align: right; font-size: 24px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.totals dd span { font-size: 13px; letter-spacing: 0; }
.invoice-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--brand-line); font-size: 13px; color: var(--brand-accent); }
.invoice-footer h3 { font-size: 14px; color: var(--brand-ink); margin: 18px 0 8px; }
.invoice-footer p + p { margin-top: 8px; }
.invoice-footer p { white-space: pre-line; }
.sample-label { border: 1px solid var(--brand-ink); padding: 10px 16px; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 30px; }
.quote-actions { padding: 30px 0; }
.quote-actions h2 { font-size: 22px; margin-bottom: 20px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
#accept-form { margin-top: 30px; max-width: 520px; }
label { display: block; font-size: 14px; margin-bottom: 8px; }
input:not([type="checkbox"]):not([type="radio"]), textarea { width: 100%; min-width: 0; border: 1px solid var(--brand-line); border-radius: 5px; padding: 14px; background: var(--brand-surface); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand-ink); width: 20px; height: 20px; flex-shrink: 0; }
.accept-check { display: flex; align-items: center; gap: 12px; padding: 15px 0; min-height: 48px; margin: 10px 0; cursor: pointer; }
.error { font-size: 14px; font-weight: 500; min-height: 0; }
.error:not(:empty) { padding: 12px 0; }
[aria-invalid="true"] { border-color: var(--brand-ink) !important; outline: 2px solid var(--brand-ink); outline-offset: 2px; }
#accept-success, #remembered-acceptance { margin-top: 24px; }
#remembered-acceptance { font-size: 13px; color: var(--brand-accent); }
.honey, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.plan-picker { padding: 28px 0; margin: 0; border: 0; min-width: 0; }
.plan-picker legend { padding: 28px 0 0; font-size: 22px; letter-spacing: -.035em; }
.plan-picker > p { font-size: 13px; color: var(--brand-accent); margin: 8px 0 20px; }
.plan-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-option { border: 1px solid var(--brand-line); border-radius: 5px; padding: 16px; cursor: pointer; height: 100%; margin: 0; }
.plan-option:has(input:checked) { border-color: var(--brand-ink); outline: 1px solid var(--brand-ink); }
.plan-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 1.4; }
.plan-heading strong { width: 100%; font-size: 22px; font-weight: 500; margin-top: 8px; }
.plan-option ul { padding-left: 17px; font-size: 13px; color: var(--brand-accent); }
.plan-option li + li { margin-top: 8px; }
@media (max-width: 600px) {
  .page-header { padding: 18px 5%; gap: 12px; }
  .quote-main { margin-top: 12px; }
  .invoice { padding: 24px 20px; }
  .invoice-top { gap: 24px; padding-bottom: 24px; }
  .invoice-meta { width: 100%; }
  .invoice-meta div { grid-template-columns: 1fr 2fr; }
  .line-items, .line-items tbody { display: block; }
  .line-items thead { display: none; }
  .line-items tr { display: block; border-top: 1px solid var(--brand-line); padding: 20px 0; }
  .line-items td { display: flex; justify-content: space-between; gap: 18px; text-align: right; padding: 6px 0; border: 0; }
  .line-items td:first-child { display: block; padding: 0 0 12px; }
  .line-items td:not(:first-child)::before { content: attr(data-label-en); color: var(--brand-accent); text-align: left; flex-shrink: 0; }
  html[lang="es"] .line-items td:not(:first-child)::before { content: attr(data-label-es); }
  .line-items td:last-child { flex-wrap: wrap; }
  .line-items .cadence { flex-basis: 100%; margin: 0; }
  .invoice-bottom { grid-template-columns: 1fr; gap: 25px; border-top: 1px solid var(--brand-line); }
  .payment-schedule { order: 2; }
  .plan-options { grid-template-columns: 1fr; }
  .plan-heading strong { width: auto; margin: 0 0 0 auto; font-size: 19px; }
  .plan-option { padding: 20px; }
}
@page { size: Letter; margin: .5in; }
@media print {
  :root { color-scheme: light; --brand-bg: var(--brand-print-bg); --brand-surface: var(--brand-print-bg); --brand-ink: var(--brand-print-ink); --brand-accent: var(--brand-print-accent); --brand-line: var(--brand-print-line); }
  body { background: var(--brand-bg); font-size: 10pt; }
  body > .page-header, .quote-actions, noscript { display: none !important; }
  .quote-main { max-width: none; margin: 0; padding: 0; }
  .invoice { padding: 0; border: 0; }
  .invoice #invoice-title { font-size: 30pt; }
  .invoice-top { padding-bottom: 20px; break-inside: avoid; }
  .invoice-meta { font-size: 9pt; }
  .prepared { padding: 20px 0; }
  .line-items { display: table; font-size: 10pt; }
  .line-items thead { display: table-header-group; }
  .line-items tbody { display: table-row-group; }
  .line-items tr { display: table-row; break-inside: avoid; }
  .line-items td, .line-items td:first-child, .line-items td:last-child { display: table-cell; border-bottom: 1px solid var(--brand-line); padding: 15px 0 15px 12px; }
  .line-items td:first-child { padding-left: 0; }
  .line-items td::before { display: none; }
  .invoice-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; break-inside: avoid; }
  .payment-schedule { order: 0; }
  .invoice-footer { break-inside: avoid; }
  .sample-label { margin-bottom: 20px; }
  a { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
