.kpt-app {
  --kpt-navy: #132b59;
  --kpt-blue: #6aafe6;
  --kpt-blue-soft: #eaf5fc;
  --kpt-coral: #f47b6a;
  --kpt-green: #7cbf9e;
  --kpt-green-dark: #5fae89;
  --kpt-sand: #f9f6f2;
  --kpt-white: #fff;
  --kpt-text: #2d2e2e;
  --kpt-muted: #667085;
  --kpt-border: rgba(19, 43, 89, 0.12);
  color: var(--kpt-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.kpt-app,
.kpt-app * {
  box-sizing: border-box;
}

.kpt-app button,
.kpt-app input {
  font: inherit;
}

.kpt-app button:focus-visible,
.kpt-app input:focus-visible,
.kpt-app a:focus-visible {
  outline: 3px solid rgba(106, 175, 230, 0.65);
  outline-offset: 3px;
}

.kpt-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
}

.kpt-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 24px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--kpt-navy), #244f8e 68%, var(--kpt-blue));
  color: var(--kpt-white);
}

.kpt-hero::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(244, 123, 106, 0.28);
  content: "";
}

.kpt-hero > * {
  position: relative;
  z-index: 1;
}

.kpt-chip {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.kpt-app .kpt-title {
  margin: 15px 0 10px;
  color: var(--kpt-white);
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.kpt-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.kpt-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.kpt-step {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.kpt-body {
  padding-top: 18px;
}

.kpt-sex-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.kpt-section-title {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  color: var(--kpt-navy);
  font-size: 13px;
  font-weight: 900;
}

.kpt-sex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--kpt-border);
  border-radius: 15px;
  background: var(--kpt-sand);
}

.kpt-sex button {
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--kpt-muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.kpt-sex button.is-active {
  background: var(--kpt-navy);
  color: var(--kpt-white);
}

.kpt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.kpt-test {
  padding: 15px;
  border: 1px solid var(--kpt-border);
  border-radius: 17px;
  background: var(--kpt-white);
}

.kpt-test-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 10px;
}

.kpt-icon {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--kpt-blue-soft);
  color: var(--kpt-navy);
  font-size: 18px;
  font-weight: 900;
}

.kpt-name {
  display: block;
  margin: 0;
  color: var(--kpt-navy);
  font-size: 15px;
  font-weight: 900;
}

.kpt-req {
  display: block;
  margin-top: 3px;
  color: var(--kpt-muted);
  font-size: 12px;
}

.kpt-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--kpt-border);
  border-radius: 11px;
  background: var(--kpt-sand);
  color: var(--kpt-text);
  font-size: 16px;
  font-weight: 800;
}

.kpt-input:invalid {
  box-shadow: none;
}

.kpt-unit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 9px;
}

.kpt-unit {
  color: var(--kpt-muted);
  font-size: 12px;
  font-weight: 800;
}

.kpt-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kpt-small {
  display: block;
  margin-bottom: 4px;
  color: var(--kpt-muted);
  font-size: 11px;
  font-weight: 800;
}

.kpt-warm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.kpt-warm input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--kpt-green-dark);
}

.kpt-calc {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kpt-green-dark), var(--kpt-green));
  color: var(--kpt-white);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.kpt-calc:hover {
  filter: brightness(0.97);
}

.kpt-error {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ed;
  color: #8f382e;
  font-size: 13px;
  font-weight: 700;
}

.kpt-error.is-visible {
  display: block;
}

.kpt-result {
  overflow: hidden;
  margin: 18px 0 0;
  border: 1px solid var(--kpt-border);
  border-radius: 22px;
  background: var(--kpt-white);
}

