/* WriteSage shared stylesheet. Used by every page. */
/* =========================================================
   WriteSage — Manuscript Evaluation
   Editorial scholarly aesthetic
   ========================================================= */

:root {
  /* Palette */
  --cream: #F4EFE6;
  --cream-deep: #ECE4D2;
  --paper: #FFFCF5;
  --ink: #1A1F2E;
  --ink-soft: #3A4154;
  --ink-mute: #6B7080;
  --burgundy: #6B1E1A;
  --burgundy-deep: #4F1614;
  --gold: #B8893B;
  --gold-deep: #8E6726;
  --rule: rgba(26, 31, 46, 0.12);
  --shadow: rgba(26, 31, 46, 0.08);

  /* Type */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', 'Source Serif Pro', Georgia, serif;
  --font-ui: 'Crimson Pro', Georgia, serif;

  /* Sizing */
  --container: 1180px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184, 137, 59, 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107, 30, 26, 0.03), transparent 50%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Typography
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1.display {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
}

h2.display {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

p { margin-bottom: 1rem; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 1.2rem;
}

.eyebrow-light { color: var(--gold); }

.eyebrow.centered {
  text-align: center;
  display: block;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

a { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn-cream:hover { background: var(--paper); }

.btn-pill {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.5em 1.2em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.btn-pill:hover { background: var(--burgundy); color: var(--paper); }

.btn-block { width: 100%; }

/* =========================================================
   Utility bar
   ========================================================= */
.utility-bar {
  background: var(--ink);
  color: var(--cream);
  padding: 0.55em 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.7);
}

.utility-back {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
}
.utility-back:hover { color: var(--gold); }

.utility-controls {
  display: flex;
  gap: 0.5rem;
}

.utility-select {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.25);
  padding: 0.3em 0.7em;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
}

.utility-select option {
  background: var(--ink);
  color: var(--cream);
}

/* =========================================================
   Masthead
   ========================================================= */
.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244, 239, 230, 0.92);
}

.masthead-order { position: static; }

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-footer .brand-name { color: var(--cream); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
}

.primary-nav a:not(.btn-pill):hover {
  color: var(--burgundy);
}

@media (max-width: 720px) {
  .primary-nav a:not(.btn-pill) { display: none; }
  .primary-nav { gap: 0; }
  .masthead-inner { justify-content: space-between; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='0.8' fill='%23000' opacity='0.04'/></svg>");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-text { animation: rise 800ms ease-out both; }

.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text .lede { margin-bottom: 2.2rem; max-width: 36em; }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.hero-meta {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}

.hero-meta li::before {
  content: '✦ ';
  color: var(--gold);
}

.hero-art {
  animation: rise 1000ms ease-out 200ms both;
}

.hero-illustration {
  width: 100%;
  height: auto;
  max-height: 520px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .hero { padding: 3rem 0 2rem; }
}

/* =========================================================
   Section helpers
   ========================================================= */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 720px) { .section { padding: 3.5rem 0; } }

.section-cream { background: var(--cream); }
.section-cream + .section-cream { padding-top: 0; }

.section-ink {
  background: var(--ink);
  color: var(--cream);
}

.section-ink h3, .section-ink h4 { color: var(--cream); }
.section-ink p { color: rgba(244, 239, 230, 0.85); }

.section-burgundy {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-light { color: var(--cream); }

/* =========================================================
   Evaluate grid (six dimensions)
   ========================================================= */
.evaluate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.evaluate-card {
  background: var(--paper);
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.evaluate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.evaluate-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.evaluate-card h3 {
  margin-bottom: 0.7rem;
  color: var(--ink);
}

.evaluate-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 880px) {
  .evaluate-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}
@media (max-width: 600px) {
  .evaluate-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Process list
   ========================================================= */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.6rem;
}

.process-list h3 { margin-bottom: 0.6rem; }
.process-list p { font-size: 0.98rem; }

@media (max-width: 880px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Pricing grid
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2.4rem 2rem;
  text-align: center;
  border-radius: 2px;
  position: relative;
}

.pricing-card-feature {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: scale(1.04);
}

.pricing-card-feature h3,
.pricing-card-feature .pricing-time,
.pricing-card-feature .pricing-rate,
.pricing-card-feature .pricing-min {
  color: var(--cream);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.pricing-time {
  color: var(--burgundy);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.pricing-card-feature .pricing-time { color: var(--gold); }

.pricing-rate {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.rate-num::before { content: ''; }

.rate-unit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-mute);
  display: block;
  font-style: italic;
}

.pricing-card-feature .rate-unit { color: rgba(244, 239, 230, 0.7); }

.pricing-min {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: 0;
}

.pricing-cta { text-align: center; }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-feature { transform: none; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 760px; margin: 2.5rem auto 0; }

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--burgundy);
  font-weight: 400;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta { max-width: 720px; margin: 0 auto; }

.final-cta-title {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.final-cta-text {
  color: rgba(244, 239, 230, 0.85);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-ui);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(244, 239, 230, 0.8);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

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

.footer-tag {
  color: rgba(244, 239, 230, 0.7);
  font-size: 0.92rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(244, 239, 230, 0.6);
}

.footer-condensed { padding: 2rem 0 1.5rem; }
.footer-condensed .footer-bottom { border: none; padding: 0; }
.footer-condensed a { color: rgba(244, 239, 230, 0.7); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

/* =========================================================
   Order page
   ========================================================= */
.page-order { background: var(--paper); }

.order-hero {
  background: var(--cream);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.order-title { margin-bottom: 1rem; }
.order-lede { max-width: 42em; }

.order-section { padding: 3rem 0 5rem; }

.order-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-fieldset {
  border: 1px solid var(--rule);
  padding: 2rem;
  border-radius: 2px;
  background: var(--paper);
}

.form-fieldset legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0 0.8rem;
  color: var(--ink);
  background: var(--paper);
}

.form-fieldset-agree {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-color: var(--gold);
}

.form-row { margin-bottom: 1.4rem; }
.form-row:last-child { margin-bottom: 0; }

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 30, 26, 0.1);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%231A1F2E' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  padding-right: 2.4em;
}

.form-help {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* Turnaround radio cards */
.turnaround-options,
.delivery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.turnaround-option,
.delivery-option {
  position: relative;
  cursor: pointer;
}

.turnaround-option input[type="radio"],
.delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.turnaround-card,
.delivery-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 1.2rem 1rem;
  text-align: center;
  border-radius: 2px;
  transition: all 150ms ease;
  height: 100%;
}

.turnaround-option input:checked + .turnaround-card,
.delivery-option input:checked + .delivery-card {
  border-color: var(--burgundy);
  background: rgba(107, 30, 26, 0.04);
  box-shadow: 0 4px 12px rgba(107, 30, 26, 0.08);
}

.turnaround-card h4,
.delivery-card h4 {
  margin-bottom: 0.3rem;
}

.turnaround-card p,
.delivery-card p {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin-bottom: 0;
}

.turnaround-mult {
  margin-top: 0.5rem !important;
  font-style: italic;
  color: var(--gold) !important;
  font-size: 0.85rem !important;
}

.delivery-icon {
  width: 32px;
  height: 32px;
  color: var(--burgundy);
  margin: 0 auto 0.6rem;
  display: block;
}

@media (max-width: 720px) {
  .turnaround-options,
  .delivery-options { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .form-fieldset { padding: 1.2rem; }
}

/* Click-to-agree */
.agree-row {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--rule);
  cursor: pointer;
}

.agree-row:last-child { border-bottom: none; }

.agree-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--burgundy);
}

