/* ---------------------------------------------------------------------
   Botrix — design tokens
   Palette grounded in the barbershop/salon world: brass fixtures, deep
   green walls, leather chairs, warm sand light. Not the generic
   cream+terracotta or near-black+neon SaaS defaults.
--------------------------------------------------------------------- */

:root {
  --ink-900: #13221b;
  --ink-800: #1a2e24;
  --ink-700: #22392c;
  --sand-100: #f4eee0;
  --sand-200: #ece1c8;
  --sand-300: #ddcda4;
  --brass-500: #c3923a;
  --brass-400: #d4a955;
  --brass-300: #e6c886;
  --text-dark: #191712;
  --text-dark-soft: #4a463c;
  --shadow-soft: 0 20px 45px rgba(19, 34, 27, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--sand-100);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { text-decoration: none; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

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

.section__head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: left;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.section__head p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark-soft);
}

section {
  padding: 6rem 1.5rem;
}

section > .section__head,
section > .demo__panel,
section > .how__flow,
section > .features__list,
section > .audience__grid,
section > .audience__more,
section > .calc,
section > .pricing__grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--brass-500);
  color: var(--ink-900);
}
.btn--primary:hover { background: var(--brass-400); box-shadow: 0 12px 28px rgba(195, 146, 58, 0.35); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(0,0,0,0.05); }

.btn--whatsapp {
  background: #1f2f26;
  color: var(--sand-100);
}
.btn--whatsapp:hover { background: #294536; }

.btn--small { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* ---------------------------------------------------------------------
   Top bar
--------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 238, 224, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 34, 27, 0.08);
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-right: auto;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark-soft);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--ink-900); }

@media (max-width: 820px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
}

.brand__mark {
  color: var(--ink-900);
  display: inline-flex;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--sand-100);
  padding-top: 5rem;
  padding-bottom: 5.5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -60px;
  background: radial-gradient(circle, rgba(212, 169, 85, 0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__headline {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--sand-100);
}

.hero__sub {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--sand-200);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero .btn--ghost { border-color: rgba(244,238,224,0.4); color: var(--sand-100); }

.hero__trust {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--sand-300);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Phone mockup, shared by hero + demo */

.phone {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 100%;
  background: #0f1a14;
  border-radius: 32px;
  border: 6px solid #0a120d;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone--standalone { margin: 0 auto; }

.phone__notch {
  height: 18px;
  background: #0a120d;
}

.phone__header {
  background: var(--ink-700);
  color: var(--sand-100);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(230, 200, 134, 0.18);
}

.phone__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brass-400);
  color: var(--ink-900);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.phone__title { font-weight: 700; font-size: 0.94rem; }

.phone__status {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--sand-300);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phone__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cb98a;
  display: inline-block;
}

.phone__chat {
  background: #142019;
  padding: 1rem 0.9rem;
  height: 360px;
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

.phone__chat::-webkit-scrollbar { width: 6px; }
.phone__chat::-webkit-scrollbar-thumb { background: #24382c; border-radius: 3px; }

.bubble {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.42;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(6px);
  animation: bubbleIn 0.35s ease forwards;
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.bubble--in {
  align-self: flex-start;
  background: #223428;
  color: var(--sand-100);
  border-bottom-left-radius: 4px;
}

.bubble--out {
  align-self: flex-end;
  background: var(--brass-400);
  color: var(--ink-900);
  border-bottom-right-radius: 4px;
}

.bubble--typing {
  align-self: flex-start;
  background: #223428;
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.9rem;
}

.bubble--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand-300);
  animation: typingDot 1s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.phone__composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  background: var(--ink-700);
}

.phone__composer input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--sand-100);
  color: var(--text-dark);
}

.phone__composer input:focus {
  outline: 3px solid var(--brass-400);
  outline-offset: 1px;
}

.phone__composer button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brass-400);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.phone__composer button:hover { background: var(--brass-300); }

.hero__badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sand-100);
  color: var(--text-dark);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__badge.is-visible { opacity: 1; }

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9d6e;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Scope marquee
--------------------------------------------------------------------- */

.marquee {
  background: var(--ink-800);
  padding: 1.6rem 0 1.8rem;
  overflow: hidden;
}

.marquee__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--sand-300);
  margin-bottom: 0.9rem;
  padding: 0 1.5rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sand-100);
  white-space: nowrap;
  padding: 0 1.6rem;
  position: relative;
}

.marquee__track span::after {
  content: "•";
  position: absolute;
  right: -0.15rem;
  color: var(--brass-400);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Live demo section
--------------------------------------------------------------------- */

.demo { background: var(--sand-100); }

.demo__panel {
  display: grid;
  justify-items: center;
  gap: 1.6rem;
}

.demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  max-width: 560px;
}

.demo__chips-label {
  font-size: 0.88rem;
  color: var(--text-dark-soft);
  margin-right: 0.3rem;
}

