:root {
  color-scheme: light;
  --ink: #102C40;
  --cyan: #17C9DA;
  --pine: #226A5B;
  --gold: #FFC94A;
  --cloud: #F7F7F2;
  --white: #FFFFFF;
  --slate: #526A75;
  --border: #78929B;
  --record: #C41E1E;
  --error: #B42318;
  --success-cta: #14D46A;
  --success-cta-hot: #3EEA86;
  --success-cta-ink: #042016;
}

html,
body {
  background: var(--cloud);
  color: var(--ink);
}

.home-nav {
  color: var(--ink);
}

.home-brand,
.home-nav span {
  color: var(--ink);
}

.home-nav span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.interview {
  width: min(700px, calc(100% - 36px));
  margin: 36px auto 90px;
}

.interview.is-first-step {
  padding-top: 48px;
}

.crew-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 8px 0 36px;
}

.crew-portrait {
  display: block;
  width: min(240px, 56vw);
  max-width: 240px;
  height: auto;
}

.crew-kicker {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
}

progress {
  width: 100%;
  height: 6px;
  accent-color: var(--cyan);
  margin-bottom: 16px;
}

.progress-why {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(23, 201, 218, 0.14);
  color: var(--ink);
  border-left: 3px solid var(--cyan);
  font-size: 15px;
  line-height: 1.45;
}

.progress-why:empty,
.progress-why[hidden] {
  display: none;
}

.progress-why.is-complete,
.interview.is-complete-step .progress-why {
  background: rgba(34, 106, 91, 0.12);
  border-left-color: var(--pine);
}

.interview h1,
#fields > h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

#fields > p {
  color: var(--ink);
  margin: 0 0 22px;
}

#fields > p.step-tip,
.step-tip {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.45;
  margin: -4px 0 22px;
}

.field {
  margin: 28px 0;
}

.field-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.field-head label,
.interview label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.field-head label {
  flex: 1 1 auto;
  min-width: 0;
}

.field-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.skip-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  color: var(--slate);
  font: 600 15px/1.2 "Source Sans 3", sans-serif;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-btn:hover,
.skip-btn:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-btn[aria-pressed="true"] {
  color: var(--pine);
  text-decoration: none;
}

.field.is-skipped textarea {
  opacity: 0.5;
  background: var(--cloud);
}

.skip-note {
  margin: 6px 0 0;
  color: var(--pine);
  font-size: 14px;
}

.skip-note:empty {
  display: none;
}

label small {
  display: block;
  color: var(--slate);
  font-weight: 400;
  margin: 6px 0 0;
}

.interview input:not([type=checkbox]),
.interview textarea {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font: 400 17px/1.5 "Source Sans 3", system-ui, sans-serif;
  min-height: 48px;
}

.interview textarea {
  min-height: 120px;
  resize: vertical;
}

.interview input:focus,
.interview textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.actions[hidden],
.interview.is-gini-choose .actions,
.interview.is-gini-live .actions {
  display: none;
}

.actions button {
  cursor: pointer;
}

.actions #back {
  background: none;
  color: var(--slate);
  border: 0;
  min-height: 48px;
  min-width: 48px;
  padding: 12px 8px;
  font: 600 16px "Source Sans 3", sans-serif;
}

.actions .home-primary-action {
  width: auto;
  min-width: 48px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
  font: 600 17px/1.2 "Source Sans 3", sans-serif;
  letter-spacing: 0;
}

.actions .home-primary-action:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(0.97);
}

.actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.privacy {
  font-size: 14px;
  color: var(--slate);
  margin-top: 28px;
}

.privacy a {
  color: var(--pine);
  text-decoration: underline;
}

#error {
  color: var(--error);
  min-height: 1.2em;
}

.review {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin: 18px 0;
}

.review h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.review p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.review button {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  font: 600 16px "Source Sans 3", sans-serif;
  cursor: pointer;
}

.review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 monospace;
  color: var(--ink);
}

