/* =========================================================
   HMsys · Landing page
   ========================================================= */

:root {
  --navy: #222340;
  --navy-700: #2c2d55;
  --navy-900: #191a30;
  --coral: #f0565a;
  --coral-600: #e0464a;
  --coral-50: #fde4e4;
  --gray-50: #f4f5f9;
  --gray-200: #e6e8ef;
  --blue-100: #c6dbef;
  --text: #22233f;
  --muted: #5b5e76;
  --white: #fff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(34, 35, 64, .12);
  --container: 1200px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.accent { color: var(--coral); }
.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--coral); color: var(--white); }
.btn--primary:hover { background: var(--coral-600); }
.btn--ghost-light { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline { color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Tag / títulos ---------- */
.tag {
  display: inline-block; margin-bottom: 18px; padding: 8px 24px;
  background: var(--coral); color: var(--white);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 0 999px 999px 0;
}
.title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
.title--light { color: var(--white); }
.title--xl { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.subtitle { margin-top: 16px; max-width: 680px; font-size: 1.1rem; color: var(--muted); }
.subtitle--light { color: #c9cbe0; }
.subtitle--navy { color: #3a3d6b; }
.subtitle--center { margin-inline: auto; }
.link { color: var(--coral); font-weight: 600; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; position: relative; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy); color: var(--white); }
.section--blue { background: var(--blue-100); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.logo { font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy); text-decoration: none; }
.logo span { color: var(--coral); }
.logo--light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 34px; }
.nav__list a { text-decoration: none; color: #4a4d68; font-weight: 500; transition: color .2s; }
.nav__list a:hover { color: var(--coral); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 100px 0 110px; }
.hero__bar { position: absolute; top: 0; right: 0; width: 60%; height: 6px; background: var(--coral); }
.hero__circle {
  position: absolute; top: 0; right: -260px; width: 820px; height: 820px; border-radius: 50%;
  background: var(--navy-700); opacity: .9;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.02em; }
.hero__title .accent { font-weight: 700; }
.hero__lead { margin-top: 24px; max-width: 590px; font-size: 1.2rem; color: #c9cbe0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.price-hint { margin-top: 36px; color: #c9cbe0; }
.price-hint strong { color: var(--white); font-size: 1.35rem; }
.hero__dots {
  width: 150px; height: 36px; margin: 32px 0 0 -24px; opacity: .5;
  background-image: radial-gradient(#6a6da0 3.5px, transparent 4px);
  background-size: 25px 25px;
}

/* Mockup do painel */
.mockup { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mockup__top { display: flex; gap: 8px; padding: 14px 16px; background: #eceef3; }
.mockup__top i { width: 11px; height: 11px; border-radius: 50%; background: #c8cbd6; }
.mockup__top i:first-child { background: var(--coral); }
.mockup__body { display: grid; grid-template-columns: 26% 1fr; min-height: 340px; }
.mockup__side { background: var(--navy); padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; }
.mockup__side span { height: 9px; border-radius: 6px; background: #3c3e6e; }
.mockup__side span.is-active { background: var(--coral); }
.mockup__main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mockup__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--gray-200); border-radius: 8px; padding: 12px; color: var(--navy); }
.kpi small { display: block; font-size: .7rem; color: var(--muted); }
.kpi strong { font-size: clamp(.9rem, 1.5vw, 1.15rem); }
.mockup__chart {
  flex: 1; display: flex; align-items: flex-end; gap: 12px;
  border: 1px solid var(--gray-200); border-radius: 8px; padding: 18px 16px 16px; min-height: 160px;
}
.mockup__chart span {
  flex: 1; height: var(--h); background: var(--navy); border-radius: 2px;
  transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both;
}
.mockup__chart span:nth-child(2) { animation-delay: .08s; }
.mockup__chart span:nth-child(3) { animation-delay: .16s; }
.mockup__chart span:nth-child(4) { animation-delay: .24s; }
.mockup__chart span:nth-child(5) { animation-delay: .32s; }
.mockup__chart span:nth-child(6) { animation-delay: .40s; }
.mockup__chart span:nth-child(7) { animation-delay: .48s; }
.mockup__chart span.is-hl { background: var(--coral); }
.mockup__lines { display: grid; gap: 10px; }
.mockup__lines span { height: 8px; border-radius: 6px; background: #eceef3; width: 85%; }
.mockup__lines span + span { width: 65%; }

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Faixa ---------- */
.strip { background: var(--coral); color: var(--white); }
.strip__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; padding: 30px 0; }
.strip__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.12rem; }
.strip__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.strip__icon svg, .devices svg, .feature__icon svg, .checks__icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Por que ---------- */
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.devices { display: flex; gap: 20px; margin-top: 36px; }
.devices li {
  display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
  background: var(--coral); color: var(--white);
}
.devices svg { width: 34px; height: 34px; }
.why__text { border-left: 5px solid var(--coral); padding-left: 32px; font-size: 1.22rem; color: #3a3d55; }
.why__strong { margin-top: 24px; font-weight: 700; color: var(--navy); font-size: 1.3rem; }

/* ---------- Funcionalidades ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.feature {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 34px 34px 38px; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-left: -34px;
  background: var(--coral); color: var(--white); border-radius: 0 18px 18px 0;
}
.feature h3 { margin-top: 32px; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.feature > p { margin-top: 14px; color: var(--muted); }
.bullets { margin-top: 20px; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; color: #4a4d68; font-size: .95rem; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--coral);
}

/* ---------- Vídeos ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; }
.video-card {
  margin: 0; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.video-card__frame { position: relative; aspect-ratio: 1600 / 844; background: var(--navy); border-bottom: 5px solid var(--coral); }
.video-card video { width: 100%; height: 100%; object-fit: contain; background: var(--navy); }
.video-card figcaption { padding: 26px 30px 30px; }
.video-card__badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--coral-50); color: var(--coral-600); font-size: .78rem; font-weight: 600;
}
.video-card h3 { margin-top: 12px; font-size: 1.3rem; }
.video-card p { margin-top: 8px; color: var(--muted); }

/* ---------- Fiscal ---------- */
.fiscal { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips li { padding: 8px 20px; border: 1px solid #4a4c7c; border-radius: 999px; font-size: .92rem; color: #d7d9ea; }
.checks { display: grid; gap: 22px; margin-top: 32px; }
.checks li { display: flex; gap: 16px; color: #c9cbe0; }
.checks strong { display: block; color: var(--white); }
.checks__icon {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--coral); color: var(--white);
}
.docs { display: grid; gap: 16px; }
.docs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.docs__grid li {
  display: grid; place-items: center; min-height: 106px; padding: 12px;
  border: 2px solid #3c3e6e; border-radius: var(--radius); font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 700;
  text-align: center; transition: border-color .2s, background .2s;
}
.docs__grid li:hover { border-color: var(--coral); background: rgba(240,86,90,.08); }
.docs__grid--2 { grid-template-columns: repeat(2, 1fr); }
.docs__grid--2 li { min-height: 72px; border: 0; font-size: 1.15rem; font-style: italic; }
.docs__grid--2 li.is-coral { background: var(--coral); }
.docs__grid--2 li.is-white { background: var(--white); color: var(--navy); }

/* ---------- Contador ---------- */
.accountant { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.flow { max-width: 400px; margin-inline: auto; width: 100%; }
.flow__docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flow__docs span {
  position: relative; aspect-ratio: 3 / 3.8; background: var(--white); border-radius: 4px;
  box-shadow: 0 6px 18px rgba(34,35,64,.08);
}
.flow__docs span::after {
  content: ""; position: absolute; inset: 22% 20% auto; height: 38%; background: var(--blue-100);
}
.flow__lines {
  position: relative; height: 104px; margin: 8px 12.5% 0;
  border: 2px solid var(--navy); border-top: 0; border-radius: 0 0 10px 10px; height: 56px;
}
.flow__lines::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 46px; background: var(--navy);
}
.flow__panel {
  margin-top: 46px; padding: 30px 20px 50px; background: var(--white); border-top: 8px solid #2f6db0;
  border-radius: 6px; display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(34,35,64,.08);
}
.flow__panel span { height: 9px; border-radius: 6px; background: #eceef3; }
.flow__panel span:nth-child(1) { width: 55%; }
.flow__panel span:nth-child(3) { width: 72%; }
.flow__panel span:nth-child(4) { width: 40%; }

/* ---------- Segmentos ---------- */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.segments li {
  position: relative; display: flex; align-items: center; min-height: 60px;
  padding: 14px 18px 14px 40px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-weight: 500; transition: border-color .2s, color .2s;
}
.segments li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 9px;
  margin-top: -4.5px; background: var(--navy); transition: background .2s;
}
.segments li:hover { border-color: var(--coral); }
.segments li:hover::before { background: var(--coral); }

/* ---------- SEUPOS / Connect ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product { background: var(--white); border: 1px solid var(--gray-200); border-radius: 22px; padding: 48px 46px; }
.product__title { display: inline-block; font-size: 2rem; color: var(--coral); padding-bottom: 14px; border-bottom: 4px solid var(--coral); }
.product p { margin-top: 26px; color: var(--muted); font-size: 1.05rem; }
.product strong { color: var(--navy); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pills li { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.pills--soft li { background: var(--coral-50); color: var(--coral-600); }
.pills--dark li { background: var(--navy); color: var(--white); padding: 10px 22px; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: center; margin-top: 56px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--gray-200); border-radius: 22px; padding: 40px 36px;
}
.plan__name { font-size: 1.55rem; font-weight: 700; }
.plan__desc { margin-top: 8px; color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan__price { margin-top: 24px; font-size: 3.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; display: flex; align-items: flex-end; gap: 8px; }
.plan__price small { font-size: 1rem; margin-bottom: 8px; }
.plan__price span { font-size: 1.05rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.plan__price--text { font-size: 2.3rem; }
.plan__list { margin: 32px 0; flex: 1; }
.plan__list li {
  position: relative; padding: 10px 0 10px 34px; border-bottom: 1px dashed var(--gray-200);
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 21px; height: 21px; margin-top: -10.5px;
  border-radius: 50%; background: var(--coral)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.plan--featured { background: var(--navy); color: var(--white); border-color: var(--navy); padding: 52px 36px; box-shadow: 0 30px 60px rgba(34,35,64,.25); }
.plan--featured .plan__desc, .plan--featured .plan__price span { color: #c9cbe0; }
.plan--featured .plan__list li { border-color: #3c3e6e; }
.plan__badge {
  position: absolute; top: -16px; left: 36px; padding: 6px 18px; border-radius: 999px;
  background: var(--coral); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.faq__list { display: grid; gap: 16px; }
.faq details { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0 32px; }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 26px 36px 26px 0;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--coral); font-size: 1.6rem; font-weight: 700; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 26px; margin-top: -10px; color: var(--muted); }

/* ---------- CTA / formulário ---------- */
.cta { overflow: hidden; }
.cta__circle {
  position: absolute; left: -340px; bottom: -380px; width: 760px; height: 760px; border-radius: 50%;
  background: var(--navy-700);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.form {
  background: var(--white); color: var(--text); border-radius: 22px; padding: 40px;
  display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form input, .form select {
  width: 100%; height: 56px; padding: 0 18px; border: 1px solid #d6d9e3; border-radius: 12px;
  font: 400 1rem var(--font); color: var(--text); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5e76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.form select:invalid { color: #8a8da3; }
.form input::placeholder { color: #8a8da3; }
.form input:focus, .form select:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240,86,90,.15); }
.form .is-invalid { border-color: var(--coral); }
.form__error { color: var(--coral-600); font-size: .92rem; font-weight: 500; }
.form__plan { font-size: .92rem; color: var(--muted); }
.form__plan strong { color: var(--navy); }
.form button { margin-top: 6px; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-900); color: #a9abc4; padding: 40px 0; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav__list { gap: 22px; }
  .segments { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 16px; padding: 24px; background: var(--white); border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 20px 30px rgba(34,35,64,.08); display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 10px 0; }

  .hero { padding: 72px 0 80px; }
  .hero__inner, .why__inner, .fiscal, .accountant, .faq, .cta__inner, .products, .videos { grid-template-columns: 1fr; }
  .hero__inner { gap: 56px; }
  .features, .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .features, .plans, .segments { grid-template-columns: 1fr; }
  .plan--featured { grid-column: auto; }
  .strip__list { flex-direction: column; }
  .why__text { padding-left: 20px; font-size: 1.08rem; }
  .devices li { width: 64px; height: 64px; }
  .devices svg { width: 28px; height: 28px; }
  .docs__grid { grid-template-columns: repeat(2, 1fr); }
  .mockup__kpis { grid-template-columns: 1fr 1fr; }
  .mockup__kpis .kpi:last-child { display: none; }
  .product, .form { padding: 32px 24px; }
  .faq details { padding: 0 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
