/* ============================================================
   Mr. Jones Bail Bonds — Tier Plan
   CR Creative Solutions
   ============================================================ */

:root {
  --ink:        #181410;
  --muted:      #6b6560;
  --red-deep:   #6e1423;
  --red-dark:   #4a0d18;
  --red-bright: #e0122a;
  --gold:       #b08d3f;
  --gold-deep:  #7a5f22;
  --gold-line:  #d9c894;
  --line:       #e7e0d3;
  --line-soft:  #efede8;
  --green:      #2f845c;
  --dash:       #b1b4b8;
  --card:       #ffffff;
  --cool-line:  #dce6eb;
  --cool-label: #6f8797;

  --shadow-lg: 0 18px 50px rgba(20, 22, 26, .07);
  --shadow-sm: 0 8px 28px rgba(20, 22, 26, .04);

  --r-lg: 28px;
  --r-md: 24px;
  --r-sm: 20px;
  --r-btn: 14px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Helvetica, Arial, sans-serif;

}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #fffcf6 0%, #f9f6f0 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------------- 1. Hero ---------------- */

.hero { padding: 64px 0 30px; }

.hero h1 {
  font-size: clamp(2.1rem, 7.4vw, 5.6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 1000px;
  overflow-wrap: break-word;
}

.hero h1 .name { color: var(--red-bright); }

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.08rem);
  line-height: 1.75;
}

.rule {
  margin-top: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--red-deep), var(--gold), transparent 70%);
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.benefit {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.benefit strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 5px;
}

.benefit span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* ---------------- Shared section bits ---------------- */

.section { margin: 6px 0 40px; }

.section-head { margin-bottom: 26px; }

.eyebrow {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red-deep);
  margin-bottom: 8px;
}

.eyebrow-cool { color: var(--cool-label); letter-spacing: .12em; margin-bottom: 5px; }

.section-head h2 {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  margin-bottom: 12px;
  letter-spacing: -.02em;
  max-width: 760px;
  font-weight: 600;
}

.section-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(.97rem, 2.5vw, 1.02rem);
  line-height: 1.7;
}

.kicker {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red-deep);
}

