/* =============================================================
   Mobile App Cost Calculator — Page Layout (from scratch)
   All classes are namespaced `tmcalc-` so nothing collides with
   the legacy theme stylesheet.
   ============================================================= */

.tmcalc-page {
  --p-black:      #0a0a0a;
  --p-text:       #1f2937;
  --p-muted:      #6b7280;
  --p-bg:         #ffffff;
  --p-bg-soft:    #f6f8fb;
  --p-border:     #e5e7eb;

  --p-red:        #F40009;
  --p-red-dark:   #C10007;
  --p-blue:       #0A66C2;
  --p-blue-dark:  #084d96;
  --p-blue-soft:  #eaf2fb;

  color: var(--p-text);
  font-size: 16px;
  line-height: 1.6;
}

.tmcalc-page * { box-sizing: border-box; }

.tmcalc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================== HERO ================== */
.tmcalc-hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 90% -10%, rgba(10, 102, 194, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(244, 0, 9, 0.22), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #131722 100%);
  color: #fff;
  padding: 90px 0 130px;
  overflow: hidden;
  isolation: isolate;
}
.tmcalc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,0.06) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.06) 95%);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.tmcalc-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.tmcalc-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(10, 102, 194, 0.18);
  border: 1px solid rgba(10, 102, 194, 0.45);
  color: #b6d4f3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
  margin-bottom: 17px;
}
.tmcalc-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.tmcalc-hero__title {
  font-size: clamp(26px, 4.2vw, 50px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.tmcalc-hero__title .accent {
  background: linear-gradient(90deg, var(--p-red) 0%, #ff7a85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tmcalc-hero__title .underline {
  position: relative;
  display: inline-block;
}
.tmcalc-hero__title .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 8px;
  background: var(--p-blue);
  opacity: 0.55;
  border-radius: 4px;
  z-index: -1;
}

.tmcalc-hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
  max-width: 580px;
}

.tmcalc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.tmcalc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
  transition: all 200ms ease;
}
.tmcalc-btn--primary {
  background: var(--p-red);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(244, 0, 9, 0.6);
}
.tmcalc-btn--primary:hover {
  background: var(--p-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(244, 0, 9, 0.7);
  color: #fff;
}
.tmcalc-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.tmcalc-btn--ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.tmcalc-btn--outline-blue {
  background: transparent;
  color: var(--p-blue);
  border: 1.5px solid var(--p-blue);
}
.tmcalc-btn--outline-blue:hover {
  background: var(--p-blue);
  color: #fff;
}

/* hero teaser card */
.tmcalc-hero__card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.tmcalc-hero__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--p-blue), transparent 40%, var(--p-red));
  z-index: -1;
  opacity: 0.55;
  filter: blur(20px);
}
.tmcalc-hero__card-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b6d4f3;
  margin: 0 0 6px;
  font-weight: 700;
}
.tmcalc-hero__card-amount {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px;
  background: linear-gradient(90deg, #fff, #b6d4f3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tmcalc-hero__card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 22px;
}
.tmcalc-hero__card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tmcalc-hero__card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.tmcalc-hero__card-list li::before {
  content: "";
  width: 22px; height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: rgba(10, 102, 194, 0.2);
  color: #b6d4f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tmcalc-hero__card-list li::before {
  content: "✓";
  color: var(--p-red);
  font-weight: 800;
  font-size: 12px;
}

/* hero card — "why calculate first" reasons */
.tmcalc-hero__card-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.tmcalc-hero__reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.tmcalc-hero__reasons li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: all 220ms ease;
}
.tmcalc-hero__reasons li:hover {
  background: rgba(10, 102, 194, 0.14);
  border-color: rgba(10, 102, 194, 0.45);
  transform: translateX(2px);
}
.tmcalc-hero__reason-num {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--p-red) 0%, #ff4d54 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px -4px rgba(244, 0, 9, 0.55);
}
.tmcalc-hero__reason-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tmcalc-hero__reason-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.tmcalc-hero__reason-text span {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* hero stats strip */
.tmcalc-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
}
.tmcalc-hero__stat {
  background: rgba(10,10,10,0.55);
  padding: 22px 18px;
  text-align: center;
}
.tmcalc-hero__stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--p-blue), #6cb1f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tmcalc-hero__stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
}

@media (max-width: 991.98px) {
  .tmcalc-hero { padding: 60px 0 90px; }
  .tmcalc-hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .tmcalc-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================== BENEFITS ================== */
.tmcalc-benefits {
  padding: 90px 0;
  background: var(--p-bg);
}
.tmcalc-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.tmcalc-section-head__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--p-blue);
  font-weight: 700;
  margin-bottom: 10px;
}
.tmcalc-section-head__title {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--p-black);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.tmcalc-section-head__sub {
  font-size: 16px;
  color: var(--p-muted);
  margin: 0;
}

