/* v7: kinetic motion (only under html.m, set by js/motion.js) */
.m .kw .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.m .kw .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.m .kw.in .w > span { transform: none; opacity: 1; }
.m .hero h1 em, .m .kw em { position: relative; }
.m .kw em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.12em; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--kw-total, 0ms) + 250ms); }
.m .kw.in em::after { transform: scaleX(1); }
.m .kr { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.m .kr.in { opacity: 1; transform: none; }
.m .hero .lead.kr { transition-delay: .45s; }
.m .hero .row-btns.kr { transition-delay: .6s; }
.m .gap.kr { transition-delay: .75s; }
.m .bar div { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.m .bar .b2 { transition-delay: .25s; }
.m .bar .b3 { transition-delay: .5s; }
.m .bar.in div { transform: none; }
.m .ledger .row { opacity: 0; transform: translateX(-24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.m .ledger .row.in { opacity: 1; transform: none; }
.m .ledger .row .n { position: relative; }
.m .ledger .row .n::after { content: ""; position: absolute; left: 0; bottom: -8px; height: 4px; width: 48px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s ease .5s; }
.m .ledger .row.in .n::after { transform: scaleX(1); }
.m .btn { transition: transform .2s ease, box-shadow .2s ease; }
.m .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(13,27,51,.18); }
.m .cols article, .m .tools article, .m .uc { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.m .cols article.in:hover, .m .tools article.in:hover, .m .uc.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .m .kr, .m .kw .w > span, .m .bar div, .m .ledger .row { opacity: 1 !important; transform: none !important; } }

/* v8: symmetric grids, process timeline */
.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cols.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cols, .cols.c2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cols.c4 { grid-template-columns: 1fr; } }
.cols.tl { gap: 0; counter-reset: tl; }
.cols.tl article { position: relative; border-top: 0; padding: 34px 28px 0 0; }
.cols.tl article::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--line); }
.cols.tl article::after { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.cols.tl article:last-child::before { right: 28px; }
.cols.tl .step { margin-bottom: 2px; }
.m .cols.tl article::before { background: linear-gradient(var(--ink), var(--ink)) left / 0% 100% no-repeat, var(--line); transition: background-size .9s ease; transition-delay: inherit; }
.m .cols.tl article.in::before { background-size: 100% 100%; }
@media (max-width: 1000px) { .cols.tl { row-gap: 36px; } .cols.tl article:nth-child(2n)::before { right: 28px; } }
@media (max-width: 560px) { .cols.tl article { padding-right: 0; } .cols.tl article::before { right: 0; } }
/* v9: equal-height cards, actions aligned to the bottom */
.cols article, .tools article { display: flex; flex-direction: column; gap: 10px; }
.tools article { gap: 14px; }
.cols article .step, .tools article .step { align-self: flex-start; }
.cols article > a.more, .tools article > div:last-child { margin-top: auto; padding-top: 6px; }
.tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }
.cols h3 { max-width: none; }
.row { align-items: center; }
.cols.c2 { row-gap: 48px; }
@media (max-width: 560px) { .cols.tl article:nth-child(n)::before { right: 0; } }
/* v10: compact mobile menu (button added by js/motion.js) */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; align-items: center; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: transparent; color: #fff; border: 1px solid #2a3c5e; border-radius: 6px; padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }
  .nav-toggle i { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .nav.js ul { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; padding: 0; }
  .nav.js.open ul { display: flex; }
  .nav.js ul li a { display: block; padding: 12px 0; border-top: 1px solid #2a3c5e; }
  .nav.js ul li a.nav-cta { margin-top: 12px; text-align: center; border-top: 0; }
}
/* v11: brand mark, the three bars */
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; }
.brand::before { content: ""; width: 30px; height: 24px; flex: none; background:
  linear-gradient(#7f8fae, #7f8fae) 0 0 / 46% 5px no-repeat,
  linear-gradient(#7f8fae, #7f8fae) 0 50% / 73% 5px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 5px no-repeat; border-radius: 2px; }
.brand:hover { text-decoration: none !important; }
.m .brand::before { animation: pem-bars .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pem-bars {
  from { background-size: 0 5px, 0 5px, 0 5px; }
  40% { background-size: 46% 5px, 0 5px, 0 5px; }
  70% { background-size: 46% 5px, 73% 5px, 0 5px; }
  to { background-size: 46% 5px, 73% 5px, 100% 5px; }
}
/* v12: symmetric grids on Aprenda IA */
.dq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dq > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.dq > :nth-last-child(2):nth-child(3n+1) ~ :last-child { grid-column: span 2; }
@media (max-width: 900px) { .dq { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dq > :last-child:nth-child(3n+1) { grid-column: auto; } .dq > :last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .dq { grid-template-columns: 1fr; } }
.yesno { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .yesno { grid-template-columns: 1fr; } }
.pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pcs { grid-template-columns: 1fr; } }
.pc { display: flex; flex-direction: column; gap: 10px; }
.pc > .how { margin-top: auto; }
.pz th:nth-child(1) { width: 30%; }
.pz th:nth-child(2) { width: 16%; }
.pz th:nth-child(3) { width: 14%; }
.pz th:nth-child(4), .pz th:nth-child(5) { width: 20%; }
.pz select { padding-right: 28px; text-overflow: ellipsis; }
/* v13: diagnostic in a balanced two-column grid */
#quiz { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
#quiz .q { margin: 0; align-content: start; }
#quiz .quiz-bar { grid-column: 1 / -1; }
#quiz > :not(.q):not(.quiz-bar) { grid-column: 1 / -1; }
@media (max-width: 860px) { #quiz { grid-template-columns: 1fr; } }
/* v14: apps section, two audiences */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 32px; }
.seg button { font: 600 0.98rem var(--font-body); color: var(--ink-soft); background: transparent; border: 0; border-radius: 7px; padding: 11px 22px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg button:not([aria-selected="true"]):hover { color: var(--ink); }
.seg-p { display: grid; gap: 28px; }
.seg-p[hidden] { display: none; }
.seg-p.show { animation: seg-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes seg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.seg-h { display: grid; gap: 8px; max-width: 64ch; }
.seg-h p, .seg-note { color: var(--ink-soft); }
.seg-note { font-size: 0.92rem; }
.ex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex article { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--accent); }
.ex p { color: var(--ink-soft); font-size: 0.95rem; }
.ex-n { color: var(--ink-soft); font-size: 0.72rem; }
.pz0 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pz0 li { background: var(--ink); color: #fff; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pz0 .mono { color: var(--accent); font-size: 0.9rem; }
.pz0 p { color: #c3cde0; font-size: 0.95rem; }
.isnt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.isnt p { margin: 0; padding: 16px 20px; border-radius: 8px; background: var(--paper); border-left: 4px solid var(--accent); }
.isnt p + p { border-left-color: var(--ink); }
@media (max-width: 1000px) { .ex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pz0, .isnt { grid-template-columns: 1fr; } .seg { display: flex; } .seg button { flex: 1; padding: 11px 10px; } }
@media (max-width: 560px) { .ex { grid-template-columns: 1fr; } }
/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; background: #1f9d55; color: #fff; text-decoration: none; font: 600 0.95rem var(--font-body); padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(13,27,51,.25); transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,27,51,.3); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
body:has(.ck) .wa-float { bottom: 150px; }
body:has(.quiz-bar) .wa-float { bottom: 90px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
.contact a.wa { font-weight: 600; }
.ex h4, .ex p, .pz0 h4, .pz0 p, .seg-h h3, .seg-h p { margin: 0; }
.ex h4, .pz0 h4 { font-size: 1.08rem; }
.pz0 h4 { margin-top: 4px; }
@media (min-width: 761px) { .nav { gap: 12px 20px; flex-wrap: nowrap; } .nav ul { gap: 6px 18px; flex-wrap: nowrap; white-space: nowrap; } .brand { white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1100px) { .nav ul { font-size: 0.86rem; gap: 6px 12px; } }
@media (min-width: 761px) and (max-width: 960px) { .nav { flex-wrap: wrap; } .nav ul { flex-wrap: wrap; } }
@media (max-width: 760px) { .seg button { white-space: nowrap; font-size: 0.9rem; } }
/* v15: hero carousel */
.hs { display: grid; gap: 28px; }
.hs-stage { display: grid; }
.hs-s { grid-area: 1 / 1; display: grid; gap: 24px; align-content: start; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.hs-s.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease, visibility 0s; }
.hs-t { font-family: var(--font-display); font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; max-width: 17ch; margin: 0; color: #fff; }
.hs-t em { font-style: normal; color: var(--accent); }
.hs .lead { margin: 0; }
.hs-nav { display: flex; align-items: center; gap: 14px; }
.hs-dots { display: flex; gap: 8px; }
.hs-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; align-items: center; }
.hs-dots i { display: block; height: 4px; border-radius: 2px; background: #2a3c5e; position: relative; overflow: hidden; }
.hs-dots i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hs-dots button[aria-selected="true"] i::after { transform: scaleX(1); }
.hs.playing .hs-dots button[aria-selected="true"] i::after { animation: hs-fill var(--hs-ms, 7000ms) linear both; }
@keyframes hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs-arr, .hs-pause { background: transparent; color: #c3cde0; border: 1px solid #2a3c5e; border-radius: 6px; height: 34px; min-width: 34px; padding: 0 10px; font: 600 0.9rem var(--font-body); cursor: pointer; }
.hs-arr:hover, .hs-pause:hover { color: #fff; border-color: #5a6a88; }
.hs-pause { margin-left: 6px; font: 500 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .hs-dots button { width: 30px; } .hs-pause { display: none; } }
@media (prefers-reduced-motion: reduce) { .hs-s, .hs-s.on { transition: none; transform: none; } }
.hs-s:not(:first-child) .hs-t em::after { display: none; }

/* v16: form polish */
.pf-field > label { display: block; }
.pf-req { margin-left: 2px; }
.pf-notice { max-width: none; font-size: 0.76rem; line-height: 1.55; }
.pf-check { font-size: 0.82rem; line-height: 1.5; gap: 10px; color: #d5dcea; }
.pf-check input { width: 18px; height: 18px; margin-top: 1px; }
