/* ChiroStore.net — Site Styles
   Palette: Navy #1F3A5F · Gold #B8860B · Teal #2E8B7A · Light Grey #F5F5F5
   Typography: Lora (headings serif), Inter (body sans)
   ============================================================ */

:root {
  --navy: #1F3A5F;
  --navy-light: #4A6B8A;
  --gold: #B8860B;
  --gold-bright: #D4A52A;
  --teal: #2E8B7A;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #E8E8E8;
  --grey-300: #CCCCCC;
  --grey-500: #888888;
  --grey-700: #555555;
  --charcoal: #333333;
  --white: #FFFFFF;
  --warm-bg: #FFF8E1;
  --teal-bg: #EDF6F4;
  --navy-bg: #EDF4FA;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1180px;
  --radius: 6px;
  --transition: 200ms ease-out;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: 2.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  border: none;
}
.brand:hover { border: none; color: var(--navy); }
.brand-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.brand-divider { display: none; }
.brand-tagline {
  font-size: 0.78rem;
  color: var(--grey-500);
  letter-spacing: 0.02em;
}
.primary-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.95rem;
}
.primary-nav a {
  font-weight: 500;
  color: var(--charcoal);
}
.primary-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.primary-nav a.cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
}
.primary-nav a.cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* ---------- HERO ---------- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--white) 0%, var(--grey-100) 100%);
  border-bottom: 1px solid var(--grey-200);
}
.hero h1 {
  font-size: 2.6rem;
  max-width: 820px;
  margin-bottom: 24px;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--grey-700);
  max-width: 720px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 0 32px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.btn-ghost:hover {
  color: var(--gold);
  background: transparent;
  border-color: transparent;
}

/* ---------- SECTIONS ---------- */
section {
  padding: 80px 0;
}
section.tinted { background: var(--grey-100); }
section.dark {
  background: var(--navy);
  color: var(--white);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark .gold-rule { background: var(--gold-bright); }

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--grey-700);
  max-width: 740px;
}

/* ---------- VALUE PROP BAND ---------- */
.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(31, 58, 95, 0.08);
}
.value-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--gold);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--grey-700);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- THREE PROGRAMS COMPARISON ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.program-card.featured {
  border-top: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(31, 58, 95, 0.1);
}
.program-card .program-tier {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}
.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.program-card .program-tag {
  font-size: 0.92rem;
  color: var(--grey-700);
  margin-bottom: 22px;
  min-height: 44px;
}
.program-card ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  margin-bottom: 24px;
}
.program-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.94rem;
}
.program-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}
.program-card li:last-child { border-bottom: none; }
.program-card .btn { align-self: flex-start; }

/* ---------- HOW IT WORKS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--grey-200);
}
.step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: -22px;
  left: 28px;
  background: var(--navy);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.step h3 { margin-top: 12px; font-size: 1.15rem; }
.step p { color: var(--grey-700); font-size: 0.95rem; margin: 0; }

/* ---------- CALLOUT BOXES ---------- */
.callout {
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 30px 0;
}
.callout.warm { background: var(--warm-bg); border-left-color: var(--gold); }
.callout.teal { background: var(--teal-bg); border-left-color: var(--teal); }
.callout h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}
.callout p:last-child { margin: 0; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--gold);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}
.form-group textarea { resize: vertical; min-height: 90px; font-family: var(--font-sans); }
.form-help {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: 4px;
}
.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- ORDER STATUS ---------- */
.order-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--grey-100);
  padding-bottom: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.order-status-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.order-status-badge.processing { background: var(--gold); }
.order-status-badge.canceled { background: var(--grey-500); }
.order-items {
  margin-bottom: 16px;
}
.order-items table {
  width: 100%;
  border-collapse: collapse;
}
.order-items th,
.order-items td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--grey-100);
}
.order-items th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  font-weight: 600;
}
.order-total { text-align: right; font-size: 1.15rem; font-weight: 600; }
.tracking-info {
  background: var(--grey-100);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 14px;
}

