/* ═══════════════════════════════════════════════
   OGC Pricing — Editorial Luxury
   ═══════════════════════════════════════════════ */

html {
  background-color: #f6f1e9;
}

:root {
  --copper: #a85a28;
  --copper-glow: #c87a3e;
  --forest: #1B4332;
  --forest-mid: #24553f;
  --forest-pale: #e6f0ea;
  --parchment: #f6f1e9;
  --parchment-deep: #ede5d8;
  --ink: #1a1a18;
  --ink-soft: #4a4a45;
  --ink-muted: #8a8a82;
  --card-r: 14px;
  --btn-r: 8px;
}

/* ── Page ─────────────────────────────────────── */
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Subtle grain texture via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h4, h5 {
  font-family: 'DM Serif Display', Georgia, serif;
}

/* ── Layout ────────────────────────────────────── */
.container { max-width: 960px; position: relative; z-index: 1; }
.pricing-header { max-width: 680px; }

/* ── Hero ──────────────────────────────────────── */
.pricing-header {
  padding-top: 1rem;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0.5rem;
}

.pricing-header h1 {
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.pricing-header .fs-5 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Trust line */
.trust-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-signal .trust-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* ── Nav ──────────────────────────────────────── */
header .border-bottom { border-color: var(--parchment-deep) !important; }

header .fs-4 {
  font-family: 'DM Serif Display', Georgia, serif;
  letter-spacing: -0.02em;
}

header nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

header nav .rounded {
  border-radius: var(--btn-r) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

header nav .rounded:hover {
  background: var(--forest-mid) !important;
  transform: translateY(-1px);
}

/* ── Toggle ────────────────────────────────────── */
.toggle-wrapper { margin-bottom: 2.25rem; }

.btn-group {
  border-radius: 50px;
  overflow: visible;
  border: 2px solid var(--forest);
  background: #fff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-group .btn {
  border: none;
  border-radius: 0;
  padding: 0.55rem 1.35rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  background: transparent;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.btn-group .btn:first-child { border-radius: 50px 0 0 50px; }
.btn-group .btn:last-child { border-radius: 0 50px 50px 0; }
.btn-group .btn:hover { background: rgba(27,67,50,0.05); }

.btn-group .btn.active,
.btn-group .btn:active {
  background: var(--forest) !important;
  color: #fff !important;
  box-shadow: none;
}

.btn-group .btn-outline-dark { border: none; }
.btn-group .btn-outline-dark:focus { box-shadow: none; }

.best-value-label {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

#billing-note {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── Cards row ─────────────────────────────────── */
.cards-row {
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.cards-row > .col { display: flex; }

/* ── Card base ─────────────────────────────────── */
.card {
  border-radius: var(--card-r);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 1.25rem;
}

.card-header h4 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.card-body {
  padding: 2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Self-Guided ───────────────────────────────── */
.card-selfguided {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04),
              0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.card-selfguided:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10),
              0 2px 8px rgba(0,0,0,0.04);
}

.card-selfguided .card-header {
  background: linear-gradient(180deg, #faf6f0, #f5efe5) !important;
  border-bottom: 1px solid rgba(168,90,40,0.08);
}

/* ── Full-Scope (the money card) ───────────────── */
.card-featured {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08),
              0 12px 40px rgba(27,67,50,0.20);
  border: none !important;
  transform: scale(1.035);
  z-index: 2;
  position: relative;
}

.card-featured:hover {
  transform: scale(1.035) translateY(-6px);
  box-shadow: 0 20px 50px rgba(27,67,50,0.28),
              0 4px 12px rgba(0,0,0,0.06);
}

.card-featured .card-header {
  background: rgba(255,255,255,0.06) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-featured .card-body {
  background: transparent;
}

.card-featured .pricing-card-title {
  color: #fff;
}

.card-featured .pricing-card-title small {
  color: rgba(255,255,255,0.5);
}

.card-featured .savings-badge {
  background: rgba(255,255,255,0.12);
  color: #b8e6c8;
}

.card-featured .savings-badge s {
  color: rgba(255,255,255,0.4);
}

.card-featured .text-muted {
  color: rgba(255,255,255,0.55) !important;
}

.card-featured .list-unstyled li {
  color: rgba(255,255,255,0.88);
}

.card-featured .list-unstyled .fw-bold {
  color: #b8e6c8 !important;
}

.card-featured .bi.text-success {
  color: #6ee7a0 !important;
}

/* ── Price typography ──────────────────────────── */
.pricing-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 3.4rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.1rem;
  letter-spacing: -0.03em;
}

.pricing-card-title small {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
}

/* ── Savings badge ─────────────────────────────── */
.savings-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.savings-badge s {
  font-weight: 400;
  opacity: 0.65;
  margin-right: 5px;
}

/* ── Feature list ──────────────────────────────── */
.card-body .list-unstyled li {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.45rem 0.5rem;
  letter-spacing: 0.005em;
  border-radius: 6px;
  margin: 0 -0.5rem;
  transition: background 0.2s ease, padding-left 0.2s ease;
  cursor: default;
}

.card-selfguided .list-unstyled li:hover {
  background: rgba(168, 90, 40, 0.06);
  padding-left: 0.75rem;
}

.card-featured .list-unstyled li:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 0.75rem;
}

.card-body .bi.text-success {
  color: var(--forest) !important;
}

/* ── CTA Buttons ──────────────────────────────── */
.btn-cta-selfguided {
  border: 2px solid var(--copper) !important;
  color: var(--copper) !important;
  background: transparent !important;
  border-radius: var(--btn-r) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta-selfguided:hover {
  background: var(--copper) !important;
  color: #fff !important;
  border-color: var(--copper) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168,90,40,0.25);
}

.btn-cta-featured {
  border: 2px solid rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border-radius: var(--btn-r) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(4px);
}

.btn-cta-featured:hover {
  background: #fff !important;
  color: var(--forest) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.2);
}

/* ── Badge ────────────────────────────────────── */
.badge.bg-warning {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.65em;
  border-radius: 5px;
  background: #fbbf24 !important;
  color: #78350f !important;
  vertical-align: middle;
}

/* ── Compare table ─────────────────────────────── */
.compare-heading {
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ink);
}

.table-responsive {
  border-radius: var(--card-r);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03),
              0 6px 20px rgba(0,0,0,0.05);
  background: #fff;
}

