:root {
  --bg: #f5f9ff;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-soft: rgba(240, 247, 255, 0.88);
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ebf4ff;
  --border: rgba(39, 92, 168, 0.24);
  --border-strong: rgba(19, 98, 202, 0.5);
  --text: #10233d;
  --muted: #35506f;
  --link: #0d5fc4;
  --focus: #005fcc;
  --blue: #2c90ff;
  --blue-strong: #0e6de3;
  --teal: #40d8bb;
  --glow: rgba(44, 144, 255, 0.34);
  --success: #e8f8f2;
  --success-border: rgba(64, 216, 187, 0.4);
  --success-text: #116a5d;
  --danger: #fff0f2;
  --danger-border: rgba(217, 89, 111, 0.28);
  --shadow: 0 24px 60px rgba(29, 76, 138, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(64, 216, 187, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(44, 144, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 38%, #eef5ff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 95, 204, 0.16);
}

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 253, 255, 0.9);
  border-bottom: 1px solid rgba(65, 133, 219, 0.08);
}

.site-nav,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand img {
  width: 170px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  width: auto;
  margin-left: auto;
  padding-top: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
}

.button-primary {
  color: #02121b;
  background: linear-gradient(135deg, var(--teal), #9ff6e2);
  box-shadow: 0 12px 35px rgba(64, 216, 187, 0.2);
  text-decoration: none;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  text-decoration: none;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 5.5rem);
  margin: 0;
  padding:
    clamp(3.5rem, 7vw, 5.5rem)
    max(1rem, calc((100vw - var(--max-width)) / 2 + 0.75rem))
    clamp(4rem, 9vw, 6.5rem);
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.94) 0%, rgba(247, 251, 255, 0.88) 34%, rgba(247, 251, 255, 0.58) 55%, rgba(247, 251, 255, 0.16) 72%, rgba(247, 251, 255, 0.02) 100%),
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.24) 58%, rgba(255, 255, 255, 0) 78%),
    url("../images/hero-background.5a70799137e4.png");
  background-position: left top, left center, center center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 58rem;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #155fb8;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin-top: 1rem;
  max-width: 20ch;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-text {
  margin-top: 1.2rem;
  max-width: 38rem;
  font-size: 1.08rem;
  color: #2d4d74;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.handout-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.handout-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(65, 133, 219, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.96));
  box-shadow: var(--shadow);
}

.handout-copy {
  display: grid;
  gap: 0.95rem;
  max-width: 30rem;
}

.handout-copy h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.handout-copy p:last-of-type {
  max-width: 28rem;
}

.handout-preview {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(31, 88, 162, 0.14);
}

.handout-preview img {
  width: 100%;
  height: auto;
}

.challenge-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: clamp(-2.5rem, -4vw, -1.5rem) 0 0;
  padding:
    clamp(4rem, 8vw, 6rem)
    max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem))
    clamp(4rem, 8vw, 6rem);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.66) 20%, rgba(255, 255, 255, 0.64) 40%, rgba(255, 255, 255, 0.84) 72%, rgba(255, 255, 255, 0.98) 100%),
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0) 68%),
    url("../images/challenge-background.388e78f17e99.png");
  background-position: left top, left center, center center;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  overflow: hidden;
  z-index: 2;
}

.challenge-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.92) 0%, rgba(245, 249, 255, 0) 100%);
  pointer-events: none;
}

.challenge-shell {
  display: grid;
  gap: 2rem;
  padding: 0;
}

.challenge-intro {
  display: grid;
  gap: 1.1rem;
  max-width: 42rem;
  position: relative;
  z-index: 1;
}

.challenge-intro h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 20ch;
}

.challenge-deck {
  max-width: 24rem;
  color: #234266;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
}

.info-card,
.step-card,
.support-card,
.formula-card,
.pool-card,
.cta-panel,
.chat-panel,
.highlight-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.96));
  box-shadow: var(--shadow);
}

