.tool-page,
.guide-page {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.tool-page > .breadcrumb,
.guide-page > .breadcrumb {
  margin-bottom: 1.5rem;
}

.tool-page__header,
.guide-page__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.tool-page__header {
  max-width: 48rem;
}

.tool-page__header h1,
.guide-page__header h1 {
  color: #2f3740;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 420;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}

.tool-page__header > p:last-child,
.guide-page__header > div > p:last-child {
  color: var(--site-muted);
  font-size: clamp(1.02rem, 2vw, 1.13rem);
  margin: 0;
  max-width: 42rem;
}

.tool-shell {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  display: grid;
  grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.5fr);
  overflow: hidden;
}

.tool-intro {
  background: var(--site-accent-soft);
  border-right: 1px solid #d6e2f5;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.tool-intro__label,
.step-card__label {
  color: var(--site-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.tool-intro h2 {
  color: #2f3c4c;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.tool-intro > p:not(.tool-intro__label) {
  color: #57697f;
  font-size: 0.94rem;
}

.tool-facts {
  border-top: 1px solid #cfdbed;
  color: #475b73;
  font-size: 0.86rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
}

.tool-facts li {
  padding-left: 1.35rem;
  position: relative;
}

.tool-facts li + li {
  margin-top: 0.55rem;
}

.tool-facts li::before {
  color: var(--site-accent);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.tool-form-panel {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.tool-form-panel__heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tool-form-panel__heading .eyebrow {
  margin-bottom: 0.2rem;
}

.tool-form-panel__heading h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0;
}

.form-label {
  color: #39434d;
  font-size: 0.86rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.field-meta,
.field-help {
  color: var(--site-muted);
  font-size: 0.74rem;
  font-weight: 450;
}

.field-meta {
  margin-left: 0.3rem;
}

.form-control,
.form-select {
  border-color: #ccd3da;
  border-radius: 0.5rem;
  color: var(--site-ink);
  min-height: 2.85rem;
  padding: 0.65rem 0.8rem;
}

.form-control::placeholder {
  color: #949ca5;
}

.form-control:focus,
.form-select:focus {
  border-color: #7ca2e5;
  box-shadow: 0 0 0 0.22rem rgba(6, 76, 207, 0.12);
}

textarea.form-control {
  line-height: 1.5;
  min-height: 14rem;
  resize: vertical;
}

.btn {
  border-radius: 0.5rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--site-accent);
  border-color: var(--site-accent);
}

.btn-primary:hover {
  background: #003ca8;
  border-color: #003ca8;
}

.btn-outline-primary {
  border-color: #a9bddd;
  color: var(--site-accent);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.72rem 1.1rem;
}

.tool-form__actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.status {
  color: var(--site-muted);
  flex: 1 1 15rem;
  font-size: 0.82rem;
  margin: 0;
  min-height: 1.5rem;
  padding-top: 0.62rem;
}

.status[data-state="error"] {
  color: #a33939;
}

.status[data-state="success"] {
  color: #28704c;
}

.guide-page__header {
  align-items: flex-end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.guide-page__header > div {
  max-width: 48rem;
}

.guide-steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.step-card__heading {
  align-items: center;
  display: flex;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.step-card__heading h2 {
  color: #303840;
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0;
}

.step-card__label {
  margin-bottom: 0.1rem;
}

.step-card > p {
  color: var(--site-muted);
  font-size: 0.93rem;
  margin: 0 0 1.25rem 2.9rem;
}

.step-number {
  align-items: center;
  background: var(--site-accent-soft);
  border: 1px solid #ccdafa;
  border-radius: 999px;
  color: var(--site-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 750;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.img-frame {
  border: 1px solid var(--site-border);
  border-radius: 0.55rem;
  margin-left: 2.9rem;
  overflow: hidden;
}

.img-frame img {
  display: block;
  height: auto;
  width: 100%;
}

@media (max-width: 820px) {
  .tool-shell {
    grid-template-columns: 1fr;
  }

  .tool-intro {
    border-bottom: 1px solid #d6e2f5;
    border-right: 0;
  }

  .guide-page__header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .tool-page__header h1,
  .guide-page__header h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .tool-shell {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-inline: -1rem;
  }

  .step-card > p,
  .img-frame {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-page *,
  .guide-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