.agree-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.agree-text a {
  font-weight: 500;
  color: var(--burgundy);
}

.form-error {
  background: rgba(107, 30, 26, 0.08);
  border: 1px solid var(--burgundy);
  color: var(--burgundy-deep);
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
}

/* Quote summary */
.quote-summary {
  position: sticky;
  top: 1.5rem;
}

.quote-inner {
  background: var(--ink);
  color: var(--cream);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 8px 32px var(--shadow);
}

.quote-eyebrow {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.quote-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
  color: var(--cream);
}

.quote-currency-symbol { color: var(--gold); }

.quote-currency-code {
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.7);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-breakdown {
  list-style: none;
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  border-bottom: 1px solid rgba(244, 239, 230, 0.15);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.quote-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: rgba(244, 239, 230, 0.85);
}

.quote-breakdown li span:last-child {
  color: var(--cream);
  font-weight: 500;
}

.quote-note {
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.6);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.payment-marks {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.payment-mark {
  background: var(--cream);
  color: var(--ink);
  padding: 0.25em 0.6em;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.payment-mark-apple { background: #fff; }
.payment-mark-google { background: #fff; color: #4285F4; }

.quote-secure {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(244, 239, 230, 0.7);
  margin: 1rem 0 0;
}

@media (max-width: 880px) {
  .quote-summary { position: static; }
  .quote-amount { font-size: 2.6rem; }
}

/* =========================================================
   Success page
   ========================================================= */
.page-success { background: var(--paper); }

.success-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
}

.success-mark svg { width: 100%; height: 100%; }

.success-hero .lede {
  max-width: 36em;
  margin: 1rem auto 2rem;
}

.success-ref {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px dashed var(--burgundy);
  padding: 0.8rem 1.4rem;
  border-radius: 2px;
}

.success-ref-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--burgundy);
  font-weight: 600;
}

.success-ref-value {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.ref-copy-btn {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.4em 0.9em;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  cursor: pointer;
}

.ref-copy-btn:hover { background: var(--burgundy); }

.delivery-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.delivery-channel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 240ms ease;
}

.delivery-channel:hover {
  border-color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.channel-icon {
  width: 56px;
  height: 56px;
  background: rgba(107, 30, 26, 0.08);
  color: var(--burgundy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.channel-icon svg { width: 28px; height: 28px; }

.delivery-channel h3 { margin-bottom: 0.6rem; }

.delivery-channel p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.channel-hint {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.channel-hint code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--cream);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--ink);
}

.success-checklist {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.6rem 2rem;
  margin: 2rem 0;
}

.success-checklist h3 { margin-bottom: 1rem; }
.success-checklist ul { padding-left: 1.4rem; }
.success-checklist li { margin-bottom: 0.4rem; color: var(--ink-soft); }

.success-receipt {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.success-receipt p { margin-bottom: 1.5rem; color: var(--ink-soft); }

@media (max-width: 880px) {
  .delivery-channels { grid-template-columns: 1fr; }
}

/* =========================================================
   Cancel page
   ========================================================= */
.cancel-section { min-height: 60vh; display: flex; align-items: center; }
.cancel-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cancel-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-page {
  max-width: 760px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.legal-page .subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.legal-page p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  padding-left: 1.6rem;
}

.legal-page li { margin-bottom: 0.5rem; }

.legal-notice {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .utility-bar, .masthead, .footer, .quote-summary, .hero-art { display: none; }
  body { background: white; color: black; }
  .legal-page { border: none; padding: 0; }
}

/* =========================================================
   Box upload card (success page)
   ========================================================= */
.box-upload-wrap {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}
.box-upload-card {
  max-width: 480px;
  width: 100%;
}
.success-return-report {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* =========================================================
   Home page additions
   ========================================================= */
.brand-footer { color: var(--cream); }
.brand-footer .brand-mark { color: var(--cream); }
.footer .brand-footer { margin-bottom: 0.4rem; }

.section-deep { background: var(--cream-deep); }
.section-ink .process-list li { border-top-color: var(--gold); }
.section-ink .process-list p { max-width: 30em; }

.pricing-note {
  max-width: 40em;
  margin: 0 auto 1.8rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

.hero-art figure { margin: 0; }

/* Specificity fixes: .primary-nav a and h2.display were overriding these */
.primary-nav .btn-pill,
.primary-nav .btn-pill:hover { color: var(--paper); }
h2.display.section-title { margin-bottom: 3rem; }
h2.display.final-cta-title { margin-bottom: 1.5rem; }

@media (max-width: 720px) {
  .masthead-inner { gap: 1rem; }
  .primary-nav .btn-pill { white-space: nowrap; font-size: 0.85rem; padding: 0.45em 1em; }
  .brand-name { font-size: 1.4rem; }
  .utility-tag { font-size: 0.68rem; letter-spacing: 0.08em; }
}

/* Checkout button: the default dark button vanished against the dark quote panel */
.quote-inner .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.quote-inner .btn-primary:hover:not(:disabled) {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.quote-inner .btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* =========================================================
   Accessibility and polish
   ========================================================= */
[id] { scroll-margin-top: 5.5rem; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text, .hero-art { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* =========================================================
   Under construction
   ========================================================= */
.construction-banner {
  position: relative;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6em 0 0.7em;
  font-family: var(--font-ui);
  text-align: center;
}
.construction-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--ink) 0 8px, var(--gold) 8px 16px);
  opacity: 0.55;
}
.construction-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.construction-banner strong {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-right: 0.6em;
}
.construction-banner strong::before { content: '✦ '; }

/* Disabled "opening soon" pill in the navigation */
.btn-pill-soon,
.primary-nav .btn-pill-soon {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  cursor: default;
  white-space: nowrap;
}
.btn-pill-soon:hover { background: transparent; color: var(--burgundy); }

/* Disabled button used where a call to action used to be */
.btn-disabled,
.btn-disabled:hover {
  background: transparent;
  color: var(--ink-mute);
  border: 1px dashed var(--ink-mute);
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Notice card (home hero + construction pages) */
.construction-notice {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  padding: 1.4rem 1.6rem 1.5rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 6px 18px var(--shadow);
  max-width: 36em;
}
.construction-notice h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.construction-notice p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.construction-notice .hero-ctas { margin-bottom: 0; }

/* Stamp laid across the hero manuscript */
.hero-stamp { transform-origin: 240px 250px; }

/* Construction pages (order / success / cancel) */
.soon-section { padding: 4rem 0 5rem; }
.soon-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.soon-inner .lede { margin: 1.2rem auto 0; }
.soon-mark {
  width: 76px; height: 76px;
  margin: 0 auto 1.6rem;
  color: var(--gold-deep);
}
.soon-mark svg { width: 100%; height: 100%; }
.soon-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.8rem 2rem;
  margin: 2.4rem auto 0;
  text-align: left;
  box-shadow: 0 6px 18px var(--shadow);
}
.soon-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.soon-panel ul { list-style: none; }
.soon-panel li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
.soon-panel li::before { content: '✦ '; color: var(--gold); }
.soon-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Footer text standing in for a link */
.footer-soon {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* Legal pages: draft notice */
.legal-page .legal-draft {
  margin: -1rem 0 2rem;
  text-align: left;
}

@media (max-width: 720px) {
  .construction-banner strong { display: block; margin: 0 0 0.15em; }
  .soon-panel { padding: 1.4rem 1.2rem; }
  .btn-pill-soon { font-size: 0.85rem; }
}