.flow-chip,
.flow-step {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.section-heading {
  max-width: 52rem;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.card-grid,
.steps-grid,
.feature-grid,
.policy-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.step-card,
.support-card,
.formula-card,
.pool-card,
.cta-panel {
  padding: 1.35rem;
  border-radius: var(--radius);
}

.info-card p,
.step-card p,
.support-card p,
.formula-card p,
.pool-card li {
  margin-top: 0.7rem;
}

.challenge-grid {
  display: grid;
  gap: 1.6rem;
  position: relative;
  z-index: 1;
}

.challenge-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(19, 98, 202, 0.14);
}

.challenge-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.challenge-icon {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 102, 240, 0.16);
  box-shadow: 0 14px 35px rgba(46, 102, 240, 0.12);
  color: #1558d6;
}

.challenge-icon svg {
  width: 2.55rem;
  height: 2.55rem;
}

.challenge-copy {
  max-width: 31rem;
}

.challenge-card h3 {
  font-size: 1.7rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.challenge-card p {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #35506f;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #041018;
  background: linear-gradient(135deg, #8ed9ff, var(--teal));
  font-weight: 700;
}

.highlight-panel {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: linear-gradient(135deg, rgba(224, 248, 243, 0.96), rgba(232, 242, 255, 0.96));
}

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

.feature-pill {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

.support-card {
  margin-top: 1.2rem;
  border-color: var(--border-strong);
}

.validation-flow {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.two-column-copy {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 0.55rem;
}

.scoring-layout,
.pool-layout {
  display: grid;
  gap: 1rem;
}

.formula-card {
  border-color: var(--border-strong);
}

.formula-intro {
  font-size: 1.05rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.4rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.98);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(65, 133, 219, 0.1);
}

th {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

td {
  color: var(--muted);
}

.pool-connector {
  display: grid;
  place-items: center;
  min-height: 4rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-strong);
  color: #2f7bda;
}

.cta-section {
  padding-top: 2rem;
}

.cta-panel {
  text-align: center;
  padding: 2rem 1.4rem;
}

.message-stack {
  margin-bottom: 1rem;
}

.flash {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
}

.flash-success {
  background: var(--success);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.contact-form {
  padding: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
}

.contact-submit {
  margin-top: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(141, 179, 228, 0.3);
  background: rgba(248, 251, 255, 0.96);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #536c8c;
  opacity: 1;
}

textarea {
  resize: vertical;
}

.field-error,
.form-errors {
  color: #b54460;
  font-size: 0.95rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 6rem;
  border-top: 1px solid rgba(65, 133, 219, 0.12);
}

.footer-brand img {
  width: 160px;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  font-weight: 600;
}

.chat-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 109, 227, 0.96), rgba(39, 130, 241, 0.96));
  border: 1px solid rgba(166, 214, 255, 0.72);
  box-shadow: 0 16px 40px rgba(45, 101, 181, 0.24);
  transform-origin: 78% 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-launcher-label {
  position: relative;
  z-index: 1;
}

.chat-launcher-bubbles {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 0.2rem);
  z-index: 0;
  width: 4.4rem;
  height: 5.75rem;
  pointer-events: none;
  transform: translateX(-50%);
  overflow: visible;
}

.chat-launcher-bubble {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--bubble-size, 0.8rem);
  height: var(--bubble-size, 0.8rem);
  margin-left: calc(var(--bubble-size, 0.8rem) * -0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.98) 0 18%, rgba(255, 255, 255, 0) 19%),
    radial-gradient(circle at 38% 38%, rgba(237, 251, 255, 0.92) 0 44%, rgba(154, 225, 255, 0.88) 55%, rgba(154, 225, 255, 0) 72%);
  box-shadow:
    inset -0.08rem -0.12rem 0.2rem rgba(73, 175, 231, 0.28),
    0 0 0.45rem rgba(145, 219, 255, 0.34);
  opacity: 0;
  transform: translate3d(var(--bubble-x-start, 0rem), 0, 0) scale(0.7);
  animation: chat-launcher-bubble-rise var(--bubble-duration, 3.2s) ease-out forwards;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(45, 101, 181, 0.32);
}

.chat-launcher.is-wiggle {
  animation: chat-launcher-wiggle 760ms ease-in-out 1;
}

@keyframes chat-launcher-bubble-rise {
  0% {
    opacity: 0;
    transform: translate3d(var(--bubble-x-start, 0rem), 0.2rem, 0) scale(0.68);
  }
  15% {
    opacity: 0.92;
  }
  85% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--bubble-x-end, 0rem), calc(-1 * var(--bubble-rise, 5rem)), 0) scale(1.04);
  }
}

