.tools-page {
  --blue: #7895a4;
  --deep: #526f7e;
  --light: #9db4c0;
  --orange: #df995d;
  --orange-deep: #c97d40;
  --white: #fff;
  --line: rgba(255, 255, 255, .34);
  min-height: 100vh;
  overflow-x: clip;
  background: var(--blue);
  color: var(--white);
}

.tools-page,
.tools-page :where(h1, h2, h3, p, a, span, strong, label, button) {
  color: var(--white);
}

.tools-page :where(h1, h2, h3, p) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tools-page :where(button, input, select, textarea, a) {
  font-family: inherit;
  font-style: inherit;
}

.tools-page :where(input, select, textarea, button, a):focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.tools-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.tools-nav {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.tools-nav img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

.tools-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.tools-nav-links a {
  text-underline-offset: 5px;
}

.member-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.eyebrow,
.tool-step-number {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.tools-hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 8vw;
  align-items: center;
  margin: 0;
  padding: 76px 0;
}

.tools-hero h1,
.tool-workspace h1 {
  max-width: 12ch;
  margin: 0 0 32px;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 300;
  line-height: .93;
  letter-spacing: -.045em;
}

.tools-hero-copy > p {
  max-width: 60ch;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.tools-hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 180px 180px 10px 10px;
  background: var(--orange);
}

.tools-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(52, 75, 86, .76));
}

.tools-hero-visual video {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.tools-hero-visual span {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 28px;
  left: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
}

.state-router {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 8vw;
  margin: 0 -100vw;
  padding: 110px 100vw;
  background: var(--deep);
}

.state-router h2,
.library-heading h2,
.member-offer h2 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
}

.state-router p,
.library-heading p,
.member-offer p {
  font-size: 18px;
  line-height: 1.65;
}

.state-options {
  border-top: 1px solid var(--line);
}

.state-options a {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  background: transparent;
  transition: padding .25s, background .25s;
}

.state-options a:hover {
  padding-inline: 22px;
  background: rgba(255, 255, 255, .1);
}

.state-options strong {
  max-width: 22ch;
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.state-options span {
  max-width: 180px;
  font-size: 13px;
  text-align: right;
}

.library-section {
  padding: 118px 0;
  margin: 0;
}

.library-heading {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 8vw;
  align-items: end;
  margin-bottom: 60px;
}

.tool-collection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tool-tile {
  min-height: 430px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--deep);
  text-decoration: none;
  transition: transform .25s, background .25s;
}

.tool-tile:nth-child(2),
.tool-tile:nth-child(4) {
  background: var(--orange);
}

.tool-tile:hover {
  transform: translateY(-7px);
  background: var(--orange-deep);
}

.tool-tile h3 {
  max-width: 14ch;
  margin: 0 0 22px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 300;
  line-height: 1;
}

.tool-tile p {
  max-width: 46ch;
  line-height: 1.6;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.locked { opacity: .82; }

.member-offer {
  display: grid;
  grid-template-columns: 7fr 5fr;
  margin: 0;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.member-offer > div { padding: 52px 8vw 52px 0; }

.member-offer aside {
  padding: 48px;
  border-radius: 10px;
  background: var(--orange);
}

.member-offer ul {
  list-style: none;
  margin: 30px 0 38px;
  padding: 0;
}

.member-offer li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.member-offer .button,
.tool-actions button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  text-decoration: none;
}

.tool-workspace {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 8vw;
  padding: 100px 0;
}

.tool-intro {
  position: sticky;
  top: 30px;
  align-self: start;
}

.tool-intro > p { line-height: 1.65; }

.safety-note {
  margin-top: 40px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.safety-note p { margin: 8px 0 0; }

.tool-source {
  margin-top: 34px;
  font-size: 13px;
}

.tool-form {
  overflow: visible;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.tool-step {
  padding: 54px 0 64px;
  border-bottom: 1px solid var(--line);
}

.tool-step h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.06;
}

.tool-step > label {
  display: block;
  margin: 24px 0 10px;
  font-size: 17px;
}

.tool-step :where(textarea, input[type="text"], select) {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--deep);
  color: var(--white);
}

.tool-step textarea {
  min-height: 145px;
  resize: vertical;
}

.tool-step ::placeholder { color: rgba(255, 255, 255, .65); }
.tool-step option { color: var(--white); background: var(--deep); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-grid label {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.tool-actions button { background: var(--orange); cursor: pointer; }
.tool-actions .secondary { border: 1px solid var(--line); background: transparent; }
.save-status { min-height: 24px; margin-top: 18px; }

@media (max-width: 850px) {
  .tools-hero,
  .state-router,
  .library-heading,
  .member-offer,
  .tool-workspace { grid-template-columns: 1fr; }
  .tool-intro { position: static; }
  .tool-collection { grid-template-columns: 1fr; }
  .state-router { margin-inline: -32px; padding-inline: 32px; }
}

@media (max-width: 600px) {
  .tools-shell { width: calc(100% - 32px); }
  .tools-nav { align-items: flex-start; padding: 18px 0; }
  .tools-nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 13px; }
  .tools-hero { min-height: auto; padding: 58px 0; }
  .tools-hero h1, .tool-workspace h1 { font-size: 53px; }
  .tools-hero-visual { min-height: 340px; border-radius: 120px 120px 10px 10px; }
  .tools-hero-visual video { height: 340px; }
  .state-options a { align-items: flex-start; flex-direction: column; }
  .state-options span { text-align: left; }
  .tool-tile { min-height: 360px; }
  .member-offer > div { padding: 0 0 50px; }
  .member-offer aside { padding: 32px 24px; }
  .choice-grid { grid-template-columns: 1fr; }
}