.chip {
  border: 1.5px solid var(--sand-300);
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.chip:hover { border-color: var(--brass-500); background: var(--sand-200); }

/* ---------------------------------------------------------------------
   Features
--------------------------------------------------------------------- */

.features { background: var(--sand-100); }

.features__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.feature {
  display: flex;
  gap: 1.1rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--sand-300);
}

.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-500);
  color: var(--brass-500);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-dark-soft);
}

/* ---------------------------------------------------------------------
   How it works
--------------------------------------------------------------------- */

.how { background: var(--ink-800); color: var(--sand-100); }
.how .section__head p { color: var(--sand-300); }
.how .section__head { margin-bottom: 3.5rem; }

.how__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1.2rem;
}

.how__step h3 {
  font-size: 1.2rem;
  color: var(--brass-300);
  margin-bottom: 0.7rem;
}

.how__step p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--sand-200);
}

.how__arrow {
  width: 40px;
  height: 2px;
  background: var(--sand-300);
  opacity: 0.4;
  margin-top: 0.6rem;
  position: relative;
}
.how__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--sand-300);
  border-bottom: 2px solid var(--sand-300);
  transform: rotate(-45deg);
  opacity: 0.4;
}

/* ---------------------------------------------------------------------
   Audience
--------------------------------------------------------------------- */

.audience { background: var(--sand-100); }

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.audience__card {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-m);
}

.audience__card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.audience__card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-dark-soft);
}

.audience__card--a { background: var(--sand-200); }
.audience__card--b {
  background: var(--ink-900);
  color: var(--sand-100);
  transform: translateY(-14px);
}
.audience__card--b p { color: var(--sand-300); }
.audience__card--c { background: var(--sand-200); }

.audience__more {
  margin-top: 2.6rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.audience__more-label {
  font-size: 0.98rem;
  color: var(--text-dark-soft);
  margin-bottom: 1rem;
}

.audience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.audience__tags span {
  border: 1.5px solid var(--sand-300);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fff;
}

.audience__tags span:last-child {
  border-style: dashed;
  color: var(--text-dark-soft);
}

/* ---------------------------------------------------------------------
   Impact / calculator
--------------------------------------------------------------------- */

.impact { position: relative; overflow: hidden; background: var(--ink-900); color: var(--sand-100); }
.impact .section__head p { color: var(--sand-300); }
.impact::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(195, 146, 58, 0.28), transparent 70%);
  pointer-events: none;
}
.impact > * { position: relative; z-index: 1; }

.calc {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: stretch;
}

.calc__inputs {
  background: var(--ink-800);
  border-radius: var(--radius-l);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
}

.calc__field span {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.7rem;
  color: var(--sand-200);
}

.calc__range {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc__range input[type="range"] {
  flex: 1;
  accent-color: var(--brass-400);
}

.calc__range output {
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 3.4rem;
  text-align: right;
  color: var(--brass-300);
}

.calc__result {
  background: var(--brass-500);
  color: var(--ink-900);
  border-radius: var(--radius-l);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.calc__result-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 0.9rem;
}
.calc__result-label:first-child { margin-top: 0; }

.calc__result-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
}

.calc__result-number--accent { color: var(--ink-900); }

.calc__cta { margin-top: 1.6rem; align-self: flex-start; }

/* ---------------------------------------------------------------------
   Pricing
--------------------------------------------------------------------- */

.pricing { background: var(--sand-100); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-m);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.plan--highlight {
  border-color: var(--brass-500);
  box-shadow: var(--shadow-soft);
  transform: translateY(-10px);
}

.plan__pick {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brass-500);
  margin-bottom: 0.6rem;
}

.plan h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.plan__price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.4rem 0 1.4rem;
}
.plan__price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark-soft);
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
  flex: 1;
}

.plan__list li {
  font-size: 0.92rem;
  color: var(--text-dark-soft);
  padding-left: 1.2rem;
  position: relative;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass-500);
}

.plan__cta { justify-content: center; }

/* ---------------------------------------------------------------------
   Closing CTA
--------------------------------------------------------------------- */

.closing {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--sand-100);
  text-align: center;
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}
.closing::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(212, 169, 85, 0.3), transparent 70%);
  pointer-events: none;
}
.closing > * { position: relative; z-index: 1; }

.closing h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.closing p {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--sand-300);
}

.closing__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.closing .btn--ghost { border-color: rgba(244,238,224,0.4); }

.closing__meta {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--sand-300);
}

/* ---------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 1rem; }
  .audience__grid { grid-template-columns: 1fr; }
  .audience__card--b { transform: none; }
  .how__flow { grid-template-columns: 1fr; }
  .how__arrow { display: none; }
  .calc { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .plan--highlight { transform: none; }
  .features__list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 4rem 1.2rem; }
  .hero { padding-top: 3.5rem; }
  .phone { width: 100%; }
}
