:root {
  color-scheme: light;
  --navy: #071321;
  --navy-2: #0d233d;
  --blue: #1457b8;
  --blue-bright: #0868ed;
  --blue-dark: #0f3f84;
  --green: #2dd87a;
  --green-dark: #128044;
  --ink: #14213d;
  --muted: #586174;
  --line: #d9e1ee;
  --line-strong: #b8c4d6;
  --soft: #eef5ff;
  --paper: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--navy);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #70a9ff;
  outline-offset: 3px;
}

.skip-link {
  background: var(--paper);
  color: var(--blue);
  left: 1rem;
  padding: 0.6rem 0.9rem;
  position: absolute;
  text-decoration: none;
  top: -5rem;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

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

.tools-header {
  background: rgba(4, 17, 32, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tools-nav {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 70px;
  padding: 0.75rem 1.25rem;
}

.tools-brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 850;
  gap: 0.68rem;
  text-decoration: none;
  white-space: nowrap;
}

.tools-brand img {
  border-radius: 10px;
  height: 40px;
  transform: rotate(-8deg);
  width: 40px;
}

.tools-brand .brand-short {
  display: none;
}

.tools-links {
  align-items: center;
  display: flex;
  gap: 1.2rem;
}

.tools-links a {
  align-items: center;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 780;
  min-height: 44px;
  text-decoration: none;
}

.tools-links a:hover,
.tools-links a:focus-visible,
.tools-links a[aria-current="page"] {
  border-bottom-color: var(--green);
  color: var(--green);
}

.tools-mobile-menu {
  display: none;
  position: relative;
}

.tools-mobile-menu summary {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  list-style: none;
  min-height: 44px;
}

.tools-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  background: currentColor;
  border-radius: 99px;
  display: block;
  height: 2px;
  width: 22px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  left: 0;
  position: absolute;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.mobile-menu-panel {
  background: #0a1b2e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  display: grid;
  min-width: 230px;
  padding: 0.45rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 20;
}

.mobile-menu-panel a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.75rem 0.8rem;
  text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible,
.mobile-menu-panel a[aria-current="page"] {
  background: rgba(45, 216, 122, 0.12);
  color: var(--green);
}

.tools-page-background,
.tool-page-hero {
  background:
    radial-gradient(ellipse 45% 34% at 8% 0%, rgba(20, 87, 184, 0.36), transparent),
    radial-gradient(ellipse 48% 44% at 92% 2%, rgba(45, 216, 122, 0.12), transparent),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #ffffff;
}

.tools-hub-main {
  min-height: calc(100vh - 70px);
  padding: clamp(2.5rem, 6vw, 5.5rem) 1.25rem clamp(4rem, 8vw, 7rem);
}

.tools-hub-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.tools-hub-heading {
  margin-bottom: clamp(2.8rem, 6vw, 4.8rem);
  max-width: 760px;
}

.tools-hub-heading h1,
.tool-page-heading h1 {
  color: #ffffff;
  font-size: clamp(2.65rem, 6vw, 4.8rem);
  letter-spacing: -0.052em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.tools-hub-heading p,
.tool-page-heading p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.5;
  margin: 1.15rem 0 0;
  max-width: 690px;
}

.tool-group + .tool-group {
  margin-top: 2.4rem;
}

.tool-group h2 {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.tool-list {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--ink);
  overflow: hidden;
}

.tool-row {
  align-items: center;
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 92px;
  padding: 1rem 1.25rem;
  position: relative;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.tool-row + .tool-row {
  border-top: 1px solid var(--line);
}

a.tool-row:hover,
a.tool-row:focus-visible {
  background: #f5f9ff;
}

.tool-row-icon {
  align-items: center;
  border: 2px solid #cfe0fb;
  border-radius: 50%;
  color: #1a63d6;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.tool-row-icon svg {
  fill: none;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 26px;
}

.tool-row-copy strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.25;
}

.tool-row-copy span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.28rem;
}

.tool-row-arrow {
  color: var(--blue-bright);
  font-size: 1.45rem;
  font-weight: 650;
  padding: 0.4rem;
}

.tools-app-band {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  margin-top: clamp(3.2rem, 7vw, 5.5rem);
  padding: clamp(2rem, 5vw, 3.8rem) 1.25rem;
  text-align: center;
}

.tools-app-band h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.tools-app-band p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin: 0.75rem 0 1.5rem;
}

.store-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.store-actions img {
  display: block;
  height: 50px;
  width: auto;
}

.tool-page-hero {
  min-height: calc(100vh - 70px);
  padding: clamp(2rem, 4.6vw, 4rem) 1.25rem clamp(3.5rem, 6vw, 5rem);
}

.tool-page-heading {
  margin: 0 auto 1.4rem;
  max-width: 1160px;
}

.tool-page-heading h1 {
  font-size: clamp(2.45rem, 5.2vw, 4.25rem);
}

.tool-workspace {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(400px, 0.92fr) minmax(440px, 1.08fr);
  margin: 0 auto;
  max-width: 1160px;
  overflow: hidden;
}

.tool-form,
.tool-result {
  padding: clamp(1.35rem, 2.6vw, 2rem);
}

.tool-form {
  border-right: 1px solid var(--line);
}

.tool-form h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.field-row {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(145px, 0.72fr) minmax(180px, 1.28fr);
  min-height: 52px;
}

.field-row + .field-row {
  margin-top: 0.25rem;
}

.field-row > label,
.field-row > span:first-child {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.field-row input,
.field-row select,
.field-row textarea,
.draft-field input,
.draft-field select,
.draft-field textarea {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 0.66rem 0.75rem;
  width: 100%;
}

.field-row textarea,
.draft-field textarea {
  min-height: 96px;
  resize: vertical;
}

.input-affix {
  align-items: stretch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.input-affix input {
  border-radius: 0;
  grid-column: 2;
  min-width: 0;
}

.input-affix .prefix,
.input-affix .suffix {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: flex;
  font-weight: 750;
  justify-content: center;
  min-width: 42px;
  padding: 0 0.65rem;
}

.input-affix .prefix {
  border-radius: 8px 0 0 8px;
  border-right: 0;
  grid-column: 1;
}

.input-affix .suffix {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  grid-column: 3;
}

.input-affix:not(:has(.suffix)) input {
  border-radius: 0 8px 8px 0;
}

.input-affix:not(:has(.prefix)) input {
  border-radius: 8px 0 0 8px;
  grid-column: 1 / 3;
}

.form-divider {
  border-top: 1px dashed #c9d4e4;
  margin: 0.75rem 0 0.6rem;
}

.optional-adjustments {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
  padding: 0.15rem 0;
}

.optional-adjustments summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  min-height: 44px;
  padding: 0.7rem 0;
}

.optional-adjustments[open] summary {
  margin-bottom: 0.35rem;
}

.primary-tool-button,
.result-dealbuddy-button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
}

