/* ============================================================
   MILC — Bulk & Clinic Pricing page
   Builds on css/milc.css tokens.
   ============================================================ */

body { background: #FCFBF9; }

/* Gold "Get in Touch" CTA in nav (matches home) */
.nav-cta-link {
  margin-left: var(--s2);
  background: var(--gold); color: var(--plum) !important;
  border: 0 !important; border-radius: 999px; padding: 9px 20px !important;
  font-weight: 700; font-size: .8rem; letter-spacing: .03em; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta-link:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* ---- Page head: book cover beside the title ---- */
.ph-head .wrap { display: grid; grid-template-columns: 1.5fr .9fr; gap: var(--s8); align-items: center; }
.ph-head .head-copy .lead { color: var(--on-plum-dim); max-width: 46ch; }
.ph-head .head-meta {
  display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s5);
}
.head-cover { display: flex; justify-content: center; }
.head-cover img {
  width: 230px; border-radius: 4px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.6);
  transform: rotate(2deg);
}
@media (max-width: 900px) {
  .ph-head .wrap { grid-template-columns: 1fr; }
  .head-cover { order: -1; }
  .head-cover img { width: 180px; }
}

/* ============================================================
   PRICING TIERS
   ============================================================ */
.pricing { padding-block: var(--s12); }
.pricing .lede {
  max-width: 60ch; margin: 0 auto var(--s8); text-align: center;
  font-size: 1.08rem; color: var(--ink-soft);
}
.tier-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2);
  align-items: stretch;
}
.tier {
  background: #fff; border: 1px solid rgba(74,25,66,.1);
  border-radius: var(--r-soft); padding: var(--s4) var(--s3);
  text-align: center; display: flex; flex-direction: column; gap: var(--s2);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tier:hover { transform: translateY(-6px); border-color: rgba(201,168,76,.6);
  box-shadow: 0 4px 6px rgba(74,25,66,.05), 0 30px 56px -30px rgba(74,25,66,.45); }
.tier-qty {
  font-family: var(--sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rose); margin: 0;
}
.tier-price {
  font-family: var(--serif); font-weight: 700; font-size: 2.4rem;
  color: var(--plum); line-height: 1; margin: var(--s1) 0 0;
}
.tier-price.small { font-size: 1.35rem; line-height: 1.2; align-self: center; margin-top: var(--s3); }
.tier-price span { font-family: var(--sans); font-weight: 600; font-size: .8rem; color: var(--ink-soft); display: block; margin-top: 6px; letter-spacing: .02em; }
.tier-save {
  margin-top: auto; align-self: center;
  font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .06em; padding: 6px 14px; border-radius: 999px;
  background: rgba(201,168,76,.16); color: #8a6d1f;
}
.tier-save.muted { background: rgba(74,25,66,.07); color: var(--ink-soft); }
/* featured tier */
.tier.featured { background: var(--plum); border-color: var(--plum); }
.tier.featured .tier-qty { color: var(--gold-soft); }
.tier.featured .tier-price { color: #fff; }
.tier.featured .tier-price span { color: var(--on-plum-dim); }
.tier.featured .tier-save { background: var(--gold); color: var(--plum); }
.tier .tier-flag {
  font-family: var(--sans); font-weight: 700; font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-soft); margin: 0 0 -4px;
  min-height: .7rem;
}
.tier .tier-flag:empty { visibility: hidden; }

.cobrand-note {
  text-align: center; margin-top: var(--s5);
  font-family: var(--serif-accent); font-style: italic; font-size: 1.18rem; color: var(--plum);
}
.cobrand-note .star { color: var(--gold); font-style: normal; }

@media (max-width: 1000px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tier-grid { grid-template-columns: 1fr; } }

/* ============================================================
   VALUE / POSITIONING TABLES
   ============================================================ */
.value .wrap { max-width: 1000px; }
.value .h2 { max-width: 24ch; }
.value p { color: var(--ink-soft); }
.ptable-wrap { overflow-x: auto; margin: var(--s5) 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 540px; }
.ptable caption {
  text-align: left; font-family: var(--sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rose);
  margin-bottom: var(--s2);
}
.ptable th, .ptable td { text-align: left; padding: 13px 16px; border-bottom: 1px solid rgba(74,25,66,.12); }
.ptable thead th {
  background: var(--plum); color: var(--cream); font-family: var(--sans);
  font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}
.ptable thead th:first-child { border-top-left-radius: 10px; }
.ptable thead th:last-child { border-top-right-radius: 10px; }
.ptable tbody tr:nth-child(even) { background: var(--ivory); }
.ptable tbody tr.is-primer { background: rgba(201,168,76,.14); }
.ptable tbody tr.is-primer td { font-weight: 700; color: var(--plum); }
.ptable td .credential { display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 400; }

.callout {
  border-left: 3px solid var(--gold); background: var(--plum-tint);
  padding: var(--s3) var(--s4); border-radius: 0 12px 12px 0;
  font-size: 1.02rem; color: var(--plum); margin: var(--s5) 0 0;
}
.callout .star { color: var(--gold); font-weight: 700; }
.callout strong { color: var(--plum); }

/* ============================================================
   ORDERING PROCESS
   ============================================================ */
.process .wrap { max-width: 920px; }
.steps { display: grid; gap: var(--s5); margin-top: var(--s8); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
.step .n {
  font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1;
  color: var(--gold); width: 2.4ch; text-align: right;
}
.step h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; color: var(--cream); margin: 0 0 6px; }
.step p { font-size: .96rem; color: var(--on-plum-dim); margin: 0; }
.step ul { margin: 8px 0 0; padding-left: 18px; color: var(--on-plum-dim); font-size: .92rem; }
.step ul li { margin-bottom: 3px; }

/* ============================================================
   CO-BRANDING TIERS
   ============================================================ */
.cobrand .cb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s6); }
.cb-card {
  background: #fff; border: 1px solid rgba(74,25,66,.1); border-radius: var(--r-soft);
  padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2);
  box-shadow: var(--shadow-card);
}
.cb-card .cb-name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--plum); }
.cb-card .cb-qty { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.cb-card p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.cb-card .cb-fee { margin-top: auto; padding-top: var(--s2); font-family: var(--serif-accent); font-style: italic; font-size: 1.05rem; color: var(--plum); }
.cb-needs { margin-top: var(--s8); }
.cb-needs h3 { margin-bottom: var(--s2); }
.cb-needs ul { columns: 2; column-gap: var(--s8); padding-left: 18px; color: var(--ink-soft); max-width: 860px; }
.cb-needs ul li { margin-bottom: 8px; break-inside: avoid; }
.cb-control { margin-top: var(--s4); font-size: .92rem; color: var(--ink-soft); font-style: italic; max-width: 70ch; }
@media (max-width: 900px) { .cobrand .cb-grid { grid-template-columns: 1fr; } .cb-needs ul { columns: 1; } }

/* ============================================================
   ORDER FORM
   ============================================================ */
.order .wrap { max-width: 920px; }
.order-intro { text-align: center; max-width: 60ch; margin: 0 auto var(--s8); color: var(--ink-soft); }
.order-form { display: grid; gap: var(--s5); }
.of-section { display: grid; gap: var(--s3); }
.of-section > .of-title {
  font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rose); padding-bottom: var(--s1);
  border-bottom: 1px solid rgba(74,25,66,.14); margin: 0;
}
.of-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.field label .opt { color: var(--ink-soft); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .96rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid rgba(74,25,66,.22); border-radius: 12px;
  background: #fff; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.22);
}
.of-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); }
.of-note { font-size: .9rem; color: var(--ink-soft); margin: 0; max-width: 42ch; }
.of-note a { color: var(--plum); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* success state */
.form-thanks {
  text-align: center; padding: var(--s9) var(--s5);
  border: 1px solid rgba(201,168,76,.5); border-radius: var(--r-card);
  background: #fff;
}
.form-thanks .ft-check {
  display: grid; place-items: center; width: 58px; height: 58px;
  margin: 0 auto var(--s4); border-radius: 50%; background: var(--gold); color: var(--plum);
}
.form-thanks .ft-check::after { content: "\2713"; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.form-thanks h3 { font-family: var(--serif); color: var(--plum); font-size: 1.6rem; margin-bottom: var(--s2); }
.form-thanks p { color: var(--ink-soft); margin: 0 auto; max-width: 46ch; }

@media (max-width: 640px) { .of-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
@media (max-width: 760px) {
  /* Nav CTA inside the open mobile menu: keep it a pill, not a full bar */
  .nav-links .nav-cta-link { width: auto; align-self: flex-start; margin-left: 0; margin-top: var(--s2); }
  /* Page-head meta chips */
  .ph-head .head-meta { gap: 8px; }
  /* Order form footer stacks; submit goes full width */
  .of-foot { flex-direction: column; align-items: stretch; }
  .of-foot .btn { width: 100%; justify-content: center; order: 2; }
  .of-note { max-width: none; text-align: center; order: 1; }
}
