:root {
  --ink: #17282f;
  --ink-soft: #4c5a5e;
  --paper: #f8f6f1;
  --paper-deep: #efeae1;
  --card: #fffefa;
  --line: #ded9ce;
  --line-strong: #c9c1b4;
  --coral: #ef7054;
  --coral-dark: #da5d43;
  --coral-soft: #f8d8cc;
  --sage: #dfe7dc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(41, 47, 44, 0.11), 0 4px 18px rgba(41, 47, 44, 0.06);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(225, 230, 213, 0.7), transparent 29rem),
    radial-gradient(circle at 88% 76%, rgba(247, 211, 197, 0.42), transparent 27rem),
    var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.chat-open {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
select,
textarea,
input {
  font: inherit;
}

button,
a,
select,
textarea,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-nav {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 31px;
  display: inline-block;
}

.brand-mark > span {
  position: absolute;
  display: block;
  width: 25px;
  height: 19px;
  border-radius: 7px;
}

.brand-mark > span::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 7px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: inherit;
}

.brand-mark > span:first-child {
  top: 1px;
  left: 0;
  background: var(--ink);
}

.brand-mark > span:first-child::after {
  left: 4px;
}

.brand-mark > span:last-child {
  right: 0;
  bottom: 1px;
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--paper);
}

.brand-mark > span:last-child::after {
  right: 4px;
  left: auto;
  transform: scaleX(-1);
}

.brand-mark.small {
  transform: scale(0.8);
}

.privacy-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 254, 250, 0.55);
  font-size: 12px;
  font-weight: 650;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c9975;
  box-shadow: 0 0 0 3px rgba(108, 153, 117, 0.14);
}

.landing {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.76fr);
  align-items: center;
  gap: clamp(64px, 9vw, 144px);
  padding-block: 58px 82px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}

.eyebrow span {
  font-size: 15px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(55px, 6vw, 82px);
  font-weight: 680;
  line-height: 0.97;
  letter-spacing: -0.066em;
}

.hero-copy h1 em {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 38px;
  color: #687174;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.trust-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--coral-dark);
  font-size: 11px;
}

.language-card {
  position: relative;
  padding: 31px;
  border: 1px solid rgba(210, 203, 191, 0.9);
  border-radius: 24px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.language-card::before,
.language-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(213, 205, 193, 0.5);
}

.language-card::before {
  inset: 8px -8px -8px 8px;
}

.language-card::after {
  inset: 16px -16px -16px 16px;
  opacity: 0.5;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}

.card-heading h2 {
  margin: 8px 0 0;
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.mini-bubbles {
  position: relative;
  width: 50px;
  height: 38px;
}

.mini-bubbles i {
  position: absolute;
  width: 31px;
  height: 24px;
  border-radius: 9px;
}

.mini-bubbles i:first-child {
  top: 0;
  left: 0;
  background: var(--sage);
}

.mini-bubbles i:last-child {
  right: 0;
  bottom: 0;
  background: var(--coral-soft);
}

.language-field {
  display: block;
}

.field-kicker {
  display: block;
  margin: 0 0 9px 2px;
  color: #747c7d;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.language-symbol {
  position: absolute;
  z-index: 1;
  left: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: var(--sage);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
}

.language-symbol.alt {
  color: #8d4635;
  background: var(--coral-soft);
}

.language-field select {
  width: 100%;
  height: 58px;
  appearance: none;
  padding: 0 50px 0 59px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 13px;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.language-field select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 112, 84, 0.13);
}

.select-chevron {
  position: absolute;
  right: 17px;
  color: #7d8382;
  font-size: 18px;
  pointer-events: none;
}

.language-field small {
  display: block;
  margin: 7px 2px 0;
  color: #929694;
  font-size: 10px;
  line-height: 1.4;
}

