:root {
  color-scheme: light;
  --ink: #2d2926;
  --ink-soft: #4f4a45;
  --muted: #736c64;
  --paper: #fbfaf7;
  --paper-warm: #f6f1e8;
  --paper-blue: #e8f4f7;
  --paper-pink: #f7ebe5;
  --paper-green: #edf3e5;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(45, 41, 38, 0.12);
  --line-strong: rgba(45, 41, 38, 0.2);
  --blue: #a9d9e7;
  --blue-strong: #74b7c8;
  --sage: #b8c9a9;
  --clay: #d9aa92;
  --butter: #f4d784;
  --lavender: #c7b7dd;
  --send: #5f6f94;
  --send-dark: #4d5c7d;
  --good: #2f7650;
  --ok: #8a681e;
  --low: #a14d43;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 8% 4%,
      rgba(169, 217, 231, 0.34),
      transparent 28rem
    ),
    radial-gradient(
      circle at 92% 18%,
      rgba(244, 215, 132, 0.28),
      transparent 30rem
    ),
    linear-gradient(
      180deg,
      #fffefd 0%,
      var(--paper) 38%,
      var(--paper-warm) 100%
    );
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

main:focus {
  outline: none;
}

button,
textarea,
input {
  font: inherit;
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10000;
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--ink);
  color: #fffefd;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(45, 41, 38, 0.2);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: 42px 0 24px;
}

.hero::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(45, 41, 38, 0.08);
  border-radius: 28px;
  content: "";
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(3.25rem, 7.4vw, 6.65rem);
  font-weight: 780;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__subhead {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 680;
  line-height: 1.1;
  white-space: nowrap;
}

.dek {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 19px;
  color: var(--ink);
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.button:focus-visible,
.samples button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(169, 217, 231, 0.68);
  outline-offset: 4px;
}

.button:disabled,
.samples button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.button--primary {
  background: var(--ink);
  color: #fffefd;
  box-shadow: 0 16px 34px rgba(45, 41, 38, 0.14);
}

.button--primary:hover {
  background: #413a34;
}

.button--soft,
.samples button {
  border-color: rgba(116, 183, 200, 0.42);
  background: var(--paper-blue);
  color: #244852;
}

.button--soft:hover,
.samples button:hover {
  border-color: rgba(116, 183, 200, 0.78);
  background: #daf0f6;
}

.button--send {
  background: var(--send);
  color: #fffefd;
  box-shadow: 0 14px 28px rgba(101, 119, 155, 0.22);
}

.button--send:hover {
  background: var(--send-dark);
}

.button--ghost-dark {
  border-color: var(--line-strong);
  background: #fffefd;
  color: var(--ink);
}

