:root {
  --ink-900: #1D1D1B;
  --ink-800: #2B3034;
  --slate-500: #474F55;
  --ink-700: #38444c;
  --gray-600: #5a6066;
  --gray-500: #8B969E;
  --gray-400: #8F8F8F;
  --gray-300: #BDBDBD;
  --gray-200: #D9D9D9;
  --mist-100: #ECECE5;
  --line-200: #DFE4E4;
  --line-warm: #EFEBE8;
  --white: #FFFFFF;
  --cream-50: #FBFAF4;
  --cream-100: #F8F5ED;
  --cream-200: #EFEBE8;
  --peach-50: #FBEEDD;
  --yellow-300: #FCE9A6;
  --yellow-400: #FBDF7A;
  --yellow-500: #ECD45F;
  --sage-200: #D7E7DF;
  --sage-400: #9AC0AC;
  --sage-500: #5E8A7B;
  --clay-400: #F5A474;
  --teal-400: #AFDAE5;
  --text-inverse: var(--white);
  --action-taupe: #A39C8E;
  --action-taupe-hover: #948d7e;
  --font-serif: "Roca One", "Roca", Georgia, "Times New Roman", serif;
  --font-sans: "Garet", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(43, 48, 52, 0.08);
  --shadow-card: 0 4px 16px rgba(43, 48, 52, 0.08);
  --shadow-md: 0 6px 20px rgba(43, 48, 52, 0.10);
  --shadow-lg: 0 12px 32px rgba(43, 48, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--white);
}

body {
  margin: 0;
  color: var(--ink-800);
  background: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-warm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.header-brand {
  display: inline-block;
  line-height: 1.05;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
}

.header-brand span {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 11.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  width: fit-content;
}

.site-footer__brand img {
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 30px);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
}

.site-nav__links a,
.login-link,
.language-button {
  border: 0;
  color: var(--ink-800);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__links a {
  font-size: 19px;
  padding: 6px 2px;
}

.site-nav__links .nav-gift {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--yellow-300);
}

.language-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  font-size: 18px;
}

.language-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.login-link {
  padding: 12px clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-pill);
  background: var(--action-taupe);
  color: var(--text-inverse);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.login-link:hover,
.mobile-menu__login:hover {
  background: var(--action-taupe-hover);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-800);
}

.menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 34px;
  background: var(--cream-100);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  margin-bottom: 44px;
}

.mobile-menu__close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ink-800);
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transform-origin: center;
}

.mobile-menu__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__nav a {
  color: var(--ink-800);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: auto;
  border-radius: var(--radius-pill);
  background: var(--action-taupe);
  color: var(--text-inverse);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.chat-landing {
  background: var(--white);
}

.agent-section {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 4vw, 48px);
}

.chat-card {
  width: min(760px, 100%);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-warm);
  border-radius: clamp(24px, 3vw, 36px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.chat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line-warm);
  background: var(--cream-100);
}

.chat-card__header p {
  margin: 0 0 5px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
}

.chat-card__header h2 {
  margin: 0;
  color: var(--ink-800);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.05;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(43, 48, 52, 0.06));
}

.agent-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-500);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: clamp(250px, 36vh, 400px);
  padding: clamp(20px, 3vw, 30px);
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    var(--cream-50);
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 86%;
}

.message--user {
  align-self: flex-end;
  justify-content: flex-end;
}

.message__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--ink-800);
  font-family: var(--font-serif);
  font-weight: 900;
}

.message__bubble {
  padding: 15px 17px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink-800);
  box-shadow: var(--shadow-card);
}

.message--agent .message__bubble {
  border-bottom-left-radius: 7px;
}

.message--user .message__bubble {
  border-bottom-right-radius: 7px;
  background: var(--ink-800);
  color: var(--white);
}

.message__bubble p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.quick-prompts {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 3vw, 30px) 18px;
  overflow-x: auto;
  background: var(--cream-50);
  scrollbar-width: none;
}

.quick-prompts::-webkit-scrollbar {
  display: none;
}

.quick-prompts button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.quick-prompts button:hover {
  background: var(--yellow-300);
}

.quick-prompts button:disabled,
.chat-form button:disabled,
.chat-form textarea:disabled {
  cursor: wait;
  opacity: 0.68;
}