.table {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--ink);
}

.table thead th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0.9rem;
  border-bottom: 2px solid var(--parchment-deep);
  background: #faf8f5;
  color: var(--ink-soft);
}

.table thead th:nth-child(2) { color: var(--copper); }

.table thead th:nth-child(3) {
  color: var(--forest);
  background: var(--forest-pale);
}

.table tbody th {
  font-weight: 500;
  padding: 0.85rem 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid #f0ece5;
}

.table tbody td {
  padding: 0.85rem 0.9rem;
  vertical-align: middle;
  border-top: 1px solid #f0ece5;
}

.table tbody td:last-child {
  background: var(--forest-pale);
}

.table tbody tr:nth-child(even) th,
.table tbody tr:nth-child(even) td:nth-child(2) {
  background: #faf8f5;
}

.table tbody tr:nth-child(even) td:last-child {
  background: #d8ebde;
}

.table .bi { color: var(--forest); }

.table tbody th[colspan="3"] {
  border-left: 3px solid var(--forest);
  background: #fff !important;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  padding: 1.1rem 0.9rem 0.5rem;
  color: var(--forest);
}

.table tbody td:empty::after {
  content: '\2014';
  color: #d5d0c8;
  font-size: 0.85rem;
}

/* ── Footer ───────────────────────────────────── */
footer {
  padding-top: 2.5rem !important;
  margin-top: 4rem !important;
  border-color: var(--parchment-deep) !important;
}

footer h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  color: var(--ink-soft);
}

footer .text-muted,
footer .link-secondary {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-muted) !important;
}

footer .link-secondary:hover {
  color: var(--copper) !important;
}

/* ── Micro-interactions ────────────────────────── */

/* Table row hover */
.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover th,
.table tbody tr:hover td {
  background: rgba(168, 90, 40, 0.05) !important;
}

.table tbody tr:hover td:last-child {
  background: rgba(27, 67, 50, 0.12) !important;
}

/* Nav links — underline slide */
header nav a.text-dark {
  position: relative;
}

header nav a.text-dark::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.25s ease, left 0.25s ease;
}

header nav a.text-dark:hover::after {
  width: 100%;
  left: 0;
}

/* Footer links hover slide */
footer .link-secondary {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

footer .link-secondary:hover {
  padding-left: 4px;
}

/* Savings badge pulse on hover */
.savings-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.savings-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Toggle button press effect */
.btn-group .btn:active {
  transform: scale(0.97);
}

/* ── Load animation ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-header { animation: fadeUp 0.6s ease-out both; }
.toggle-wrapper { animation: fadeUp 0.6s 0.1s ease-out both; }
.card-selfguided { animation: fadeUp 0.6s 0.2s ease-out both; }
.card-featured { animation: fadeUp 0.6s 0.3s ease-out both; }
.compare-heading { animation: fadeUp 0.5s 0.4s ease-out both; }
.table-responsive { animation: fadeUp 0.5s 0.5s ease-out both; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 767.98px) {
  .card-featured {
    transform: scale(1);
  }
  .card-featured:hover {
    transform: translateY(-6px);
  }
  .pricing-header h1 { font-size: 2rem; }
  .pricing-card-title { font-size: 2.6rem; }
}