.swap-button {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 5px auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #7e8584;
  background: var(--card);
  font-size: 16px;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.swap-button:hover {
  transform: rotate(180deg);
  border-color: var(--coral);
  color: var(--coral-dark);
}

.form-error {
  min-height: 18px;
  margin: 10px 2px 0;
  color: #bd4233;
  font-size: 12px;
  line-height: 1.4;
}

.primary-button {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 13px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(23, 40, 47, 0.16);
  font-size: 14px;
  font-weight: 730;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #203842;
  box-shadow: 0 13px 25px rgba(23, 40, 47, 0.2);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.send-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.button-arrow {
  font-size: 18px;
  transition: transform 150ms ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(3px);
}

.link-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid #e9e4dc;
}

.link-note p {
  margin: 0;
  color: #8b8f8d;
  font-size: 10px;
  line-height: 1.45;
}

.link-note strong {
  color: #626b6c;
  font-weight: 700;
}

.lock-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-deep);
  color: #687475;
}

.setup-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: -36px;
  margin-bottom: 26px;
  color: #795e55;
  font-size: 11px;
}

.setup-notice > span {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral-soft);
  font-family: var(--serif);
  font-weight: 700;
}

.setup-notice p {
  margin: 0;
}

.site-footer {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-top: 1px solid rgba(203, 197, 186, 0.65);
  color: #999c99;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-rule {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c2c0ba;
}

/* Gate */
.room-page {
  min-height: 100vh;
}

body.chat-open .room-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.room-loading {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  color: #707a7b;
  font-size: 13px;
}

.loading-mark {
  display: flex;
  gap: 5px;
}

.loading-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: bounce 900ms infinite ease-in-out;
}

.loading-mark i:nth-child(2) {
  animation-delay: 120ms;
}

.loading-mark i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-7px); opacity: 1; }
}

.gate-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 100px 24px 48px;
}

.gate-brand {
  position: absolute;
  top: 31px;
  left: 36px;
}

.gate-card {
  width: min(450px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-art {
  position: relative;
  width: 92px;
  height: 64px;
  margin: 0 auto 23px;
}

.gate-art span {
  position: absolute;
  display: grid;
  width: 54px;
  height: 46px;
  place-items: center;
  border-radius: 17px 17px 17px 5px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.gate-art span:first-child {
  top: 0;
  left: 0;
  color: var(--card);
  background: var(--ink);
}

.gate-art span:last-child {
  right: 0;
  bottom: 0;
  border-radius: 17px 17px 5px 17px;
  color: #8d4635;
  background: var(--coral-soft);
  box-shadow: 0 0 0 5px var(--card);
}

.gate-card .step-label {
  margin-bottom: 8px;
}

.gate-card h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.gate-copy {
  max-width: 330px;
  margin: 12px auto 26px;
  color: #70797a;
  font-size: 13px;
  line-height: 1.6;
}

.gate-form {
  display: grid;
  gap: 15px;
  text-align: left;
}

.gate-field span {
  display: block;
  margin: 0 0 7px 2px;
  color: #6d7575;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
}

.gate-field input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 112, 84, 0.13);
}

.gate-form .primary-button {
  margin-top: 3px;
}

.identity-options {
  display: grid;
  gap: 11px;
}

.identity-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.identity-button:hover {
  transform: translateY(-1px);
  border-color: var(--coral);
  box-shadow: 0 8px 20px rgba(41, 47, 44, 0.08);
}

.identity-button.primary-identity {
  border-color: rgba(239, 112, 84, 0.45);
  background: #fff9f6;
}

.identity-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--sage);
  font-weight: 750;
}

.primary-identity .identity-avatar {
  color: #8d4635;
  background: var(--coral-soft);
}

.identity-button strong,
.identity-button small {
  display: block;
}

.identity-button strong {
  font-size: 14px;
}

.identity-button small {
  margin-top: 3px;
  color: #89908f;
  font-size: 10px;
}

.gate-error {
  margin: 12px 0 0;
  color: #bd4233;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.gate-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

/* Chat */
.chat-layout {
  position: fixed;
  inset: 0;
  width: 100%;
  height: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(222, 231, 220, 0.48), transparent 25rem),
    var(--paper);
}

.chat-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(205, 199, 188, 0.75);
  background: rgba(255, 254, 250, 0.84);
  backdrop-filter: blur(18px);
}

