/* Tomara demo · brand system v0.1 · 2026-06-12 */
:root {
  --ink: #14282b;
  --ink-soft: #3d5457;
  --teal: #0e6b63;
  --teal-dark: #0a4f49;
  --teal-tint: #e3f0ee;
  --sand: #f8f3ea;
  --sand-deep: #efe5d2;
  --coral: #ff6b5a;
  --coral-dark: #e8503f;
  --white: #ffffff;
  --line: #e4dccb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(20, 40, 43, 0.08);
  --shadow-lift: 0 12px 40px rgba(20, 40, 43, 0.14);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand svg { display: block; }
.brand .word {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: var(--teal-dark);
}
.topbar .actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: flex; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--white);
}
.lang-toggle button {
  padding: 6px 13px; background: transparent; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft);
}
.lang-toggle button.on { background: var(--teal); color: var(--white); }

.demo-pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sand-deep); color: var(--ink-soft);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- type ---------- */
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
h3 { font-size: 1.05rem; font-weight: 600; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 6px 18px rgba(255, 107, 90, 0.35); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: var(--white); color: var(--teal-dark); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}

/* ---------- badges ---------- */
.badge-verified {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal-tint); color: var(--teal-dark);
  font-size: 0.85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
.badge-verified .tick {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 70px; padding: 44px 0 60px; background: var(--ink); color: #cfdedd;
}
.footer .brand .word { color: var(--sand); }
.footer .cols { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
.footer a { color: #9fc1be; }
.footer .small { color: #88a5a3; max-width: 420px; }

/* ---------- chat ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 9px;
  background: var(--teal); color: var(--white);
  padding: 14px 21px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  box-shadow: var(--shadow-lift);
}
.chat-fab:hover { background: var(--teal-dark); }

.chat-panel {
  position: fixed; right: 14px; bottom: 14px; z-index: 70;
  width: min(400px, calc(100vw - 28px));
  height: min(580px, calc(100dvh - 28px));
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lift);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--teal); color: var(--white);
  padding: 15px 18px; display: flex; align-items: center; gap: 11px;
}
.chat-head .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.chat-head .t { font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.chat-head .s { font-size: 0.74rem; opacity: 0.82; }
.chat-head .close { margin-left: auto; background: transparent; color: var(--white); font-size: 1.5rem; line-height: 1; padding: 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--sand); }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: 0.93rem; white-space: pre-line; }
.msg.bot { background: var(--white); border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(20,40,43,0.06); }
.msg.me { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.typing { color: var(--ink-soft); font-style: italic; }
.chat-chips { display: flex; gap: 7px; padding: 9px 12px; overflow-x: auto; background: var(--sand); border-top: 1px solid var(--line); }
.chat-chips button {
  flex: 0 0 auto; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 13px; font-size: 0.82rem; font-weight: 600; color: var(--teal-dark);
}
.chat-chips button:hover { border-color: var(--teal); }
.chat-input { display: flex; gap: 8px; padding: 11px 12px; background: var(--white); border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 11px 16px; font-family: var(--font); font-size: 0.95rem; outline: none;
}
.chat-input input:focus { border-color: var(--teal); }
.chat-input button {
  width: 44px; height: 44px; border-radius: 50%; background: var(--coral); color: var(--white);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(20, 40, 43, 0.55); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lift);
  max-width: 460px; width: 100%; padding: 28px; position: relative;
  max-height: 86dvh; overflow-y: auto;
}
.modal .close {
  position: absolute; top: 14px; right: 16px; background: transparent;
  font-size: 1.6rem; color: var(--ink-soft); line-height: 1;
}
.modal h3 { margin-bottom: 10px; font-size: 1.2rem; }
.modal .field { margin: 14px 0; }
.modal label { font-size: 0.83rem; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 5px; }
.modal input, .modal textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: var(--font); font-size: 0.95rem; outline: none;
}
.modal input:focus, .modal textarea:focus { border-color: var(--teal); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10, 20, 22, 0.94); z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84dvh; border-radius: 10px; }
.lightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
}
.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; }
.lightbox .close { position: absolute; top: 18px; right: 22px; background: transparent; color: var(--white); font-size: 2rem; }
.lightbox .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfdedd; font-size: 0.9rem; }

/* ---------- utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.hide { display: none !important; }
.section { margin-top: 46px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