.primary-tool-button {
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  margin-top: 0.9rem;
  width: 100%;
}

.primary-tool-button:hover,
.primary-tool-button:focus-visible {
  background: var(--blue-dark);
}

.primary-tool-button[aria-disabled="true"],
.primary-tool-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.tool-result {
  background: linear-gradient(160deg, #ffffff, #f2f7ff);
  min-height: 590px;
}

.empty-tool-result {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.empty-tool-icon {
  align-items: center;
  background: #edf4ff;
  border: 1px solid #cfe0fb;
  border-radius: 50%;
  color: var(--blue-bright);
  display: flex;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.empty-tool-icon svg {
  fill: none;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 34px;
}

.empty-tool-result h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 1rem 0 0.5rem;
}

.empty-tool-result p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 390px;
}

.result-summary-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.result-amount {
  color: var(--ink);
  font-size: clamp(3.1rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
  margin: 0.6rem 0 1.5rem;
}

.result-amount.result-amount-text {
  font-size: clamp(2.45rem, 5.5vw, 4.25rem);
}

.result-context {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: -0.65rem 0 1.25rem;
  max-width: 480px;
}

.comparison-plan-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1rem;
}

.comparison-plan-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}

.comparison-plan-card.is-winner {
  border-color: rgba(21, 148, 79, 0.55);
  box-shadow: inset 0 3px 0 var(--green-dark);
}

.comparison-plan-card h2 {
  color: var(--blue);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.comparison-plan-amount {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0;
}

.comparison-plan-per-deal {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0.2rem 0 0;
}

.comparison-plan-source,
.comparison-plan-break-even {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0.55rem 0 0;
}

.comparison-plan-break-even {
  border-top: 1px solid #e8edf5;
  padding-top: 0.55rem;
}

.comparison-caveat {
  background: #fff8e9;
  border: 1px solid #f1d79e;
  border-radius: 10px;
  color: #655224;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  padding: 0.75rem 0.8rem;
}

.result-breakdown {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 0;
}

.breakdown-row {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.72rem 0;
}

.breakdown-row + .breakdown-row {
  border-top: 1px solid #e8edf5;
}

.breakdown-row dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.breakdown-row dd {
  font-size: 0.92rem;
  font-weight: 850;
  margin: 0;
  text-align: right;
}

.result-dealbuddy-button {
  background: linear-gradient(135deg, #15944f, #2dd87a);
  margin-top: 1.25rem;
  width: 100%;
}

.result-dealbuddy-button:hover,
.result-dealbuddy-button:focus-visible {
  background: var(--green-dark);
}

.result-fallback {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 0.75rem;
  padding: 0.8rem;
}

.result-fallback p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}

.result-fallback div {
  display: flex;
  gap: 0.8rem;
}

.result-fallback a {
  color: var(--blue);
  font-weight: 800;
}

.paycheck-estimator-hero {
  min-height: auto;
}

.paycheck-workspace {
  grid-template-columns: minmax(430px, 0.94fr) minmax(440px, 1.06fr);
}

.paycheck-form {
  padding-bottom: 1.5rem;
}

.paycheck-mode {
  border: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1rem;
  padding: 0;
}

.paycheck-mode legend {
  font-size: 1rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
}

.paycheck-mode label {
  align-items: flex-start;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
  min-height: 76px;
  padding: 0.72rem;
}

.paycheck-mode label:has(input:checked) {
  background: #eef5ff;
  border-color: #76a7eb;
  box-shadow: inset 0 0 0 1px #76a7eb;
}

.paycheck-mode input {
  accent-color: var(--blue);
  flex: 0 0 auto;
  height: 18px;
  margin: 0.1rem 0 0;
  width: 18px;
}

.paycheck-mode label > span {
  display: grid;
  gap: 0.2rem;
}

.paycheck-mode strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.paycheck-mode small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.paycheck-section {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0.4rem;
}

.paycheck-section h2 {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.paycheck-field-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paycheck-field-grid .paycheck-field-row {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0;
  min-height: 0;
}

.paycheck-draw-field {
  grid-column: 1 / -1;
}

.field-label-row {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  justify-content: flex-start;
  min-width: 0;
}

.field-label-row > label {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.field-help {
  flex: 0 0 auto;
  position: relative;
}

.field-help summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid #8aa0bb;
  border-radius: 50%;
  color: #4d6888;
  cursor: help;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  list-style: none;
  width: 18px;
}

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

.field-help > span {
  background: #0b1729;
  border-radius: 7px;
  bottom: calc(100% + 7px);
  box-shadow: 0 8px 24px rgba(7, 19, 33, 0.24);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  left: -0.35rem;
  line-height: 1.42;
  padding: 0.55rem 0.65rem;
  position: absolute;
  width: min(270px, calc(100vw - 2rem));
  z-index: 30;
}

.paycheck-form-error {
  background: #fff0f1;
  border: 1px solid #e7a6ad;
  border-radius: 8px;
  color: #84202c;
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.8rem;
}

.paycheck-result {
  min-height: 650px;
}

.paycheck-breakdown .paycheck-total-row {
  background: #f4f7fb;
  margin-left: -0.65rem;
  margin-right: -0.65rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.paycheck-breakdown .paycheck-total-row dt,
.paycheck-breakdown .paycheck-total-row dd {
  color: var(--ink);
  font-weight: 900;
}

.paycheck-result-warning {
  background: #fff8e8;
  border: 1px solid #ead58d;
  border-radius: 8px;
  color: #5f4a13;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.9rem 0 0;
  padding: 0.72rem 0.8rem;
}

.paycheck-dealbuddy-button {
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  gap: 0.45rem;
}

.paycheck-dealbuddy-button #trackPayButtonLabel {
  line-height: 1.2;
  min-width: 0;
  white-space: normal;
}

.paycheck-dealbuddy-button:hover,
.paycheck-dealbuddy-button:focus-visible {
  background: var(--blue-dark);
}

.edit-paycheck-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0.7rem auto 0;
  min-height: 42px;
  padding: 0.5rem;
  text-decoration: underline;
}

.entered-pay-summary {
  display: none;
}

.paycheck-estimator-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 1rem 0 0;
}

.annual-income-hero {
  min-height: auto;
  padding-bottom: 1.4rem;
  padding-top: 2.1rem;
}

