:root {
  --bg: #f4f1ea;
  --bg-card: #faf8f4;
  --ink: #1a1a18;
  --muted: #5c5a54;
  --dim: #8a877e;
  --line: rgba(26, 26, 24, 0.12);
  --accent: #1d6b52;
  --accent-soft: rgba(29, 107, 82, 0.1);
  --wa: #25d366;
  --wa-dark: #128c7e;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Georgia", serif;
  --max: 1120px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header Harmoni-style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.logo {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--muted); font-weight: 400; }
.nav-mini {
  display: none;
  gap: 1.5rem;
  font-size: 0.82rem;
}
.nav-mini a { color: var(--muted); text-decoration: none; }
.nav-mini a:hover { color: var(--ink); }
@media (min-width: 768px) { .nav-mini { display: flex; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #333; color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--block { width: 100%; }

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 0.95fr; gap: 4rem; }
}
.hero__fig {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 1.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero__note { font-size: 0.82rem; color: var(--dim); margin: 0; }

/* Phone mockup + chat animation */
.phone-stage {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}
.phone {
  width: min(100%, 300px);
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(26, 26, 24, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
}
.phone__island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.phone__screen {
  background: #e5ddd5;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.phone__header {
  background: var(--wa-dark);
  color: #fff;
  padding: 2.2rem 0.85rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.phone__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c4a574, #8b6914);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.phone__avatar--bot {
  background: linear-gradient(145deg, var(--wa), var(--wa-dark));
}
.phone__header-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.phone__header-text span {
  font-size: 0.68rem;
  opacity: 0.85;
}
.phone__chat {
  flex: 1;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z' fill='%23d4cdc4' fill-opacity='0.35'/%3E%3C/svg%3E");
}

.bubble {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: bubble-in 0.45s ease forwards;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bubble--in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}
.bubble--out {
  align-self: flex-end;
  background: #dcf8c6;
  border-top-right-radius: 2px;
}
.bubble time {
  display: block;
  font-size: 0.62rem;
  color: var(--dim);
  margin-top: 0.2rem;
  text-align: right;
}

.bubble--typing {
  align-self: flex-start;
  background: #fff;
  padding: 0.65rem 0.9rem;
  display: flex;
  gap: 4px;
  opacity: 0;
  animation: bubble-in 0.3s ease forwards;
}
.bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9e9e9e;
  animation: typing-dot 1.2s ease infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bubble-in {
  to { opacity: 1; transform: none; }
}
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Chat sequence delays */
.bubble:nth-child(1) { animation-delay: 0.4s; }
.bubble:nth-child(2) { animation-delay: 1.6s; }
.bubble:nth-child(3) { animation-delay: 2.4s; }
.bubble:nth-child(4) { animation-delay: 4s; }
.bubble:nth-child(5) { animation-delay: 5.2s; }
.bubble:nth-child(6) { animation-delay: 6.8s; }
.bubble:nth-child(7) { animation-delay: 8.2s; }
.bubble:nth-child(8) { animation-delay: 9.8s; }

.phone__chat.is-loop .bubble {
  animation: bubble-cycle 14s ease infinite;
}
@keyframes bubble-cycle {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  10%, 35% { opacity: 1; transform: none; }
  40%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}
.section__num {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 0.5rem;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.section__lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }

.symptoms {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }
.symptom {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.symptom__n { font-size: 0.75rem; color: var(--dim); margin-bottom: 0.35rem; }
.symptom h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.symptom p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  padding-top: 0.5rem;
}
.step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.proof-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.proof span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.proof h3 { margin: 0.35rem 0; font-size: 0.98rem; }
.proof p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Pricing */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.pricing-toggle span {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
.pricing {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) and (max-width: 899px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan--pop {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.plan__tag--ai { color: var(--muted); font-weight: 500; }
.plan h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.plan__ideal { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; min-height: 2.6em; }
.plan__price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.25rem;
}
.plan__price small { font-family: var(--font); font-size: 0.75rem; color: var(--dim); font-weight: 400; }
.plan__trial {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.plan ul {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  flex: 1;
}
.plan li { margin-bottom: 0.28rem; }
.plan .btn { margin-top: auto; }
.plan--custom .plan__price { font-size: 1.25rem; }

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

/* Consult */
.consult {
  background: var(--ink);
  color: #e8e6e0;
  padding: 4rem 0;
  border-radius: var(--radius);
  margin: 2rem 0 4rem;
}
.consult__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .consult__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.consult h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 1rem;
  color: #fff;
}
.consult p, .consult li { color: #b8b5ad; font-size: 0.92rem; }
.consult ul { padding-left: 1.1rem; }
.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #b8b5ad;
  margin-bottom: 0.75rem;
}
.lead-form input, .lead-form select, .lead-form textarea {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6a6862; }
.form-status { font-size: 0.85rem; min-height: 1.2rem; margin: 0.5rem 0 0; }
.form-status.is-ok { color: #6ee7b7; }
.form-status.is-error { color: #fca5a5; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.footer {
  padding: 2rem 0 3rem;
  font-size: 0.82rem;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .bubble, .bubble--typing span { animation: none !important; opacity: 1 !important; transform: none !important; }
}
