/* A ligação entre etapas é o elemento de movimento. O texto mantém-se acessível. */
.intro-note, .step-position, .hero-caption, .journey-caption { color: var(--color-text-muted); font-size: var(--text-sm); }
.intro-note { margin-bottom: 1.5rem; }
.header-link { font-weight: 600; }
.header-link, .day-note a, .legal-document a, .bmd-form__note a { color: var(--color-accent-text); text-underline-offset: 3px; }
.site-header__logo img { height: auto; width: clamp(150px, 23vw, 225px); }
.hero__inner { align-items: center; }
.hero__title { font-size: clamp(2.6rem, 4.8vw, 4.3rem); max-width: 15ch; letter-spacing: -.045em; }
.hero-caption { margin-top: 1rem; }
.hero-connections { position: absolute; width: 58%; right: -10%; bottom: -15%; opacity: .5; pointer-events: none; }
.hero-connections path { stroke: var(--bmd-blue-muted); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenhar 1.8s cubic-bezier(.3, .6, .2, 1) .2s forwards; }
.hero-connections path:nth-of-type(2) { animation-delay: .45s; }
.hero-connections path:nth-of-type(3) { animation-delay: .7s; }
.hero-connections circle { fill: var(--bmd-green); transform-box: fill-box; transform-origin: center; animation: surgir .5s ease-out both; }
.hero-connections circle:nth-of-type(1) { animation-delay: 1.2s; }
.hero-connections circle:nth-of-type(2) { animation-delay: 1.4s; }
.hero-connections circle:nth-of-type(3) { animation-delay: 1.6s; }
.link-button { display: inline-flex; text-decoration: none; justify-content: center; text-align: center; }
.day-note { position: relative; padding: 2.5rem 2rem; border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius-sm); transform: rotate(2deg); }
.day-note__title { font-weight: 650; font-size: var(--text-lg); }
.day-note ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.day-note li { display: grid; grid-template-columns: 3.6rem 1fr; gap: .5rem; border-top: 1px solid var(--color-border); padding: 1rem 0; font-size: var(--text-sm); }
.day-note li span { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.day-note > p:last-of-type { font-size: var(--text-sm); margin-bottom: .4rem; }
.journey { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.journey-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.journey-map { position: sticky; top: 3rem; }
.journey-map h2 { max-width: 18ch; }
.journey-map > p { margin-top: 1.5rem; }
.route { position: relative; display: grid; gap: 0; margin-top: 2rem; }
.route::before, .route::after { content: ''; position: absolute; left: 18px; top: 20px; width: 2px; height: calc(100% - 52px); background: var(--color-border); }
.route::after { background: var(--color-accent-text); transform-origin: top; transform: scaleY(var(--route-progress, 0)); transition: transform 400ms ease; }
.route a { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 64px; text-decoration: none; color: var(--color-text-muted); }
.route-dot { display: grid; place-items: center; position: relative; z-index: 1; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--color-border-strong); border-radius: 50%; background: #fff; font-size: .85rem; }
.route a[aria-current="step"] { color: var(--color-text); font-weight: 700; }
.route a[data-reached="true"] .route-dot { background: var(--color-accent-text); color: #fff; border-color: var(--color-accent-text); }
.journey-step { padding: 3rem 0 5rem; scroll-margin-top: 2rem; border-bottom: 1px solid var(--color-border); }
.journey-step:first-child { padding-top: 0; }
.journey-step + .journey-step { margin-top: 4rem; }
.journey-step h3 { font-size: var(--text-2xl); margin: .75rem 0 1.25rem; }
.journey-step > p { color: var(--color-text-muted); }
.solution { border-left: 3px solid var(--color-accent-text); padding: 1.5rem; background: var(--color-bg-alt); margin-top: 2rem; }
.solution-label { color: var(--color-accent-text); font-size: var(--text-sm); font-weight: 600; }
.solution h4 { font-size: var(--text-lg); margin: .6rem 0; }
.connection { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 600; }
.area-explorer { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
.area-explorer details { border-bottom: 1px solid var(--color-border-strong); padding: 1rem 0; }
.area-explorer summary { padding: .5rem 1rem .5rem 0; min-height: 48px; font-weight: 650; cursor: pointer; }
.area-explorer details p { margin: 1rem 0; }
.area-explorer details[open] summary { color: var(--color-accent-text); }
.guide-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.guide-cover { padding: 2.7rem 2rem; min-height: 450px; border: 1px solid var(--color-border); border-left: 7px solid var(--color-text); box-shadow: var(--shadow-lg); background: #fff; }
.guide-cover img { width: 180px; margin-bottom: 3rem; }
.guide-cover > p { font-size: var(--text-2xl); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; }
.guide-cover > span { display: block; margin-top: 1rem; color: var(--color-accent-text); }
.guide-cover > div { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.guide-steps { padding-left: 1.4rem; margin: 2rem 0; }
.guide-steps li { padding-left: .5rem; margin: 1rem 0; }
.guide-steps strong { display: block; }
.guide-section .lead { margin-top: 1.5rem; }
.guide-section .link-button { margin-top: 1.5rem; }
/* Base digital: páginas, domínio e email, com um exemplo real. */
.craft-section { border-top: 1px solid var(--color-border); }
.craft-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.craft-head .lead { margin-top: var(--space-md); }
.craft__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: var(--space-sm); border-radius: var(--radius-pill); background: rgba(18, 161, 80, .1); color: var(--color-accent-text); }
.craft__icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.craft h3 { font-size: var(--text-lg); }
.stack { margin: var(--space-xl) 0 0; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--bmd-navy); color: #fff; }
.stack__caption { margin-bottom: var(--space-lg); color: var(--bmd-green); font-size: var(--text-xs); font-weight: 650; letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.stack__flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.stack__flow > li { position: relative; }
.stack__node { padding: 1rem 1.25rem; border: 1px solid rgba(141, 163, 188, .35); border-radius: var(--radius-md); background: rgba(255, 255, 255, .04); }
.stack__node--hub { border-color: rgba(18, 161, 80, .7); }
.stack__node span, .stack__out span { display: block; color: #bdccdc; font-size: var(--text-sm); }
.stack__node strong { display: block; font-size: var(--text-md); overflow-wrap: anywhere; }
.stack__out { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid rgba(141, 163, 188, .35); display: grid; gap: .9rem; transition: border-color .4s ease .7s; }
.stack__out li { position: relative; }
.stack__out li::before { content: ""; position: absolute; left: -1.25rem; top: .8em; width: .8rem; height: 2px; background: rgba(141, 163, 188, .35); transition: background-color .3s ease; }
.stack__out strong { display: block; }
/* Ligações entre os blocos: acendem da esquerda para a direita quando o fio toca no diagrama. */
.stack__flow > li + li::before { content: ""; position: absolute; left: 1.5rem; bottom: 100%; width: 2px; height: var(--space-lg); background: linear-gradient(var(--bmd-green), var(--bmd-green)) top / 100% 0 no-repeat, rgba(141, 163, 188, .35); transition: background-size .45s ease .15s; }
.stack__flow > li + li + li::before { transition-delay: .45s; }
.stack__note { max-width: 46rem; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid rgba(141, 163, 188, .25); color: #bdccdc; font-size: var(--text-sm); }
.stack__note strong { color: #fff; }
.stack.is-touched .stack__flow > li + li::before { background-size: 100% 100%; }
.stack.is-touched .stack__out { border-left-color: var(--bmd-green); }
.stack.is-touched .stack__out li::before { background-color: var(--bmd-green); transition-delay: .9s; }
.stack.is-touched .stack__out li:nth-child(2)::before { transition-delay: 1s; }
.stack.is-touched .stack__out li:nth-child(3)::before { transition-delay: 1.1s; }
@media (min-width: 64em) {
  .stack__flow { grid-template-columns: max-content max-content minmax(0, 1fr); align-items: center; gap: var(--space-xl); }
  .stack__flow > li + li::before { left: auto; right: 100%; bottom: auto; top: 50%; width: var(--space-xl); height: 2px; background-position: left; background-size: 0 100%; }
}
.craft-cta { margin-top: var(--space-lg); }
.craft-cta a { color: var(--color-accent-text); font-weight: 600; text-underline-offset: 3px; }
/* Sobre mim: a cara e o nome de quem está por trás do trabalho, antes do pedido do guia. */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 48em) { .about { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.about__photo { position: relative; margin: 0; max-width: 14rem; }
@media (min-width: 48em) { .about__photo { max-width: none; } }
.about__photo img { display: block; width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); background: var(--color-bg-alt); }
/* Um ponto verde como os das pontas dos fios. */
.about__photo::after { content: ""; position: absolute; right: -.5rem; bottom: 1.5rem; width: 1.1rem; height: 1.1rem; border-radius: var(--radius-pill); background: var(--bmd-green); box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 8px rgba(18, 161, 80, .15); }
.about__text .lead { margin-top: var(--space-md); }
.about__text .lead ~ p { margin-top: var(--space-sm); color: var(--color-text-muted); }
.about__text h3 { margin-top: var(--space-lg); }
.about__points { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.about__points li { position: relative; max-width: var(--measure); padding-left: 1.75rem; color: var(--color-text-muted); }
.about__points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: var(--radius-pill); background: var(--bmd-green); box-shadow: 0 0 0 4px rgba(18, 161, 80, .15); }
.about__points strong { color: var(--color-text); }

/* Fios que acompanham o scroll (connections.js). Por baixo do conteúdo, os
   fios e os ramos; por cima, as ligações e os salpicos. */
.has-strands main { position: relative; }
.has-strands main .container { position: relative; z-index: 2; }
.strands { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.strands--over { z-index: 3; }
.strands path { fill: none; stroke-linecap: round; }
.strand--1 { opacity: .78; }
.strand--2 { opacity: .56; }
.strand.is-off { display: none; }
.strand__track { stroke: rgba(61, 90, 128, .13); stroke-width: 1.25; }
.strand__line { stroke: var(--bmd-green); stroke-width: 1.75; }
.strand__root, .strand__tip { fill: var(--bmd-green); opacity: 0; transition: opacity .25s ease; }
.strand__halo { fill: var(--bmd-green); opacity: 0; transition: opacity .25s ease; }
.strand__root.is-live, .strand__tip.is-live { opacity: 1; }
.strand__halo.is-live { opacity: .2; }
.strand__branch { stroke: var(--bmd-green); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .52s cubic-bezier(.3, .6, .2, 1); }
.strand__branch.is-reached { stroke-dashoffset: 0; }
.strand__port { fill: var(--bmd-green); stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.strand__port.is-reached { transform: scale(1); }
.strand__port--end { stroke: var(--bmd-navy); stroke-width: 2; }
.strands.is-instant * { transition: none !important; }
.splash__glow { fill: url(#strand-glow); transform-box: fill-box; transform-origin: center; animation: salpico-brilho .75s ease-out both; }
.splash__ring { fill: none; stroke: var(--bmd-green); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: salpico-anel .65s cubic-bezier(.2, .7, .3, 1) both; }
.splash__drop { fill: var(--bmd-green); transform-box: fill-box; transform-origin: center; animation: salpico-gota .6s cubic-bezier(.2, .7, .3, 1) both; }
.splash--big .splash__ring { stroke-width: 2.5; }
/* A caixa sente o toque: um anel que se afasta e um pequeno recuo. */
.has-strands [data-strand], .has-strands [data-strand-end] { --strand-base: 0 0 0 transparent; }
.has-strands .card[data-strand] { --strand-base: var(--shadow-xs); transition: border-color .4s ease, box-shadow .4s ease, transform var(--dur-base) var(--ease-out); }
.has-strands .solution { transition: box-shadow .4s ease; }
.has-strands [data-strand].is-touched { box-shadow: var(--strand-base), inset -3px 0 0 var(--bmd-green); }
.has-strands .card[data-strand].is-touched { border-color: rgba(14, 122, 61, .35); }
.has-strands .card[data-strand].is-touched:hover { box-shadow: var(--shadow-md), inset -3px 0 0 var(--bmd-green); }
.is-splashing { animation: caixa-toque .75s cubic-bezier(.2, .7, .3, 1); }
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes surgir { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes salpico-anel { from { opacity: .9; transform: scale(.15); } to { opacity: 0; transform: scale(1); } }
@keyframes salpico-brilho { from { opacity: .8; transform: scale(.3); } to { opacity: 0; transform: scale(1); } }
@keyframes salpico-gota { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
@keyframes caixa-toque {
  0% { outline: 2px solid rgba(18, 161, 80, .55); outline-offset: 0; translate: 0 0; }
  18% { translate: -3px 0; }
  100% { outline: 2px solid rgba(18, 161, 80, 0); outline-offset: 12px; translate: 0 0; }
}

.cta .form-card p { color: var(--color-text-muted); margin: 1rem 0; }
.cta .form-card .link-button { color: #fff; }
.cta .lead, .site-footer p { color: #bdccdc; }
.footer-brand { width: 220px; margin-bottom: 1.5rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.5rem 0; }
.site-footer a { overflow-wrap: anywhere; }
.legal-document { max-width: 48rem; margin: auto; padding: 3rem 1.5rem 6rem; }
.legal-document h1 { font-size: var(--text-3xl); }
.legal-document h2 { font-size: var(--text-xl); margin: 2rem 0 1rem; }
.legal-document p, .legal-document ul { margin: 1rem 0; }
.legal-document a { overflow-wrap: anywhere; }
.legal-draft { padding: 1rem; border: 2px solid #915b00; background: #fff8e8; color: #694400; }
@media (max-width: 61.99em) { .hero__inner { gap: 3rem; } .day-note { transform: none; max-width: 40rem; } }
@media (max-width: 47.99em) {
  .journey-layout, .guide-layout, .area-explorer { grid-template-columns: 1fr; }
  .journey-map { position: static; }
  .route { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .route::before, .route::after { display: none; }
  .route a { font-size: .82rem; gap: .45rem; }
  .journey-step { padding-bottom: 2.5rem; }
  .journey-step + .journey-step { margin-top: 2rem; }
  .guide-cover { min-height: auto; max-width: 26rem; }
  .day-note { padding: 1.5rem; }
  .header-link { font-size: .82rem; text-align: right; }
  .hero-connections { width: 110%; opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .route::after { transition: none; }
  .hero-connections path, .hero-connections circle { animation: none; }
  .hero-connections path { stroke-dashoffset: 0; }
}
@media print { .strands { display: none; } .has-strands [data-strand].is-touched { box-shadow: none; } }
