:root {
  --demo-bar-h: 42px;
  --wa-header: #075e54;
  --wa-header-2: #064e46;
  --wa-green: #25d366;
  --wa-send: #00a884;
  --wa-out: #d9fdd3;
  --wa-in: #ffffff;
  --wa-ink: #111b21;
  --wa-meta: #667781;
  --wa-tick: #53bdeb;
  --wa-bar: #f0f2f5;
  --wa-chip: #ffffff;
  --bg: #f6f1eb;
  --bg-deep: #efe6dc;
  --ink: #151515;
  --muted: #6b645e;
  --accent: #5e1212;
  --accent-soft: #f4e1d4;
  --line: #e4d9cf;
  --card: #fffcf8;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(21, 21, 21, 0.08);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-page: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-page);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; }

img { max-width: 100%; display: block; }

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

/* Slim demo strip — not a second product header */
.demo-bar {
  min-height: var(--demo-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.35rem 0.7rem;
  padding-top: max(0.35rem, env(safe-area-inset-top));
  background: #07332e;
  color: #e8f5f2;
  z-index: 20;
}

.tagline {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.lang {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c8e6e0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: #fff;
  color: #07332e;
}

/* Phone + chat */
.phone-stage { background: #0b2a26; }

.phone { width: 100%; }

.chat {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--demo-bar-h) - env(safe-area-inset-top, 0px));
  min-height: 520px;
  background: #e5ddd5;
  font-family: var(--font-ui);
  color: var(--wa-ink);
}

/* Top bar */
.wa-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem 0.45rem 0.15rem;
  background: linear-gradient(180deg, var(--wa-header) 0%, var(--wa-header-2) 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.wa-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 40px;
  color: #fff;
  flex-shrink: 0;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4efe8;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.wa-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.wa-id { min-width: 0; padding-left: 0.15rem; }

.wa-id h1 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.chat-status {
  margin: 0.05rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

.chat-status.is-typing {
  font-style: italic;
  color: #b7f0c8;
}

/* Chat background: original CSS doodle tile, not a WhatsApp asset */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.55rem 0.7rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23a8947c' stroke-width='1' opacity='0.28' stroke-linecap='round'><circle cx='22' cy='18' r='2.2'/><circle cx='26' cy='18' r='2.2'/><circle cx='24' cy='14.4' r='2.2'/><path d='M70 28c6-8 16-8 16 2 0 10-8 16-16 22-8-6-16-12-16-22 0-10 10-10 16-2z'/><path d='M118 22c4 0 7 4 7 8 0 8-7 10-7 16' /><path d='M50 80 l8 0 M54 76 l0 8'/><path d='M140 70 a8 8 0 0 1 10 10'/><path d='M18 100 c8-4 12 6 4 8 -6 2-8-6-4-8z'/><path d='M96 108 l6 6 M102 108 l-6 6'/><circle cx='132' cy='124' r='3'/><path d='M40 136 c10 0 10 8 0 8'/><path d='M78 52 c0 6 8 6 8 0'/></g></svg>");
  background-size: 180px 180px;
}

.day-chip {
  align-self: center;
  margin: 0.35rem 0 0.5rem;
  background: #e1f2fb;
  color: #51656f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.msg {
  max-width: 86%;
  position: relative;
  animation: rise 0.18s ease;
}

.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }

.bubble {
  position: relative;
  padding: 0.38rem 0.5rem 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.bubble::after {
  content: "";
  display: block;
  clear: both;
}

.msg.bot .bubble {
  background: var(--wa-in);
  color: var(--wa-ink);
  border-top-left-radius: 0;
}

.msg.user .bubble {
  background: var(--wa-out);
  color: var(--wa-ink);
  border-top-right-radius: 0;
}

/* Tails */
.msg.bot .bubble::before,
.msg.user .bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 10px;
}

.msg.bot .bubble::before {
  left: -7px;
  background: var(--wa-in);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.msg.user .bubble::before {
  right: -7px;
  background: var(--wa-out);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.bubble p { margin: 0 0 0.45rem; }
.bubble p:last-of-type { margin-bottom: 0; }

.bubble ul {
  margin: 0.2rem 0 0.4rem;
  padding: 0 0 0 1.05rem;
}

.bubble li { margin: 0.15rem 0; }

.meta {
  float: right;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin: 0.28rem 0 0 0.65rem;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--wa-meta);
  user-select: none;
}

.ticks {
  display: inline-flex;
  width: 16px;
  height: 11px;
  color: var(--wa-tick);
}

.ticks svg { display: block; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 0.3rem 0 0.1rem;
}

.price-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #075e54;
  padding: 0.3rem 0 0.15rem;
}

.price-table td {
  padding: 0.28rem 0.35rem 0.28rem 0;
  border-top: 1px solid #ececec;
  vertical-align: top;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  padding-right: 0;
}

.note {
  font-size: 0.75rem;
  color: var(--wa-meta);
}

.summary-card {
  margin-top: 0.4rem;
  background: #e7fce3;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
}

.summary-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
}

.summary-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  font-size: 0.8rem;
}