.review summary {
  cursor: pointer;
  color: var(--pine);
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.consent {
  font-size: 16px;
  color: var(--ink);
}

.consent input {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.trap {
  position: absolute;
  left: -10000px;
}

.voice-btn {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 16px;
  border: 1.5px solid var(--pine);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 16px/1.2 "Source Sans 3", sans-serif;
  cursor: pointer;
}

.voice-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.voice-btn.is-transcribing .voice-btn-mic,
.voice-btn-mic[hidden] {
  display: none;
}

.voice-btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.voice-btn-meta {
  font: 400 13px/1.2 "Source Sans 3", sans-serif;
}

.voice-btn:hover,
.voice-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.voice-btn.is-recording {
  background: var(--record);
  border-color: var(--record);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(196, 30, 30, 0.16);
  animation: mic-pulse 1s ease-in-out infinite;
}

.voice-btn.is-recording:hover,
.voice-btn.is-recording:focus-visible {
  outline-color: var(--record);
}

.voice-btn.is-transcribing {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255, 201, 74, 0.28);
  animation: transcribe-pulse 1.1s ease-in-out infinite;
  cursor: wait;
}

.voice-btn.is-addon {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
}

.voice-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.voice-btn.is-transcribing:disabled {
  opacity: 1;
}

.voice-btn-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-btn .voice-btn-spinner-mark {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
}

.voice-btn-spinner[hidden] {
  display: none;
}

.field.is-voice-listening textarea,
.is-voice-listening textarea {
  outline: 2px solid var(--record);
  outline-offset: 2px;
}

.field.is-voice-transcribing textarea,
.is-voice-transcribing textarea {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.voice-status {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 14px;
}

.field.is-voice-listening .voice-status {
  color: var(--record);
  font-weight: 600;
}

.field.is-voice-transcribing .voice-status {
  color: var(--ink);
  font-weight: 600;
}

.voice-hint {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: 14px;
}

.voice-hint:empty {
  display: none;
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes transcribe-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.22);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 201, 74, 0.16);
    opacity: 0.92;
  }
}

@keyframes success-cta-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(4, 32, 22, 0.08),
      0 0 18px rgba(20, 212, 106, 0.38),
      0 10px 28px rgba(20, 212, 106, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(20, 212, 106, 0.12),
      0 0 36px rgba(20, 212, 106, 0.55),
      0 14px 36px rgba(20, 212, 106, 0.32);
  }
}

.interview.is-success .eyebrow,
.interview.is-success progress,
.interview.is-success .progress-why {
  display: none;
}

.interview.is-success form > p:not(.interview-success-note) {
  color: var(--ink);
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
}

.interview-success-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  padding: 16px 28px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #0FBF5C 0%, var(--success-cta) 45%, var(--success-cta-hot) 100%);
  color: var(--success-cta-ink);
  font: 700 clamp(18px, 4.4vw, 22px)/1.2 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(4, 32, 22, 0.08),
    0 0 22px rgba(20, 212, 106, 0.45),
    0 12px 32px rgba(20, 212, 106, 0.28);
  animation: success-cta-glow 1.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.interview-success-cta:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(4, 32, 22, 0.08),
    0 0 34px rgba(20, 212, 106, 0.65),
    0 16px 40px rgba(20, 212, 106, 0.36);
}

.interview-success-cta:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 4px;
}

.interview-success-cta:active {
  transform: translateY(0) scale(0.99);
}

.interview-success-note {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.interview-success-offer {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 28px 0 0;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--cloud);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(16, 44, 64, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.interview-success-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(16, 44, 64, 0.3);
}

.interview-success-offer:focus-visible {
  outline: 3px solid #00E5FF;
  outline-offset: 4px;
}

.interview-success-offer-eyebrow {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 4.2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--cloud);
}

.interview-success-offer-lede {
  margin: 0 0 18px;
  color: rgba(247, 247, 242, 0.82);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

.interview-success-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.interview-success-offer-tile {
  min-width: 0;
}

.interview-success-offer-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #0a1620;
}

