/* ---- css/calculators.css ---- */
.stCalculatorPage {
  --st-navy: #1e2a5a;
  --st-indigo: #394b8c;
  --st-cyan: #4fc1c4;
  --st-aqua: #dff3f2;
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 193, 196, 0.11), transparent 24rem),
    radial-gradient(circle at 85% 8%, rgba(57, 75, 140, 0.09), transparent 27rem),
    #fff;
  color: var(--st-navy);
}

.stCalculatorLayout {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(55px, 7vw, 95px);
  align-items: start;
}

.stCalculatorContent {
  min-width: 0;
}

.stCalculatorSidebar {
  position: sticky;
  top: 28px;
}

.stCalculatorEyebrow {
  margin: 0 0 13px;
  color: var(--st-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stCalculatorIntro {
  margin-bottom: 38px;
}

.stCalculatorIntro h1 {
  max-width: 780px;
  margin: 0;
  color: var(--st-navy);
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.stCalculatorIntro > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: #687389;
  font-size: 18px;
  line-height: 1.65;
}

.stSavingsTool {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(57, 75, 140, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 65px rgba(30, 42, 90, 0.11);
}

.stSavingsInputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px;
  gap: 14px;
}

.stSavingsInputs label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #59657d;
  font-size: 12px;
  font-weight: 750;
}

.stSavingsInputs input,
.stSavingsInputs select {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
  color: var(--st-navy);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.stSavingsInputs input {
  padding: 0 15px;
}

.stSavingsInputs select {
  padding: 0 12px;
}

.stSavingsInputs input:focus,
.stSavingsInputs select:focus {
  border-color: var(--st-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 193, 196, 0.13);
}

.stMoneyInput {
  position: relative;
}

.stMoneyInput > span {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--st-cyan);
  font-size: 18px;
  font-weight: 850;
}

.stMoneyInput input {
  padding-left: 35px;
}

.stMoneyInputMedium input {
  padding-left: 47px;
}

.stMoneyInputWide input {
  padding-left: 61px;
}

.stMoneyInputWide > span {
  font-size: 14px;
}

.stSavingsTotal {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #26366d 0%, #394b8c 55%, #467e9a 100%);
  box-shadow: 0 18px 38px rgba(57, 75, 140, 0.22);
  color: #fff;
}

.stSavingsTrophy {
  font-size: clamp(36px, 6vw, 54px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.stSavingsTotal p,
.stSavingsTotal small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.stSavingsTotal p {
  font-size: 13px;
  font-weight: 700;
}

.stSavingsTotal strong {
  margin: 5px 0;
  display: block;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.stSavingsTotal small {
  font-size: 11px;
}

.stSavingsStats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stSavingsStats > div {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(57, 75, 140, 0.1);
  border-radius: 17px;
  background: linear-gradient(145deg, #f9fbff, #f2f8f8);
}

.stSavingsStatIcon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  box-shadow: 0 8px 17px rgba(30, 42, 90, 0.1);
}

.stSavingsStatIcon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stSavingsStatIconDaily {
  background: #e6f7f5;
  color: #269b9e;
}

.stSavingsStatIconMonthly {
  background: #edf0ff;
  color: #596bc1;
}

.stSavingsStatIconYearly {
  background: #fff0dc;
  color: #d88724;
}

.stSavingsStats p {
  margin: 10px 0 5px;
  color: #69758b;
  font-size: 11px;
  font-weight: 700;
}

.stSavingsStats strong {
  color: var(--st-navy);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.stSavingsReset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8497;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stSavingsReset:hover {
  color: var(--st-indigo);
}

.stSobrietyTool {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(57, 75, 140, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 65px rgba(30, 42, 90, 0.11);
}

.stSobrietyDateForm {
  padding: 22px;
  border: 1px solid rgba(79, 193, 196, 0.2);
  border-radius: 19px;
  background: linear-gradient(145deg, #f4fbfb, #f7f8ff);
}

.stSobrietyDateForm > label {
  margin-bottom: 9px;
  display: block;
  color: #59657d;
  font-size: 12px;
  font-weight: 780;
}

.stSobrietyDateForm input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: var(--st-navy);
  font: inherit;
  font-size: 15px;
  font-weight: 680;
}

.stSobrietyDateForm .stPickerTrigger {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(57, 75, 140, 0.13);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 42, 90, 0.08);
  color: var(--st-navy);
  text-align: left;
}

.stPickerTrigger svg,
.stTimePickerTrigger svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--st-cyan);
}

.stPickerTrigger > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stPickerTrigger > span:last-child {
  color: #9ca6b8;
  font-size: 22px;
  font-weight: 400;
}

.stSobrietyDateForm input:focus {
  border-color: var(--st-cyan);
  box-shadow: 0 0 0 4px rgba(79, 193, 196, 0.13);
}

.stSobrietyDateForm button,
.stSobrietyActions button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--st-indigo), #5268c4);
  box-shadow: 0 9px 19px rgba(57, 75, 140, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stSobrietyDateForm button:hover,
.stSobrietyActions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 23px rgba(57, 75, 140, 0.24);
}

.stSobrietyDateForm > p {
  margin: 10px 0 0;
  color: #b4475a;
  font-size: 12px;
  font-weight: 650;
}

.stSobrietyResults {
  margin-top: 18px;
}

.stSobrietyTimePrompt {
  margin-bottom: 16px;
  padding: 16px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(79, 193, 196, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #eefafa, #f3f4ff);
}

.stSobrietyTimePrompt > div:first-child {
  min-width: 0;
}

.stSobrietyTimePrompt strong {
  color: var(--st-navy);
  font-size: 13px;
}

.stSobrietyTimePrompt p {
  margin: 5px 0 0;
  color: #6c778c;
  font-size: 11px;
  line-height: 1.5;
}

.stSobrietyTimePrompt > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 7px;
}

.stSobrietyTimePrompt input {
  box-sizing: border-box;
  height: 43px;
  padding: 0 10px;
  border: 1px solid #d7e1ea;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--st-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.stSobrietyTimePrompt input:focus {
  border-color: var(--st-cyan);
  box-shadow: 0 0 0 3px rgba(79, 193, 196, 0.12);
}

.stSobrietyTimePrompt button {
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: var(--st-indigo);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.stSobrietyTimePrompt .stTimePickerTrigger {
  min-width: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(57, 75, 140, 0.14);
  background: #fff;
  color: var(--st-navy);
}

.stSobrietyTimePrompt .stSobrietyTimeError {
  margin: 0;
  grid-column: 1 / -1;
  color: #b4475a;
  font-size: 11px;
  font-weight: 650;
}

.stPickerDialog {
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(57, 75, 140, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(22, 31, 70, 0.3);
  color: var(--st-navy);
}

.stPickerDialog::backdrop {
  background: rgba(15, 23, 48, 0.58);
  backdrop-filter: blur(5px);
}

.stPickerDialog form {
  padding: clamp(22px, 5vw, 34px);
}

.stPickerDialogHeader {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stPickerDialogIcon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #dff5f3, #e9ecff);
  color: var(--st-indigo);
  font-size: 20px;
  font-weight: 800;
}

.stPickerDialog h2 {
  margin: 0;
  color: var(--st-navy);
  font-size: clamp(22px, 4vw, 29px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.stDateSelectGrid {
  display: grid;
  grid-template-columns: 90px minmax(150px, 1fr) 110px;
  gap: 11px;
}

.stDateSelectGrid label,
.stTimeSelectGrid label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.stDateSelectGrid label > span,
.stTimeSelectGrid label > span {
  color: #6b768b;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stDateSelectGrid select,
.stTimeSelectGrid select {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #dbe3ed;
  border-radius: 13px;
  outline: none;
  background: #f8fafc;
  color: var(--st-navy);
  font: inherit;
  font-size: 15px;
  font-weight: 720;
}

.stDateSelectGrid select:focus,
.stTimeSelectGrid select:focus {
  border-color: var(--st-cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 193, 196, 0.13);
}

.stTimeSelectGrid {
  max-width: 300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 11px;
}

.stTimeSelectGrid > span {
  padding-bottom: 13px;
  color: var(--st-cyan);
  font-size: 24px;
  font-weight: 800;
}

.stPickerDialogActions {
  margin-top: 27px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.stPickerDialogActions button {
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--st-indigo), #5268c4);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.stPickerDialogActions button.secondary {
  border: 1px solid #dce3ec;
  background: #fff;
  color: #687389;
}

.stSobrietySince {
  margin-bottom: 24px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #26366d, #394b8c 60%, #477e98);
  color: #fff;
}

.stSobrietySince div {
  min-width: 0;
}

.stSobrietySince span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stSobrietySince strong {
  margin-top: 4px;
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.stSobrietySince button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.stSobrietyProgress {
  display: grid;
  gap: 13px;
}

.stSobrietyProgressItem {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.stSobrietyProgressItem > span {
  color: #657087;
  font-size: 12px;
  font-weight: 720;
}

.stSobrietyProgressItem > strong {
  color: var(--st-navy);
  font-size: 16px;
  text-align: right;
}

.stSobrietyProgressTrack {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.stSobrietyProgressFill {
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  transition: width 0.5s linear;
}

.stSobrietyProgressFill.years {
  background: linear-gradient(90deg, #394b8c, #6576cc);
}

.stSobrietyProgressFill.months {
  background: linear-gradient(90deg, #4fc1c4, #72d9ce);
}

.stSobrietyProgressFill.days {
  background: linear-gradient(90deg, #efaa45, #f5ca72);
}

.stSobrietyProgressFill.hours {
  background: linear-gradient(90deg, #5275c8, #69a8dc);
}

.stSobrietyProgressFill.minutes {
  background: linear-gradient(90deg, #7563b4, #a685d1);
}

.stSobrietyProgressFill.seconds {
  background: linear-gradient(90deg, #3a9b89, #65ccb6);
}

.stSobrietySummaryCards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.stSobrietySummaryCards > div {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(57, 75, 140, 0.1);
  border-radius: 17px;
  background: linear-gradient(145deg, #f9fbff, #f2f8f8);
}

.stSobrietySummaryCards span,
.stSobrietySummaryCards small {
  display: block;
  color: #6b768b;
  font-size: 10px;
  font-weight: 720;
}

.stSobrietySummaryCards strong {
  margin-top: 7px;
  display: block;
  color: var(--st-navy);
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.stSobrietyMilestoneCard {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5df, #eef9f7) !important;
}

.stSobrietyMilestoneCard::after {
  content: "★";
  position: absolute;
  top: 12px;
  right: 17px;
  color: #e5a43d;
  font-size: 22px;
}

.stSobrietyMilestoneCard strong {
  font-size: 23px;
}

.stSobrietyMilestoneCard small {
  margin-top: 7px;
  color: #8b744e;
}

.stSobrietyActions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.stSobrietyActions button.secondary {
  border: 1px solid rgba(57, 75, 140, 0.16);
  background: #fff;
  box-shadow: none;
  color: #687389;
}

.stCalculatorFaqs {
  margin-top: clamp(65px, 8vw, 95px);
}

.stCalculatorFaqs h2 {
  margin: 0 0 28px;
  color: var(--st-navy);
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.045em;
}

.stCalculatorFaqList {
  border-top: 1px solid #e3e9f1;
}

.stCalculatorFaqList details {
  border-bottom: 1px solid #e3e9f1;
}

.stCalculatorFaqList summary {
  padding: 22px 38px 22px 0;
  position: relative;
  color: var(--st-navy);
  cursor: pointer;
  font-size: 17px;
  font-weight: 760;
  list-style: none;
}

.stCalculatorFaqList summary::-webkit-details-marker {
  display: none;
}

.stCalculatorFaqList summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--st-cyan);
  font-size: 25px;
  font-weight: 400;
}

.stCalculatorFaqList details[open] summary::after {
  content: "−";
}

.stCalculatorFaqList details p {
  max-width: 700px;
  margin: -5px 0 22px;
  color: #657087;
  font-size: 15px;
  line-height: 1.75;
}

.stCalculatorDownloadCta {
  margin-top: clamp(55px, 7vw, 82px);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(116, 229, 218, 0.38), transparent 15rem),
    linear-gradient(135deg, #26366d 0%, #465ab0 55%, #3b9fa2 125%);
  box-shadow: 0 24px 55px rgba(38, 54, 109, 0.22);
  color: #fff;
}

.stCalculatorDownloadCta::before,
.stCalculatorDownloadCta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.stCalculatorDownloadCta::before {
  width: 220px;
  height: 220px;
  top: -125px;
  right: 22%;
}

.stCalculatorDownloadCta::after {
  width: 150px;
  height: 150px;
  right: -65px;
  bottom: -80px;
}

.stCalculatorCtaGlow {
  width: 130px;
  height: 130px;
  position: absolute;
  right: 25%;
  bottom: -85px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(79, 193, 196, 0.5);
  filter: blur(30px);
}

.stCalculatorCtaCopy {
  max-width: 520px;
}

.stCalculatorCtaIcon {
  width: 35px;
  height: 35px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: #9ff0e8;
  font-size: 15px;
}

.stCalculatorCtaCopy > p {
  margin: 0 0 9px;
  color: #9ff0e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.stCalculatorCtaCopy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.stCalculatorCtaCopy > div {
  max-width: 510px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.65;
}

.stCalculatorCtaButtons {
  width: 180px;
  display: grid;
  gap: 9px;
}

.stCalculatorCtaButtons a {
  box-sizing: border-box;
  min-height: 53px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(14, 20, 41, 0.86);
  box-shadow: 0 8px 19px rgba(10, 16, 35, 0.17);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stCalculatorCtaButtons a:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 240, 232, 0.72);
}

.stCalculatorCtaButtons svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: currentColor;
}

.stCalculatorCtaButtons a > span {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.05;
  white-space: nowrap;
}

.stCalculatorCtaButtons small {
  margin-bottom: 2px;
  color: #b8bfce;
  font-size: 8px;
  font-weight: 500;
}

.stCalculatorLinksCard {
  padding: 25px;
  border: 1px solid rgba(57, 75, 140, 0.12);
  border-radius: 22px;
  background: linear-gradient(145deg, #f9fbff, #f1f8f8);
  box-shadow: 0 18px 45px rgba(30, 42, 90, 0.08);
}

.stCalculatorCardBrand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--st-navy);
  font-size: 17px;
  font-weight: 780;
}

.stCalculatorCardBrand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 7px 17px rgba(57, 75, 140, 0.15);
}

.stCalculatorLinksCard > p {
  margin: 18px 0 22px;
  color: #647087;
  font-size: 14px;
  line-height: 1.65;
}

.stCalculatorLinksCard h2 {
  margin: 0 0 9px;
  color: var(--st-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stCalculatorLinksCard nav {
  display: grid;
}

.stCalculatorLinksCard nav a {
  padding: 13px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(57, 75, 140, 0.1);
  color: #4f5d78;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.stCalculatorLinksCard nav a.active {
  color: var(--st-indigo);
}

.stCalculatorLinksCard nav a.active > span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--st-cyan);
  vertical-align: 2px;
}

.stCalculatorDownloads {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stCalculatorDownloads a {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #171d32;
  box-shadow: 0 6px 14px rgba(20, 27, 50, 0.13);
  color: #fff;
  text-decoration: none;
}

.stCalculatorDownloads svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentColor;
}

.stCalculatorDownloads a > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.05;
  white-space: nowrap;
}

.stCalculatorDownloads small {
  margin-bottom: 2px;
  overflow: hidden;
  color: #b8bfce;
  font-size: 7px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .stCalculatorLayout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stCalculatorSidebar {
    position: static;
    grid-row: 1;
  }

  .stCalculatorContent {
    grid-row: 2;
  }

  .stCalculatorLinksCard {
    max-width: 560px;
  }
}

@media (max-width: 700px) {
  .stSavingsInputs {
    grid-template-columns: 1fr 1fr;
  }

  .stCurrencyField {
    grid-column: 1 / -1;
  }

  .stSavingsStats {
    grid-template-columns: 1fr;
  }

  .stCalculatorDownloadCta {
    grid-template-columns: 1fr;
  }

  .stCalculatorCtaButtons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stCalculatorLayout {
    width: calc(100% - 32px);
    padding-top: 48px;
  }

  .stCalculatorIntro h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .stSavingsInputs {
    grid-template-columns: 1fr;
  }

  .stCurrencyField {
    grid-column: auto;
  }

  .stSavingsTotal {
    align-items: flex-start;
  }

  .stSavingsTrophy {
    font-size: 34px;
  }

  .stCalculatorCtaButtons {
    grid-template-columns: 1fr;
  }

  .stSobrietyTimePrompt {
    grid-template-columns: 1fr;
  }

  .stSobrietyTimePrompt > div:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .stSobrietySince {
    align-items: flex-start;
  }

  .stSobrietyProgressItem {
    grid-template-columns: 57px minmax(0, 1fr) 32px;
    gap: 7px;
  }

  .stSobrietySummaryCards {
    grid-template-columns: 1fr;
  }

  .stSobrietyMilestoneCard {
    grid-column: auto;
  }

  .stSobrietyActions {
    display: grid;
  }

  .stDateSelectGrid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 7px;
  }

  .stDateSelectGrid select,
  .stTimeSelectGrid select {
    padding-inline: 8px;
    font-size: 14px;
  }

  .stPickerDialogActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stSavingsInputs input,
  .stSavingsInputs select,
  .stSobrietyDateForm button,
  .stSobrietyActions button,
  .stSobrietyProgressFill,
  .stCalculatorDownloads a,
  .stCalculatorCtaButtons a {
    transition: none;
  }
}