.summary-card dt {
  color: var(--wa-meta);
  font-weight: 600;
}

.summary-card dd { margin: 0; font-weight: 600; }

.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 7.5rem;
  padding: 0.5rem 0.7rem 0.45rem !important;
  font-style: italic;
  color: var(--wa-meta);
  font-size: 0.84rem;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: blink 1s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

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

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem 0.25rem;
  overflow-x: auto;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  appearance: none;
  border: 1px solid #25d366;
  background: rgba(255, 255, 255, 0.95);
  color: #0b7a4b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.chip:hover,
.chip:focus-visible {
  background: #fff;
  outline: none;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.35rem 0.45rem 0.5rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  background: var(--wa-bar);
  flex-shrink: 0;
}

.chat-form input {
  flex: 1;
  border: 0;
  border-radius: 22px;
  padding: 0.62rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--wa-ink);
  min-width: 0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.chat-form input:focus {
  outline: none;
}

.chat-form button[type="submit"] {
  appearance: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wa-send);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.chat-form button[type="submit"]:focus-visible {
  outline: 2px solid #075e54;
  outline-offset: 2px;
}

/* Page sections below the chat */
.page {
  width: min(760px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
}

.features h2,
.photos h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-grid { display: grid; gap: 0.65rem; }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.feature h3 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.photos { margin-top: 1.6rem; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.photo-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-deep);
}

.photo-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.photo-grid figure:first-child { grid-column: 1 / -1; }
.photo-grid figure:first-child img { height: 180px; }

.photo-grid figcaption {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.4rem 0.55rem 0.5rem;
}

.info-card {
  margin-top: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.info-card h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}

.info-card p {
  margin: 0 0 0.45rem;
  font-size: 0.84rem;
}

.info-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.info-card a:hover { text-decoration: underline; }

.site-footer {
  width: min(760px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 0.9rem 0 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid img { height: 170px; }
  .photo-grid figure:first-child img { height: 230px; }
}

/* Desktop: conversation sits in a phone frame */
@media (min-width: 760px) {
  body {
    background:
      radial-gradient(900px 400px at 50% -40px, #1a5c52 0%, transparent 60%),
      #0d2c28;
  }

  .demo-bar {
    background: transparent;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1rem 0.4rem;
  }

  .tagline { font-size: 0.92rem; color: #e8f5f2; }

  .phone-stage {
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 0.6rem 1rem 1.6rem;
  }

  .phone {
    width: 390px;
    height: 844px;
    padding: 12px;
    border-radius: 44px;
    background: #1c1c1c;
    box-shadow:
      0 0 0 2px #2a2a2a,
      0 22px 60px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px #3a3a3a;
    position: relative;
  }

  .phone::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 8px;
    background: #0a0a0a;
    border-radius: 8px;
    z-index: 2;
  }

  .chat {
    height: 100%;
    min-height: 0;
    border-radius: 32px;
    overflow: hidden;
  }

  .page,
  .site-footer {
    background: var(--bg);
  }

  .page {
    border-radius: 24px 24px 0 0;
    max-width: 860px;
    width: calc(100% - 2rem);
    padding: 2rem 1.5rem 2.2rem;
  }

  .site-footer {
    max-width: 860px;
    width: calc(100% - 2rem);
    border-radius: 0 0 24px 24px;
    padding-bottom: 1.6rem;
    margin-bottom: 2rem;
    background: var(--bg);
  }
}