.chat-header-inner {
  width: min(900px, calc(100% - 36px));
  min-height: 76px;
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.chat-home {
  width: 48px;
  margin-right: 6px;
}

.avatar {
  width: 41px;
  height: 41px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #8d4635;
  background: var(--coral-soft);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 750;
}

.chat-person {
  min-width: 0;
  margin-left: 11px;
}

.chat-person strong,
.chat-person > span {
  display: block;
}

.chat-person strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-person > span {
  margin-top: 3px;
  color: #8b9291;
  font-size: 9px;
  font-weight: 620;
}

.chat-person i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #c29e59;
}

.chat-person i.online {
  background: #6f9e77;
}

.language-route {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #7c8585;
  font-size: 10px;
  font-weight: 700;
}

.language-route span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-route i {
  color: var(--coral-dark);
  font-style: normal;
}

.share-button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.share-button:hover {
  transform: translateY(-1px);
  border-color: var(--coral);
}

.share-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.chat-service-note {
  padding: 8px 18px;
  color: #775d54;
  background: #f9e2d8;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.chat-alerts {
  position: relative;
  z-index: 2;
}

.notification-prompt {
  padding: 8px 18px;
  border-bottom: 1px solid rgba(205, 199, 188, 0.7);
  background: var(--sage);
  text-align: center;
}

.notification-prompt button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.notification-prompt button:hover {
  color: var(--coral-dark);
}

