/* Exam landing pages (inoh.app/tests/<exam>). Base tokens, fonts, and the
   footer come from styles.css and landing-footer.css; this file holds only
   what the exam pages add. */
.test-page {
  --test-ink: #2b1d16;
  --test-ink-muted: #6b5a50;
  --test-rule: #d8cec2;
  --test-card-rule: #e1d7cb;
  --test-surface: #fffcf7;
  --test-coral-wash: #fbe5de;
  --test-coral-label: #aa4d36;
  --test-lane: 1120px;
  /* Reason: the design sets its two display lines in the system face, which
     runs narrower than Inter and keeps the hero headline on one line. */
  --test-display: system-ui, -apple-system, sans-serif;
}

/* ========= NAV ========= */
.test-nav {
  align-items: center;
  border-bottom: 1px solid var(--test-rule);
  display: flex;
  height: 100px;
  justify-content: space-between;
  padding: 0 80px;
}

.test-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.test-brand:hover {
  color: var(--test-ink);
}

.test-brand span {
  font: 400 36px/40px var(--display);
}

.test-open-app {
  background: var(--test-ink);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  padding: 12px 20px;
  text-decoration: none;
}

/* Reason: the global a:hover rule would turn the label coral on dark ink. */
.test-open-app:hover {
  color: #fff;
  opacity: 0.9;
}

/* ========= HERO ========= */
.test-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 60px 80px 60px;
  text-align: center;
}

.test-eyebrow {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 16px;
  letter-spacing: 0.09em;
  line-height: 20px;
  text-transform: uppercase;
}

