@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --bg: #e7e1da;
  --panel: #f6f1ea;
  --ink: #3b2f2b;
  --accent: #4b3a33;
  --accent-dark: #3a2c27;
  --muted: #6a5a53;
  --shadow: rgba(59, 47, 43, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Trebuchet MS", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #e9e3dc 0%, #e4ddd4 45%, #ded7cf 100%);
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}

.shell {
  width: min(960px, 100%);
  display: grid;
  gap: 28px;
}

.hero {
  background: #ece6df;
  padding: 28px 28px 32px;
  border-radius: 24px;
  box-shadow: 0 20px 40px var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(75, 58, 51, 0.08);
  right: -60px;
  top: -80px;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.logo {
  width: 110px;
  height: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 10px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 540px;
}

.panel {
  background: var(--panel);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px var(--shadow);
  display: grid;
  gap: 20px;
}

.intro {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(35, 31, 28, 0.08);
  display: grid;
  gap: 8px;
}

.intro h2 {
  margin: 0;
  font-size: 18px;
}

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

.intro-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
}

.resume {
  margin-top: 10px;
  background: #fdf3ea;
  border-radius: 14px;
  padding: 12px;
  border: 1px dashed rgba(217, 108, 44, 0.4);
}

.resume p {
  margin: 0 0 8px;
  color: var(--muted);
}

.resume-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.messages {
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 12px;
}

.message {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.4;
  width: fit-content;
  max-width: 80%;
  background: #fdfaf6;
  box-shadow: 0 8px 20px rgba(35, 31, 28, 0.08);
  animation: rise 300ms ease-out;
}

.message.user {
  margin-left: auto;
  background: #efe6dd;
}

.message.bot {
  border: 1px solid rgba(75, 58, 51, 0.18);
}

.composer {
  display: grid;
  gap: 12px;
}

.voice-hint {
  font-size: 14px;
  color: var(--muted);
}

.start {
  width: 100%;
  border: none;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.start:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.input-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

input[type="text"] {
  border: 1px solid rgba(35, 31, 28, 0.15);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  background: #fff;
}

input[type="tel"] {
  border: 1px solid rgba(35, 31, 28, 0.15);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  background: #fff;
}

.send {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.ghost {
  border: 1px solid rgba(59, 47, 43, 0.25);
  padding: 12px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes rise {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  body {
    padding: 20px 12px 32px;
  }

  .panel {
    padding: 18px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .intro-form {
    grid-template-columns: 1fr;
  }
}
