:root {
  --navy: #05183d;
  --navy-soft: #102a5c;
  --electric: #0797ff;
  --electric-soft: #dff3ff;
  --green: #56d86b;
  --green-deep: #228d49;
  --gold: #f1bd3b;
  --mint: #eefbf5;
  --cream: #f7fbff;
  --white: #ffffff;
  --line: #d8e8f2;
  --text: #152b45;
  --muted: #65788b;
  --danger: #9f3a3a;
  --shadow: 0 24px 70px rgba(5, 24, 61, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 13% 6%, rgba(7, 151, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 88% 10%, rgba(241, 189, 59, 0.2), transparent 24rem),
    radial-gradient(circle at 74% 70%, rgba(86, 216, 107, 0.14), transparent 24rem),
    linear-gradient(140deg, #f8fbff 0%, #ffffff 50%, var(--mint) 100%);
}

button,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 48px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border: 2px solid rgba(7, 151, 255, 0.28);
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 16px 34px rgba(5, 24, 61, 0.2),
    0 0 22px rgba(7, 151, 255, 0.24);
}

.brand-lockup strong {
  display: block;
}

.brand-lockup strong {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  margin-bottom: 38px;
}

.hero-copy {
  max-width: 780px;
}

.hero-art {
  position: relative;
  margin: 0;
  justify-self: end;
}

.hero-art::before {
  position: absolute;
  inset: 9%;
  z-index: -1;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(7, 151, 255, 0.42), transparent 68%);
  content: "";
  filter: blur(18px);
}

.hero-art img {
  display: block;
  width: min(100%, 360px);
  border: 1px solid rgba(7, 151, 255, 0.36);
  border-radius: 34px;
  box-shadow:
    0 28px 70px rgba(5, 24, 61, 0.26),
    0 0 34px rgba(7, 151, 255, 0.24);
}

.eyebrow,
.question-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(7, 151, 255, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--navy-soft);
  background: rgba(223, 243, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.coach-card {
  overflow: hidden;
  border: 1px solid rgba(216, 232, 242, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.progress-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-bar {
  position: relative;
  flex: 1;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eef3f1;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--electric), var(--green), var(--gold));
  transition: width 240ms ease;
}

.conversation {
  min-height: 500px;
  padding: clamp(28px, 5vw, 56px);
}

.question-card,
.loading-card,
.result-card {
  max-width: 780px;
}

.question-card h2,
.loading-card h2,
.result-card h2 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.question-card p,
.loading-card p,
.result-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.generation-countdown {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0 9px;
  align-items: center;
  width: fit-content;
  margin: 12px 0 10px;
  border: 1px solid rgba(7, 151, 255, 0.22);
  border-radius: 18px;
  padding: 10px 13px;
  color: var(--navy-soft);
  background: rgba(223, 243, 255, 0.78);
}

.generation-countdown strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  font-size: 1rem;
}

.generation-countdown span {
  font-size: 0.88rem;
  font-weight: 900;
}

.generation-countdown small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.answer-label {
  display: block;
  margin: 34px 0 10px;
  color: var(--navy-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid #cadbd4;
  border-radius: 22px;
  padding: 18px 20px;
  color: var(--navy);
  background: #ffffff;
  font-size: 1.04rem;
  line-height: 1.55;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 5px rgba(7, 151, 255, 0.15);
}

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

.button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(7, 151, 255, 0.32), transparent 14rem),
    linear-gradient(135deg, var(--navy), #06112d);
  box-shadow: 0 12px 28px rgba(16, 34, 56, 0.18);
}

.button.primary:hover:not(:disabled) {
  background: var(--navy-soft);
}

.button.ghost {
  color: var(--navy);
  background: var(--electric-soft);
}

.error-message {
  margin-top: 14px;
  border: 1px solid rgba(159, 58, 58, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--danger);
  background: rgba(159, 58, 58, 0.07);
  font-weight: 700;
}

.loading-card {
  display: grid;
  place-items: start;
  padding-top: 28px;
}

.spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #e3eee9;
  border-top-color: var(--green-deep);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

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

.result-card .lead {
  color: var(--text);
  font-size: 1.13rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 16px;
}

.insight-grid article,
.first-step {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
}

.insight-grid span,
.first-step span {
  display: block;
  margin-bottom: 10px;
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-grid p,
.first-step p {
  margin-bottom: 0;
  color: var(--text);
}

.first-step {
  background:
    radial-gradient(circle at 88% 12%, rgba(7, 151, 255, 0.32), transparent 14rem),
    linear-gradient(135deg, var(--navy), #06112d);
}

.first-step span,
.first-step p {
  color: #ffffff;
}

.encouragement {
  margin: 22px 0 0;
  color: var(--green-deep) !important;
  font-weight: 700;
}

.result-actions {
  margin-top: 30px;
}

.post-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.mini-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.mini-panel.wide {
  grid-column: 1 / -1;
}

.mini-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.mini-panel p,
.coming-soon span,
.status-note {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.inline-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

input[type="email"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #cadbd4;
  border-radius: 999px;
  padding: 13px 15px;
  color: var(--navy);
  background: #ffffff;
  outline: none;
}

input[type="email"]:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 5px rgba(7, 151, 255, 0.15);
}

.button.compact {
  flex: 0 0 auto;
  padding: 12px 16px;
}

.join-list-button {
  min-width: 128px;
  box-shadow: 0 14px 30px rgba(5, 24, 61, 0.18);
}

.poll-group {
  margin-top: 16px;
}

.poll-group span,
.answer-label.small {
  display: block;
  margin-bottom: 9px;
  color: var(--navy-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.tap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tap-button {
  cursor: pointer;
  border: 1px solid rgba(7, 151, 255, 0.22);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--navy-soft);
  background: var(--electric-soft);
  font-weight: 800;
}

.tap-button.selected {
  border-color: var(--navy);
  color: #ffffff;
  background: var(--navy);
}

#feedback-text {
  min-height: 96px;
  margin-top: 0;
  border-radius: 18px;
  font-size: 0.95rem;
}

.coming-soon {
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px;
  background: var(--electric-soft);
}

.coming-soon strong,
.coming-soon span {
  display: block;
}

.coming-soon strong {
  margin-bottom: 4px;
  color: var(--navy);
}

.status-note {
  margin: 12px 0 0;
  font-weight: 700;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.trust-strip div {
  border: 1px solid rgba(219, 230, 225, 0.8);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  color: var(--navy);
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .hero-art {
    justify-self: start;
    width: min(100%, 300px);
  }

  .coach-card {
    border-radius: 24px;
  }

  .progress-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }

  .progress-bar {
    width: 100%;
  }

  .conversation {
    min-height: 460px;
    padding: 24px 18px;
  }

  .insight-grid,
  .post-result-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