.annual-income-hero .tool-page-heading {
  margin-bottom: 1rem;
}

.annual-income-workspace {
  grid-template-columns: minmax(430px, 0.92fr) minmax(500px, 1.08fr);
}

.annual-income-mode {
  margin-bottom: 0.8rem;
}

.annual-income-mode label {
  min-height: 68px;
  padding: 0.6rem;
}

.annual-income-form,
.annual-income-result {
  padding: 1.45rem 1.7rem;
}

.annual-income-fields {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.annual-income-field-row {
  grid-template-columns: minmax(205px, 1fr) minmax(180px, 1fr);
  min-height: 46px;
}

.annual-income-field-row .field-help > span {
  left: -0.35rem;
  right: auto;
  transform: translateX(var(--annual-help-shift-x, 0));
  width: min(270px, calc(100vw - 3.25rem));
}

.annual-income-result {
  min-height: 0;
}

.annual-income-result-amount {
  color: var(--ink);
  font-size: clamp(2.8rem, 5.4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0.55rem 0 1.1rem;
}

.annual-income-result-amount.annual-income-result-text {
  font-size: clamp(2.25rem, 4.6vw, 3.7rem);
}

.annual-income-breakdown .annual-income-total-row {
  background: #f4f7fb;
  margin-left: -0.65rem;
  margin-right: -0.65rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.annual-income-breakdown .annual-income-total-row dt,
.annual-income-breakdown .annual-income-total-row dd {
  color: var(--ink);
  font-weight: 900;
}

.annual-income-breakdown .breakdown-row {
  padding-bottom: 0.48rem;
  padding-top: 0.48rem;
}

.annual-income-milestone-section {
  margin-top: 1.2rem;
}

.annual-income-milestone-section h2 {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.annual-income-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.annual-income-milestones::before {
  background: #aac5ef;
  content: "";
  height: 2px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 8px;
}

.annual-income-milestones li {
  display: grid;
  gap: 0.5rem;
  grid-template-rows: 17px auto;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}

.annual-milestone-marker {
  background: #ffffff;
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
  display: block;
  height: 16px;
  position: relative;
  width: 16px;
  z-index: 1;
}

.annual-income-milestones li > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.annual-income-milestones strong {
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.annual-income-milestones b {
  color: var(--ink);
  font-size: 0.82rem;
}

.annual-income-milestones small {
  color: var(--muted);
  font-size: 0.7rem;
}

.annual-income-dealbuddy-button {
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.annual-income-dealbuddy-button:hover,
.annual-income-dealbuddy-button:focus-visible {
  background: var(--blue-dark);
}

.annual-income-dealbuddy-button #setAnnualGoalButtonLabel {
  line-height: 1.2;
  min-width: 0;
  white-space: normal;
}

.annual-income-explainer {
  border-top: 1px solid var(--line);
}

.message-coach-hero {
  min-height: auto;
  padding-bottom: 1.4rem;
  padding-top: 2.1rem;
}

.message-coach-hero .tool-page-heading {
  margin-bottom: 1rem;
}

.message-coach-workspace {
  grid-template-columns: minmax(440px, 0.9fr) minmax(520px, 1.1fr);
}

.message-coach-form,
.message-coach-result {
  padding: 1.35rem 1.7rem;
}

.message-purpose-selector,
.message-inline-choice {
  border: 0;
  margin: 0;
  padding: 0;
}

.message-purpose-selector {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-purpose-selector legend {
  font-size: 0.96rem;
  font-weight: 900;
  grid-column: 1 / -1;
  margin-bottom: 0.1rem;
}

.message-purpose-selector label,
.message-inline-choice label {
  cursor: pointer;
  min-width: 0;
  position: relative;
}

.message-purpose-selector label > span {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  display: grid;
  gap: 0.18rem;
  min-height: 92px;
  padding: 0.75rem 0.62rem 0.7rem 2rem;
}

.message-purpose-selector input,
.message-inline-choice input {
  height: 17px;
  left: 0.65rem;
  margin: 0;
  position: absolute;
  top: 0.78rem;
  width: 17px;
  z-index: 1;
}

.message-purpose-selector label:has(input:checked) > span,
.message-inline-choice label:has(input:checked) > span {
  background: #f4f8ff;
  border-color: #3f7fe4;
  box-shadow: 0 0 0 1px rgba(63, 127, 228, 0.18);
}

.message-purpose-selector strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.message-purpose-selector small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.message-coach-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
}

.message-field-row,
.message-inline-choice {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 92px minmax(0, 1fr);
}

.message-field-row {
  grid-template-columns: 160px minmax(0, 1fr);
}

.message-field-row > span,
.message-inline-choice legend,
.message-name-grid label > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.message-field-row small,
.message-name-grid label > span small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.message-field-row input,
.message-field-row select,
.message-name-grid input {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

.message-inline-choice {
  grid-template-columns: 92px repeat(3, minmax(0, 1fr));
}

.message-inline-choice legend {
  float: left;
  width: 92px;
}

.message-inline-choice label > span {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  font-size: 0.78rem;
  min-height: 40px;
  padding: 0.5rem 0.45rem 0.5rem 1.8rem;
}

.message-inline-choice input {
  height: 15px;
  left: 0.5rem;
  top: 0.75rem;
  width: 15px;
}

.message-name-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-name-grid label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.message-draft-button {
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.message-draft-button svg,
.message-dealbuddy-bridge .result-dealbuddy-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.message-privacy-line,
.message-result-privacy {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
}

.message-privacy-line svg,
.message-result-privacy svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.message-coach-result {
  min-height: 0;
}

.message-coach-result > div:not(.empty-tool-result) > h2 {
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.message-draft-tabs {
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-draft-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  min-height: 42px;
  padding: 0.45rem;
}

.message-draft-tabs button[aria-selected="true"] {
  border-bottom-color: var(--blue-bright);
  color: var(--blue);
}

.message-draft-text {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  line-height: 1.48;
  margin-top: 0.65rem;
  min-height: 280px;
  padding: 0.85rem 0.95rem;
  resize: vertical;
  width: 100%;
}

.message-character-count {
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0.35rem 0 0;
  text-align: right;
}

.message-result-actions {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(110px, 1.1fr);
  margin-top: 0.7rem;
}

.message-copy-button {
  align-items: center;
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 0.5rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
}

.message-copy-button:hover,
.message-copy-button:focus-visible {
  background: var(--blue-dark);
}

.message-copy-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 19px;
}

.message-start-over {
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  justify-self: start;
  min-height: 44px;
  padding: 0.5rem;
  text-decoration: underline;
}

.message-dealbuddy-bridge {
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.8rem;
}

.message-dealbuddy-bridge h3 {
  font-size: 0.9rem;
  margin: 0;
}

.message-dealbuddy-bridge > p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  margin: 0.3rem 0 0.65rem;
}

.message-dealbuddy-bridge .result-dealbuddy-button {
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  gap: 0.45rem;
  width: 100%;
}

.message-dealbuddy-bridge .result-dealbuddy-button:hover,
.message-dealbuddy-bridge .result-dealbuddy-button:focus-visible {
  background: var(--blue-dark);
}

.message-result-privacy {
  display: none;
}

.message-coach-explainer {
  border-top: 1px solid var(--line);
}

.tool-explainer {
  background: #ffffff;
  color: var(--ink);
  padding: clamp(2.4rem, 5vw, 4rem) 1.25rem;
}

.tool-explainer-inner {
  margin: 0 auto;
  max-width: 1080px;
}

.tool-explainer h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
}

.explainer-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.explainer-item {
  padding: 1.35rem 1.3rem;
}

.explainer-item + .explainer-item {
  border-left: 1px solid var(--line);
}

.explainer-item strong {
  display: block;
}

.explainer-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.38rem 0 0;
}

.tools-footer {
  align-items: center;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: center;
  padding: 1.65rem 1rem;
  text-align: center;
}

.tools-footer > a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.tools-footer nav {
  display: flex;
  gap: 1rem;
}

.tools-footer nav a:hover,
.tools-footer nav a:focus-visible {
  color: var(--green);
}

.draft-fields {
  display: grid;
  gap: 1rem;
}

.draft-field > span:first-child {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.42rem;
}

.draft-catalog {
  background: #ffffff;
  border-radius: 14px;
  color: var(--ink);
  margin: 2rem auto 0;
  max-width: 900px;
  padding: clamp(1.25rem, 4vw, 2.2rem);
}

.draft-catalog a {
  color: var(--blue);
  font-weight: 800;
}

.complete-comparator-hero {
  background:
    radial-gradient(circle at 75% 5%, rgba(51, 155, 101, 0.14), transparent 28rem),
    linear-gradient(135deg, #152e5a 0%, #0b1729 56%, #0f2430 100%);
  color: #ffffff;
  padding: clamp(2.5rem, 5vw, 4.8rem) max(1rem, 4vw) clamp(3.5rem, 7vw, 6rem);
}

@media (min-width: 921px) {
  .complete-comparator-hero {
    padding-top: 2.2rem;
  }
}

.complete-comparator-hero > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1380px;
}

.complete-comparator-hero .tool-page-heading {
  max-width: 1380px;
}

.shared-month-panel {
  align-items: end;
  background: #ffffff;
  border: 1px solid rgba(12, 28, 51, 0.12);
  border-radius: 13px;
  color: var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 1.35fr) repeat(6, minmax(120px, 1fr));
  padding: 1.2rem 1.35rem;
}

.shared-month-intro {
  align-self: center;
}

.shared-month-intro h2 {
  font-size: 1.3rem;
  margin: 0;
}

.shared-month-intro p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.3rem 0 0;
}

.shared-month-panel label > span:first-child,
.complete-plan-builder header label > span,
.complete-field > span:first-child {
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 0.38rem;
}

.shared-month-panel input,
.complete-plan-builder input,
.complete-plan-builder select {
  background: #ffffff;
  border: 1px solid #cdd4df;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  min-height: 43px;
  padding: 0.65rem 0.7rem;
  width: 100%;
}

.shared-month-panel input:focus,
.complete-plan-builder input:focus,
.complete-plan-builder select:focus {
  border-color: #3975d4;
  box-shadow: 0 0 0 3px rgba(57, 117, 212, 0.16);
  outline: none;
}

.complete-plan-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.complete-plan-builder {
  background: #ffffff;
  border: 1px solid rgba(12, 28, 51, 0.12);
  border-radius: 13px;
  color: var(--ink);
  min-width: 0;
  padding: 1rem;
}

.complete-plan-builder > header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.complete-plan-builder > header > div {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.complete-plan-builder > header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.complete-plan-builder > header label {
  min-width: min(245px, 46%);
}

.plan-letter {
  background: var(--blue);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.plan-b-builder .plan-letter {
  background: #23783f;
}

.plan-editor {
  display: grid;
  gap: 0.55rem;
}

.plan-editor-section {
  border: 1px solid #d9dee7;
  border-radius: 9px;
  overflow: visible;
}

.plan-editor-section:not([open]) {
  overflow: clip;
}

.plan-editor-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
}

.plan-editor-section summary::-webkit-details-marker {
  display: none;
}

.plan-editor-section summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  margin-left: 0.3rem;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 7px;
}

.plan-editor-section[open] summary::after {
  transform: rotate(225deg);
}

.plan-editor-section summary > span {
  align-items: center;
  color: var(--blue);
  display: flex;
  gap: 0.65rem;
}

.plan-b-builder .plan-editor-section summary > span {
  color: #23783f;
}

.plan-editor-section summary b {
  align-items: center;
  border: 1px solid #90b1ed;
  border-radius: 5px;
  display: inline-flex;
  font-size: 0.72rem;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.plan-b-builder .plan-editor-section summary b {
  border-color: #82bd93;
}

.plan-editor-section summary strong {
  font-size: 0.88rem;
}

.plan-editor-section summary small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-left: auto;
}

.plan-section-body {
  border-top: 1px solid #e0e4eb;
  padding: 0.9rem;
}

.complete-field-grid {
  display: grid;
  gap: 0.7rem 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.core-section .complete-field-grid {
  gap: 0.38rem;
  grid-template-columns: 1fr;
}

.core-section .complete-field {
  align-items: center;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 1.35fr);
}

.core-section .complete-field > span:first-child {
  margin-bottom: 0;
}

.core-section .complete-field input,
.core-section .complete-field select {
  min-height: 37px;
  padding-bottom: 0.45rem;
  padding-top: 0.45rem;
}

.complete-field select {
  width: 100%;
}

.complete-field .input-affix {
  width: 100%;
}

.complete-field .input-affix input {
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.complete-field .input-affix:focus-within {
  border-color: #3975d4;
  box-shadow: 0 0 0 3px rgba(57, 117, 212, 0.16);
}

.complete-field .input-affix input:focus {
  box-shadow: none;
}

.complete-check {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 0.55rem;
  min-height: 43px;
}

.complete-check input {
  accent-color: var(--blue);
  min-height: 18px;
  width: 18px;
}

.plan-b-builder .complete-check input {
  accent-color: #23783f;
}

.dynamic-rule-section + .dynamic-rule-section {
  border-top: 1px solid #e0e4eb;
  margin-top: 1rem;
  padding-top: 1rem;
}

.dynamic-rule-section > header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.dynamic-rule-section h3 {
  font-size: 0.84rem;
  margin: 0;
}

.dynamic-rule-section p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0.15rem 0 0;
}

.dynamic-rule-section button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 0.45rem;
}

.plan-b-builder .dynamic-rule-section button {
  color: #23783f;
}

.dynamic-rows {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.complete-dynamic-row {
  align-items: end;
  background: #f7f9fc;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  padding: 0.65rem;
}

.flat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.bonus-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.condition-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.condition-row .remove-rule-button {
  justify-self: end;
}

.complete-dynamic-row .complete-field > span:first-child {
  font-size: 0.67rem;
}

.complete-dynamic-row input,
.complete-dynamic-row select {
  font-size: 0.76rem;
  min-height: 38px;
  padding: 0.45rem 0.5rem;
}

.complete-dynamic-row .remove-rule-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6dce5;
  border-radius: 6px;
  color: #8f2733;
  display: inline-flex;
  font-size: 1.1rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.plan-editor:not(.uses-gross) .rate-tier-section {
  display: none;
}

.plan-editor:not(.uses-tiered-flat) .flat-tier-section {
  display: none;
}

.plan-editor:not(.uses-flat) .complete-field:has([data-field="flatNewAmount"]),
.plan-editor:not(.uses-flat) .complete-field:has([data-field="flatUsedAmount"]) {
  display: none;
}

.plan-editor:not(.uses-gross) .complete-field:has([data-field="frontPercentBase"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="backPercent"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="miniNew"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="miniUsed"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="evMiniOverride"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="newVehiclePack"]),
.plan-editor:not(.uses-gross) .complete-field:has([data-field="usedVehiclePack"]) {
  display: none;
}

.complete-comparator-action {
  background: #ffffff;
  border-radius: 13px;
  color: var(--ink);
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
}

.complete-comparator-action .primary-tool-button {
  margin: 0;
}

.complete-comparator-action p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0.55rem 0 0;
  text-align: center;
}

.comparator-errors {
  background: #fff0f1;
  border: 1px solid #e7a6ad;
  border-radius: 8px;
  color: #84202c;
  font-size: 0.88rem;
  font-weight: 750;
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
}

.complete-comparison-results {
  background: #ffffff;
  border-radius: 13px;
  color: var(--ink);
  margin-top: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.7rem);
}