@keyframes chat-launcher-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-6deg);
  }
  40% {
    transform: rotate(5deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-launcher-bubble {
    animation: none;
    transition: none;
  }
}

.chat-panel {
  position: fixed;
  right: 1rem;
  left: 1rem;
  bottom: 5.5rem;
  z-index: 70;
  max-height: min(78vh, 48rem);
  border-radius: 28px;
  padding: 0.9rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  font-size: 0.91rem;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(242, 248, 255, 0.98));
  border: 1px solid rgba(65, 133, 219, 0.12);
  box-shadow: 0 24px 60px rgba(31, 88, 162, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem) scale(0.98);
  transform-origin: bottom right;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 260ms;
  will-change: opacity, transform;
}

.chat-panel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0s;
}

.chat-panel > * {
  min-height: 0;
}

.chat-discovery[hidden],
.walkthrough-panel[hidden],
.chat-transcript[hidden],
.chat-form[hidden] {
  display: none;
}

.chat-panel.is-discovery-mode {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-panel.is-walkthrough-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-panel[hidden] {
  display: none;
}

body.chat-open {
  overflow: hidden;
}

.chat-header,
.chat-form {
  display: grid;
  gap: 0.75rem;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 4;
  align-self: start;
  padding-bottom: 0.1rem;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.99), rgba(247, 251, 255, 0.9));
  backdrop-filter: blur(10px);
}

.chat-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.chat-brand img {
  width: 116px;
  height: auto;
}

.chat-close {
  padding: 0.45rem 0.65rem;
  background: transparent;
  color: #59708d;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
}

