/* TraceForms — site público. Usa os tokens de app.css.
   Um único momento marcante: a demonstração no topo, onde o rastro da própria visita
   aparece parada a parada enquanto a pessoa responde. O resto é calmo. */
.site { background: var(--tf-canvas); color: var(--bulma-body-color); font-size: 16px; }
.site a:not(.button) { color: var(--tf-primary); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.site h2.sec { font: 600 clamp(1.9rem, 3.6vw, 2.8rem)/1.08 var(--tf-display); letter-spacing: -.03em; color: var(--tf-ink); max-width: 17em; text-wrap: balance; }
.site p.sec-lead { font-size: 1.12rem; line-height: 1.6; color: var(--tf-muted); max-width: 38em; margin-top: .9rem; }
.site section { padding: clamp(4rem, 9vw, 7rem) 0; }
.site section + section { border-top: 1px solid var(--tf-line); }

/* Navegação */
.s-nav { position: sticky; top: 0; z-index: 50; background: rgba(243, 245, 244, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.s-nav.is-scrolled { border-bottom-color: var(--tf-line); }
.s-nav .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.s-nav .fp-brand { padding: 0; }
.s-links { display: flex; gap: 1.6rem; font-weight: 550; font-size: .95rem; }
.s-links a { color: var(--tf-ink) !important; }
.s-links a:hover { color: var(--tf-primary) !important; }
.s-nav .buttons { margin: 0 0 0 auto; }
.s-burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.2rem; color: var(--tf-ink); cursor: pointer; }
@media (max-width: 960px) {
  .s-links, .s-nav .buttons { display: none; }
  .s-burger { display: block; }
  .s-nav.is-open .s-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--tf-line); gap: 1rem; }
  .s-nav.is-open .buttons { display: flex; position: absolute; top: calc(68px + 15.5rem); left: 1.5rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem) !important; border-top: 0 !important; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font: 600 clamp(2.6rem, 5.4vw, 4.6rem)/1 var(--tf-display); letter-spacing: -.045em; color: var(--tf-ink); text-wrap: balance; }