/* ---------- FLASH MESSAGES ---------- */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 18px 0;
}
.flash-error {
  background: #FFE8E8;
  border-left: 4px solid #D32F2F;
  color: #6B1414;
}
.flash-success {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  color: #1B5C50;
}
.error-banner {
  background: #FFF3E0;
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.error-banner p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
  padding: 22px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.faq-item p { margin: 0; color: var(--grey-700); }

/* ---------- TRUST BADGES ---------- */
.trust-band {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}
.trust-item {
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey-500);
}
.trust-item .label {
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 2px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); border: none; }
.site-footer a:hover { color: var(--gold-bright); border: none; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h4 {
  color: var(--gold-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
}
.footer-col p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
}
.footer-col .footer-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  line-height: 1.45;
}
.footer-bottom {
  padding-top: 28px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 6px 0; }
.footer-bottom .statement-explainer {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom .statement-explainer strong { color: var(--gold-bright); }
.footer-bottom .fda-disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 22px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .header-inner { height: auto; padding: 16px 0; flex-direction: column; gap: 14px; }
  .primary-nav { gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 0.88rem; }
  .primary-nav a.cta { padding: 8px 14px; }
  .brand-tagline { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .hero .lede { font-size: 1.05rem; }
  section { padding: 50px 0; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .value-band, .programs-grid, .steps { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

/* ============================================================
   Apex wall (v1) — partial deprecation
   v1 added 2026-05-15. v2 (apex_v2) added 2026-05-16: hero band +
   3-field lookup + reorder/gift; replaces apex header/hero/cta-row/
   footer. The .wall-inquiry / .wall-form-* / .wall-honeypot /
   .wall-inquiry-{success,error} rules below are KEPT — still used
   by the secondary medical-office contact form. Deprecated rules
   are commented out at the bottom of this file.
   ============================================================ */

.wall-inquiry {
  background: #faf8f3;
  padding: 56px 0;
  border-top: 1px solid rgba(27, 43, 75, 0.06);
}

.wall-inquiry h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin: 12px 0 12px;
}

.wall-inquiry .lede {
  font-size: 1.05rem;
  color: #4a5568;
  margin-bottom: 28px;
  max-width: 640px;
}

.wall-inquiry-form {
  max-width: 560px;
}

.wall-form-field {
  margin-bottom: 18px;
}

.wall-form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.wall-form-required {
  color: #c53030;
  font-weight: 400;
}

.wall-form-field input[type="text"],
.wall-form-field input[type="email"],
.wall-form-field input[type="tel"],
.wall-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  border: 1px solid rgba(27, 43, 75, 0.18);
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.wall-form-field input:focus,
.wall-form-field textarea:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
  border-color: var(--gold);
}

.wall-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.wall-form-actions {
  margin-top: 24px;
}

.wall-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wall-inquiry-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 4px;
  padding: 20px 24px;
  max-width: 560px;
}

.wall-inquiry-success p {
  margin: 0;
  color: #22543d;
  font-size: 1.05rem;
}

.wall-inquiry-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
  max-width: 560px;
}

.wall-inquiry-error p {
  margin: 0;
  color: #742a2a;
}

/* ============================================================
   Apex v2 (chirostore.net) — patient-facing wall replacement
   Added 2026-05-16 per /tmp/apex_v2_plan.md
   ============================================================ */

/* Hero band — full-width navy slab with centered wordmark.
   Background color matched exactly to the wordmark image's baked-in
   navy (RGB 27,43,75) so the 1200×1200 PNG's edges visually dissolve
   into the band. Sampled from corner pixels of
   static/img/branding/chirostore_logo_navy_1200.png on 2026-05-16. */
.apex-hero-band {
  background: #1B2B4B;
  width: 100%;
  padding: 32px 0;
  text-align: center;
}