.kicker-gold { color: var(--gold-deep); letter-spacing: .14em; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

.btn-pending {
  background: #f1eee7;
  color: #8f8a83;
  border: 1px dashed #d8d4cc;
  font-weight: 600;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------- 2. Website concepts ---------------- */

.concepts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.concept {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thumb {
  height: 150px;
  border-radius: 16px;
  background: #f3f2ee center / cover no-repeat;
  border: 1px dashed #d8d4cc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9a9d9c;
  font-size: .85rem;
  padding: 12px;
}

.thumb.has-image {
  border-style: solid;
  border-color: var(--line);
  color: transparent;
}

.concept-copy {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  flex: 1;
}

/* ---------------- 3. Tiers ---------------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 0 0 28px;
}

.tier {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.tier-2 { background: linear-gradient(180deg, #fff 0%, #fff 70%, #fff8f7 100%); }

.tier-3 {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, #fffdf7 0%, #fff 58%, #f4f8fa 100%);
}

.tier-3::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 171, 67, .18), transparent 68%);
  pointer-events: none;
}

.tier-name {
  font-size: 1.55rem;
  margin: 10px 0 2px;
  letter-spacing: -.02em;
  color: var(--red-bright);
  font-weight: 700;
}

.price {
  font-size: clamp(2.6rem, 8vw, 3.1rem);
  line-height: 1;
  font-weight: 850;
  margin: 18px 0;
  letter-spacing: -.05em;
}

.tier-sum {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8b8f96;
  margin-bottom: 12px;
}

.feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 11px;
  flex: 1;
}

.feat li {
  position: relative;
  padding-left: 27px;
  line-height: 1.45;
  font-size: .96rem;
}

.feat li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  color: var(--gold);
  font-weight: 900;
}

.why {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.why strong {
  display: block;
  color: var(--red-deep);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: 8px;
}

.why p {
  color: var(--muted);
  line-height: 1.58;
  font-size: .92rem;
}

/* ---------------- 4-6, 8. Info panels ---------------- */

.panel {
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin: 0 0 24px;
}

.panel h3 {
  font-size: clamp(1.15rem, 3.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -.01em;
}

.panel p { color: var(--muted); line-height: 1.65; }

.panel-alacarte {
  background: linear-gradient(135deg, #f7fafc, #ffffff);
  border: 1px solid var(--cool-line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.panel-alacarte .panel-text { max-width: 520px; }
.panel-alacarte h3 { margin-bottom: 8px; }

.panel-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.note { font-size: .78rem; color: #9a9d9c; }

.panel-split {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
}

.panel-warm {
  background: linear-gradient(135deg, #fffaf2, #ffffff);
  border: 1px solid rgba(215, 170, 58, .28);
}

.panel-cool {
  background: linear-gradient(135deg, #f7fafc, #ffffff);
  border: 1px solid rgba(143, 165, 180, .28);
}

.panel-body p + p { margin-top: 14px; }
.panel-last { margin-bottom: 58px; }

/* ---------------- 7. Comparison table ---------------- */

.compare {
  margin: 18px 0 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.compare-head {
  padding: 24px 26px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.compare-head h3 { font-size: 1.15rem; font-weight: 650; }
.compare-head p { color: var(--muted); font-size: .9rem; }

.swipe-hint {
  display: none;
  padding: 12px 20px 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cool-label);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--red-bright); outline-offset: -3px; }

.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.compare th,
.compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .93rem;
}

.compare thead th {
  background: #fcfbf8;
  border-bottom: 1px solid var(--line-soft);
  color: #6d737b;
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  text-align: center;
  font-weight: 700;
  vertical-align: bottom;
}

.compare thead th.col-service { text-align: left; width: 39%; }

.th-name { display: block; font-size: .68rem; color: #9aa0a6; margin-bottom: 3px; }
.th-price { display: block; font-size: .84rem; color: var(--ink); letter-spacing: .04em; }

.compare tbody th {
  text-align: left;
  font-weight: 650;
  color: var(--ink);
}

.compare tbody td { text-align: center; }

.compare .yes { color: var(--green); font-weight: 800; }
.compare .no  { color: var(--dash); }

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------------- 9. Footer ---------------- */

.foot {
  color: #90959c;
  padding: 0 0 42px;
  font-size: .88rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .panel-split {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .hero { padding: 40px 0 22px; }
  .rule { margin-top: 26px; }
  .benefits { margin-top: 22px; }

  .section { margin-bottom: 32px; }
  .section-head { margin-bottom: 20px; }

  .concepts, .tiers { gap: 16px; }
  .concept { padding: 20px; border-radius: var(--r-md); }
  .tier { padding: 22px; border-radius: var(--r-md); }
  .price { margin: 14px 0; }
  .tier-sum { margin-bottom: 18px; }

  .panel { padding: 22px 20px; border-radius: var(--r-sm); }
  .panel-alacarte { gap: 18px; }
  .panel-action { width: 100%; align-items: stretch; }
  .panel-action .note { text-align: center; }

  .btn { width: 100%; }

  .compare { border-radius: var(--r-md); }
  .compare-head { padding: 20px 20px 16px; }
  .swipe-hint { display: block; }

  /* Keep the service name visible while the columns scroll */
  .compare table { min-width: 620px; }

  .compare th, .compare td { padding: 12px 14px; font-size: .88rem; }

  .compare thead th.col-service,
  .compare tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 46%;
    background: var(--card);
    box-shadow: 1px 0 0 var(--line-soft);
  }

  .compare thead th.col-service { background: #fcfbf8; }

  .foot { padding-bottom: 32px; }
  .panel-last { margin-bottom: 34px; }
}

@media (max-width: 380px) {
  .compare table { min-width: 540px; }
  .compare th, .compare td { padding: 11px 10px; font-size: .84rem; }
}

/* ---------------- Print ---------------- */

@media print {
  body { background: #fff; }
  .btn, .swipe-hint { display: none; }
  .concept, .tier, .compare, .panel { box-shadow: none; break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .compare table { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