.hero .lead { font-size: 1.22rem; line-height: 1.6; color: var(--tf-muted); margin: 1.5rem 0 2rem; max-width: 30em; }
.hero .buttons .button.is-medium { padding-left: 1.6rem; padding-right: 1.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .9rem; color: var(--tf-muted); list-style: none; padding: 0; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tf-primary); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Demonstração */
.demo { background: #fff; border: 1px solid var(--tf-line); border-radius: 18px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(20, 35, 31, .45); }
.demo-form { padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; min-height: 400px; }
.demo-form .q-num { color: var(--tf-primary); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .35rem; }
.demo-form h3 { font: 500 1.35rem/1.25 var(--tf-display); letter-spacing: -.02em; color: var(--tf-ink); margin: .5rem 0 1.1rem; }
.demo-opt { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .7rem; margin-bottom: .45rem; border-radius: 8px; border: 1px solid #b9d6cd; background: #f3f8f6; color: var(--tf-primary-dark); font: 500 .95rem/1.3 var(--bulma-family-primary); cursor: pointer; transition: background .12s, border-color .12s; }
.demo-opt:hover { background: var(--tf-tint); }
.demo-opt.is-on { border-color: var(--tf-primary); background: var(--tf-tint); box-shadow: inset 0 0 0 1px var(--tf-primary); }
.demo-opt kbd { flex: none; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font: 700 .68rem/1 var(--bulma-family-primary); border: 1px solid #9cc7ba; border-radius: 5px; background: #fff; color: var(--tf-primary); }
.demo-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: 1rem; font-size: .8rem; color: var(--tf-faint); }
.demo-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--tf-tint); overflow: hidden; max-width: 140px; }
.demo-bar span { display: block; height: 100%; background: var(--tf-primary); transition: width .4s; }
.demo-done h3 { margin-bottom: .6rem; }
.demo-done p { color: var(--tf-muted); font-size: .95rem; }
.demo-trace { background: var(--tf-ink); color: #cfe3dc; padding: 1.4rem 1.3rem; position: relative; }
.demo-trace h4 { font: 600 .95rem/1.3 var(--tf-display); color: #fff; margin-bottom: .2rem; }
.demo-trace .sub { font-size: .76rem; color: #8fb0a6; margin-bottom: 1.1rem; }
.trace-list { list-style: none; margin: 0; padding: 0; position: relative; }
.trace-list::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #2f4a43; }
.trace-list li { position: relative; padding: 0 0 .7rem 1.6rem; font-size: .84rem; line-height: 1.35; opacity: .28; transition: opacity .4s; }
.trace-list li::before { content: ''; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #4d6b63; background: var(--tf-ink); transition: all .35s; }
.trace-list li.is-on { opacity: 1; }
.trace-list li.is-on::before { background: var(--tf-signal); border-color: var(--tf-signal); }
.trace-list .k { color: #8fb0a6; display: block; font-size: .74rem; }
.trace-list .v { color: #fff; font-weight: 550; word-break: break-word; }
@media (max-width: 640px) { .demo { grid-template-columns: 1fr; } .demo-form { min-height: 340px; } }

/* Como funciona (sequência real: 1 → 2 → 3) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; position: relative; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--tf-line); }
.step { position: relative; }
.step::before { counter-increment: s; content: counter(s); position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--tf-display); background: var(--tf-primary); color: #fff; box-shadow: 0 0 0 6px var(--tf-canvas); margin-bottom: 1.2rem; }
.step h3 { font: 600 1.25rem/1.25 var(--tf-display); color: var(--tf-ink); margin-bottom: .45rem; }
.step p { color: var(--tf-muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* Formatos */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.format { background: #fff; border: 1px solid var(--tf-line); border-radius: 14px; padding: 1rem 1rem 1.2rem; }
.format .layout-mini { height: 150px; border-radius: 10px; margin-bottom: 1rem; }
.format .layout-mini b { height: 9px; }
.format .layout-mini.is-classic b:nth-of-type(1) { top: 34px; } .format .layout-mini.is-classic b:nth-of-type(2) { top: 64px; } .format .layout-mini.is-classic b:nth-of-type(3) { top: 94px; }
.format .layout-mini.is-card b { height: 30px; } .format .layout-mini.is-card b:nth-of-type(1) { top: 26px; } .format .layout-mini.is-card b:nth-of-type(2) { top: 64px; } .format .layout-mini.is-card b:nth-of-type(3) { top: 102px; }
.format .layout-mini.is-card i { top: 12px; height: 7px; }
.format .layout-mini.is-conversational b:nth-of-type(1) { top: 46px; height: 14px; } .format .layout-mini.is-conversational b:nth-of-type(2) { top: 72px; } .format .layout-mini.is-conversational b:nth-of-type(3) { top: 96px; height: 14px; }
.format h3 { font: 600 1.1rem/1.3 var(--tf-display); color: var(--tf-ink); margin-bottom: .3rem; }
.format p { font-size: .92rem; color: var(--tf-muted); }
.format .layout-mini.is-chat i { height: 22px; } .format .layout-mini.is-chat b:nth-of-type(1) { height: 22px; } .format .layout-mini.is-chat b:nth-of-type(2) { height: 22px; }
@media (max-width: 960px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }

/* Recursos com telas reais */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 6.5rem); }
.feature.is-flipped { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature.is-flipped .shot { order: -1; }
.feature h3 { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--tf-display); letter-spacing: -.025em; color: var(--tf-ink); }
.feature p { color: var(--tf-muted); font-size: 1.05rem; line-height: 1.6; margin: .9rem 0 1.2rem; }
.feature ul { list-style: none; padding: 0; margin: 0; }
.feature li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--tf-line); position: relative; font-size: .97rem; }
.feature li::before { content: ''; position: absolute; left: 2px; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--tf-primary); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--tf-line); background: #fff; box-shadow: 0 30px 60px -40px rgba(20, 35, 31, .5); }
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .feature, .feature.is-flipped { grid-template-columns: 1fr; } .feature.is-flipped .shot { order: 0; } }

/* Tipos de pergunta */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--tf-line); border: 1px solid var(--tf-line); border-radius: 14px; overflow: hidden; margin-top: 3rem; }
.types > div { background: #fff; padding: 1.2rem 1.25rem; }
.types h4 { font: 600 .98rem/1.3 var(--tf-display); color: var(--tf-ink); margin-bottom: .6rem; }
.types ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.types li { display: flex; gap: .55rem; align-items: center; padding: .18rem 0; color: var(--bulma-body-color); }
.types li i { width: 16px; text-align: center; color: var(--tf-primary); font-size: .82rem; }

/* Casos de uso */
.cases { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; margin-top: 3rem; }
.case-tabs { display: grid; gap: .3rem; align-content: start; }
.case-tabs button { text-align: left; padding: .75rem 1rem; border-radius: 10px; border: 1px solid transparent; background: none; font: 550 1rem/1.3 var(--bulma-family-primary); color: var(--tf-muted); cursor: pointer; }
.case-tabs button:hover { color: var(--tf-ink); background: #fff; }
.case-tabs button.is-on { background: #fff; border-color: var(--tf-line); color: var(--tf-ink); box-shadow: inset 3px 0 0 var(--tf-primary); }
.case-panel { background: #fff; border: 1px solid var(--tf-line); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.case-panel h3 { font: 600 1.5rem/1.2 var(--tf-display); color: var(--tf-ink); letter-spacing: -.02em; }
.case-panel p.lead { color: var(--tf-muted); margin: .6rem 0 1.4rem; font-size: 1.05rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.case-grid h4 { font-size: .85rem; color: var(--tf-muted); font-weight: 600; margin-bottom: .5rem; }
.case-grid ul { margin: 0; padding-left: 1.1rem; }
.case-grid li { margin-bottom: .35rem; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case-tabs { grid-auto-flow: column; overflow-x: auto; } .case-grid { grid-template-columns: 1fr; } }

/* Modelos */
.tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.tpl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tf-line); border-radius: 14px; padding: 1.2rem; color: inherit !important; transition: border-color .15s; }
.tpl-card:hover { border-color: var(--tf-primary); }
.tpl-card .tpl-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: .9rem; }
.tpl-card h3 { font: 600 1.05rem/1.3 var(--tf-display); color: var(--tf-ink); }
.tpl-card p { font-size: .9rem; color: var(--tf-muted); margin: .35rem 0 .9rem; flex: 1; }
.tpl-card small { font-size: .8rem; color: var(--tf-faint); }
@media (max-width: 960px) { .tpls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tpls { grid-template-columns: 1fr; } }

/* Integrações e privacidade */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.duo > div { background: #fff; border: 1px solid var(--tf-line); border-radius: 14px; padding: 1.6rem; }
.duo h3 { font: 600 1.25rem/1.25 var(--tf-display); color: var(--tf-ink); margin-bottom: 1rem; }
.duo dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: .7rem 1rem; font-size: .94rem; }
.duo dt { font-weight: 600; color: var(--tf-ink); }
.duo dd { color: var(--tf-muted); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo dl { grid-template-columns: 1fr; gap: .15rem; } .duo dd { margin-bottom: .6rem; } }

/* Perguntas frequentes */
.faq { max-width: 820px; margin-top: 2.5rem; }
.faq details { border-top: 1px solid var(--tf-line); }
.faq details:last-child { border-bottom: 1px solid var(--tf-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font: 600 1.08rem/1.35 var(--tf-display); color: var(--tf-ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .4rem; top: .9rem; font: 400 1.6rem/1 var(--bulma-family-primary); color: var(--tf-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--tf-muted); max-width: 44em; line-height: 1.65; }

/* Chamada final */
.cta-band { background: var(--tf-primary); color: #dff0ea; border-radius: 22px; padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font: 600 clamp(1.8rem, 3.6vw, 2.8rem)/1.08 var(--tf-display); letter-spacing: -.03em; color: #fff; max-width: 15em; }
.cta-band p { margin-top: .8rem; font-size: 1.1rem; }
.cta-band .button { background: #fff; color: var(--tf-primary-dark); border: 0; }
.cta-band .button:hover { background: var(--tf-signal); color: #2a1f00; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Rodapé */
.s-footer { padding: 4rem 0 2.5rem; border-top: 1px solid var(--tf-line); }
.s-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.s-footer h4 { font-size: .85rem; font-weight: 600; color: var(--tf-ink); margin-bottom: .8rem; }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
.s-footer ul a { color: var(--tf-muted) !important; }
.s-footer ul a:hover { color: var(--tf-primary) !important; }
.s-footer .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--tf-line); font-size: .85rem; color: var(--tf-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { .s-footer .cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .site * { transition: none !important; } }
