/* =========================================================
   TRA DESIGN SYSTEM · tra.css
   Clinical · Editorial · High-trust
   ========================================================= */

:root {
  /* Palette */
  --navy: #0f1b2d;
  --navy-mid: #162236;
  --navy-light: #1e3051;
  --navy-soft: #243a60;
  --gold: #c9963a;
  --gold-light: #e8b55a;
  --gold-dark: #a67c2e;
  --cream: #f5f0e8;
  --cream-dark: #ede6d6;
  --text: #e8e2d6;
  --text-dim: #b4b9c5;
  --text-muted: #8a9bb5;
  --border: rgba(201, 150, 58, 0.2);
  --border-soft: rgba(255, 255, 255, 0.08);
  --danger: #fca5a5;
  --success: #86efac;

  /* Spacing & radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1160px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--cream); line-height: 1.15; }
em { color: var(--gold-light); font-style: italic; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold); }

/* ========== NAV ========== */
.tra-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 27, 45, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.tra-nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tra-nav-links { display: flex; gap: 32px; align-items: center; }
.tra-nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem; font-weight: 500;
}
.tra-nav-links a:hover, .tra-nav-links a.active { color: var(--cream); }
.tra-nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-weight: 600 !important;
  white-space: nowrap;
}
.tra-nav-cta:hover { background: var(--gold-light); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; font-family: inherit;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light); color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 150, 58, 0.25);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
}
.btn-ghost {
  background: transparent; color: var(--gold-light);
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--gold); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ========== LAYOUT HELPERS ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; width: 100%; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201, 150, 58, 0.08);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 620px; line-height: 1.7; }

/* ========== TRUST ROW ========== */
.trust-row {
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
  padding: 16px 0; margin-top: 24px;
}
.trust-row span {
  font-size: 0.82rem; color: var(--text-dim); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-row span::before { content: '·'; color: var(--gold); font-size: 1.2rem; margin-right: 4px; }
.trust-row span:first-child::before { display: none; }

.trust-bar {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 32px;
}
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-bar span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--text-dim); font-weight: 500;
}

/* ========== CARDS ========== */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.15s, transform 0.2s;
}
.card:hover { border-color: var(--border); }
.card.featured { border-color: var(--gold); }
.card-icon { font-size: 1.6rem; margin-bottom: 16px; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 1.35rem; color: var(--cream); margin-bottom: 8px; }
.card-price { font-size: 1.9rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; line-height: 1.1; }
.card-price small, .card-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); display: block; margin-top: 4px; }
.card-price del { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-right: 10px; }
.card-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 22px; }

/* Feature list */
.features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.features li {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.55;
  display: flex; align-items: flex-start; gap: 10px;
}
.features li::before {
  content: '✓'; color: var(--gold); font-weight: 700;
  flex-shrink: 0; margin-top: 1px; width: 16px;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  background: var(--gold); color: var(--navy);
}
.badge-outline {
  background: transparent; color: var(--gold-light);
  border: 1px solid var(--border);
}
.badge-new {
  background: var(--navy-light); color: var(--gold-light);
  border: 1px solid var(--border);
}

/* Early-bird counter strip */
.earlybird-strip {
  background: linear-gradient(90deg, rgba(201,150,58,0.16), rgba(201,150,58,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.earlybird-strip strong { color: var(--gold-light); font-weight: 600; }
.earlybird-strip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

/* ========== COMPARISON TABLE ========== */
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--navy-mid);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft);
}
.compare-table th, .compare-table td {
  padding: 18px 20px; text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}