.tmcalc-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tmcalc-benefit {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 18px;
  padding: 32px;
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}
.tmcalc-benefit::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--p-blue), var(--p-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}
.tmcalc-benefit:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px -16px rgba(10, 102, 194, 0.25);
  transform: translateY(-4px);
}
.tmcalc-benefit:hover::before { transform: scaleX(1); }

.tmcalc-benefit__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--p-blue-soft);
  color: var(--p-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 22px;
}
.tmcalc-benefit:nth-child(2) .tmcalc-benefit__icon {
  background: #fff1f2;
  color: var(--p-red);
}
.tmcalc-benefit:nth-child(3) .tmcalc-benefit__icon {
  background: #f0f4f9;
  color: var(--p-black);
}
.tmcalc-benefit__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--p-black);
  margin: 0 0 12px;
  line-height: 1.3;
}
.tmcalc-benefit__copy {
  font-size: 15px;
  color: var(--p-muted);
  margin: 0;
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .tmcalc-benefits { padding: 70px 0; }
  .tmcalc-benefits__grid { grid-template-columns: 1fr; }
}

/* ================== CALCULATOR SECTION (blue gradient) ================== */
.tmcalc-wizard-sec {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(10,102,194,0.18), transparent 60%),
    linear-gradient(160deg, #eaf2fb 0%, #d3e6f8 50%, #b6d4f3 100%);
  overflow: hidden;
}
.tmcalc-wizard-sec::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,0,9,0.18), transparent 70%);
  pointer-events: none;
}
.tmcalc-wizard-sec .tmcalc-section-head__eyebrow { color: var(--p-red); }
.tmcalc-wizard-sec .tmcalc-section-head__title   { color: var(--p-black); }
.tmcalc-wizard-sec .tmcalc-section-head__sub     { color: #4b5563; }

.tmcalc-wizard-wrap {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .tmcalc-wizard-sec { padding: 70px 0 80px; }
}

/* ================== OTHER CALCULATORS ================== */
.tmcalc-other {
  padding: 90px 0;
  background: var(--p-bg);
}
.tmcalc-other__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tmcalc-other__card {
  display: flex;
  flex-direction: column;
  background: var(--p-bg-soft);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 220ms ease;
  position: relative;
  overflow: hidden;
}
.tmcalc-other__card::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--p-muted);
  transition: all 240ms ease;
}
.tmcalc-other__card:hover {
  background: var(--p-bg);
  border-color: var(--p-blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(10, 102, 194, 0.22);
}
.tmcalc-other__card:hover::after {
  background: var(--p-red);
  border-color: var(--p-red);
  color: #fff;
  transform: translate(2px, -2px);
}
.tmcalc-other__index {
  font-size: 13px;
  color: var(--p-blue);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.tmcalc-other__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--p-black);
  margin: 0 0 8px;
  padding-right: 56px;
}
.tmcalc-other__desc {
  font-size: 14.5px;
  color: var(--p-muted);
  margin: 0;
}

@media (max-width: 767.98px) {
  .tmcalc-other { padding: 70px 0; }
  .tmcalc-other__grid { grid-template-columns: 1fr; }
}

/* ================== WHITE LABEL SEO TIERS (volume discount cards) ================== */
.tmcalc-white-label {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(10, 102, 194, 0.10), transparent 60%),
    radial-gradient(800px 480px at 100% 100%, rgba(244, 0, 9, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #131722 100%);
  color: #fff;
  overflow: hidden;
}
.tmcalc-white-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255,255,255,0.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.05) 95%);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.tmcalc-white-label .tmcalc-section-head__eyebrow { color: #b6d4f3; }
.tmcalc-white-label .tmcalc-section-head__title   { color: #fff; }
.tmcalc-white-label .tmcalc-section-head__sub     { color: rgba(255,255,255,0.72); }
.tmcalc-white-label .tmcalc-section-head__sub strong { color: #fff; }

.tmcalc-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.tmcalc-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 32px 28px 28px;
  backdrop-filter: blur(8px);
  transition: all 280ms cubic-bezier(.2, .7, .3, 1);
  overflow: hidden;
}
.tmcalc-tier::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(10, 102, 194, 0.5));
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms ease;
}
.tmcalc-tier:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,0.55),
              0 0 60px -20px rgba(10, 102, 194, 0.45);
}
.tmcalc-tier:hover::before { opacity: 0.6; }

