/* =========================================================
   Caprae Cold Mail — component layer.
   Builds ON tokens.css (which is copied verbatim, never edited).
   Only adds product components (buttons, forms, cards, faq).
   ========================================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink-0);
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink-0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold-wash); color: var(--gold-bright); }
.btn-lg { font-size: var(--text-md); padding: var(--s-4) var(--s-6); }

/* Hero lede + meta reuse tokens' .doc-hero classes */
.lede { color: var(--text-2); font-size: var(--text-lg); margin-top: var(--s-5); max-width: 56ch; line-height: var(--lh-loose); }

/* CTA strip */
.cta-strip {
  background: var(--gold-wash);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--s-5) 0;
}
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.cta-strip p { color: var(--text); font-family: var(--font-ui); }
.cta-strip b { color: var(--gold); }

/* Formats */
.formats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.format-card h3 { font-size: var(--text-xl); margin-bottom: var(--s-2); }
.format-card .price { font-family: var(--font-mono); color: var(--gold); font-size: var(--text-xl); margin: var(--s-3) 0; }
.format-card .price small { color: var(--text-3); font-size: var(--text-xs); }
.format-card ul { margin: var(--s-3) 0 0; padding-left: var(--s-5); color: var(--text-2); font-size: var(--text-sm); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); counter-reset: step; }
.step { border-top: 1px solid var(--gold); padding-top: var(--s-3); }
.step .n { font-family: var(--font-mono); color: var(--gold); font-size: var(--text-sm); }
.step h4 { font-family: var(--font-ui); font-weight: 600; color: var(--text); font-size: var(--text-base); margin-top: var(--s-2); }

/* Proof stats + benchmark table */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-bottom: var(--s-7); }
.stat .v { font-family: var(--font-display); color: var(--cream); font-size: var(--display-3); }
.stat .k { color: var(--text-3); font-size: var(--text-sm); margin-top: var(--s-2); }
table.benchmark { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.benchmark th, table.benchmark td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule-soft); }
table.benchmark th { color: var(--gold); font-family: var(--font-ui); font-weight: 500; letter-spacing: var(--track-wide); text-transform: uppercase; font-size: 11px; }
table.benchmark td { color: var(--text-2); }

/* FAQ accordion (native details/summary — no JS) */
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; color: var(--text); font-family: var(--font-ui); font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--gold); margin-right: var(--s-3); font-family: var(--font-mono); }
.faq details[open] summary::before { content: "−"; }
.faq p { color: var(--text-2); padding: 0 0 var(--s-4) var(--s-5); max-width: 64ch; }

/* Forms (order page) */
.form-grid { display: grid; gap: var(--s-5); max-width: 640px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--text-sm); color: var(--text); font-family: var(--font-ui); font-weight: 500; }
.field .hint { font-size: var(--text-xs); color: var(--text-3); }
.field input, .field select, .field textarea {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input[type="file"] { padding: var(--s-3); background: var(--ink-1); }

/* Live price readout */
.price-readout {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5);
  background: var(--ink-1); border: 1px solid var(--rule);
}
.price-readout .label { color: var(--text-2); font-size: var(--text-sm); letter-spacing: var(--track-wide); text-transform: uppercase; }
.price-readout #price { font-family: var(--font-mono); color: var(--gold); font-size: var(--text-xl); }

/* Preview banner (T4 static pages) */
.preview-banner {
  background: var(--gold-wash);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-5);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  margin-bottom: var(--s-6);
}
.preview-banner b { color: var(--gold-bright); }

/* Confirmation */
.confirm-card { max-width: 640px; }
.confirm-card .ref { font-family: var(--font-mono); color: var(--gold); font-size: var(--text-xl); }

/* Footer layout */
.doc-foot .container { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; width: 100%; }

/* Checkout / Order-status preview layout (T4) */
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-6); align-items: start; }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--s-4); }
.card h4 { font-family: var(--font-ui); font-weight: 600; color: var(--text); margin-bottom: var(--s-3); }
.kv { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px solid var(--rule-soft); font-size: var(--text-sm); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { color: var(--text); }
.pill-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.pill-tabs .pill { font-size: var(--text-xs); padding: var(--s-2) var(--s-3); border: 1px solid var(--rule); border-radius: var(--r-full); color: var(--text-2); }
.pill-tabs .pill.active { border-color: var(--gold); color: var(--gold); background: var(--gold-wash); }
.consent { display: grid; gap: var(--s-3); }
.consent label { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-2); font-size: var(--text-sm); }
.ol-next { margin: 0; padding-left: var(--s-5); color: var(--text-2); font-size: var(--text-sm); display: grid; gap: var(--s-2); }

/* Status timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline .stage { position: relative; padding: 0 0 var(--s-5) var(--s-6); border-left: 1px solid var(--rule); color: var(--text-2); font-size: var(--text-sm); }
.timeline .stage:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .stage::before { content: ""; position: absolute; left: -5px; top: 2px; width: 9px; height: 9px; border-radius: var(--r-full); background: var(--ink-4); border: 1px solid var(--rule-strong); }
.timeline .stage.done::before { background: var(--gold-deep); border-color: var(--gold-deep); }
.timeline .stage.active::before { background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-wash); }
.timeline .stage.active { color: var(--text); }
.timeline .stage b { color: var(--text); font-family: var(--font-ui); font-weight: 600; }
.timeline .when { display: block; margin-top: var(--s-1); color: var(--text-3); }
.list-plain { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.list-plain li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule-soft); color: var(--text-2); }
.list-plain li:last-child { border-bottom: 0; }

/* Responsive */
@media (max-width: 820px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .formats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .steps, .stats { grid-template-columns: 1fr; }
  .doc-nav-links { gap: var(--s-4); }
}