.compare-table th {
  background: var(--navy-light);
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  color: var(--cream); font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.compare-table th.tra-col { color: var(--gold-light); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td { color: var(--text-dim); }
.compare-table td.tra-col { color: var(--cream); font-weight: 500; background: rgba(201, 150, 58, 0.05); }
.compare-table td:first-child { color: var(--text); font-weight: 500; }

/* ========== ACCORDION ========== */
.accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--navy-mid);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.accordion-item:hover { border-color: var(--border); }
.accordion-item.open { border-color: var(--border); }
.accordion-header {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  gap: 16px;
}
.accordion-header:hover { background: rgba(255, 255, 255, 0.02); }
.accordion-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--cream);
  display: flex; align-items: center; gap: 14px;
}
.accordion-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem; color: var(--gold);
  min-width: 28px;
}
.accordion-count {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 400;
  margin-left: 8px;
}
.accordion-icon {
  color: var(--gold); font-size: 1.4rem; line-height: 1;
  transition: transform 0.2s; flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.accordion-item.open .accordion-body { max-height: 1400px; }
.accordion-body-inner {
  padding: 4px 24px 24px 66px;
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.7;
}
.accordion-body-inner ul { list-style: none; margin-top: 8px; column-count: 2; column-gap: 30px; }
.accordion-body-inner ul li {
  padding: 4px 0; break-inside: avoid;
  font-size: 0.85rem;
}
.accordion-body-inner ul li::before {
  content: '→ '; color: var(--gold); margin-right: 6px;
}

/* ========== MODAL ========== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.15s ease-out;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%; max-width: 500px;
  position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius-sm); line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-price { font-size: 2rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; line-height: 1.1; }
.modal-price del { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-right: 8px; }
.modal-desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-dim); }
.form-group input, .form-group textarea {
  background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--text); font-size: 0.92rem; font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted); opacity: 0.5;
}
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.modal-submit {
  width: 100%; padding: 14px;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-top: 8px; transition: all 0.15s;
}
.modal-submit:hover:not(:disabled) { background: var(--gold-light); }
.modal-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.modal-note { text-align: center; margin-top: 14px; font-size: 0.78rem; color: var(--text-muted); }
.modal-error {
  background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px;
  font-size: 0.88rem; color: var(--danger); display: none;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}
.faq-q {
  cursor: pointer; user-select: none;
  font-weight: 600; color: var(--cream); font-size: 1rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.faq-q::after {
  content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.2s ease-out, margin-top 0.2s ease-out;
  font-size: 0.92rem; color: var(--text-dim); line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; margin-top: 12px; }

/* ========== FOOTER ========== */
.tra-footer {
  background: var(--navy);
  border-top: 1px solid var(--border-soft);
  padding: 56px 32px 32px;
}
.tra-footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px;
}
.tra-footer-brand h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; color: var(--gold-light); margin-bottom: 12px;
}
.tra-footer-brand p {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.65;
  max-width: 300px;
}
.tra-footer-col h5 {
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px;
}
.tra-footer-col a {
  display: block; color: var(--text-muted);
  font-size: 0.88rem; margin-bottom: 10px;
}
.tra-footer-col a:hover { color: var(--cream); }
.tra-footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 26px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 0.8rem; color: var(--text-muted);
}
.tra-footer-bottom p { line-height: 1.7; }

/* ========== UTILITIES ========== */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .tra-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .accordion-body-inner ul { column-count: 1; }
}
@media (max-width: 720px) {
  .tra-nav { padding: 0 20px; }
  .tra-nav-links { gap: 18px; }
  .tra-nav-links a:not(.tra-nav-cta) { display: none; }
  .tra-nav-cta { padding: 8px 16px; font-size: 0.82rem; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .tra-footer { padding: 40px 20px 24px; }
  .tra-footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 24px; }
  .tra-footer-brand p { max-width: none; }
  .tra-footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .modal { padding: 28px 24px; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 26px; }
  .trust-bar-inner { gap: 24px; }
  .compare-table th, .compare-table td { padding: 14px 12px; font-size: 0.84rem; }
  .accordion-header { padding: 16px 18px; }
  .accordion-body-inner { padding: 0 18px 20px 48px; }
  .accordion-num { font-size: 0.95rem; min-width: 22px; }
  .accordion-title { font-size: 0.92rem; }
  .section-title { font-size: 1.6rem; }
}