.interview,
.what-is-this {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.interview {
  padding: clamp(22px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 253, 0.84);
  box-shadow: 0 24px 80px rgba(45, 41, 38, 0.08);
  backdrop-filter: blur(14px);
}

.interview__intro {
  max-width: 940px;
  margin-bottom: 18px;
}

.interview__intro .eyebrow {
  color: #637494;
}

.interview h2,
.what-is-this h2 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.sample-helper {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.samples button {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.chat-shell {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffefd;
  box-shadow:
    0 22px 58px rgba(45, 41, 38, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.chat-thread {
  display: flex;
  min-height: 590px;
  max-height: min(76svh, 820px);
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: clamp(18px, 3.4vw, 34px);
  scroll-behavior: smooth;
}

.chat-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.chat-message--user {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.chat-message--user .chat-message__avatar {
  grid-column: 2;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: #fffefd;
  font-size: 0.74rem;
  font-weight: 760;
}

.chat-message--user .chat-message__bubble {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  max-width: min(760px, 88%);
  background: #eef4f5;
  color: var(--ink);
}

.chat-message__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fbf0e9;
  box-shadow: inset 0 0 0 1px rgba(45, 41, 38, 0.08);
  overflow: hidden;
}

.chat-message__avatar img {
  width: 46px;
  height: 46px;
  display: block;
}

.chat-message.is-thinking .chat-message__avatar img {
  animation: avatar-wiggle 820ms ease-in-out infinite;
  transform-origin: 50% 88%;
}

.chat-message__bubble {
  max-width: min(820px, 94%);
  border: 1px solid rgba(45, 41, 38, 0.1);
  border-radius: 20px;
  padding: 16px 18px;
  background: var(--paper-warm);
  color: var(--ink);
  line-height: 1.58;
}

.chat-message__bubble p {
  margin-bottom: 12px;
}

.chat-message__bubble p:last-child {
  margin-bottom: 0;
}

.thinking {
  color: #637494;
  font-weight: 760;
}

.thinking::after {
  content: "";
  animation: thinking-dots 1.2s steps(4, end) infinite;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: clamp(14px, 2.4vw, 22px);
  background: rgba(246, 241, 232, 0.72);
}

.chat-composer__field {
  display: grid;
  gap: 8px;
}

textarea {
  width: 100%;
  min-height: 96px;
  max-height: 240px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 15px 16px;
  background: #fffefd;
  color: var(--ink);
  line-height: 1.48;
}

textarea:focus,
input:focus {
  outline: 4px solid rgba(169, 217, 231, 0.55);
  border-color: rgba(116, 183, 200, 0.9);
}

.composer-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-fit {
  display: grid;
  grid-template-columns: minmax(132px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 16px 0;
  border: 1px solid rgba(45, 41, 38, 0.1);
  border-radius: 20px;
  padding: 20px;
  background: #fffefd;
  box-shadow: 0 12px 30px rgba(45, 41, 38, 0.07);
}

.chat-fit p {
  color: var(--ink-soft);
}

.fit-result {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.fit-face {
  position: relative;
  width: clamp(74px, 13vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    inset 0 -8px 0 rgba(45, 41, 38, 0.08),
    0 12px 22px rgba(45, 41, 38, 0.12);
}

.fit-face__eye,
.fit-face__mouth {
  position: absolute;
  display: block;
  background: #fffefd;
}

.fit-face__eye {
  top: 32%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.fit-face__eye--left {
  left: 30%;
}

.fit-face__eye--right {
  right: 30%;
}

.fit-face__mouth {
  left: 50%;
  bottom: 28%;
  width: 38%;
  height: 20%;
  border: clamp(4px, 0.8vw, 7px) solid #fffefd;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: transparent;
  transform: translateX(-50%);
}

.fit-face__mouth--flat {
  bottom: 32%;
  height: clamp(4px, 0.8vw, 7px);
  border: 0;
  border-radius: 999px;
  background: #fffefd;
}

.fit-result__label {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 760;
  line-height: 1.08;
}

.fit-good {
  color: var(--good);
}

.fit-ok {
  color: var(--ok);
}

.fit-low {
  color: var(--low);
}

.chat-followup {
  margin-top: 16px;
  font-weight: 760;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.what-is-this {
  display: grid;
  gap: 34px;
  margin-top: 82px;
  margin-bottom: 72px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(
      135deg,
      rgba(232, 244, 247, 0.72),
      rgba(255, 254, 253, 0.92) 46%,
      rgba(247, 235, 229, 0.68)
    ),
    #fffefd;
  box-shadow: 0 20px 70px rgba(45, 41, 38, 0.07);
}

.what-is-this__copy {
  max-width: 900px;
}

.what-is-this .eyebrow {
  color: #8d6b5d;
}

.what-is-this h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4.7vw, 4.4rem);
}

.what-is-this__copy p:not(.eyebrow),
.feature-grid p,
.ai-note {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article {
  min-height: 190px;
  border: 1px solid rgba(45, 41, 38, 0.09);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 254, 253, 0.78);
}

.feature-grid article:nth-child(2n) {
  background: rgba(232, 244, 247, 0.58);
}

.feature-grid article:nth-child(3n) {
  background: rgba(237, 243, 229, 0.66);
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 760;
  line-height: 1.18;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 12px;
}

.tech-logo {
  display: grid;
  min-height: 136px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(45, 41, 38, 0.09);
  border-radius: 22px;
  padding: 16px 12px;
  background: rgba(255, 254, 253, 0.74);
  box-shadow: 0 12px 26px rgba(45, 41, 38, 0.06);
}

.tech-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tech-logo figcaption {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
}

.tech-logo--badge span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(45, 41, 38, 0.12);
  border-radius: 18px;
  background: var(--paper-blue);
  color: #244852;
  font-size: 1.18rem;
  font-weight: 820;
}

.ai-note {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.confetti-layer i {
  position: absolute;
  top: -18px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  animation: confetti-fall 1450ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 42px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.accessibility-notice {
  display: flex;
  max-width: 640px;
  align-items: flex-start;
  gap: 10px;
}

.accessibility-notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: #637494;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes avatar-wiggle {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-5deg) translateY(-1px);
  }

  75% {
    transform: rotate(5deg) translateY(-1px);
  }
}

@keyframes thinking-dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

@keyframes confetti-fall {
  to {
    opacity: 0;
    transform: translate(var(--fall-x), var(--fall-y)) rotate(780deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 42px 0 24px;
  }

  .hero::before {
    inset: 12px;
    border-radius: 22px;
  }

  .hero__content {
    padding: 28px 0;
  }

  .hero__subhead {
    white-space: normal;
  }

  .feature-grid,
  .chat-composer,
  .chat-fit {
    grid-template-columns: 1fr;
  }

  .button--send {
    width: 100%;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-thread {
    min-height: 540px;
  }
}

@media (max-width: 560px) {
  .hero__content,
  .interview,
  .what-is-this {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(3.05rem, 15vw, 4.55rem);
  }

  .hero__actions .button,
  .samples button {
    width: 100%;
  }

  .samples button {
    justify-content: flex-start;
    border-radius: 18px;
    text-align: left;
  }

  .interview,
  .what-is-this {
    border-radius: 24px;
  }

  .chat-thread {
    max-height: 690px;
    padding: 16px;
  }

  .chat-message,
  .chat-message--user {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-message--user .chat-message__avatar {
    grid-column: 1;
  }

  .chat-message--user .chat-message__bubble {
    grid-column: 2;
    justify-self: stretch;
    max-width: 100%;
  }

  .chat-message__bubble {
    max-width: 100%;
  }

  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    width: calc(100% - 24px);
  }
}
