.performance-page {
  --perf-blue: #0b2a5b;
  --perf-cyan: #0f8da7;
  --perf-green: #00a96b;
  --perf-orange: #f59e0b;
  --perf-red: #ef4444;
  --perf-line: #d8e3ef;
  --perf-soft: #f5fbff;
  color: #09204a;
  background: #ffffff;
  overflow-x: hidden;
}

.performance-page main {
  background:
    radial-gradient(circle at 12% 8%, rgba(16, 185, 129, .12), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, .12), transparent 24rem),
    linear-gradient(#fff, #f8fbff 38%, #fff 100%);
}

@media (max-width: 720px) {
  html:has(.performance-page) {
    overflow-x: hidden;
  }

  .performance-page .mobile-menu {
    right: auto;
    left: 100%;
    transform: translateX(0);
  }

  .performance-page.menu-open .mobile-menu {
    transform: translateX(-100%);
  }
}

/* Hero illustration redraw against the img-2 mockup */
.performance-page .perf-art {
  min-height: 350px;
  isolation: isolate;
}

.performance-page .speed-line {
  position: absolute;
  z-index: 0;
  height: 4px;
  border-radius: 999px;
  transform: rotate(-13deg);
  opacity: .92;
}

.performance-page .speed-line-a {
  width: 300px;
  right: 28px;
  top: 72px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
}

.performance-page .speed-line-b {
  width: 360px;
  right: 18px;
  top: 111px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
}

.performance-page .speed-line-c {
  width: 420px;
  right: 6px;
  top: 245px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
}

.performance-page .speed-line-d {
  width: 245px;
  right: 0;
  top: 142px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
}

.performance-page .speed-line-e {
  width: 320px;
  left: 18px;
  bottom: 54px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
}

.performance-page .perf-art::before,
.performance-page .perf-art::after {
  display: none;
}