/* badge */
.tmcalc-tier__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-block;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
}
.tmcalc-tier__badge--hot {
  background: linear-gradient(135deg, var(--p-red), #ff4d54);
  color: #fff;
  border-color: var(--p-red);
  box-shadow: 0 8px 20px -6px rgba(244, 0, 9, 0.55);
  animation: tmcalcTierPulse 2.4s ease-in-out infinite;
}
@keyframes tmcalcTierPulse {
  0%, 100% { box-shadow: 0 8px 20px -6px rgba(244, 0, 9, 0.55); }
  50%      { box-shadow: 0 8px 30px -4px rgba(244, 0, 9, 0.85); }
}

/* project count */
.tmcalc-tier__count-block {
  margin-top: 8px;
  margin-bottom: 22px;
}
.tmcalc-tier__count {
  display: block;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #b6d4f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.tmcalc-tier__count-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.4px;
}

/* discount */
.tmcalc-tier__discount {
  padding: 18px 0;
  margin-bottom: 22px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.tmcalc-tier__discount-num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(90deg, var(--p-red) 0%, #ff8a90 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.tmcalc-tier__discount-label {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* features */
.tmcalc-tier__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tmcalc-tier__features li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.tmcalc-tier__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--p-blue), var(--p-red));
  border-radius: 50%;
}

/* GROWTH (highlighted middle) */
.tmcalc-tier--growth {
  border-color: rgba(244, 0, 9, 0.45);
  background:
    radial-gradient(420px 240px at 50% -10%, rgba(244, 0, 9, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 28px 56px -18px rgba(244, 0, 9, 0.35),
              0 0 80px -30px rgba(244, 0, 9, 0.4);
  transform: scale(1.03);
}
.tmcalc-tier--growth:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(244, 0, 9, 0.6);
}
.tmcalc-tier--growth .tmcalc-tier__discount-num {
  background: linear-gradient(90deg, var(--p-red) 0%, #ff4d54 50%, #ffb1b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ENTERPRISE — premium feel */
.tmcalc-tier--enterprise .tmcalc-tier__count {
  background: linear-gradient(135deg, #ffd700 0%, #ffffff 50%, #ffd700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* note below tiers */
.tmcalc-tiers-note {
  position: relative;
  z-index: 1;
  margin: 36px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.tmcalc-tiers-note strong { color: #fff; }
.tmcalc-tiers-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  color: #b6d4f3;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(182, 212, 243, 0.5);
  transition: color 200ms ease, border-color 200ms ease;
}
.tmcalc-tiers-link:hover {
  color: #ff4d54;
  border-bottom-color: #ff4d54;
}

@media (max-width: 991.98px) {
  .tmcalc-white-label { padding: 80px 0 90px; }
  .tmcalc-tiers { grid-template-columns: 1fr; gap: 20px; }
  .tmcalc-tier--growth { transform: none; }
  .tmcalc-tier--growth:hover { transform: translateY(-4px); }
  .tmcalc-tier__count { font-size: 48px; }
  .tmcalc-tier__discount-num { font-size: 32px; }
}


/* ================== PRICING TABLE (industry benchmark) ================== */
.tmcalc-pricing {
  padding: 90px 0;
  background: var(--p-bg);
}
.tmcalc-pricing-table-wrap {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--p-border);
  overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(10, 102, 194, 0.18);
}
.tmcalc-pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--p-bg);
}
.tmcalc-pricing-table thead th {
  background: linear-gradient(135deg, var(--p-blue) 0%, #1976d2 50%, #1e88e5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: left;
  border-bottom: none;
}
.tmcalc-pricing-table tbody th,
.tmcalc-pricing-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--p-border);
  font-size: 14.5px;
  line-height: 1.5;
  vertical-align: middle;
  text-align: left;
}
.tmcalc-pricing-table tbody th {
  font-weight: 700;
  color: var(--p-black);
  width: 28%;
  background: var(--p-bg-soft);
}
.tmcalc-pricing-table tbody td:nth-child(2) {
  color: var(--p-red);
  font-weight: 700;
  white-space: nowrap;
  width: 24%;
}
.tmcalc-pricing-table tbody td:nth-child(3) {
  color: var(--p-muted);
}
.tmcalc-pricing-table tbody tr:last-child th,
.tmcalc-pricing-table tbody tr:last-child td {
  border-bottom: none;
}
.tmcalc-pricing-table tbody tr:hover th,
.tmcalc-pricing-table tbody tr:hover td {
  background: var(--p-blue-soft);
}
.tmcalc-pricing-note {
  max-width: 880px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--p-muted);
  line-height: 1.65;
}
.tmcalc-pricing-note a {
  color: var(--p-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--p-blue-soft);
}
.tmcalc-pricing-note a:hover {
  color: var(--p-red);
  border-bottom-color: var(--p-red);
}

@media (max-width: 767.98px) {
  .tmcalc-pricing { padding: 70px 0; }
  .tmcalc-pricing-table thead { display: none; }
  .tmcalc-pricing-table,
  .tmcalc-pricing-table tbody,
  .tmcalc-pricing-table tr,
  .tmcalc-pricing-table th,
  .tmcalc-pricing-table td { display: block; }
  .tmcalc-pricing-table tbody tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--p-border);
  }
  .tmcalc-pricing-table tbody th,
  .tmcalc-pricing-table tbody td {
    padding: 6px 18px;
    border: none;
    width: auto;
    background: transparent;
  }
  .tmcalc-pricing-table tbody th { font-size: 16px; }
  .tmcalc-pricing-table tbody td:nth-child(2) {
    font-size: 17px;
    margin-bottom: 4px;
  }
  .tmcalc-pricing-table tbody td:nth-child(3)::before {
    content: "Notes — ";
    font-weight: 700;
    color: var(--p-black);
  }
}