.apex-brand {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.apex-brand-name {
  display: block;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 56px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.apex-brand-tagline {
  display: inline-block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  min-width: 240px;
}

/* Welcome typography — Lora display headline + tagline */
.apex-welcome-section {
  padding: 48px 0 20px;
  text-align: center;
}

.apex-welcome {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #1A1F2C;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.apex-tagline {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: #1A1F2C;
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.55;
}

/* Lookup form — primary content of /, also reused in /order-status */
.apex-lookup-section {
  padding: 28px 0 64px;
}

.apex-lookup-form {
  max-width: 520px;
  margin: 0 auto;
}

.apex-lookup-hint {
  font-size: 1rem;
  color: #4A5266;
  margin: 0 0 24px;
  text-align: center;
}

.apex-lookup-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 auto 20px;
  max-width: 520px;
  color: #742a2a;
  font-size: 0.95rem;
}

.apex-form-field {
  margin-bottom: 16px;
}

.apex-form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #4A5266;
  margin-bottom: 6px;
}

.apex-form-field input[type="email"],
.apex-form-field input[type="tel"],
.apex-form-field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  border: 1px solid #D0D5DD;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.apex-form-field input:focus {
  outline: none;
  border-color: #0A297C;
  box-shadow: 0 0 0 3px rgba(10, 41, 124, 0.15);
}

.apex-form-submit-row {
  margin-top: 24px;
  text-align: center;
}

.apex-form-submit {
  background: #0A297C;
  color: #ffffff;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease;
}

.apex-form-submit:hover {
  background: #143b9c;
}

/* Result page — multi-order stack with reorder/gift CTAs */
.apex-results-section {
  padding: 48px 0 72px;
}

.apex-results {
  max-width: 720px;
  margin: 32px auto 0;
}

.apex-no-results {
  max-width: 520px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1rem;
  color: #4A5266;
  line-height: 1.55;
}

.apex-order-card {
  background: #ffffff;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.apex-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.apex-order-number {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A5266;
  margin: 0;
  letter-spacing: 0.02em;
}

.apex-order-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #717A87;
  margin: 4px 0 0;
}

.apex-order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #E0F0E9;
  color: #1B5C50;
}