.performance-page .perf-speedometer {
  z-index: 1;
  right: 144px;
  top: 20px;
  width: 254px;
  height: 254px;
  border: 6px solid #06183b;
  background:
    conic-gradient(from 220deg, #1677ff 0 105deg, #f97316 105deg 154deg, transparent 154deg 360deg),
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    #edf6ff;
  box-shadow: 0 20px 36px rgba(6, 24, 59, .16);
}

.performance-page .perf-speedometer::before {
  left: 126px;
  top: 126px;
  width: 94px;
  height: 7px;
  background: #06183b;
  transform: rotate(-42deg);
  z-index: 3;
}

.performance-page .perf-speedometer::after {
  content: "";
  left: 113px;
  top: 113px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #06183b;
  border: 7px solid #dbeafe;
}

.performance-page .perf-car {
  z-index: 3;
  left: 38px;
  bottom: 44px;
  width: 392px;
  height: 118px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.performance-page .perf-car::before,
.performance-page .perf-car::after {
  content: none;
}

.performance-page .car-hood {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 82px;
  background:
    linear-gradient(160deg, transparent 0 9%, #fff 10% 100%),
    linear-gradient(180deg, #fff, #eaf3ff);
  border: 5px solid #06183b;
  border-radius: 34px 118px 34px 42px;
  clip-path: polygon(0 63%, 11% 34%, 39% 20%, 74% 20%, 96% 42%, 100% 74%, 87% 98%, 12% 100%, 0 82%);
}

.performance-page .car-hood::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 36px;
  width: 74px;
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  border: 3px solid #06183b;
  transform: rotate(-8deg);
}

.performance-page .car-cabin {
  position: absolute;
  left: 126px;
  top: 12px;
  width: 152px;
  height: 76px;
  border: 5px solid #06183b;
  border-bottom: 0;
  border-radius: 88px 92px 0 0;
  background: #fff;
  transform: skewX(-12deg);
}

.performance-page .car-window {
  position: absolute;
  left: 147px;
  top: 25px;
  width: 108px;
  height: 36px;
  border-radius: 52px 56px 4px 4px;
  background: linear-gradient(180deg, #dbeafe, #fff);
  border-bottom: 4px solid #06183b;
  transform: skewX(-12deg);
}

.performance-page .car-headlight {
  position: absolute;
  left: 28px;
  bottom: 82px;
  width: 58px;
  height: 14px;
  border-radius: 999px;
  border: 4px solid #06183b;
  background: #fff;
  transform: rotate(-14deg);
}

.performance-page .car-door {
  position: absolute;
  left: 240px;
  bottom: 48px;
  width: 78px;
  height: 54px;
  border-left: 4px solid #06183b;
  border-bottom: 4px solid #06183b;
  border-radius: 0 0 28px 18px;
  transform: skewX(-10deg);
}

.performance-page .car-wheel {
  position: absolute;
  bottom: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #dbeafe 0 18%, #06183b 19% 36%, #fff 37% 43%, #06183b 44% 100%);
  border: 5px solid #06183b;
}

.performance-page .car-wheel-front {
  left: 86px;
}

.performance-page .car-wheel-back {
  right: 54px;
}

.performance-page .perf-flag {
  z-index: 2;
  right: 10px;
  bottom: 78px;
  width: 88px;
  height: 90px;
  border-left: 6px solid #06183b;
  transform: rotate(6deg);
}

.performance-page .perf-flag::before {
  width: 82px;
  height: 50px;
  background:
    linear-gradient(45deg, #06183b 25%, transparent 25% 50%, #06183b 50% 75%, transparent 75%) 0 0 / 27px 27px,
    #fff;
}

@media (max-width: 720px) {
  .performance-page .perf-art {
    min-height: 250px;
    transform: scale(.72);
    transform-origin: left top;
    width: 540px;
  }
}

.performance-page .perf-hero-svg {
  position: absolute;
  inset: -8px -10px auto auto;
  z-index: 4;
  width: 640px;
  height: 360px;
  display: block;
  overflow: visible;
}

.performance-page .perf-hero-source-art {
  position: absolute;
  right: -2px;
  top: 28px;
  z-index: 8;
  width: 560px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.performance-page .perf-hero-svg .svg-gauge,
.performance-page .perf-hero-svg .svg-car,
.performance-page .perf-hero-svg .svg-flag {
  filter: drop-shadow(0 14px 18px rgba(6, 24, 59, .12));
}

.performance-page .perf-speedometer,
.performance-page .perf-car,
.performance-page .perf-flag,
.performance-page .speed-line,
.performance-page .perf-hero-svg {
  display: none;
}

@media (max-width: 1240px) {
  .performance-page .perf-art {
    width: 640px;
    max-width: 100%;
    min-height: 330px;
  }

  .performance-page .perf-hero-svg {
    left: 0;
    right: auto;
    width: min(640px, 100%);
    height: auto;
  }

  .performance-page .perf-hero-source-art {
    left: 0;
    right: auto;
    width: min(560px, 100%);
  }
}

@media (max-width: 720px) {
  .performance-page .perf-art {
    width: 100%;
    min-height: 210px;
    transform: none;
  }

  .performance-page .perf-hero-svg {
    width: 118%;
    left: -8%;
    top: -18px;
  }

  .performance-page .perf-hero-source-art {
    width: 112%;
    left: -6%;
    top: 0;
  }
}

/* Exact hero mode: use the img-2 hero crop as the visible hero. */
.performance-page .perf-hero {
  padding: 0;
  background: #f8fbff;
}

.performance-page .perf-hero > .directory-container {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.performance-page .perf-hero-exact-art {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 720px) {
  .performance-page .perf-hero-exact-art {
    width: 100vw;
    max-width: 100vw;
  }
}

@media (min-width: 864px) {
  .performance-page .perf-hero-exact-art {
    min-height: 508px;
  }
}

/* Keep navigation and footer identical to calculators.html. */
.performance-page .directory-header {
  height: auto;
  border-bottom: 1px solid #dfe7f1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(17, 40, 77, .02);
}

.performance-page .brand-word {
  color: #061738;
}

.performance-page .brand-word span {
  color: var(--color-green);
}

.performance-page .brand-planet {
  background: transparent;
  border-color: #08ae64;
}

.performance-page .brand-planet::before {
  border-color: #08ae64;
}

.performance-page .brand-planet::after {
  border-top-color: #08ae64;
  box-shadow: 0 -8px 0 -2px #08ae64, 0 8px 0 -2px #08ae64;
}

.performance-page .submit-btn {
  min-height: 36px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #12bd72 0%, #009e57 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 164, 91, .2);
}

.performance-page .directory-footer {
  color: var(--color-ink);
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #dfe7f1;
}

.performance-page .directory-footer .brand-word {
  color: #061738;
}

.performance-page .directory-footer .brand-word span {
  color: var(--color-green);
}

.performance-page .directory-footer .footer-brand-block p,
.performance-page .directory-footer .footer-meta p,
.performance-page .directory-footer .footer-columns a {
  color: var(--color-muted);
}

.performance-page .directory-footer .footer-columns button {
  color: var(--color-ink);
}

.performance-page .directory-footer .footer-socials a {
  border-color: #dce6f2;
  color: #071b43;
  background: #fff;
}

.performance-page .directory-footer .lang-btn {
  border: 1px solid #dce8f2;
  color: var(--color-ink);
  background: #fff;
}

@media (max-width: 720px) {
  html:has(body.performance-page),
  body.performance-page {
    overflow-x: hidden;
  }

  body.performance-page .mobile-menu {
    right: auto !important;
    left: 100% !important;
    transform: translateX(0) !important;
  }

  body.performance-page.menu-open .mobile-menu {
    transform: translateX(-100%) !important;
  }

  body.performance-page .perf-hero-exact-art {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Final exact hero override. */
.performance-page .perf-hero {
  padding: 0;
  background: #f8fbff;
}

.performance-page .perf-hero > .directory-container {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.performance-page .perf-hero-exact-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 720px) {
  html:has(.performance-page) {
    overflow-x: hidden;
  }

  .performance-page {
    overflow-x: hidden;
  }

  .performance-page .mobile-menu {
    right: auto;
    left: 100%;
    transform: translateX(0);
  }

  .performance-page.menu-open .mobile-menu {
    transform: translateX(-100%);
  }

  .performance-page .perf-hero-exact-art {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Exact visual hero from the img-2 source mockup. */
.performance-page .perf-hero {
  padding: 0;
  background: #fff;
}

.performance-page .perf-hero .directory-container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.performance-page .perf-hero-exact {
  display: block;
  width: 100%;
  height: auto;
}

.performance-page .perf-hero .perf-breadcrumbs,
.performance-page .perf-hero .perf-hero-grid {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .performance-page .perf-hero-exact {
    width: 190%;
    max-width: none;
    margin-left: -44%;
  }
}

/* 0-60 img-2 fidelity layer */
.performance-page .directory-header {
  height: 70px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #dce6f0;
  box-shadow: none;
}

.performance-page .brand-word span {
  color: #1677ff;
}

.performance-page .brand-planet {
  background: linear-gradient(135deg, #fff, #dbeafe);
  border-color: #06183b;
}

.performance-page .brand-planet::before,
.performance-page .brand-planet::after {
  border-color: #1677ff;
}

.performance-page .submit-btn {
  color: #008a51;
  background: #fff;
  border: 1px solid #02a85f;
  box-shadow: none;
}

.performance-page .perf-breadcrumbs {
  margin-top: 8px;
}

.performance-page .perf-hero {
  padding: 22px 0 30px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.performance-page .perf-hero-grid {
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 42px;
}

.performance-page .perf-icon-large {
  display: none;
}

.performance-page .perf-hero h1 {
  margin-top: 70px;
  font-size: clamp(58px, 5.4vw, 80px);
}

.performance-page .perf-hero p {
  max-width: 650px;
  margin-top: 22px;
  font-size: 20px;
}

.performance-page .perf-badges {
  gap: 34px;
  margin-top: 42px;
}

.performance-page .perf-badges > span {
  display: grid;
  grid-template-columns: 44px auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}

.performance-page .perf-badges > span > span {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1677ff;
  background: #eaf3ff;
}

.performance-page .perf-badges strong {
  display: block;
  color: #06183b;
  font-size: 15px;
}

.performance-page .perf-badges small {
  display: block;
  color: #4e6684;
  font-size: 12px;
  font-weight: 700;
}

.performance-page .perf-badges svg {
  width: 22px;
  height: 22px;
}

.performance-page .perf-art {
  min-height: 320px;
}

.performance-page .perf-art::before,
.performance-page .perf-art::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 2%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #1677ff, transparent);
  transform: rotate(-10deg);
}

.performance-page .perf-art::before {
  top: 128px;
}

.performance-page .perf-art::after {
  bottom: 62px;
}

.performance-page .perf-speedometer {
  right: 120px;
  top: 18px;
  width: 230px;
  height: 230px;
  background:
    conic-gradient(from 220deg, #1677ff 0 96deg, #f97316 96deg 150deg, transparent 150deg 360deg),
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    #eaf3ff;
  border-color: #06183b;
}

.performance-page .perf-speedometer::after {
  left: 87px;
  top: 130px;
  font-size: 0;
}

.performance-page .perf-car {
  left: 22px;
  bottom: 58px;
  width: 330px;
  height: 105px;
  border-radius: 48px 86px 30px 32px;
  background: linear-gradient(180deg, #fff 0 62%, #eaf3ff 63% 100%);
  border: 4px solid #06183b;
  box-shadow: 0 18px 0 -7px rgba(22, 119, 255, .18);
}

.performance-page .perf-car::before {
  left: 98px;
  top: -50px;
  width: 140px;
  height: 60px;
  border-radius: 80px 80px 8px 8px;
  background: linear-gradient(180deg, #dbeafe, #fff);
  border: 4px solid #06183b;
}

.performance-page .perf-car::after {
  left: 82px;
  bottom: -20px;
  width: 58px;
  height: 58px;
  background: #06183b;
  box-shadow: 158px 0 0 #06183b;
}

.performance-page .perf-flag {
  right: 8px;
  bottom: 58px;
}

.performance-page .perf-layout {
  grid-template-columns: 400px minmax(390px, 1fr) 400px;
}

.performance-page .perf-card,
.performance-page .perf-side-card,
.performance-page .perf-info {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 45, 85, .07);
}

.performance-page .perf-card {
  padding: 24px;
}

.performance-page .perf-input-card h2,
.performance-page .perf-result-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.performance-page .perf-input-card h2::before,
.performance-page .perf-result-card h2::before {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1677ff;
  font-size: 14px;
  font-weight: 900;
}

.performance-page .perf-input-card h2::before {
  content: "1";
}

.performance-page .perf-result-card h2::before {
  content: "2";
}

.performance-page .perf-tabs {
  display: none;
}

.performance-page .perf-form-grid {
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 26px;
}

.performance-page .perf-field small {
  color: #6a7f9c;
  font-size: 12px;
  font-weight: 650;
}

.performance-page .perf-input-unit {
  display: grid;
  grid-template-columns: 1fr 100px;
  border: 1px solid #cbd8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.performance-page .perf-input-unit input,
.performance-page .perf-input-unit select {
  min-height: 52px;
  border: 0;
  border-radius: 0;
}

.performance-page .perf-input-unit select {
  border-left: 1px solid #dce6f0;
  font-size: 15px;
}

.performance-page .perf-unit-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 22px;
  padding: 5px;
  border-radius: 999px;
  background: #f3f6fb;
}

.performance-page .perf-unit-toggle button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0b2a5b;
  font-size: 16px;
  font-weight: 900;
}

.performance-page .perf-unit-toggle button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1677ff, #006de8);
}

.performance-page .perf-actions {
  display: grid;
  margin-top: 26px;
}

.performance-page .perf-actions .primary {
  width: 100%;
  background: linear-gradient(135deg, #02a85f, #008a51);
}

.performance-page .perf-actions .secondary {
  color: #1677ff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.performance-page .perf-result-card {
  background: #fff;
}

.performance-page .perf-result-label {
  margin: 38px 0 0;
  color: #005ed7;
  text-align: center;
  font-size: 18px;
}

.performance-page .perf-result-value {
  margin: 6px 0 18px;
  color: #1677ff;
  font-size: 112px;
  text-align: center;
}

.performance-page .perf-result-value small {
  display: block;
  color: #06183b;
  font-size: 34px;
  line-height: 1;
}

.performance-page .perf-meter {
  width: min(100%, 330px);
}

.performance-page .perf-meter::after {
  content: "60\A mph";
  white-space: pre;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: #06183b;
  text-align: center;
  font-size: 24px;
  font-weight: 950;
  line-height: .9;
}

.performance-page .perf-side-card {
  padding: 24px;
}

.performance-page .perf-side-card:first-child h2::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 24px;
  margin-right: 10px;
  vertical-align: -4px;
  background: linear-gradient(180deg, #f59e0b, #f97316);
  clip-path: polygon(52% 0, 90% 0, 64% 40%, 100% 40%, 32% 100%, 50% 54%, 18% 54%);
}

.performance-page .perf-example {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #e2eaf3;
  border-radius: 10px;
  background: #fff;
  margin-top: 14px;
}

.performance-page .perf-example:last-child {
  border-bottom: 1px solid #e2eaf3;
}

.performance-page .perf-example-icon {
  color: #ff6b1a;
  background: #fff3e8;
}

.performance-page .perf-example:nth-of-type(2) .perf-example-icon {
  color: #1677ff;
  background: #eaf3ff;
}

.performance-page .perf-example:nth-of-type(3) .perf-example-icon {
  color: #02a85f;
  background: #e9fbf2;
}

.performance-page .perf-example b {
  color: #ff6b1a;
  font-size: 16px;
  white-space: nowrap;
}

.performance-page .perf-example:nth-of-type(2) b {
  color: #1677ff;
}

.performance-page .perf-example:nth-of-type(3) b {
  color: #02a85f;
}

.performance-page .perf-check {
  gap: 10px;
}

.performance-page .perf-check::after {
  content: "Tip: Consistency is key. Run 3-5 times and use your best run.";
  display: block;
  margin-top: 14px;
  padding: 18px;
  border-radius: 10px;
  color: #0b2a5b;
  background: linear-gradient(135deg, #fff7e6, #fff0d0);
  font-weight: 750;
}

.performance-page .perf-related {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.performance-page .perf-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.performance-page .perf-related-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #006de8;
  font-weight: 900;
  text-decoration: none;
}

.performance-page .perf-related-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.performance-page .perf-related-grid a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 196px;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 45, 85, .06);
}

.performance-page .perf-related-grid .rel-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1677ff;
  background: #eaf3ff;
  margin-bottom: 16px;
}

.performance-page .perf-related-grid strong {
  color: #06183b;
  line-height: 1.2;
}

.performance-page .perf-related-grid small {
  color: #496683;
  line-height: 1.35;
  margin-top: 12px;
}

.performance-page .perf-related-grid a > [data-dir-icon="chevron-right"] {
  justify-self: end;
  color: #1677ff;
}

.performance-page .perf-newsletter {
  background: linear-gradient(90deg, #eaf6ff, #fff);
  border-top: 1px solid #dce6f0;
}

.performance-page .perf-newsletter .mail-art {
  color: #fff;
  background: #1677ff;
}

.performance-page .directory-footer {
  color: #fff;
  background: linear-gradient(135deg, #001b43, #002e68);
  border-top: 0;
}

.performance-page .directory-footer .brand-word,
.performance-page .directory-footer .footer-brand-block p,
.performance-page .directory-footer a,
.performance-page .directory-footer button,
.performance-page .directory-footer .footer-meta p {
  color: #fff;
}

.performance-page .directory-footer .brand-word span {
  color: #1677ff;
}

.performance-page .directory-footer .footer-socials a,
.performance-page .directory-footer .lang-btn {
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  background: transparent;
}

@media (max-width: 1180px) {
  .performance-page .perf-hero-grid,
  .performance-page .perf-layout,
  .performance-page .perf-panel {
    grid-template-columns: 1fr;
  }

  .performance-page .perf-hero h1 {
    margin-top: 12px;
  }

  .performance-page .perf-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .performance-page .perf-hero-grid,
  .performance-page .perf-layout {
    grid-template-columns: 1fr;
  }

  .performance-page .perf-hero h1 {
    font-size: 46px;
  }

  .performance-page .perf-art {
    min-height: 250px;
    transform: scale(.82);
    transform-origin: left top;
  }

  .performance-page .perf-result-value {
    font-size: 76px;
  }

  .performance-page .perf-related-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .performance-page .perf-related-grid {
    grid-template-columns: 1fr;
  }
}

.perf-hero {
  border-bottom: 1px solid #dce6f0;
  padding: 24px 0 18px;
}

.perf-breadcrumbs,
.hundred-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #426084;
  font-size: 14px;
  margin-bottom: 22px;
}

.perf-breadcrumbs a,
.hundred-breadcrumbs a {
  color: #064c97;
  font-weight: 700;
  text-decoration: none;
}

.perf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 56px;
}

.perf-icon-large {
  width: 110px;
  height: 110px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #078da2, #10b981);
  box-shadow: 0 18px 36px rgba(8, 122, 145, .22);
  color: #fff;
  margin-bottom: 22px;
}

.perf-icon-large [data-dir-icon] {
  width: 62px;
  height: 62px;
  stroke-width: 1.9;
}

.perf-icon-large svg {
  width: 62px;
  height: 62px;
}

.perf-badges svg {
  width: 18px;
  height: 18px;
}

.perf-hero h1,
.hundred-hero h1 {
  margin: 0;
  color: #06183b;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .95;
  letter-spacing: 0;
}

.perf-hero p,
.hundred-hero p {
  max-width: 720px;
  color: #233d65;
  font-size: 19px;
  line-height: 1.58;
  margin: 18px 0 0;
}

.perf-badges,
.hundred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.perf-badges span,
.hundred-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  font-weight: 800;
  color: #12305c;
}

.perf-art {
  position: relative;
  min-height: 280px;
}

.perf-speedometer {
  position: absolute;
  right: 78px;
  top: 10px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, #14b8a6 0 80deg, #22c55e 80deg 150deg, #f59e0b 150deg 205deg, transparent 205deg 360deg),
    radial-gradient(circle, #fff 0 58%, transparent 59%),
    #d7eef9;
  border: 5px solid #09204a;
  box-shadow: 0 20px 42px rgba(12, 42, 91, .18);
}

.perf-speedometer::before {
  content: "";
  position: absolute;
  left: 102px;
  top: 105px;
  width: 82px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  transform: rotate(-28deg);
  transform-origin: left center;
}

.perf-speedometer::after {
  content: "60";
  position: absolute;
  left: 68px;
  top: 78px;
  color: #09204a;
  font-size: 38px;
  font-weight: 900;
}

.perf-car {
  position: absolute;
  left: 24px;
  bottom: 34px;
  width: 250px;
  height: 86px;
  border-radius: 34px 48px 24px 18px;
  background: linear-gradient(135deg, #0f8da7, #10b981);
  box-shadow: 0 20px 0 -10px rgba(8, 22, 48, .13);
}

.perf-car::before {
  content: "";
  position: absolute;
  left: 66px;
  top: -52px;
  width: 112px;
  height: 60px;
  border-radius: 56px 56px 6px 6px;
  background: #cffafe;
  border: 5px solid #09204a;
}

.perf-car::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #09204a;
  box-shadow: 132px 0 0 #09204a;
}

.perf-flag {
  position: absolute;
  right: 12px;
  bottom: 24px;
  width: 88px;
  height: 76px;
  border-left: 6px solid #09204a;
}

.perf-flag::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 70px;
  height: 44px;
  background:
    linear-gradient(45deg, #09204a 25%, transparent 25% 50%, #09204a 50% 75%, transparent 75%) 0 0 / 28px 28px,
    #fff;
  border: 2px solid #09204a;
  border-left: 0;
}

.perf-shell {
  padding: 28px 0 12px;
}

.perf-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, .95fr) 320px;
  gap: 20px;
  align-items: start;
}

.perf-card,
.perf-side-card,
.perf-info,
.perf-related {
  border: 1px solid var(--perf-line);
  background: rgba(255, 255, 255, .96);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(17, 45, 85, .08);
}

.perf-card {
  padding: 20px;
}

.perf-card h2,
.perf-side-card h2,
.perf-info h2,
.perf-related h2 {
  margin: 0;
  color: #06183b;
  font-size: 22px;
}

.perf-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #f4f8fc;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  margin-bottom: 18px;
}

.perf-tabs button,
.perf-mini-tabs button,
.perf-actions button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 8px;
}

.perf-tabs button {
  flex: 1;
  height: 46px;
  color: #12305c;
  background: transparent;
}

.perf-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #078da2, #10b981);
}

.perf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.perf-field {
  display: grid;
  gap: 8px;
}

.perf-field span {
  font-size: 14px;
  font-weight: 900;
  color: #12305c;
}

.perf-field input,
.perf-field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #cbd8e8;
  border-radius: 9px;
  padding: 0 14px;
  color: #071a3c;
  font-size: 18px;
  font-weight: 700;
  background: #fff;
}

.perf-field-wide {
  grid-column: 1 / -1;
}

.perf-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.perf-actions button {
  height: 48px;
  padding: 0 20px;
}

.perf-actions .primary {
  color: #fff;
  background: linear-gradient(135deg, #008a5f, #04b46d);
  box-shadow: 0 12px 22px rgba(0, 169, 107, .22);
}

.perf-actions .secondary {
  color: #0b2a5b;
  background: #fff;
  border: 1px solid #cbd8e8;
}

.perf-result-card {
  background: linear-gradient(145deg, #f3fbff, #ffffff 46%, #effaf4);
}

.perf-result-label {
  margin: 16px 0 4px;
  color: #0f8da7;
  font-weight: 900;
}

.perf-result-value {
  margin: 0;
  color: #078da2;
  font-size: 48px;
  line-height: 1;
  font-weight: 950;
}

.perf-result-sub {
  color: #45617f;
  margin: 10px 0 18px;
}

.perf-meter {
  --score: 62deg;
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 2 / 1;
  margin: 12px auto 6px;
  overflow: hidden;
}

.perf-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(from 180deg, #10b981 0 70deg, #f59e0b 70deg 135deg, #ef4444 135deg 180deg, transparent 180deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 44%, #000 45%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 44%, #000 45%);
}

.perf-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 5px;
  border-radius: 999px;
  background: #06183b;
  transform: rotate(calc(var(--score) - 180deg));
  transform-origin: left center;
}

.perf-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.perf-metric {
  padding: 12px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #fff;
}

.perf-metric span {
  display: block;
  color: #667d98;
  font-size: 12px;
  font-weight: 800;
}

.perf-metric strong {
  display: block;
  color: #06183b;
  font-size: 17px;
  margin-top: 5px;
}

.perf-side {
  display: grid;
  gap: 16px;
}

.perf-side-card {
  padding: 18px;
}

.perf-example {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e2eaf3;
  background: transparent;
  text-align: left;
}

.perf-example:last-child {
  border-bottom: 0;
}

.perf-example-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
}

.perf-example-icon svg {
  width: 22px;
  height: 22px;
}

.perf-example strong,
.perf-check li strong {
  color: #06183b;
  display: block;
}

.perf-example span,
.perf-check li span {
  color: #496683;
  font-size: 13px;
}

.perf-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

.perf-check li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.perf-check [data-dir-icon] {
  width: 28px;
  height: 28px;
  color: #0f8da7;
}

.perf-info {
  margin: 22px auto 0;
  padding: 0;
  overflow: hidden;
}

.perf-mini-tabs {
  display: flex;
  border-bottom: 1px solid #dce6f0;
}

.perf-mini-tabs button {
  flex: 1;
  height: 52px;
  color: #12305c;
  background: #fff;
  border-radius: 0;
}

.perf-mini-tabs button.is-active {
  color: #078a60;
  background: #f3fbf8;
  box-shadow: inset 0 -3px 0 #00a96b;
}

.perf-panel {
  display: none;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  padding: 22px;
}

.perf-panel.is-active {
  display: grid;
}

.perf-panel p,
.perf-panel li {
  color: #29476b;
  line-height: 1.55;
}

.perf-formula {
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5fbff, #effaf4);
  color: #06183b;
  font-weight: 900;
  text-align: center;
  border: 1px solid #dce6f0;
}

.perf-curve {
  min-height: 220px;
  border-radius: 12px;
  border: 1px solid #dce6f0;
  background:
    linear-gradient(#e8f1fa 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, #e8f1fa 1px, transparent 1px) 0 0 / 72px 100%,
    #fff;
  position: relative;
  overflow: hidden;
}

.perf-curve svg {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
}

.perf-related {
  margin: 24px auto 0;
  padding: 18px;
}

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

.perf-related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #fff;
  color: #0b2a5b;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1240px) {
  .perf-hero-grid,
  .perf-layout,
  .perf-panel {
    grid-template-columns: 1fr;
  }

  .perf-art {
    min-height: 240px;
  }

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

@media (max-width: 720px) {
  .perf-hero {
    padding: 18px 0 10px;
  }

  .perf-hero-grid {
    gap: 20px;
  }

  .perf-icon-large {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .perf-icon-large [data-dir-icon] {
    width: 44px;
    height: 44px;
  }

  .perf-icon-large svg {
    width: 44px;
    height: 44px;
  }

  .perf-hero h1 {
    font-size: 42px;
  }

  .perf-hero p {
    font-size: 16px;
  }

  .perf-badges {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .perf-form-grid,
  .perf-metrics,
  .perf-related-grid {
    grid-template-columns: 1fr;
  }

  .perf-actions {
    flex-direction: column;
  }

  .perf-tabs {
    overflow-x: auto;
  }

  .perf-tabs button {
    min-width: 132px;
  }
}

/* Final shell reset: nav and footer must match calculators.html. */
.performance-page .directory-header {
  height: auto;
  border-bottom: 1px solid #dfe7f1;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(17, 40, 77, .02);
}

.performance-page .brand-word,
.performance-page .directory-footer .brand-word {
  color: #061738;
}

.performance-page .brand-word span,
.performance-page .directory-footer .brand-word span {
  color: var(--color-green);
}

.performance-page .brand-planet {
  background: transparent;
  border-color: #08ae64;
}

.performance-page .brand-planet::before {
  border-color: #08ae64;
}

.performance-page .brand-planet::after {
  border-top-color: #08ae64;
  box-shadow: 0 -8px 0 -2px #08ae64, 0 8px 0 -2px #08ae64;
}

.performance-page .submit-btn {
  min-height: 36px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #12bd72 0%, #009e57 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 164, 91, .2);
}

.performance-page .directory-footer {
  color: var(--color-ink);
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #dfe7f1;
}

.performance-page .directory-footer .footer-brand-block p,
.performance-page .directory-footer .footer-meta p,
.performance-page .directory-footer .footer-columns a {
  color: var(--color-muted);
}

.performance-page .directory-footer .footer-columns button {
  color: var(--color-ink);
}

.performance-page .directory-footer .footer-socials a {
  border-color: #dce6f2;
  color: #071b43;
  background: #fff;
}

.performance-page .directory-footer .lang-btn {
  border: 1px solid #dce8f2;
  color: var(--color-ink);
  background: #fff;
}