/* ================== COST FACTORS (8 cards) ================== */
.tmcalc-factors {
  padding: 90px 0;
  background: var(--p-bg-soft);
}
.tmcalc-factors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tmcalc-factor {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 22px;
  transition: all 220ms ease;
  position: relative;
}
.tmcalc-factor:hover {
  border-color: var(--p-blue);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(10, 102, 194, 0.25);
}
.tmcalc-factor__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--p-blue);
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.tmcalc-factor__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--p-black);
  margin: 0 0 8px;
  line-height: 1.3;
}
.tmcalc-factor p {
  font-size: 13.5px;
  color: var(--p-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991.98px) {
  .tmcalc-factors__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .tmcalc-factors { padding: 70px 0; }
  .tmcalc-factors__grid { grid-template-columns: 1fr; }
}


/* ================== SEO vs PPC EXPLAINER ================== */
.tmcalc-explainer {
  padding: 90px 0;
  background: var(--p-bg);
}
.tmcalc-explainer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto 32px;
}
.tmcalc-explainer__card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  transition: all 240ms ease;
}
.tmcalc-explainer__card:first-child {
  background: linear-gradient(160deg, #eaf2fb 0%, #ffffff 100%);
  border-color: var(--p-blue-soft);
}
.tmcalc-explainer__card:last-child {
  background: linear-gradient(160deg, #fff1f2 0%, #ffffff 100%);
  border-color: #fecdd3;
}
.tmcalc-explainer__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(10, 102, 194, 0.25);
}
.tmcalc-explainer__card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--p-black);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.tmcalc-explainer__card:first-child h3 { color: var(--p-blue); }
.tmcalc-explainer__card:last-child h3  { color: var(--p-red); }
.tmcalc-explainer__card p {
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.tmcalc-explainer__card p:last-child { margin-bottom: 0; }
.tmcalc-explainer__card strong { color: var(--p-black); }
.tmcalc-explainer__cta {
  text-align: center;
}

@media (max-width: 767.98px) {
  .tmcalc-explainer { padding: 70px 0; }
  .tmcalc-explainer__grid { grid-template-columns: 1fr; }
  .tmcalc-explainer__card { padding: 24px; }
}


/* ================== FAQ ================== */
.tmcalc-faq {
  padding: 90px 0;
  background: var(--p-bg-soft);
}
.tmcalc-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.tmcalc-faq__item {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 220ms ease;
}
.tmcalc-faq__item[open] {
  border-color: var(--p-blue);
  box-shadow: 0 14px 30px -16px rgba(10, 102, 194, 0.25);
}
.tmcalc-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--p-black);
  line-height: 1.4;
  user-select: none;
}
.tmcalc-faq__q::-webkit-details-marker { display: none; }
.tmcalc-faq__q::after {
  content: "+";
  margin-left: auto;
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--p-blue-soft);
  color: var(--p-blue);
  font-size: 22px;
  font-weight: 600;
  transition: all 220ms ease;
}
.tmcalc-faq__item[open] .tmcalc-faq__q::after {
  content: "−";
  background: var(--p-red);
  color: #fff;
  transform: rotate(180deg);
}
.tmcalc-faq__a {
  padding: 0 24px 22px;
  color: var(--p-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 767.98px) {
  .tmcalc-faq { padding: 70px 0; }
  .tmcalc-faq__grid { grid-template-columns: 1fr; }
}

/* ================== FINAL CTA ================== */
.tmcalc-cta {
  padding: 90px 0 110px;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.tmcalc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 0% 100%, rgba(10,102,194,0.35), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(244,0,9,0.25), transparent 60%);
}
.tmcalc-cta__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
}
.tmcalc-cta__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.18;
}
.tmcalc-cta__lead {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 32px;
}
.tmcalc-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.tmcalc-cta .tmcalc-btn--ghost { background: transparent; }