.apex-order-status--pending_payment { background: #FFF3CD; color: #856404; }
.apex-order-status--paid { background: #D4EDDA; color: #155724; }
.apex-order-status--fulfilled { background: #CCE5FF; color: #004085; }
.apex-order-status--delivered { background: #D4EDDA; color: #155724; }
.apex-order-status--cancelled { background: #F8D7DA; color: #721C24; }
.apex-order-status--refunded { background: #F8D7DA; color: #721C24; }
.apex-order-status--returned { background: #F8D7DA; color: #721C24; }

.apex-order-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.apex-order-items th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #717A87;
  padding: 8px 0;
  border-bottom: 1px solid #E4E7EC;
}

.apex-order-items th:nth-child(2),
.apex-order-items td:nth-child(2) {
  text-align: center;
}

.apex-order-items th:last-child,
.apex-order-items td:last-child {
  text-align: right;
}

.apex-order-items td {
  padding: 10px 0;
  border-bottom: 1px solid #F0F2F5;
  font-size: 0.95rem;
  color: #1A1F2C;
}

.apex-order-total {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #1A1F2C;
  margin: 0 0 12px;
}

.apex-tracking {
  background: #F5F7FA;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #4A5266;
  margin: 12px 0;
}

.apex-order-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #F0F2F5;
}

.apex-order-actions form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.apex-order-action-btn {
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 150ms ease;
}

.apex-order-action-btn--primary {
  background: #0A297C;
  color: #ffffff;
}

.apex-order-action-btn--primary:hover {
  background: #143b9c;
}

.apex-order-action-btn--secondary {
  background: #ffffff;
  color: #0A297C;
  border: 1px solid #0A297C;
}

.apex-order-action-btn--secondary:hover {
  background: #F5F7FA;
}

.apex-action-helper {
  font-size: 0.82rem;
  color: #717A87;
  text-align: center;
  font-style: italic;
}

/* Secondary medical-office section — visually de-emphasized,
   wraps the kept .wall-inquiry-* form */
.apex-mo-section {
  padding: 56px 0;
  border-top: 1px solid #E4E7EC;
  background: #FAFAF7;
}

.apex-mo-section h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #1A1F2C;
  margin: 0 0 8px;
  text-align: center;
}

.apex-mo-section .apex-mo-lede {
  font-size: 1rem;
  color: #4A5266;
  margin: 0 0 32px;
  text-align: center;
}

/* Honeypot — hardened against autofill + print exposure */
.apex-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media print {
  .apex-honeypot,
  .wall-honeypot { display: none !important; }
}

/* Footer — simplified, no Releaf reference */
.apex-footer {
  background: #1A1F2C;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 32px;
  margin-top: 0;
}

.apex-footer-inner {
  text-align: center;
}

.apex-footer-brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 12px;
}

.apex-footer-contact {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 16px;
}

.apex-footer-contact a {
  color: #D4A52A;
  border-bottom-color: transparent;
}

.apex-footer-contact a:hover {
  color: #E8BA3A;
  border-bottom-color: #E8BA3A;
}

.apex-footer-fda {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 8px auto 0;
  max-width: 720px;
}

/* Responsive */
@media (max-width: 640px) {
  .apex-hero-band { padding: 24px 0; }
  .apex-brand-name { font-size: 42px; }
  .apex-brand-tagline { font-size: 10px; min-width: 200px; }
  .apex-welcome-section { padding: 32px 0 16px; }
  .apex-welcome { font-size: 2.2rem; }
  .apex-tagline { font-size: 1.05rem; }
  .apex-lookup-section { padding: 20px 0 48px; }
  .apex-mo-section { padding: 40px 0; }
  .apex-order-card { padding: 20px; }
  .apex-order-header { flex-direction: column; }
}

@media (max-width: 520px) {
  .apex-hero-band { padding: 20px 0; }
  .apex-welcome { font-size: 1.9rem; }
  .apex-order-actions { gap: 16px; }
}

/* ============================================================
   Deprecated v1 wall rules; remove after v2 ships stable
   (Trigger: v2 stable for ≥7 days with no rollbacks)
   ============================================================
.wall-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(27, 43, 75, 0.08);
  padding: 18px 0;
}

.wall-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wall-brand {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-decoration: none;
}

.wall-brand:hover {
  color: var(--gold-bright);
}

.wall-hero {
  padding: 64px 0 40px;
}

.wall-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 12px 0 18px;
}

.wall-hero .lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #2d3748;
  margin-bottom: 28px;
  max-width: 720px;
}

.wall-statement-blurb {
  background: rgba(212, 175, 55, 0.07);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 760px;
}

.wall-statement-blurb strong {
  color: var(--navy);
}

.wall-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  max-width: 720px;
}

.wall-cta-row .btn {
  flex: 1 1 240px;
  text-align: center;
  padding: 14px 20px;
}

.wall-footer {
  background: #fafaf7;
  border-top: 1px solid rgba(27, 43, 75, 0.08);
  padding: 40px 0;
  margin-top: 56px;
}

.wall-footer-inner {
  text-align: center;
}

.wall-footer .patient-contact {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 14px;
}

.wall-footer .patient-contact a {
  color: var(--navy);
  text-decoration: underline;
}

.wall-footer .address {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0 0 18px;
}

.wall-footer .fda-disclaimer {
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .wall-hero { padding: 40px 0 28px; }
  .wall-hero h1 { font-size: 2rem; }
}

@media (max-width: 520px) {
  .wall-cta-row { flex-direction: column; }
  .wall-cta-row .btn { flex-basis: auto; }
}
============================================================ */