.complete-result-heading {
  text-align: center;
}

.complete-result-heading h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.complete-result-heading p {
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}

.complete-result-summary {
  border: 1px solid #dbe1e9;
  border-radius: 9px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.complete-result-summary > section {
  padding: 0.8rem 1rem;
  text-align: center;
}

.complete-result-summary > section + section {
  border-left: 1px solid #dbe1e9;
}

.complete-result-summary h3 {
  font-size: 0.78rem;
  margin: 0 0 0.55rem;
}

.complete-result-summary section > div {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.complete-result-summary p {
  margin: 0;
}

.complete-result-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
}

.complete-result-summary strong {
  color: var(--blue);
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 0.15rem;
}

.complete-result-summary p + p strong {
  color: #23783f;
}

.comparison-table-wrap {
  border: 1px solid #dbe1e9;
  border-radius: 9px;
  overflow-x: auto;
}

.comparison-table-wrap table {
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 760px;
  width: 100%;
}

.comparison-table-wrap th,
.comparison-table-wrap td {
  border-bottom: 1px solid #e2e6ed;
  padding: 0.58rem 0.8rem;
  text-align: right;
}

.comparison-table-wrap th:first-child {
  text-align: left;
}

.comparison-table-wrap thead th {
  background: #f6f8fb;
  color: var(--ink);
  font-weight: 900;
}

.comparison-table-wrap tbody th {
  font-weight: 750;
}

.comparison-total-row {
  background: #eef2f7;
  font-weight: 900;
}

.positive-difference {
  color: #137437;
  font-weight: 850;
}

.negative-difference {
  color: #244f94;
  font-weight: 850;
}

.plan-advantages {
  margin-top: 0.9rem;
}

.plan-advantages h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.plan-advantages > div {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-advantages article {
  border: 1px solid #dbe1e9;
  border-left: 3px solid var(--blue);
  border-radius: 7px;
  padding: 0.8rem;
}

.plan-advantages .plan-b-advantages {
  border-left-color: #23783f;
}

.plan-advantages h4 {
  color: var(--blue);
  margin: 0 0 0.35rem;
}

.plan-advantages .plan-b-advantages h4 {
  color: #23783f;
}

.plan-advantages ul {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  padding-left: 1.1rem;
}

.comparison-accuracy-note {
  background: #fff8e8;
  border: 1px solid #ead58d;
  border-radius: 8px;
  color: #5f4a13;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.9rem 0;
  padding: 0.8rem 1rem;
}

.complete-comparison-results .result-dealbuddy-button {
  margin-top: 0;
}

.edit-plans-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0.7rem auto 0;
  text-decoration: underline;
}

.has-comparison .plan-editor,
.has-comparison .complete-comparator-action {
  display: none;
}

.has-comparison .complete-plan-builder {
  padding-bottom: 0.65rem;
}

.has-comparison .complete-plan-builder > header {
  margin-bottom: 0;
}

[data-term-help] {
  align-items: center;
  display: flex !important;
  gap: 0.28rem;
  position: relative;
  width: fit-content;
}

.term-help-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #55708f;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  height: 22px;
  justify-content: center;
  margin: -4px;
  padding: 4px;
  width: 22px;
}

