/* ============ Handovo — design tokens ============ */
:root {
  --navy: #0A2A43;        /* ink / primary */
  --navy-2: #11324F;      /* raised navy */
  --royal: #003E95;       /* wrench */
  --orange: #F5891F;      /* house */
  --yellow: #FFC90A;      /* bulb */
  --cyan: #1FB8E8;        /* frame */
  --green: #57BA3B;       /* leaf */
  --wa: #25D366;          /* WhatsApp action green */
  --wa-dark: #1DA851;
  --paper: #FFFFFF;
  --mist: #F4F7FA;
  --line: #E2E9EF;
  --muted: #5A6B7A;
  --radius: 16px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.015em; display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
h3 { font-size: 1.15rem; font-weight: 700; }
em { font-style: normal; color: var(--green); }

/* finger-dots motif */
.finger-dots { display: inline-flex; gap: 5px; }
.finger-dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.finger-dots i:nth-child(1) { background: var(--royal); }
.finger-dots i:nth-child(2) { background: var(--orange); }
.finger-dots i:nth-child(3) { background: var(--yellow); }
.finger-dots i:nth-child(4) { background: var(--cyan); }
.finger-dots i:nth-child(5) { background: var(--green); }

/* ============ Nav ============ */
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.nav-brand img { width: 34px; height: 36px; object-fit: contain; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { margin-left: 0.5rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 0.78rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-full { width: 100%; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1180px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 1rem 0 1.6rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--muted); }

/* chat mock */
.chat-frame {
  background: #E8F0E9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10,42,67,0.16);
  max-width: 380px; margin-left: auto;
}
.chat-head {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--navy); color: #fff; padding: 0.7rem 1rem;
}
.chat-head small { display: block; color: #9fd8a8; font-size: 0.72rem; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-avatar img { width: 26px; height: 28px; object-fit: contain; }
.chat-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bubble {
  padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.92rem; max-width: 85%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  overflow-wrap: break-word;
}
.bubble-out { background: #DCF8C6; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }

/* ============ Sections ============ */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); max-width: 1180px; margin: 0 auto; }
.section-tint { max-width: none; background: var(--mist); }
.section-tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-lede { color: var(--muted); max-width: 40rem; margin-top: -0.4rem; }
.section-note { color: var(--muted); font-size: 0.92rem; margin-top: 1rem; }

/* services */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 1.6rem;
}
.service-card {
  font-family: var(--body); font-weight: 700; font-size: 1rem; color: var(--navy);
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1rem; display: flex; align-items: center; gap: 0.7rem;
  cursor: pointer; transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-align: left;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10,42,67,0.08); }
.sc-ic { font-size: 1.35rem; }
.c-royal:hover  { border-color: var(--royal); }
.c-orange:hover { border-color: var(--orange); }
.c-yellow:hover { border-color: var(--yellow); }
.c-cyan:hover   { border-color: var(--cyan); }
.c-green:hover  { border-color: var(--green); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 18px rgba(10,42,67,0.06); }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.step-badge {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 0.9rem;
}
.b-green { background: var(--green); }
.b-royal { background: var(--royal); }
.b-orange { background: var(--orange); }

/* ============ Composer (signature) ============ */
.composer {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem; align-items: start;
}
.composer-form { display: flex; flex-direction: column; gap: 1rem; }
.composer-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.composer-form input, .composer-form select, .composer-form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--navy);
  padding: 0.72rem 0.9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color 0.15s ease;
}
.composer-form input:focus, .composer-form select:focus, .composer-form textarea:focus {
  outline: none; border-color: var(--cyan);
}
.composer-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preview-label { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.chat-frame-small { max-width: 100%; margin: 0; }
.composer-preview { position: sticky; top: 90px; }

/* ============ Providers ============ */
.section-navy { max-width: none; background: var(--navy); color: #fff; }
.providers-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.section-navy h2 { color: #fff; }
.section-navy p { color: #C9D8E6; }
.providers-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.8rem; }
.providers-points li { padding-left: 1.6rem; position: relative; color: #C9D8E6; }
.providers-points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
}
.providers-points li:nth-child(2)::before { background: var(--cyan); }
.providers-points li:nth-child(3)::before { background: var(--orange); }
.providers-points strong { color: #fff; }
.provider-form { background: var(--navy-2); padding: 1.6rem; border-radius: var(--radius); }
.provider-form label { color: #C9D8E6; }
.provider-form input { background: #0D2B45; border-color: #24466A; color: #fff; }
.provider-form input::placeholder { color: #6B87A3; }
.provider-form input:focus { border-color: var(--cyan); }
.form-note { color: #8FA7BC; font-size: 0.85rem; margin: 0; }

/* ============ Trust strip ============ */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
}
.trust-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.2rem 1.4rem; background: var(--mist); border-radius: var(--radius); }
.trust-item strong { font-family: var(--display); font-size: 1.2rem; }
.trust-item span { color: var(--muted); font-size: 0.95rem; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 2.5rem clamp(1rem, 4vw, 3rem) 1.5rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 44px; height: 47px; object-fit: contain; }
.footer-brand strong { font-family: var(--display); font-size: 1.15rem; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { max-width: 1180px; margin: 2rem auto 0; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-chat { order: 2; }
  .chat-frame { margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .composer { grid-template-columns: 1fr; }
  .composer-preview { position: static; }
  .providers-inner { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-chat { animation: rise 0.6s ease both; }
  .hero-chat { animation-delay: 0.15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}