.interview-success-offer-label {
  display: block;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .interview-success-cta {
    min-height: 60px;
    padding: 16px 20px;
  }

  .interview-success-offer {
    padding: 18px 14px 14px;
    border-radius: 18px;
  }

  .interview-success-offer-grid {
    gap: 8px;
  }

  .interview-success-offer-label {
    font-size: 12px;
  }

  .field-head {
    flex-direction: column;
    align-items: stretch;
  }

  .field-tools {
    width: 100%;
    justify-content: stretch;
  }

  .voice-btn {
    flex: 1 1 auto;
    width: auto;
    justify-content: center;
  }

  .voice-btn-copy {
    align-items: center;
  }
}

.gini-chooser {
  display: grid;
  gap: 14px;
  margin: 8px 0 12px;
}

.gini-mode-card {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  padding: 18px 20px;
  cursor: pointer;
  font: 400 16px/1.45 "Source Sans 3", sans-serif;
}

.gini-mode-card strong {
  display: block;
  font: 600 18px/1.3 "Source Sans 3", sans-serif;
  margin-bottom: 6px;
}

.gini-mode-card span {
  display: block;
  color: var(--slate);
}

.gini-mode-live {
  border-color: var(--pine);
  box-shadow: 0 0 0 4px rgba(34, 106, 91, 0.1);
}

.gini-mode-card:hover,
.gini-mode-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.gini-live {
  margin: 8px 0 28px;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
}

.gini-orb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 0 16px;
  background: radial-gradient(circle at 35% 30%, #7fe3ea 0%, var(--pine) 70%);
  box-shadow: 0 0 0 8px rgba(34, 106, 91, 0.1);
}

.gini-live.is-listening .gini-orb {
  animation: gini-breathe 2.4s ease-in-out infinite;
}

.gini-live.is-speaking .gini-orb {
  background: radial-gradient(circle at 35% 30%, #ffe08a 0%, #d7a21a 70%);
  box-shadow: 0 0 0 10px rgba(255, 201, 74, 0.2);
  animation: gini-breathe 1.6s ease-in-out infinite;
}

.gini-live.is-connecting .gini-orb {
  opacity: 0.7;
}

.gini-status {
  margin: 0 0 4px;
  font: 600 18px/1.3 "Source Sans 3", sans-serif;
  color: var(--ink);
}

.gini-clock {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 14px;
}

.gini-log {
  min-height: 4.5em;
  margin: 0 0 18px;
}

.gini-line {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--border);
  color: var(--ink);
  white-space: pre-wrap;
}

.gini-line-gini {
  border-left-color: var(--pine);
}

.gini-line-owner {
  border-left-color: var(--cyan);
}

.gini-line::before {
  content: attr(data-who) " · ";
  color: var(--slate);
  font-weight: 600;
  font-size: 13px;
}

.gini-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.gini-end,
.gini-share-more {
  min-height: 48px;
  min-width: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  font: 600 16px/1.2 "Source Sans 3", sans-serif;
  cursor: pointer;
}

.gini-end {
  border: 1.5px solid var(--record);
  background: var(--white);
  color: var(--record);
}

.gini-share-more {
  border: 1.5px solid var(--pine);
  background: var(--pine);
  color: var(--white);
}

.gini-end:hover,
.gini-end:focus-visible,
.gini-share-more:hover,
.gini-share-more:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.gini-widgets {
  display: grid;
  gap: 18px;
}

.gini-widget {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--cloud);
}

.gini-widget h2 {
  margin: 0 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}

.gini-widget p {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 15px;
}

.gini-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gini-chip {
  appearance: none;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font: 600 15px/1.2 "Source Sans 3", sans-serif;
  cursor: pointer;
}

.gini-chip[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--white);
}

.gini-chip-quiet[aria-pressed="true"] {
  background: var(--slate);
  border-color: var(--slate);
}

.gini-other {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink);
}

.gini-other input {
  margin-top: 8px;
}

@keyframes gini-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .voice-btn.is-recording,
  .voice-btn.is-transcribing,
  .interview-success-cta,
  .gini-live.is-listening .gini-orb,
  .gini-live.is-speaking .gini-orb {
    animation: none;
  }
}
