:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #212721;
  background: #fafaf7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
#numbers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.brand {
  position: absolute;
  z-index: 1;
  top: 38px;
  left: 44px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.5px;
}
.brand span {
  color: #698766;
}
main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 112px 24px;
  text-align: center;
}
.message {
  width: 100%;
  max-width: 1040px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 25px;
  font-size: 14px;
  color: #657162;
  letter-spacing: 0.04em;
}
.status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #789b68;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 6.8vw, 86px);
  font-weight: 450;
  letter-spacing: -0.065em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 span {
  color: #58734e;
}
.intro {
  max-width: 540px;
  margin: 26px auto 0;
  color: #657162;
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}
.signup-note {
  margin: 13px 0 0;
  color: #657162;
  font-size: 12px;
  line-height: 1.4;
}
.site-footer {
  position: relative;
  padding: 0 24px 32px;
  color: #657162;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.site-footer a,
.field-hint a {
  color: #354b32;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .intro {
    max-width: 390px;
    margin-top: 22px;
    font-size: 16px;
  }
  .brand {
    top: 26px;
    left: 26px;
    font-size: 25px;
  }
  h1 {
    font-size: clamp(29px, 8.5vw, 50px);
  }
  .eyebrow {
    font-size: 13px;
    margin-bottom: 22px;
  }
}
::selection {
  background: #dce7d2;
  color: #212721;
}

.signup-form {
  width: 100%;
  margin: 24px auto 0;
  text-align: left;
  display: grid;
  gap: 14px;
}
.signup-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #586154;
}
.field-hint {
  color: #657162;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.signup-form input,
.signup-form select,
.signup-form button[type='submit'] {
  min-width: 0;
  height: 46px;
  border: 1px solid #d8ded2;
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
  font-size: 15px;
  color: #212721;
  background: rgba(255, 255, 255, 0.92);
}
.signup-form input::placeholder {
  color: #8b9387;
}
.signup-form :focus-visible {
  outline: 2px solid #698766;
  outline-offset: 3px;
}
.signup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.signup-form button[type='submit'] {
  background: #354b32;
  color: #fff;
  border-color: #354b32;
  cursor: pointer;
  font-weight: 500;
}
.signup-form button[type='submit']:hover {
  background: #293e27;
}
.signup-form button[type='submit']:disabled {
  cursor: default;
  opacity: 0.7;
}
#signup-status {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #354b32;
  text-align: center;
}
#signup-status[data-state='error'] {
  color: #a13333;
}

@media (prefers-reduced-motion: reduce) {
  #numbers {
    display: none;
  }
}

.signup-open {
  margin-top: 30px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 25px;
  border: 1px solid #354b32;
  border-radius: 8px;
  background: #354b32;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.signup-open span {
  display: inline-block;
  margin-left: 12px;
}
.signup-open:hover {
  background: #293e27;
}
.signup-open:disabled {
  opacity: 0.7;
  cursor: default;
}
.signup-open:focus-visible,
.signup-close:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 4px;
}
body.modal-open {
  overflow: hidden;
}
#signup-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 28px;
  margin: auto;
  border: 1px solid #dfe4da;
  border-radius: 18px;
  color: #212721;
  background: #fafaf7;
  box-shadow: 0 24px 90px rgba(23, 37, 20, 0.18);
  overflow-y: auto;
}
#signup-dialog::backdrop {
  background: rgba(27, 34, 25, 0.38);
  backdrop-filter: blur(4px);
}
.signup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#signup-title {
  margin: 0;
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.signup-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #657162;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}
.signup-close:hover {
  background: #e9ede3;
  color: #212721;
}
@media (max-width: 420px) {
  #signup-dialog {
    padding: 22px;
  }
}

.brand {
  z-index: 3;
}
#brand-spark {
  position: relative;
  display: inline-block;
  font: inherit;
  color: #698766;
  line-height: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: 0;
}
#brand-spark::before {
  content: '';
  position: absolute;
  inset: -12px -16px;
  border-radius: 50%;
}
#brand-spark:hover::before {
  background: rgba(105, 135, 102, 0.1);
}
#brand-spark:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 8px;
  border-radius: 10px;
}
.message {
  transition:
    opacity 0.35s ease,
    filter 0.35s ease;
}
.peek-active .message {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}
#feature-peek {
  position: fixed;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(570px, calc(100vw - 40px));
  text-align: center;
}
#feature-peek[hidden] {
  display: none;
}
#peek-art {
  display: block;
  width: min(340px, 100%);
  height: 190px;
  margin: 0 auto 24px;
}
#peek-label {
  margin: 0 0 16px;
  color: #697c5a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