.chat-discovery {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

.scenario-list,
.starter-list {
  display: grid;
  gap: 0.65rem;
  padding: 0.15rem 0.2rem 0.15rem 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.scenario-list {
  overflow: visible;
  padding-right: 0;
}

.chat-discovery .starter-list {
  max-height: none;
  min-height: 0;
  align-content: start;
}

.starter-list-title {
  margin: 0 0 0.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #155fb8;
}

.starter-list.is-hidden {
  display: none;
}

.scenario-button,
.starter-question {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(233, 244, 255, 0.98), rgba(241, 255, 250, 0.98));
  border: 1px solid rgba(65, 133, 219, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.scenario-button {
  background: linear-gradient(135deg, rgba(224, 247, 242, 0.98), rgba(232, 242, 255, 0.98));
  border-color: rgba(64, 216, 187, 0.34);
}

.scenario-button::after {
  content: "Open walkthrough";
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.scenario-button:hover,
.scenario-button:focus-visible,
.starter-question:hover,
.starter-question:focus-visible {
  border-color: rgba(19, 98, 202, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(31, 88, 162, 0.1);
  transform: translateY(-1px);
}

.chat-transcript {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
  padding-right: 0.2rem;
  padding-bottom: max(1.5rem, var(--chat-form-clearance, 6rem));
  overflow-y: auto;
  align-content: start;
  overscroll-behavior: contain;
  scroll-padding-bottom: max(6rem, var(--chat-form-clearance, 6rem));
  scrollbar-gutter: stable;
}

.walkthrough-panel {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
  align-content: start;
  scrollbar-gutter: stable;
}

.walkthrough-panel > * {
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
  transform-origin: center top;
}

.walkthrough-panel.is-step-exiting > *:not(.walkthrough-actions) {
  opacity: 0;
  transform: translateX(-18px) translateY(6px);
  filter: blur(4px);
}

.walkthrough-panel.is-step-entering > *:not(.walkthrough-actions) {
  opacity: 0;
  transform: translateX(18px) translateY(-6px);
  filter: blur(4px);
}

.walkthrough-meta {
  display: grid;
  gap: 0.25rem;
}

.walkthrough-progress {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.walkthrough-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(65, 133, 219, 0.14);
  box-shadow: 0 16px 32px rgba(31, 88, 162, 0.08);
}

.walkthrough-stage {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #155fb8;
}

.walkthrough-step-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--text);
}

.walkthrough-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.walkthrough-body p {
  margin: 0;
}

.walkthrough-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.walkthrough-actions .button {
  flex: 1 1 auto;
}

.chat-message {
  max-width: 88%;
  padding: 0.72rem 0.88rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.chat-message p {
  color: inherit;
}

.chat-message-user {
  justify-self: end;
  color: #041018;
  background: linear-gradient(135deg, var(--teal), #a1f6e4);
  border-bottom-right-radius: 8px;
  box-shadow: 0 10px 22px rgba(64, 216, 187, 0.16);
}

.chat-message-assistant {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-bottom-left-radius: 8px;
}

.chat-message-thinking {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(65, 133, 219, 0.14);
}

.chat-reset {
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.chat-reset-button {
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #0d5fc4;
  background: rgba(232, 242, 255, 0.96);
  border: 1px solid rgba(65, 133, 219, 0.18);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.thinking-ellipsis {
  display: inline-flex;
  gap: 0.18rem;
  align-items: center;
}

.thinking-ellipsis span {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  animation: thinking-bounce 1.1s infinite ease-in-out;
}

.thinking-ellipsis span:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-ellipsis span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinking-bounce {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.chat-status {
  min-height: 1.1rem;
  font-size: 0.86rem;
  color: #59708d;
}

.chat-status:empty {
  display: none;
}

.chat-form {
  align-self: end;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(65, 133, 219, 0.12);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.72), rgba(251, 253, 255, 0.98));
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.chat-form textarea {
  min-height: 2.45rem;
  max-height: 5.2rem;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-y: auto;
  resize: none;
}

.chat-form .button {
  min-width: 4.5rem;
  min-height: 2.45rem;
  padding: 0.58rem 0.95rem;
  font-size: 0.9rem;
}

.chat-form textarea:disabled,
.chat-form .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-cta {
  justify-self: start;
  max-width: 100%;
  background: rgba(229, 242, 255, 0.95);
  border: 1px solid rgba(65, 133, 219, 0.18);
}

.chat-cta a {
  display: inline-flex;
  margin-top: 0.55rem;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 720px) {
  .nav-links {
    gap: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(4rem, 7vw, 5.75rem);
  }

  .hero-copy {
    max-width: 60rem;
  }

  .handout-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
    gap: 2.2rem;
    padding: 1.8rem;
  }

  .three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .challenge-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
    align-items: start;
    gap: 2.25rem 3rem;
  }

  .challenge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .five-up {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .validation-flow {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .two-column-copy,
  .scoring-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pool-layout {
    grid-template-columns: minmax(0, 1fr) 14rem minmax(0, 1fr);
    align-items: center;
  }

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

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .chat-panel {
    left: auto;
    width: min(27rem, calc(100vw - 2rem));
  }

  .starter-list {
    max-height: 16rem;
  }
}

@media (max-width: 719px) {
  .nav-links {
    display: none;
  }

  h1 {
    margin-top: 1rem;
    max-width: 10.5ch;
    font-size: clamp(2.15rem, 6vw, 4.4rem);
    letter-spacing: -0.055em;
    line-height: 1.15;
  }

  .hero {
    align-items: start;
    min-height: calc(100svh - 4.75rem);
    padding: 2rem 1rem 2.5rem;
    background:
      linear-gradient(180deg, rgba(249, 252, 255, 0.96) 0%, rgba(249, 252, 255, 0.88) 18%, rgba(249, 252, 255, 0.52) 38%, rgba(249, 252, 255, 0.16) 58%, rgba(249, 252, 255, 0.04) 100%),
      url("../images/mobile-hero.28d2a4737ee0.png");
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
  }

  .hero-copy {
    max-width: 22rem;
    padding-top: 0.35rem;
    padding-bottom: 0;
  }

  .hero-text {
    max-width: 20rem;
    margin-top: 1rem;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .challenge-section {
    padding: 3.5rem 1.25rem;
    background:
      linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%),
      radial-gradient(circle at top left, rgba(44, 144, 255, 0.08), transparent 42%);
    background-repeat: no-repeat;
    background-size: cover, cover;
  }

  .challenge-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .challenge-icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .chat-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    padding:
      max(0.9rem, env(safe-area-inset-top))
      0.9rem
      max(0.9rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .starter-list {
    max-height: 11.5rem;
  }

  .chat-transcript {
    padding-bottom: 0.5rem;
    scroll-padding-bottom: 1.5rem;
  }

  .chat-form {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(248, 251, 255, 1));
  }

  .handout-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