.kpt-result-top {
  padding: 22px 18px;
  background: linear-gradient(145deg, var(--kpt-navy), #254f8a);
  color: var(--kpt-white);
}

.kpt-score-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.kpt-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kpt-status {
  margin-top: 5px;
  font-size: 23px;
  font-weight: 900;
}

.kpt-result-top .kpt-copy {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.kpt-big {
  flex: 0 0 auto;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
}

.kpt-progress {
  overflow: hidden;
  height: 9px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.kpt-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--kpt-coral), #f6a377, var(--kpt-green));
  transition: width 220ms ease;
}

.kpt-focus {
  margin: 14px;
  padding: 16px;
  border: 1px solid var(--kpt-border);
  border-radius: 15px;
  background: var(--kpt-sand);
}

.kpt-focus small {
  color: var(--kpt-coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kpt-app .kpt-focus h2 {
  margin: 4px 0 3px;
  color: var(--kpt-navy);
  font-size: 20px;
  line-height: 1.2;
}

.kpt-focus p {
  margin: 0;
  color: var(--kpt-muted);
  font-size: 13px;
}

.kpt-focus-link {
  display: inline-flex;
  margin-top: 9px;
  color: var(--kpt-navy);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kpt-rows {
  padding: 0 14px 4px;
}

.kpt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border-top: 1px solid var(--kpt-border);
}

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

.kpt-row .kpt-sub {
  display: block;
  margin-top: 2px;
  color: var(--kpt-muted);
  font-size: 11px;
}

.kpt-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.kpt-pass {
  background: #e9f7ef;
  color: #397a5c;
}

.kpt-fail {
  background: #fff0ed;
  color: #a5483b;
}

.kpt-story {
  margin: 14px 0 0;
  padding: 18px;
  border: 1px solid var(--kpt-border);
  border-radius: 20px;
  background: linear-gradient(155deg, var(--kpt-blue-soft), var(--kpt-sand));
  text-align: center;
}

.kpt-story-score {
  color: var(--kpt-navy);
  font-size: 52px;
  font-weight: 950;
  line-height: 1.1;
}

.kpt-story-status {
  color: var(--kpt-coral);
  font-weight: 900;
}

.kpt-story-focus {
  margin-top: 9px;
  color: var(--kpt-muted);
  font-size: 12px;
}

.kpt-cta {
  margin: 14px 0 0;
  padding: 19px;
  border-radius: 20px;
  background: var(--kpt-navy);
  color: var(--kpt-white);
}

.kpt-app .kpt-cta h2 {
  margin: 0;
  color: var(--kpt-white);
  font-size: 20px;
  line-height: 1.25;
}

.kpt-cta p {
  margin: 10px 0 13px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.kpt-actions {
  display: grid;
  gap: 8px;
}

.kpt-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.kpt-primary {
  background: var(--kpt-green);
  color: var(--kpt-white);
}

.kpt-secondary {
  background: var(--kpt-white);
  color: var(--kpt-navy);
}

.kpt-disclaimer {
  margin: 12px 4px 0;
  color: var(--kpt-muted);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.kpt-disclaimer a {
  color: var(--kpt-navy);
  font-weight: 800;
}

.kpt-noscript {
  max-width: 724px;
  margin: 10px auto;
  padding: 12px;
  border-radius: 10px;
  background: #fff0ed;
  color: #8f382e;
  text-align: center;
}

/* Editable supporting copy placed below the shortcode on the WordPress page. */
.kpt-copy-section {
  max-width: 760px;
  margin: 18px auto 48px;
  padding: 0 18px;
  color: var(--global-palette4, #2d2e2e);
}

.kpt-copy-section h2,
.kpt-copy-section h3 {
  color: #132b59;
}

.kpt-copy-section h2 {
  margin-top: 36px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
}

.kpt-copy-section h3 {
  margin: 24px 0 6px;
  font-size: 19px;
}

.kpt-copy-section p,
.kpt-copy-section li {
  line-height: 1.7;
}

.kpt-copy-section a {
  color: #132b59;
  font-weight: 800;
}

.kpt-copy-lead,
.kpt-copy-note,
.kpt-copy-cta {
  padding: 18px;
  border: 1px solid rgba(19, 43, 89, 0.12);
  border-radius: 16px;
}

.kpt-copy-lead {
  background: #eaf5fc;
}

.kpt-copy-note {
  background: #f9f6f2;
}

.kpt-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

.kpt-guide-grid a {
  display: block;
  padding: 15px;
  border: 1px solid rgba(19, 43, 89, 0.12);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.kpt-guide-grid a:hover {
  background: #f9f6f2;
}

.kpt-copy-cta {
  margin-top: 32px;
  background: #132b59;
  color: #fff;
  text-align: center;
}

.kpt-copy-cta h2 {
  margin-top: 0;
  color: #fff;
}

.kpt-copy-cta a {
  display: inline-flex;
  justify-content: center;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #7cbf9e;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 680px) {
  .kpt-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpt-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
    gap: 14px;
  }

  .kpt-story {
    margin-top: 18px;
  }

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

  .kpt-guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .kpt-wrap {
    padding-right: 10px;
    padding-left: 10px;
  }

  .kpt-hero {
    padding: 22px 17px;
    border-radius: 20px;
  }

  .kpt-score-row {
    align-items: flex-start;
  }

  .kpt-big {
    font-size: 34px;
  }

  .kpt-row {
    grid-template-columns: 1fr;
  }

  .kpt-badge {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kpt-fill {
    transition: none;
  }
}