.notification-dialog {
  width: min(400px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
}

.notification-dialog::backdrop {
  background: rgba(23, 40, 47, 0.42);
  backdrop-filter: blur(4px);
}

.notification-dialog[open] {
  animation: notification-dialog-in 180ms ease-out;
}

.notification-dialog-card {
  padding: 31px;
  text-align: center;
}

.notification-dialog-mark {
  width: 45px;
  height: 45px;
  display: grid;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 14px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 18px;
}

.notification-dialog h2 {
  margin: 7px 0 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.notification-dialog-card > p:last-of-type {
  margin: 10px auto 23px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.notification-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 10px;
}

.notification-dialog-actions .primary-button {
  min-height: 50px;
  font-size: 12px;
}

.notification-later-button {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.notification-later-button:hover {
  border-color: var(--coral);
}

@keyframes notification-dialog-in {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.messages-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #d3cec5 transparent;
  scrollbar-width: thin;
}

.messages-inner {
  width: min(760px, calc(100% - 36px));
  min-height: 100%;
  margin-inline: auto;
  padding: 24px 0 28px;
}

.conversation-start {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.date-chip {
  padding: 6px 10px;
  border: 1px solid #ded9d0;
  border-radius: 999px;
  color: #898e8c;
  background: rgba(255, 254, 250, 0.7);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.encryption-note {
  color: #9a9e9b;
  font-size: 9px;
}

.encryption-note span {
  margin-right: 5px;
}

.empty-chat {
  display: grid;
  justify-items: center;
  margin-top: clamp(55px, 12vh, 110px);
  color: #7a8281;
  text-align: center;
}

.empty-bubbles {
  position: relative;
  width: 122px;
  height: 67px;
  margin-bottom: 15px;
}

.empty-bubbles span {
  position: absolute;
  padding: 12px 16px;
  border-radius: 15px 15px 15px 4px;
  color: var(--ink);
  background: var(--sage);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.empty-bubbles span:first-child {
  top: 0;
  left: 0;
}

.empty-bubbles span:last-child {
  right: 0;
  bottom: 0;
  border-radius: 15px 15px 4px 15px;
  color: #8d4635;
  background: var(--coral-soft);
}

.empty-chat h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.empty-chat p {
  max-width: 300px;
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-row.own {
  align-items: flex-end;
}

.message-sender {
  margin: 0 0 5px 11px;
  color: #898f8e;
  font-size: 9px;
  font-weight: 700;
}

.message-bubble-wrap {
  max-width: min(76%, 550px);
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message-row.own .message-bubble-wrap {
  flex-direction: row-reverse;
}

.message-bubble {
  min-width: 92px;
  padding: 11px 13px 8px;
  border: 1px solid #ded9d0;
  border-radius: 5px 16px 16px 16px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 5px 15px rgba(47, 52, 49, 0.05);
}

.message-row.own .message-bubble {
  border-color: var(--ink);
  border-radius: 16px 5px 16px 16px;
  color: var(--white);
  background: var(--ink);
}

.message-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 5px;
  color: #9aa09f;
  font-size: 8px;
}

.message-row.own .message-footer {
  color: rgba(255, 255, 255, 0.58);
}

.retry-button {
  flex: 0 0 auto;
  padding: 4px 2px;
  border: 0;
  color: #8b918f;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.retry-button:hover {
  color: var(--coral-dark);
}

.retry-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.translation-note {
  max-width: min(76%, 550px);
  margin: 4px 10px 0;
  color: #a06b5e;
  font-size: 8px;
  line-height: 1.4;
}

.message-row.own .translation-note {
  text-align: right;
}

.composer {
  z-index: 8;
  padding: 13px max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid rgba(205, 199, 188, 0.7);
  background: rgba(255, 254, 250, 0.9);
  backdrop-filter: blur(18px);
}

.composer-inner {
  width: min(760px, 100%);
  min-height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-inline: auto;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(41, 47, 44, 0.06);
}

.composer textarea {
  width: 100%;
  max-height: 130px;
  align-self: center;
  resize: none;
  overflow-y: auto;
  padding: 5px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: #a3a6a3;
}

.send-button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--coral);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.send-button:hover {
  transform: translateY(-1px);
  background: var(--coral-dark);
}

.send-button[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
}

.composer .send-button:disabled {
  transform: none;
  cursor: not-allowed;
}

.composer-meta {
  width: min(760px, 100%);
  margin: 6px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.composer-hint,
.composer-count {
  margin: 0;
  color: #a0a3a0;
  font-size: 8px;
}

.composer-hint span {
  color: var(--coral);
}

.composer-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.composer-count.limit-warning {
  color: var(--coral-dark);
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--white);
  background: rgba(23, 40, 47, 0.94);
  box-shadow: 0 12px 30px rgba(23, 40, 47, 0.2);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  animation: toast-in 180ms ease-out;
}

@keyframes toast-in {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 900px) {
  .landing {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 720px;
    text-align: center;
    margin-inline: auto;
  }

  .eyebrow,
  .trust-row {
    justify-content: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .language-card {
    width: min(490px, 100%);
    margin-inline: auto;
  }

  .setup-notice {
    margin-top: -10px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 30px, 520px);
  }

  .site-nav {
    height: 74px;
  }

  .privacy-pill {
    font-size: 10px;
  }

  .landing {
    gap: 38px;
    padding: 42px 0 65px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 61px);
  }

  .hero-subtitle {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.6;
  }

  .trust-row {
    gap: 12px 17px;
    margin-top: 29px;
    font-size: 9px;
  }

  .language-card {
    padding: 23px;
    border-radius: 20px;
  }

  .language-card::before,
  .language-card::after {
    display: none;
  }

  .site-footer {
    min-height: 58px;
    justify-content: center;
    text-align: center;
  }

  .site-footer span:last-child,
  .footer-rule {
    display: none;
  }

  .gate-brand {
    top: 22px;
    left: 22px;
  }

  .gate-page {
    padding-inline: 15px;
  }

  .gate-card {
    padding: 31px 22px;
  }

  .chat-header-inner {
    width: calc(100% - 24px);
    min-height: 67px;
  }

  .chat-home {
    width: 38px;
  }

  .chat-home .brand-mark {
    transform: scale(0.68);
    transform-origin: left center;
  }

  .avatar {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .language-route {
    display: none;
  }

  .share-button {
    margin-left: auto;
    padding-inline: 11px;
    justify-content: center;
  }

  .messages-inner {
    width: calc(100% - 24px);
    padding-top: 19px;
  }

  .message-bubble-wrap,
  .translation-note {
    max-width: 86%;
  }

  .message-text {
    font-size: 13px;
  }

  .composer {
    padding-top: 10px;
  }

  .composer-hint {
    display: none;
  }

  .composer-meta {
    justify-content: flex-end;
  }

  .notification-dialog-card {
    padding: 27px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
