/* Hallobot – conversational, calm messaging feel */
:root {
  --bg: #f7f5ff;
  --ink: #1e1b3a;
  --muted: #4c4a63;
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --mint: #a7f3d0;
  --bubble-user: #ffffff;
  --bubble-border: #ddd6fe;
  --dark: #1e1b3a;
  --dark-text: #f7f5ff;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(30, 27, 58, 0.08);
  --max: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #e9e4ff 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, #d1fae5 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.label-tab:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bubble-border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
}

.lang-switch a[aria-current="page"] {
  color: var(--accent);
  background: #ede9fe;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--bubble-border);
}

.btn-ghost:hover {
  background: #ede9fe;
  color: var(--accent-hover);
}

.btn-light {
  background: var(--mint);
  color: var(--ink);
}

.btn-light:hover {
  filter: brightness(0.97);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
  max-width: 38rem;
}

.pill {
  display: inline-block;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.lang-pills {
  display: inline-flex;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* Chat bubbles */
.chat-demo {
  background: #fff;
  border: 1px solid var(--bubble-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.15rem;
}

.chat-demo .demo-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  max-width: 92%;
  padding: 0.7rem 0.95rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bubble-user {
  align-self: flex-end;
  background: var(--bubble-user);
  border: 1px solid var(--bubble-border);
  border-bottom-right-radius: 6px;
  color: var(--ink);
}

.bubble-bot {
  align-self: flex-start;
  background: var(--mint);
  border-bottom-left-radius: 6px;
  color: var(--ink);
}

.typing {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.55rem 0.85rem;
  align-self: flex-start;
  background: var(--mint);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}

.typing i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.45;
  animation: blink 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 0.8;
  }
}

/* Sections */
section {
  padding: 2.75rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--bubble-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

.card-featured {
  border-color: var(--accent);
  box-shadow: 0 10px 32px rgba(109, 40, 217, 0.12);
  position: relative;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.price small {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.note-mva {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.list-check {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list-check li {
  margin-bottom: 0.35rem;
}

.dark-band {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 0.5rem 0;
}

.dark-band a {
  color: var(--mint);
}

.dark-band .section-lead {
  color: #c4c2d6;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--bubble-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1rem 3.5rem;
  position: relative;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--bubble-border);
  margin-left: 0.75rem;
}

.timeline li {
  padding: 0 0 1.5rem 1.25rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

/* Demo tabs (radio + CSS, no JS) */
.demo-tabs {
  background: #fff;
  border: 1px solid var(--bubble-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.demo-tabs fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

.demo-tabs legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0;
}

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.label-tab {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--bubble-border);
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
}

.demo-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

#tab-nb:checked ~ .tab-labels label[for="tab-nb"],
#tab-es:checked ~ .tab-labels label[for="tab-es"],
#tab-en:checked ~ .tab-labels label[for="tab-en"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

#tab-nb:checked ~ .panels .panel-nb,
#tab-es:checked ~ .panels .panel-es,
#tab-en:checked ~ .panels .panel-en {
  display: block;
}

.warning-box {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.warning-box h3 {
  margin: 0 0 0.5rem;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--bubble-border);
  text-align: left;
  vertical-align: top;
}

.compare th {
  background: #ede9fe;
  font-weight: 700;
}

.compare caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.5rem;
  caption-side: top;
}

.faq details {
  background: #fff;
  border: 1px solid var(--bubble-border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

/* Form */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--bubble-border);
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.35rem 0;
}

.check input {
  margin-top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
}

.form-status.error {
  color: #991b1b;
}

.form-status.ok {
  color: #065f46;
}

.contact-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about {
  max-width: 42rem;
}

.about p {
  margin: 0 0 1rem;
}

.about p:last-child {
  margin-bottom: 0;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ede9fe, #a7f3d0);
  object-fit: cover;
  border: 1px solid var(--bubble-border);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--bubble-border);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.75rem;
  max-width: 52rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
}

/* Desktop nav always visible; mobile menu starts closed */
.nav-desktop {
  display: none;
}

.nav-mobile {
  width: 100%;
}

.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  padding: 0.35rem 0;
}

.nav-mobile > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 820px) {
  .nav-mobile .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    width: 100%;
  }

  .nav-mobile .nav-menu .btn {
    width: 100%;
  }
}

@media (min-width: 821px) {
  .nav-desktop {
    display: block;
  }

  .nav-mobile {
    display: none;
  }
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.example-q {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.85rem;
  margin: 0.4rem 0;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}

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