.test-mic {
  align-items: center;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(238, 106, 76, 0.12);
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.test-mic svg,
.test-claude-mark svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.test-mic svg {
  height: 25px;
  stroke: #fff;
  stroke-width: 2;
  width: 25px;
}

.test-hero h1 {
  font-family: var(--test-display);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 80px;
  max-width: 1200px;
}

.test-cta {
  background: var(--coral);
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  padding: 18px 26px;
  text-decoration: none;
}

.test-cta:hover {
  background: var(--coral-deep);
  color: #fff;
}

.test-hero .test-cta {
  margin-top: 8px;
}

.test-claude-note {
  align-items: center;
  display: flex;
  gap: 12px;
  text-align: left;
}

.test-claude-mark {
  align-items: center;
  background: #fae3dd;
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.test-claude-mark svg {
  height: 20px;
  stroke: var(--coral-deep);
  stroke-width: 2.2;
  width: 20px;
}

.test-claude-note p {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.test-claude-note strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.test-claude-note span {
  color: var(--test-ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.test-demo {
  background: #171615;
  border-radius: 10px;
  margin-top: 12px;
  max-width: var(--test-lane);
  order: 5;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.test-demo video {
  aspect-ratio: 1320 / 750;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.pdoor-audio {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--test-rule);
  border-radius: 50%;
  color: #1c1411;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
}

.pdoor-audio:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.pdoor-audio svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.pdoor-audio[hidden],
.pdoor-audio [hidden] {
  display: none;
}

/* ========= FEATURES ========= */
.test-features {
  background: var(--test-surface);
  padding: 64px 100px;
}

.test-feature {
  align-items: center;
  border-bottom: 1px solid var(--test-rule);
  display: flex;
  gap: 80px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--test-lane);
  padding: 42px 0;
}

.test-feature:last-child {
  border-bottom: 0;
}

.test-feature-reversed {
  flex-direction: row-reverse;
}

.test-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}

.test-kicker {
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 18px;
  text-transform: uppercase;
}

.test-feature h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 44px;
}

.test-feature-copy > p:last-child:not(.test-kicker) {
  color: var(--test-ink-muted);
  font-size: 17px;
  line-height: 28px;
}

.test-chat {
  background: var(--bg);
  border: 1px solid var(--test-card-rule);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 12px;
  padding: 20px;
  width: 440px;
}

.test-chat-label {
  color: var(--test-ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 16px;
  text-transform: uppercase;
}

.test-bubble {
  border-radius: 12px;
  font-size: 15px;
  line-height: 22px;
  padding: 10px 14px;
}

.test-bubble-user {
  align-self: flex-end;
  background: var(--test-surface);
}

.test-bubble-reply {
  align-self: flex-start;
  background: var(--test-coral-wash);
  padding-block: 12px;
}

.test-tool-call {
  align-items: center;
  background: var(--test-surface);
  border: 1px solid var(--test-card-rule);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.test-tool-mark {
  align-items: center;
  background: var(--test-coral-wash);
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.test-tool-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 15px;
  font-weight: 500;
  gap: 2px;
  line-height: 21px;
}

.test-tool-text small {
  color: var(--test-coral-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 15px;
  text-transform: uppercase;
}

/* The chat plays as a conversation (test-page.js): each message waits hidden
   until its turn, rises in at its final size, then its words fill in. */
.is-chat-animated [data-chat-message] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

.is-chat-animated [data-chat-message].is-chat-shown {
  opacity: 1;
  transform: none;
}

/* A played chat replays on click, tap, or Enter (test-page.js). */
.is-chat-animated {
  cursor: pointer;
}

.is-chat-animated:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.test-type-rest {
  visibility: hidden;
}

.test-reader-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* The tool call's status: a check in a coral circle once the answer is
   recorded, which is also what shows without script or motion. While the
   conversation plays (test-page.js) it spins first, as chat apps do while a
   tool is still running, then the check draws itself in. */
.test-tool-status {
  flex-shrink: 0;
  height: 20px;
  position: relative;
  width: 20px;
}

.test-tool-status svg {
  display: block;
  height: 20px;
  transition:
    opacity 0.2s ease-out,
    transform 0.25s ease-out;
  width: 20px;
}

.test-tool-status circle {
  fill: var(--test-coral-label);
}

.test-tool-status path {
  fill: none;
  stroke: var(--test-surface);
  stroke-dasharray: 14;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: stroke-dashoffset 0.35s ease-out 0.15s;
}

.test-tool-status::before {
  animation: test-tool-spin 0.9s linear infinite;
  border: 2px solid var(--test-coral-wash);
  border-radius: 50%;
  border-top-color: var(--test-coral-label);
  content: '';
  inset: 1px;
  opacity: 0;
  position: absolute;
}

.is-tool-running .test-tool-status::before {
  opacity: 1;
}

.is-tool-running .test-tool-status svg {
  opacity: 0;
  transform: scale(0.6);
}

.is-tool-running .test-tool-status path {
  stroke-dashoffset: 14;
}

@keyframes test-tool-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========= CLOSING CTA ========= */
.test-closing {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 54px 80px;
  text-align: center;
}

.test-closing h2 {
  font-family: var(--test-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 45px;
}

.test-browse {
  color: var(--test-coral-label);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-underline-offset: 4px;
}

/* ========= PHONE ========= */
/* Reason: on a phone the demo moves above the button, as the design draws it,
   so the first screen shows what the practice looks like before asking. */
@media (max-width: 760px) {
  .test-nav {
    height: 76px;
    padding: 0 24px;
  }

  .test-brand img {
    height: 30px;
    width: 30px;
  }

  .test-brand span {
    font-size: 30px;
    line-height: 34px;
  }

  .test-hero {
    align-items: stretch;
    gap: 20px;
    padding: 36px 24px 40px;
    text-align: left;
  }

  .test-eyebrow {
    justify-content: center;
  }

  .test-hero h1 {
    font-size: 44px;
    line-height: 46px;
  }

  .test-demo {
    margin-top: 0;
    order: 0;
  }

  .test-hero .test-cta,
  .test-closing .test-cta {
    margin-top: 0;
    text-align: center;
  }

  .test-features {
    padding: 24px 24px 48px;
  }

  .test-feature,
  .test-feature-reversed {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .test-feature h2,
  .test-closing h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .test-chat {
    width: 100%;
  }

  .test-closing {
    align-items: stretch;
    padding: 48px 24px;
  }
}