.chat-notice {
  margin: 0;
  padding: 0 clamp(20px, 3vw, 30px) 16px;
  background: var(--cream-50);
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
}

.handoff-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(320px, 100%);
  min-height: 44px;
  margin-left: 44px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--yellow-400);
  color: var(--ink-800);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.handoff-link:hover {
  background: var(--yellow-500);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  padding: 18px clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line-warm);
  background: var(--white);
}

.chat-form textarea {
  display: block;
  width: 100%;
  max-height: 132px;
  resize: none;
  border: 1px solid var(--line-warm);
  border-radius: 18px;
  outline: 0;
  padding: 15px 17px;
  color: var(--ink-800);
  background: var(--cream-50);
  font-size: 16px;
  line-height: 1.35;
}

.chat-form textarea:focus {
  border-color: var(--sage-400);
  box-shadow: 0 0 0 4px rgba(94, 138, 123, 0.16);
}

.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  align-self: end;
  border: 0;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}

.chat-form button:hover {
  background: var(--yellow-500);
}

.chat-form svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-footer {
  border-top: 1px solid var(--line-warm);
  background: var(--white);
  padding: clamp(48px, 6vw, 60px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 72px);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer__main {
  max-width: 760px;
}

.site-footer__brand {
  margin-bottom: 22px;
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 18px;
  color: var(--ink-800);
  font-size: 18px;
}

.footer-made img {
  display: block;
  width: 30px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
  font-size: 18px;
  text-decoration: none;
}

.footer-instagram svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-instagram circle:last-child {
  fill: currentColor;
  stroke: none;
}

.site-footer p {
  max-width: 720px;
  margin: 32px 0 0;
  color: var(--ink-800);
  font-size: 18px;
  line-height: 1.55;
}

.site-footer p + p {
  margin-top: 22px;
  line-height: 1.4;
}

.site-footer p a {
  color: var(--ink-800);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 100px;
  margin-top: 44px;
}

.site-footer__legal div {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__legal a {
  color: var(--gray-500);
  font-size: 18px;
  text-decoration: none;
}

.footer-help {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 44px;
  color: var(--ink-800);
  font-size: 18px;
  text-decoration: none;
}

.footer-help svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-partner {
  flex-shrink: 0;
  padding-top: 16px;
  text-align: center;
}

.footer-partner div {
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 14px;
}

.footer-partner img {
  display: block;
  width: auto;
  height: 34px;
}

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

body.menu-open {
  overflow: hidden;
}

@media (max-width: 826px) {
  .site-header {
    gap: 10px;
    padding-left: clamp(20px, 3vw, 28px);
    padding-right: clamp(20px, 3vw, 28px);
  }

  .brand img {
    height: 40px;
  }

  .site-nav {
    gap: 8px;
    justify-content: flex-end;
  }

  .site-nav__links {
    gap: 6px;
  }

  .site-nav__links a {
    font-size: 14px;
    padding: 4px 1px;
  }

  .site-nav__links .nav-gift {
    padding: 8px 10px;
  }

  .language-button {
    font-size: 14px;
  }

  .login-link {
    min-width: 74px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .agent-section {
    min-height: 0;
  }

  .chat-card {
    border-radius: 26px;
  }

  .site-footer__inner {
    display: block;
  }

  .footer-partner {
    display: inline-block;
    margin-top: 42px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 74px;
  }

  .site-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .agent-section {
    padding: 34px 20px 52px;
    gap: 26px;
  }

  .chat-card__header {
    padding: 21px;
  }

  .chat-messages {
    height: 380px;
    padding: 18px;
  }

  .message {
    max-width: 95%;
  }

  .message__bubble p {
    font-size: 14.5px;
  }

  .quick-prompts {
    padding: 0 18px 16px;
  }

  .chat-notice {
    padding: 0 18px 14px;
    font-size: 12.5px;
  }

  .handoff-link {
    margin-left: 0;
  }

  .chat-form {
    grid-template-columns: 1fr 48px;
    padding: 16px 18px 18px;
  }

  .chat-form textarea {
    min-height: 48px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.35;
  }

  .chat-form button {
    width: 48px;
    height: 48px;
  }

  .site-footer {
    padding: 42px 20px 54px;
  }

  .site-footer__legal {
    display: block;
  }

  .site-footer__legal div + div {
    margin-top: 18px;
  }

  .site-footer__legal a + a {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