#peek-copy {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.14;
  font-weight: 450;
  letter-spacing: -0.055em;
  margin: 0 auto;
  text-wrap: balance;
  max-width: 550px;
}
#peek-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(250, 250, 247, 0.6);
  border: 0;
  border-radius: 50%;
  font-size: 25px;
  color: #66735d;
  cursor: pointer;
}
#peek-close:hover {
  background: #e8eede;
}
#peek-close:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .message {
    transition: none;
  }
}

.message h1,
.brand {
  user-select: none;
}

#peek-label,
#peek-copy {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.peek-ready #peek-label,
.peek-ready #peek-copy {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  #peek-label,
  #peek-copy {
    transition: none;
  }
}

/* Hero: the copy beside a phone that plays what Karvo does. */
main {
  grid-template-columns: minmax(0, 1fr);
}
.message {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  justify-items: center;
}
.hero-copy {
  min-width: 0;
  max-width: 760px;
}
.demo-wrap {
  order: -1;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  width: 100%;
  max-width: 720px;
}
.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe4da;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #586154;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.demo-tab:hover {
  background: #e9ede3;
}
.demo-tab[aria-selected='true'] {
  background: #354b32;
  color: #fff;
}
.demo-tab small {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e4ebdc;
  color: #4d6547;
  font-size: 10.5px;
  font-weight: 500;
}
.demo-tab[aria-selected='true'] small {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.demo-tab:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 3px;
}
.wa-sender {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
}
.wa-bubble .wa-forwarded {
  margin-bottom: 2px;
  color: #667781;
  font-size: 11px;
  font-style: italic;
}
.demo {
  display: grid;
  min-width: 0;
  width: 100%;
  max-width: 720px;
  grid-template-columns: minmax(0, 1fr) 292px minmax(0, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0 20px;
  text-align: left;
}
.demo-prompts {
  display: contents;
}
.demo-prompt {
  align-self: center;
  padding: 11px 14px;
  border: 1px solid #d8ded2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(23, 37, 20, 0.06);
  color: #354b32;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.demo-prompt:hover {
  border-color: #698766;
  transform: translateY(-1px);
}
.demo-prompt.is-active {
  background: #354b32;
  border-color: #354b32;
  color: #fff;
}
.demo-prompt:focus-visible,
.wa-composer:focus-visible,
.demo-toggle:focus-visible {
  outline: 2px solid #698766;
  outline-offset: 3px;
}
.demo-prompt-left {
  grid-column: 1;
}
.demo-prompt-right {
  grid-column: 3;
}
.demo-prompt:nth-child(1) {
  grid-row: 2 / span 2;
}
.demo-prompt:nth-child(3) {
  grid-row: 4 / span 2;
}
.demo-prompt:nth-child(2) {
  grid-row: 1 / span 2;
}
.demo-prompt:nth-child(4) {
  grid-row: 3 / span 2;
}
.demo-prompt:nth-child(5) {
  grid-row: 5 / span 2;
}
.phone {
  grid-column: 2;
  grid-row: 1 / -1;
  height: 580px;
  padding: 9px;
  border-radius: 42px;
  background: #1c211c;
  box-shadow: 0 28px 70px rgba(23, 37, 20, 0.28);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #efeae2;
}
.wa-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 30px 12px 9px;
  background: #008069;
  color: #fff;
}
.wa-back {
  font-size: 24px;
  line-height: 1;
}
.wa-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fafaf7;
  color: #354b32;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -1px;
}
.wa-contact {
  display: grid;
  line-height: 1.2;
}
.wa-contact strong {
  font-size: 15px;
  font-weight: 600;
}
.wa-contact small {
  font-size: 11px;
  opacity: 0.85;
}
.wa-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 12px 10px;
  overflow-y: auto;
  scrollbar-width: none;
  color: #111b21;
  font-size: 13px;
  line-height: 1.38;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(84, 101, 75, 0.09) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.wa-chat::-webkit-scrollbar {
  display: none;
}
.wa-bubble {
  max-width: 88%;
  padding: 6px 8px 5px;
  border-radius: 9px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.13);
  animation: wa-in 0.22s ease both;
}
.wa-bubble p {
  margin: 0 0 3px;
}
.wa-mine {
  align-self: flex-end;
  border-top-right-radius: 2px;
  background: #d9fdd3;
}
.wa-theirs {
  align-self: flex-start;
  border-top-left-radius: 2px;
  background: #fff;
}
.wa-title {
  font-weight: 600;
}
.wa-link {
  display: flex;
  gap: 8px;
  margin: -1px -3px 5px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(11, 20, 26, 0.06);
}
.wa-link-thumb {
  display: grid;
  flex: none;
  place-items: center;
  width: 58px;
  background: #fff;
  font-size: 28px;
}
.wa-link-body {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 6px 8px 6px 0;
  font-size: 11.5px;
  line-height: 1.3;
}
.wa-link-body strong {
  font-weight: 600;
}
.wa-link-body small {
  color: #667781;
  font-size: 10.5px;
}
.wa-url {
  color: #027eb5;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.wa-meta {
  display: block;
  color: #667781;
  font-size: 10px;
  text-align: right;
}
.wa-ticks {
  margin-left: 3px;
  color: #53bdeb;
  letter-spacing: -2px;
}
.wa-rows {
  margin: 0 0 4px;
}
.wa-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-top: 1px solid #eef0ee;
}
.wa-rows div:first-child {
  border-top: 0;
}
.wa-rows dt,
.wa-rows dd {
  margin: 0;
}
.wa-rows dd {
  font-weight: 600;
  white-space: nowrap;
}
.wa-rows .wa-total {
  font-weight: 700;
}
.wa-list {
  margin: 2px 0 4px;
  padding-left: 18px;
}
.wa-warning {
  padding: 5px 7px;
  border-radius: 6px;
  background: #fff4e0;
  color: #7a4d00;
}
.wa-actions {
  display: grid;
  margin: 5px -8px -5px;
  border-top: 1px solid #eef0ee;
}
.wa-action {
  padding: 7px;
  color: #008069;
  font-weight: 600;
  text-align: center;
}
.wa-action + .wa-action {
  border-top: 1px solid #eef0ee;
}
.wa-action-yes.is-tapped {
  background: #d9fdd3;
}
.wa-day {
  align-self: center;
  margin: 6px 0;
  padding: 3px 9px;
  border-radius: 7px;
  background: #fff;
  color: #54656f;
  font-size: 11px;
}
.wa-voice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 2px;
}
.wa-voice-play {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #54656f;
}
.wa-voice-bars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.wa-voice-bars i {
  width: 2px;
  border-radius: 2px;
  background: #6d8a78;
}
.wa-voice-length {
  color: #667781;
  font-size: 10px;
}
.wa-typing {
  display: flex;
  gap: 4px;
  padding: 10px 11px;
}
.wa-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: wa-dot 1s infinite ease-in-out;
}
.wa-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.wa-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
.wa-composer {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px 16px;
  border: 0;
  background: #efeae2;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wa-composer-text {
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
  border-radius: 20px;
  background: #fff;
  color: #667781;
  font-size: 13px;
  transition: color 0.2s ease;
}
.wa-composer-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #008069;
  color: #fff;
  font-size: 17px;
}
.wa-composer.is-ready .wa-composer-text {
  color: #111b21;
  font-weight: 600;
}
.wa-composer.is-ready .wa-composer-send {
  animation: wa-pulse 1.6s ease-in-out infinite;
}
.demo-toggle {
  grid-column: 2;
  justify-self: center;
  margin-top: 10px;
  padding: 3px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #657162;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.demo-toggle:hover {
  background: #e9ede3;
}
@keyframes wa-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes wa-dot {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes wa-pulse {
  50% {
    transform: scale(1.1);
  }
}
@media (min-width: 1240px) {
  .message {
    grid-template-columns: 720px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-copy h1 {
    font-size: clamp(50px, 4.5vw, 66px);
  }
  .hero-copy .intro {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  main {
    padding: 88px 16px 40px;
  }
  .message {
    gap: 32px;
  }
  .demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
  }
  .demo-prompts {
    position: relative;
    display: flex;
    gap: 8px;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .demo-prompts::-webkit-scrollbar {
    display: none;
  }
  .demo-prompt {
    flex: 0 0 auto;
    width: 218px;
    scroll-snap-align: center;
  }
  .phone {
    width: min(292px, 100%);
    height: 560px;
  }
  .demo-toggle {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-prompt,
  .wa-composer-text {
    transition: none;
  }
  .wa-bubble,
  .wa-typing i,
  .wa-composer.is-ready .wa-composer-send {
    animation: none;
  }
}

/* Keep the library's searchable country picker inside the native dialog. */
.signup-form .iti {
  width: 100%;
  font-size: 15px;
  font-weight: 400;
}
.signup-form .iti input.iti__tel-input {
  width: 100%;
}
#signup-dialog .iti {
  --iti-border-color: #d8ded2;
  --iti-dropdown-bg: #fafaf7;
  --iti-hover-color: #e9ede3;
  color: #212721;
}
#signup-dialog .iti__selected-country {
  border: 0;
  border-radius: 8px 0 0 8px;
}
#signup-dialog .iti__country-selector {
  border-radius: 8px;
}
#signup-dialog .iti__search-input {
  font: inherit;
  font-size: 15px;
}

#signup-dialog .iti__selected-country:hover,
#signup-dialog .iti__selected-country:focus-visible,
#signup-dialog .iti__selected-country[aria-expanded='true'] {
  background: #e9ede3;
}