.term-help-button svg {
  fill: none;
  height: 14px;
  overflow: visible;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 14px;
}

.term-help-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(57, 117, 212, 0.2);
  color: var(--blue);
  outline: none;
}

.term-tooltip {
  background: #0b1729;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  bottom: calc(100% + 7px);
  box-shadow: 0 8px 22px rgba(8, 23, 43, 0.24);
  color: #ffffff;
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  left: 0;
  line-height: 1.42;
  max-width: min(280px, calc(100vw - 2rem));
  padding: 0.55rem 0.65rem;
  position: absolute;
  text-align: left;
  width: max-content;
  z-index: 30;
}

[data-term-help]:hover .term-tooltip,
[data-term-help]:focus-within .term-tooltip,
[data-term-help].is-open .term-tooltip {
  display: block;
}

.pay-plan-glossary-section {
  background: #ffffff;
  padding: clamp(2rem, 4vw, 3.4rem) max(1rem, 4vw);
}

.pay-plan-glossary {
  border-bottom: 1px solid #ccd5e0;
  border-top: 1px solid #ccd5e0;
  margin: 0 auto;
  max-width: 1180px;
}

.pay-plan-glossary > summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 94px;
  padding: 1.15rem 0;
}

.pay-plan-glossary > summary::-webkit-details-marker {
  display: none;
}

