.costing-guide { background: #fff; }

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 72px;
  background: radial-gradient(circle at 86% 15%, rgba(36,156,169,.14), transparent 28%), linear-gradient(140deg,#fff 0%,#f5f8ff 56%,#eef9fa 100%);
}
.guide-hero::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -260px;
  width: 460px;
  height: 460px;
  border: 74px solid rgba(7,92,241,.06);
  border-radius: 50%;
}
.guide-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 58px; align-items: center; }
.guide-hero h1 { max-width: 800px; font-size: clamp(2.55rem,5vw,4.8rem); }
.guide-lede { max-width: 760px; margin: 24px 0 0; color: #33445e; font-size: clamp(1.08rem,2vw,1.25rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: #064fcf; font-weight: 750; }

.formula-card { padding: 30px; border: 1px solid rgba(220,228,239,.95); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.formula-card h2 { font-size: 1.8rem; letter-spacing: -.03em; }
.formula-card ol { margin: 24px 0; padding-left: 22px; }
.formula-card li { margin: 13px 0; color: #33445e; }
.formula-note { margin: 0; padding: 15px 17px; border-left: 4px solid var(--gold); background: #fff8e8; color: #5c4612; font-size: .92rem; }

.calculator-section { background: var(--navy); color: white; }
.calculator-section .section-head h2 { color: white; }
.calculator-section .section-head p:not(.eyebrow) { color: #c7d5e9; }
.calculator-section .eyebrow { color: #72d8e0; }
.calculator-shell { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); gap: 0; overflow: hidden; border-radius: 22px; background: white; box-shadow: 0 22px 65px rgba(0,0,0,.25); }
.calculator-form { padding: 32px; color: var(--ink); }
.calculator-form fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.calculator-form legend { width: 100%; margin: 0 0 15px; padding: 0 0 9px; border-bottom: 1px solid var(--line); color: var(--navy); font-size: 1.05rem; font-weight: 900; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field-grid label { display: block; color: #263953; font-size: .89rem; font-weight: 820; }
.field-grid label span { float: right; color: var(--muted); font-size: .78rem; font-weight: 650; }
.field-grid input { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid #b8c6d8; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.field-grid input:focus { outline: 3px solid rgba(7,92,241,.2); border-color: var(--blue); }
.field-grid input[aria-invalid="true"] { border-color: #b42318; background: #fff5f5; }
.calculator-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.calculator-status { flex: 1; min-width: 220px; margin: 0; color: #a51d18; font-size: .86rem; font-weight: 750; }
.calculator-results { padding: 34px; color: var(--ink); background: linear-gradient(145deg,#edf9f9,#f3f7ff); }
.result-label { margin: 0 0 18px; color: #0c6570; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.calculator-results dl { margin: 0; }
.calculator-results dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(7,31,73,.12); }
.calculator-results dt { color: #40516a; font-size: .91rem; }
.calculator-results dd { margin: 0; color: var(--navy); font-weight: 900; white-space: nowrap; }
.calculator-results .result-emphasis { margin: 14px -12px 0; padding: 18px 12px; border: 0; border-radius: 12px; background: var(--navy); }
.calculator-results .result-emphasis dt { color: #d7e1f0; }
.calculator-results .result-emphasis dd { color: var(--gold); font-size: 1.5rem; }
.result-note { margin: 20px 0 0; color: #40516a; font-size: .84rem; }

.guide-content { max-width: 1040px; }
.costing-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.costing-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: white; font-weight: 900; }
.costing-steps h3 { margin: 0 0 5px; color: var(--navy); }
.costing-steps p { margin: 0; color: var(--muted); }

.fields-section { background: var(--paper); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 12px 30px rgba(7,31,73,.06); }
.table-scroll:focus { outline: 3px solid rgba(7,92,241,.25); outline-offset: 3px; }
.table-scroll table { width: 100%; min-width: 760px; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll thead th { color: white; background: var(--navy); font-size: .87rem; letter-spacing: .025em; }
.table-scroll tbody th { width: 190px; color: var(--navy); }
.table-scroll tbody td { color: #40516a; }
.table-scroll tbody tr:last-child th, .table-scroll tbody tr:last-child td { border-bottom: 0; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparison-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.comparison-grid .connected-card { border-color: rgba(36,156,169,.45); background: #edf9f9; }
.comparison-grid h3 { margin-top: 0; color: var(--navy); }
.comparison-grid ul { margin-bottom: 0; padding-left: 22px; color: #40516a; }
.comparison-grid li { margin: 10px 0; }
.price-update-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-top: 28px; padding: 30px; border-radius: 18px; color: white; background: var(--navy); }
.price-update-callout .eyebrow { color: #72d8e0; }
.price-update-callout h3 { margin: 0; font-size: 1.45rem; line-height: 1.25; }
.price-update-callout p:last-child { margin: 0; color: #c7d5e9; }

.terms-section { background: #eff6ff; }
.term-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.term-grid article { padding: 24px; border: 1px solid #d7e4f5; border-radius: 16px; background: white; }
.term-grid h3 { margin: 0 0 8px; color: var(--navy); }
.term-grid p { margin: 0; color: var(--muted); }

.guide-faq { background: var(--paper); }
.guide-cta { color: white; background: linear-gradient(140deg,#061b41,#0b3577); }
.guide-cta h2 { color: white; }
.guide-cta p { color: #c7d5e9; }
.guide-cta .eyebrow { color: #72d8e0; }
.guide-cta-grid { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-cta-actions p { width: 100%; margin: 6px 0 0; font-size: .82rem; }

@media (max-width: 900px) {
  .guide-hero-grid, .calculator-shell, .price-update-callout, .guide-cta-grid { grid-template-columns: 1fr; }
  .guide-hero { padding-top: 58px; }
  .formula-card { max-width: 650px; }
  .calculator-results { border-top: 1px solid var(--line); }
  .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .field-grid, .term-grid { grid-template-columns: 1fr; }
  .calculator-form, .calculator-results { padding: 24px 18px; }
  .costing-steps li { grid-template-columns: 40px 1fr; padding: 18px 14px; }
  .step-number { width: 36px; height: 36px; }
  .calculator-results dl div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .calculator-results .result-emphasis { margin-left: 0; margin-right: 0; }
  .guide-cta-actions .button { width: 100%; }
}