.pay-plan-glossary > summary > span:first-child {
  display: grid;
  gap: 0.3rem;
}

.pay-plan-glossary > summary strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.pay-plan-glossary > summary small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.glossary-summary-action {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 850;
  gap: 0.55rem;
}

.glossary-summary-action::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 7px;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 7px;
}

.pay-plan-glossary[open] .glossary-summary-action::after {
  transform: rotate(225deg);
}

.pay-plan-glossary-body {
  border-top: 1px solid #e2e7ed;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: clamp(1.4rem, 3vw, 2.3rem) 0 clamp(2rem, 4vw, 3rem);
}

.pay-plan-glossary-body h2 {
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.pay-plan-glossary-body dl {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.pay-plan-glossary-body dl > div {
  border-left: 2px solid #d7e3f4;
  padding-left: 0.75rem;
}

.pay-plan-glossary-body dt {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.pay-plan-glossary-body dd {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0.2rem 0 0;
}

@media (max-width: 920px) {
  .tools-links {
    gap: 0.85rem;
  }

  .tools-links a {
    font-size: 0.82rem;
  }

  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .paycheck-workspace {
    grid-template-columns: 1fr;
  }

  .annual-income-workspace {
    grid-template-columns: 1fr;
  }

  .message-coach-workspace {
    grid-template-columns: 1fr;
  }

  .tool-form {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .tool-result {
    min-height: 0;
  }

  .empty-tool-result {
    min-height: 290px;
  }

  .shared-month-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shared-month-intro {
    grid-column: 1 / -1;
  }

  .complete-plan-grid {
    grid-template-columns: 1fr;
  }

  .pay-plan-glossary-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tools-nav {
    min-height: 64px;
    padding: 0.65rem 0.9rem;
  }

  .tools-brand {
    font-size: 1rem;
  }

  .tools-brand .brand-long {
    display: none;
  }

  .tools-brand .brand-short {
    display: inline;
  }

  .tools-links {
    display: none;
  }

  .tools-mobile-menu {
    display: block;
  }

  .tools-hub-main {
    padding: 2.4rem 0.85rem 4rem;
  }

  .tools-hub-heading h1,
  .tool-page-heading h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .tool-row {
    gap: 0.85rem;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 0.9rem;
  }

  .tool-row-icon {
    height: 42px;
    width: 42px;
  }

  .tool-row-icon svg {
    height: 23px;
    width: 23px;
  }

  .tool-row-copy strong {
    font-size: 0.96rem;
  }

  .tool-row-copy span {
    font-size: 0.82rem;
  }

  .tool-page-hero {
    padding: 2rem 0.75rem 3rem;
  }

  .tool-page-heading {
    margin-bottom: 1.25rem;
  }

  .tool-page-heading p {
    font-size: 1.02rem;
  }

  .complete-comparator-hero {
    padding: 2rem 0.75rem 3rem;
  }

  .shared-month-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
  }

  .shared-month-panel label:last-child {
    grid-column: 1 / -1;
  }

  .complete-plan-builder > header {
    align-items: stretch;
    flex-direction: column;
  }

  .complete-plan-builder > header label {
    min-width: 0;
  }

  .complete-field-grid,
  .complete-dynamic-row,
  .flat-row,
  .bonus-row,
  .condition-row {
    grid-template-columns: 1fr;
  }

  .core-section .complete-field {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .core-section .complete-field > span:first-child {
    margin-bottom: 0.38rem;
  }

  .pay-plan-glossary > summary {
    align-items: flex-start;
    min-height: 0;
    padding: 1rem 0;
  }

  .pay-plan-glossary > summary small {
    line-height: 1.4;
  }

  .glossary-summary-action {
    margin-top: 0.18rem;
  }

  .term-tooltip {
    left: 0;
    right: auto;
  }

  .dynamic-rule-section > header {
    align-items: flex-start;
  }

  .plan-editor-section summary small {
    display: none;
  }

  .complete-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .complete-result-summary > section:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dbe1e9;
  }

  .complete-result-summary > section:nth-child(4) {
    border-top: 1px solid #dbe1e9;
  }

  .plan-advantages > div {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrap {
    overflow: visible;
  }

  .comparison-table-wrap table,
  .comparison-table-wrap tbody {
    display: block;
    min-width: 0;
  }

  .comparison-table-wrap thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .comparison-table-wrap tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-table-wrap tbody th {
    background: #f6f8fb;
    grid-column: 1 / -1;
    padding-bottom: 0.55rem;
    text-align: left;
  }

  .comparison-table-wrap tbody td {
    border-bottom: 1px solid #e2e6ed;
    font-size: 0.8rem;
    min-width: 0;
    padding: 0.55rem 0.4rem;
    text-align: center;
  }

  .comparison-table-wrap tbody td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tool-workspace {
    border-radius: 13px;
  }

  .paycheck-workspace.has-paycheck-estimate .paycheck-form {
    display: none;
  }

  .annual-income-workspace.has-annual-income-plan .annual-income-form {
    display: none;
  }

  .message-coach-workspace.has-message-drafts .message-coach-form {
    display: none;
  }

  .paycheck-workspace.has-paycheck-estimate .entered-pay-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: block;
    padding: 0 1.1rem;
  }

  .annual-income-workspace.has-annual-income-plan .annual-income-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: block;
    padding: 0 1.1rem;
  }

  .message-coach-workspace.has-message-drafts .message-coach-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: block;
    padding: 0 1.1rem;
  }

  .entered-pay-summary summary {
    align-items: center;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    min-height: 68px;
  }

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

  .entered-pay-summary summary > span:first-child {
    display: grid;
    gap: 0.15rem;
  }

  .entered-pay-summary summary strong {
    font-size: 0.9rem;
  }

  .entered-pay-summary summary small {
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
  }

  .entered-pay-summary dl {
    border-top: 1px solid var(--line);
    margin: 0;
    padding: 0.55rem 0 0.9rem;
  }

  .entered-pay-summary dl > div {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.38rem 0;
  }

  .entered-pay-summary dt {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .entered-pay-summary dd {
    font-size: 0.8rem;
    font-weight: 850;
    margin: 0;
  }

  .paycheck-mode,
  .paycheck-field-grid {
    grid-template-columns: 1fr;
  }

  .paycheck-mode label {
    min-height: 0;
  }

  .paycheck-draw-field {
    grid-column: auto;
  }

  .field-help > span {
    left: auto;
    right: -0.35rem;
  }

  .paycheck-result {
    min-height: 0;
  }

  .annual-income-field-row {
    grid-template-columns: 1fr;
  }

  .annual-income-hero {
    padding: 2rem 0.75rem 1.2rem;
  }

  .annual-income-form,
  .annual-income-result {
    padding: 1.1rem;
  }

  .annual-income-result {
    min-height: 0;
  }

  .annual-income-result-amount {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .message-coach-hero {
    padding: 2rem 0.75rem 1.2rem;
  }

  .message-coach-form,
  .message-coach-result {
    padding: 1.1rem;
  }

  .message-purpose-selector {
    grid-template-columns: 1fr;
  }

  .message-purpose-selector label > span {
    min-height: 0;
  }

  .message-field-row,
  .message-inline-choice {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .message-inline-choice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-inline-choice legend {
    float: none;
    grid-column: 1 / -1;
    margin-bottom: 0.12rem;
    width: auto;
  }

  .message-name-grid {
    grid-template-columns: 1fr;
  }

  .message-field-row input,
  .message-field-row select,
  .message-name-grid input {
    min-height: 48px;
  }

  .message-draft-tabs button {
    font-size: 0.76rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .message-draft-text {
    font-size: 0.94rem;
    min-height: 390px;
  }

  .message-result-actions {
    grid-template-columns: 1fr;
  }

  .message-start-over {
    justify-self: center;
  }

  .message-result-privacy {
    display: flex;
    margin-top: 1rem;
  }

  .annual-income-milestones {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .annual-income-milestones::before {
    bottom: 1.35rem;
    height: auto;
    left: 7px;
    right: auto;
    top: 8px;
    width: 2px;
  }

  .annual-income-milestones li {
    gap: 0.8rem;
    grid-template-columns: 16px minmax(0, 1fr);
    grid-template-rows: auto;
    justify-items: start;
    padding-bottom: 0.85rem;
    text-align: left;
  }

  .annual-income-milestones li > span:last-child {
    margin-top: -0.08rem;
  }

  .tool-form,
  .tool-result {
    padding: 1.1rem;
  }

  .field-row {
    align-items: stretch;
    gap: 0.45rem;
    grid-template-columns: 1fr;
    margin-bottom: 0.85rem;
  }

  .field-row + .field-row {
    margin-top: 0;
  }

  .field-row input,
  .field-row select,
  .field-row textarea,
  .draft-field input,
  .draft-field select,
  .draft-field textarea {
    min-height: 48px;
  }

  .empty-tool-result {
    min-height: 260px;
  }

  .comparison-plan-grid {
    grid-template-columns: 1fr;
  }

  .explainer-list {
    grid-template-columns: 1fr;
  }

  .explainer-item + .explainer-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tools-footer {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* New-hire 30/60/90-day ramp planner */
.ramp-planner-hero {
  min-height: auto;
  padding-bottom: 1.5rem;
  padding-top: 2.25rem;
}

.ramp-planner-heading,
.ramp-planner-workspace {
  max-width: 1375px;
}

.ramp-planner-heading {
  margin-bottom: 1.2rem;
}

.ramp-planner-heading h1 {
  font-size: clamp(2.45rem, 4vw, 3.45rem);
}

.ramp-planner-heading p {
  max-width: 970px;
}

.ramp-planner-workspace {
  grid-template-columns: minmax(390px, 0.74fr) minmax(680px, 1.56fr);
}

.ramp-planner-form,
.ramp-planner-result {
  padding: 1.35rem 1.7rem;
}

.ramp-planner-fields {
  display: grid;
  gap: 0.72rem;
}

.ramp-field {
  display: grid;
  gap: 0.34rem;
}

.ramp-field > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.ramp-field input,
.ramp-field select {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  min-height: 44px;
  padding: 0.62rem 0.72rem;
  width: 100%;
}

.ramp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.7rem center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 2.25rem;
}

.ramp-build-button {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 0.92rem;
}

.ramp-build-button svg,
.ramp-dealbuddy-bridge .result-dealbuddy-button svg {
  fill: none;
  height: 18px;
  margin-left: 0.5rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.ramp-privacy-line,
.ramp-result-privacy {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.72rem;
  gap: 0.45rem;
  line-height: 1.35;
  margin: 0.72rem 0 0;
}

.ramp-privacy-line svg,
.ramp-result-privacy svg {
  fill: none;
  flex: 0 0 14px;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 14px;
}

.ramp-planner-result {
  min-height: 0;
}

.ramp-planner-result #builtRampResult > h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

.ramp-result-summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.ramp-result-summary > div {
  align-items: center;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 0.15rem 1.4rem 0.15rem 0;
}

.ramp-result-summary > div + div {
  border-right: 0;
  padding-left: 1.4rem;
}

.ramp-summary-icon {
  fill: none;
  height: 30px;
  stroke: var(--blue-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 30px;
}

.ramp-summary-copy {
  display: grid;
  gap: 0.12rem;
}

.ramp-summary-copy > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.ramp-result-summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.ramp-progress-rail {
  display: flex;
  justify-content: space-between;
  margin: 1.4rem 0 1.05rem;
  position: relative;
}

.ramp-progress-rail::before {
  background: linear-gradient(90deg, var(--blue-bright), var(--green));
  content: "";
  height: 3px;
  left: 9px;
  position: absolute;
  right: 9px;
  top: 9px;
}

.ramp-progress-rail span {
  align-items: center;
  background: var(--green-dark);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(45, 216, 122, 0.2);
  color: #ffffff;
  display: flex;
  font-size: 0.62rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  position: relative;
  width: 20px;
  z-index: 1;
}

.ramp-progress-rail span:first-child,
.ramp-progress-rail span:nth-child(2) {
  background: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(8, 104, 237, 0.18);
}

.ramp-phase-tabs {
  border: 1px solid var(--line-strong);
  border-radius: 8px 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.ramp-phase-tabs button {
  background: #ffffff;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  min-height: 42px;
  padding: 0.55rem;
}

.ramp-phase-tabs button + button {
  border-left: 1px solid var(--line);
}

.ramp-phase-tabs button[aria-selected="true"] {
  border-bottom-color: var(--blue-bright);
  color: var(--blue);
  font-weight: 900;
}

.ramp-phase-panel {
  border: 1px solid var(--line-strong);
  border-radius: 0 0 8px 8px;
  border-top: 0;
  padding: 0.9rem;
}

.ramp-phase-intro {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.ramp-phase-intro h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.ramp-phase-intro p {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0.28rem 0 0;
}

.ramp-phase-intro > strong {
  color: var(--blue);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ramp-phase-columns {
  display: grid;
  grid-template-columns: 1.22fr 1.15fr 0.8fr;
}

.ramp-phase-columns > div {
  padding: 0.85rem 0.8rem 0 0;
}

.ramp-phase-columns > div + div {
  border-left: 1px solid var(--line);
  padding-left: 0.8rem;
}

.ramp-phase-columns h4 {
  font-size: 0.76rem;
  margin: 0 0 0.55rem;
}

.ramp-phase-columns > div > p {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.48;
  margin: 0;
}

.ramp-checklist {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ramp-checklist label {
  align-items: flex-start;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0.67rem;
  gap: 0.45rem;
  line-height: 1.38;
}

.ramp-checklist input {
  accent-color: var(--blue-bright);
  flex: 0 0 14px;
  height: 14px;
  margin: 0.08rem 0 0;
  width: 14px;
}

.ramp-checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.ramp-result-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-top: 0.72rem;
}

.ramp-print-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem;
  text-decoration: underline;
}

.ramp-print-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.ramp-dealbuddy-bridge {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  margin-top: 0.6rem;
  padding-top: 0.78rem;
}

.ramp-dealbuddy-bridge h3 {
  font-size: 0.9rem;
  margin: 0;
}

.ramp-dealbuddy-bridge p {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 0.2rem 0 0;
}

.ramp-dealbuddy-bridge .result-dealbuddy-button {
  background: linear-gradient(135deg, #0b55cd, #0873ee);
  margin-top: 0;
}

.ramp-dealbuddy-bridge .result-dealbuddy-button:hover,
.ramp-dealbuddy-bridge .result-dealbuddy-button:focus-visible {
  background: var(--blue-dark);
}

.ramp-dealbuddy-bridge .result-fallback {
  grid-column: 1 / -1;
}

.ramp-result-privacy {
  display: none;
}

.ramp-input-summary summary > svg {
  fill: none;
  height: 20px;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
  width: 20px;
}

.ramp-input-summary[open] summary > svg {
  transform: rotate(180deg);
}

.ramp-edit-inputs {
  background: transparent;
  border: 0;
  color: var(--blue);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0 0 0.75rem auto;
  min-height: 40px;
  padding: 0.4rem 0;
  text-decoration: underline;
}

.ramp-planner-explainer {
  padding-bottom: 2.2rem;
  padding-top: 1.7rem;
}

.ramp-explainer-item {
  align-items: flex-start;
  display: flex;
  gap: 0.8rem;
}

.ramp-explainer-item > span {
  align-items: center;
  border: 2px solid var(--blue-bright);
  border-radius: 50%;
  color: var(--blue);
  display: flex;
  flex: 0 0 42px;
  font-size: 0.78rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
}

.ramp-explainer-item:nth-child(n + 2) > span {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.ramp-print-plan {
  display: none;
}

@media (max-width: 1120px) {
  .ramp-planner-workspace {
    grid-template-columns: minmax(330px, 0.68fr) minmax(590px, 1.32fr);
  }

  .ramp-planner-form,
  .ramp-planner-result {
    padding: 1.2rem 1.3rem;
  }

  .ramp-phase-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ramp-phase-columns > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
  }
}

@media (max-width: 920px) {
  .ramp-planner-workspace {
    grid-template-columns: 1fr;
  }

  .ramp-planner-workspace.has-ramp-plan:not(.is-editing-ramp) .ramp-planner-form {
    display: none;
  }

  .ramp-planner-workspace.has-ramp-plan:not(.is-editing-ramp) .ramp-input-summary {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: block;
    padding: 0 1.1rem;
  }
}

@media (max-width: 620px) {
  .ramp-planner-hero {
    padding-top: 1.6rem;
  }

  .ramp-planner-heading h1 {
    font-size: clamp(2.05rem, 10.2vw, 2.85rem);
    line-height: 1.04;
  }

  .ramp-planner-heading p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .ramp-planner-form,
  .ramp-planner-result {
    padding: 1.1rem;
  }

  .ramp-result-summary {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .ramp-result-summary > div {
    padding-right: 0.8rem;
  }

  .ramp-result-summary > div + div {
    padding-left: 0.8rem;
  }

  .ramp-result-summary strong {
    font-size: 0.92rem;
  }

  .ramp-phase-tabs button {
    font-size: 0.7rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .ramp-phase-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .ramp-phase-columns {
    grid-template-columns: 1fr;
  }

  .ramp-phase-columns > div,
  .ramp-phase-columns > div + div,
  .ramp-phase-columns > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-column: auto;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0;
  }

  .ramp-phase-columns > div:first-child {
    border-top: 0;
    margin-top: 0;
  }

  .ramp-checklist label,
  .ramp-phase-columns > div > p {
    font-size: 0.78rem;
  }

  .ramp-result-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
  }

  .ramp-result-actions .message-copy-button {
    width: 100%;
  }

  .ramp-print-button {
    align-self: center;
  }

  .ramp-dealbuddy-bridge {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ramp-dealbuddy-bridge .result-dealbuddy-button {
    width: 100%;
  }

  .ramp-result-privacy {
    display: flex;
    justify-content: center;
  }
}

@media print {
  body > :not(.ramp-print-plan) {
    display: none !important;
  }

  .ramp-print-plan {
    color: #000000;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 0.25in;
  }

  .ramp-print-plan h1 {
    font-size: 20pt;
    margin: 0 0 0.1in;
  }

  .ramp-print-plan > p {
    color: #333333;
    margin: 0 0 0.25in;
  }

  .ramp-print-plan section {
    border-top: 1px solid #bbbbbb;
    break-inside: avoid;
    padding: 0.16in 0;
  }

  .ramp-print-plan h2,
  .ramp-print-plan h3,
  .ramp-print-plan p,
  .ramp-print-plan ul {
    margin-bottom: 0.08in;
    margin-top: 0.04in;
  }

  .ramp-print-plan h2 {
    font-size: 14pt;
  }

  .ramp-print-plan h3,
  .ramp-print-plan li,
  .ramp-print-plan p {
    font-size: 9.5pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ramp-input-summary summary > svg {
    transition: none;
  }
}
