.marketing { background: var(--paper); }
.marketing main { max-width: none; margin: 0; padding: 0; }
.site-width { width: min(1200px, calc(100% - 36px)); margin-inline: auto; }
.site-header { height: auto; padding: 0; }
.site-nav { display: flex; align-items: start; flex-direction: column; padding-block: 14px; gap: 9px; }
.site-nav .brand { padding: 0; }
.site-nav nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; overflow: visible; }
.site-nav nav a { padding: 8px; min-height: 44px; }
.site-nav .login-link { border-color: var(--line); }
.marketing h2 { font-size: clamp(2rem, 4.7vw, 3.75rem); line-height: 1.03; font-weight: 400; letter-spacing: -.065em; }
.marketing h3 { margin: 0; font-size: 1.125rem; letter-spacing: -.025em; line-height: 1.3; }
.marketing p { color: var(--muted); }
.hero-site { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 42px 32px; }
.hero-copy h1 { font-size: clamp(3.05rem, 11vw, 5.2rem); line-height: .9; letter-spacing: -.085em; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy p { max-width: 34ch; margin: 18px 0 20px; font-size: clamp(1rem, 1.85vw, 1.25rem); }
.marketing .primary { min-height: 46px; }
.hero-visual { position: relative; min-width: 0; }
.editorial-photo { background-color: var(--stone); background-repeat: no-repeat; overflow: hidden; border-radius: 10px; }
.hero-photo { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 48%; }
.photo-ledger {
  position: absolute; bottom: 12px; left: 12px; display: grid; gap: 2px; padding: 12px 17px 12px 49px;
  border-radius: 7px; background: var(--surface); color: var(--muted); font-size: var(--caption);
}
.ledger-check, .ledger-envelope {
  position: absolute; top: 13px; left: 13px; width: 26px; height: 26px; padding: 3px;
  border-radius: 50%;
}
.ledger-check { color: var(--success-ink); background: var(--success-bg); }
.ledger-envelope { color: var(--primary); background: var(--tint); opacity: 0; }
.photo-ledger strong { color: var(--ink); font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ledger-status { display: grid; }
.ledger-status span { grid-area: 1 / 1; }
.ledger-invoice-status { opacity: 0; }
.ledger-plane {
  position: absolute; top: 8px; left: 10px; width: 32px; height: 32px;
  color: var(--primary); opacity: 0; pointer-events: none;
  filter: drop-shadow(0 3px 5px rgb(31 30 28 / 24%));
}
.ledger-toggle {
  position: absolute; inset: auto 12px 12px auto;
  min-width: 44px; min-height: 44px; border-radius: 6px;
}
.ledger-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual.has-ledger-loop .photo-ledger { animation: ledger-card-loop 9s 650ms ease-in-out infinite both; }
  .hero-visual.has-ledger-loop .ledger-receipt-status { animation: ledger-receipt-status 9s 650ms linear infinite both; }
  .hero-visual.has-ledger-loop .ledger-check { animation: ledger-pop 240ms 900ms ease-out both, ledger-receipt-status 9s 650ms linear infinite both; }
  .hero-visual.has-ledger-loop :is(.ledger-invoice-status, .ledger-envelope) { animation: ledger-invoice-status 9s 650ms linear infinite both; }
  .hero-visual.has-ledger-loop .ledger-plane { animation: ledger-flight 9s 650ms linear infinite both; }
  .hero-visual.ledger-paused :is(.photo-ledger, .ledger-status span, .ledger-plane, .ledger-check, .ledger-envelope) { animation-play-state: paused; }

  @keyframes ledger-card-loop {
    0% { opacity: 0; transform: translateY(12px) scale(.97); }
    6%, 85% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; transform: translateY(10px) scale(.97); }
  }
  @keyframes ledger-receipt-status {
    0%, 38%, 96%, 100% { opacity: 1; }
    42%, 92% { opacity: 0; }
  }
  @keyframes ledger-invoice-status {
    0%, 38%, 96%, 100% { opacity: 0; }
    42%, 92% { opacity: 1; }
  }
  @keyframes ledger-flight {
    0%, 30% { opacity: 0; transform: translate(0, 0) rotate(12deg) scale(.55); }
    32% { opacity: 1; }
    35% { opacity: 1; transform: translate(34px, -30px) rotate(-7deg); }
    41% { opacity: 1; transform: translate(102px, -94px) rotate(-18deg); }
    45%, 100% { opacity: 0; transform: translate(158px, -148px) rotate(-8deg) scale(.85); }
  }
}
.routine { padding: 44px 0 0; }
.routine-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 20px; }
.routine-card {
  display: grid; grid-template-columns: minmax(76px,.48fr) minmax(0,1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.routine-media { position: relative; overflow: hidden; }
.routine-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.routine-card:nth-child(2) img { object-position: right center; }
.routine-copy { padding: 19px; }
.routine-icon {
  position: absolute; inset: 8px auto auto 8px; width: 32px; height: 32px; padding: 7px;
  border-radius: 7px; color: white; background: var(--primary);
  box-shadow: 0 1px 4px rgb(31 30 28 / 16%);
}
.routine-card p { margin: 6px 0 10px; }
.routine-card span { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.routine-card:focus-visible { outline-offset: 3px; }
.demo-band { background: var(--ink); color: white; padding: 28px 18px; border-radius: 12px; scroll-margin-top: 16px; }
.demo-layout, .help-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 24px; }
.demo-layout p, .help-copy p { max-width: 39ch; margin: 16px 0 22px; }
.demo-layout p { color: var(--line); }
.demo-ticket { min-width: 0; border-radius: 10px; background: white; color: var(--ink); padding: 21px; }
.demo-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.demo-heading span { color: var(--muted); font-size: var(--caption); }
#demo-total { display: block; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 10px 0 16px; }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--label); }
.demo-rows li[hidden] { display: none; }
.demo-rows li strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
#demo-new { color: var(--success-ink); }
.demo-rows .is-opening { overflow: hidden; }
.demo-flight {
  position: fixed; top: 0; left: 0; z-index: 10; padding: 4px 9px;
  pointer-events: none; color: var(--success-ink); background: var(--success-bg); border-radius: 6px;
  font-size: var(--label); font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 12px rgb(31 30 28 / 14%);
}
.help-layout { padding-block: 48px 24px; }
.ponto-preview { background: var(--stone); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ponto-stage {
  display: grid; place-items: center; min-height: clamp(172px, 27vw, 253px);
  background: radial-gradient(ellipse at 50% 48%, #fff8f1, transparent 68%);
}
.ponto-render {
  display: block;
  width: clamp(128px, 16vw, 192px);
  height: auto;
  margin: 16px 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ponto-stage .ponto-render { width: calc(clamp(128px, 16vw, 192px) * 504 / 440); }
}
.marketing .ponto-tip {
  margin: 0 16px 16px; padding-inline: 19px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
}
.marketing .ponto-tip p { padding-bottom: 15px; }
.guides, .faq { max-width: 1220px; padding-block: 35px; scroll-margin-top: 20px; }
.guides h2, .faq h2 { margin-bottom: 24px; }
.marketing details { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.marketing details:last-child { border-bottom: 1px solid var(--line); }
.marketing summary { cursor: pointer; padding: 15px 0; font-size: 1.0625rem; font-weight: 700; }
.marketing details p { max-width: 64ch; padding-bottom: 14px; }
.final-band { border-radius: 10px; background: var(--tint); margin-block: 34px; padding: 23px; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: 22px; }
.site-footer { padding-block: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .wordmark { text-decoration: none; }

@media (min-width: 600px) {
  .site-width { width: min(1200px, calc(100% - 56px)); }
  .site-nav { min-height: 76px; flex-direction: row; align-items: center; justify-content: space-between; }
  .site-nav nav { gap: 14px; }
  .site-nav nav a { padding: 10px 12px; }
  .hero-photo { aspect-ratio: 3 / 2; }
}
@media (min-width: 900px) {
  .site-width { width: min(1220px, calc(100% - 96px)); }
  .hero-site { grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); align-items: center; gap: clamp(28px, 4vw, 60px); padding-block: 72px 75px; }
  .hero-copy h1 { font-size: clamp(4.25rem, 7.5vw, 7.5rem); }
  .hero-copy p { margin: 26px 0; }
  .hero-photo { aspect-ratio: 6 / 5; }
  .photo-ledger { left: -18px; bottom: 28px; padding: 16px 22px 16px 55px; box-shadow: 0 8px 36px rgb(31 30 28 / 15%); }
  .routine { padding: 72px 0 0; }
  .routine-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 28px; }
  .routine-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .routine-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .routine-copy span { margin-top: auto; }
  .routine-media { aspect-ratio: 16 / 10; }
  .routine-card img { object-position: center 24%; }
  .routine-icon { inset: 12px auto auto 12px; width: 40px; height: 40px; padding: 9px; }
  .routine-card:nth-child(2) img { object-position: center; }
  .routine-copy { padding: 25px; }
  .demo-band { padding: clamp(42px, 5vw, 66px); }
  .demo-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(40px, 8vw, 120px); }
  .demo-ticket { padding: 34px; }
  .help-layout { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(34px, 7vw, 96px); padding-block: 88px 56px; }
  .help-copy { grid-column: 2; grid-row: 1; }
  .final-band { padding: 34px 42px; }
}

@media (prefers-reduced-motion: no-preference) {
  .routine-card { transition: transform 170ms ease-out, box-shadow 170ms ease-out, border-color 170ms ease-out; }
  .routine-card:active { transform: scale(.985); }
  .marketing details[open] > div, .marketing details[open] > p { animation: appear 170ms ease-out; }
}
@media (hover: hover) and (pointer: fine) {
  .routine-card:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgb(31 30 28 / 10%); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .routine-card:hover { transform: translateY(-4px); }
  .routine-card:hover:active { transform: translateY(-1px) scale(.985); }
}

@media (prefers-reduced-motion: no-preference) {
  .ponto-render { transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
  .ponto-preview:has(.ponto-tip[open]) .ponto-render { transform: translateY(-5px) rotate(3deg); }
}

.help-official { white-space: nowrap; }
.help-official-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  box-sizing: border-box;
  margin-inline-start: .2em;
  vertical-align: -.16em;
  color: #3448b2;
  background: linear-gradient(145deg, #eef1ff, #cbd4ff);
  border: 1px solid #cbd4ff;
  border-radius: .22em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%),
    0 2px 0 #b8c3f5, 0 4px 8px rgb(58 79 209 / 24%);
}
.help-photo {
  min-width: 0; min-height: 238px; aspect-ratio: 8 / 7;
  position: relative; overflow: clip;
  isolation: isolate;
}
.help-photo::after, #antes-de-comecar .faq-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("images/granulado.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .10;
  pointer-events: none;
}
.help-photo-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0; transition: opacity 0s linear 850ms;
}
.help-photo-slide:nth-child(2) { object-position: center bottom; }
.help-photo-slide:first-child { object-position: center 18%; }
.help-photo-slide:last-of-type { object-position: center 15%; }
@media (min-width: 900px) {
  .help-photo-slide:last-of-type { scale: 1.1; transform-origin: 50% 0; }
}
.help-photo-slide.is-leaving { z-index: 1; }
.help-photo-slide.is-current {
  z-index: 2; opacity: 1; transition: opacity 850ms ease-in-out;
}
.help-photo-toggle {
  position: absolute; z-index: 4; inset: auto 12px 12px auto;
  min-width: 44px; min-height: 44px; border-radius: 6px;
}
.help-photo-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .help-photo-slide { transition: none; }
}
.faq-questions {
  align-self: stretch; padding: 8px 20px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface);
}
.marketing .faq-questions details:first-child { border-top: 0; }
.marketing .faq-questions details:last-child { border-bottom: 0; }
.faq-questions summary {
  display: flex; align-items: center; gap: 14px; list-style: none; min-height: 60px;
}
.faq-questions summary::-webkit-details-marker { display: none; }
.faq-questions summary::after {
  content: ""; width: 14px; height: 14px; flex: none; margin-left: auto;
  background: linear-gradient(var(--primary),var(--primary)) center / 12px 2px no-repeat,
              linear-gradient(var(--primary),var(--primary)) center / 2px 12px no-repeat;
}
.faq-questions details[open] summary::after { background-size: 12px 2px, 0 0; }
.final-copy h2 { text-wrap: balance; }
.final-copy h2 span { white-space: nowrap; }
.final-copy p { max-width: 38ch; margin-top: 12px; }
.final-copy .button { margin-top: 16px; }
.final-band .ponto-preview { background: var(--surface); }

@media (min-width: 900px) {
  .help-photo { min-height: 360px; grid-column: 1; grid-row: 1; }
  .faq { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 24px; }
  .final-band { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 40px; }
}
.routine-card:focus-visible img { filter: blur(3px); transform: scale(1.04); }
.routine-card:focus-visible .routine-icon { top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1.3); }
@media (hover: hover) and (pointer: fine) {
  .routine-card:hover img { filter: blur(3px); transform: scale(1.04); }
  .routine-card:hover .routine-icon { top: 50%; left: 50%; transform: translate(-50%,-50%) scale(1.3); }
}
@media (prefers-reduced-motion: no-preference) {
  .routine-card img { transition: filter 200ms ease-out, transform 200ms ease-out; }
  .routine-icon { transition: top 210ms ease-out, left 210ms ease-out, transform 210ms ease-out; }
}

@media (prefers-reduced-motion: no-preference) {
  .photo-ledger { animation: ledger-enter 430ms 650ms cubic-bezier(.2,.7,.24,1) both; }
  .ledger-check { animation: ledger-pop 240ms 900ms ease-out both; }
  .ledger-check path { stroke-dasharray: 1; animation: ledger-draw 270ms 1010ms ease-out both; }
  @keyframes ledger-enter { from { opacity: 0; transform: translateY(12px) scale(.97); } }
  @keyframes ledger-pop {
    from { opacity: 0; transform: scale(.68); }
    72% { opacity: 1; transform: scale(1.09); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes ledger-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

.guide-controls { position: relative; z-index: 1; display: flex; align-items: end; gap: 8px; margin-bottom: -1px; }
.guide-tabs { display: flex; flex: 1 1 auto; min-width: 0; align-items: end; gap: 4px; }
.guide-tabs button {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 7px 5px 9px;
  overflow: visible; line-height: 1.15; border-radius: 13px 20px 3px 3px;
  color: var(--muted); background: var(--stone); text-wrap: balance;
}
.guide-tabs [aria-selected="true"] {
  z-index: 1; min-height: 55px; color: var(--primary); background: var(--surface);
  border-bottom-color: var(--surface); border-radius: 15px 22px 0 0;
}
.guide-tabs [aria-selected="true"]::before, .guide-tabs [aria-selected="true"]::after {
  content: ""; position: absolute; bottom: -1px; width: 10px; height: 10px; pointer-events: none;
}
.guide-tabs [aria-selected="true"]::before {
  right: 100%;
  background: radial-gradient(circle at 0 0, transparent 8px, var(--line) 8.3px 9px, var(--surface) 9.3px);
}
.guide-tabs [aria-selected="true"]::after {
  left: 100%;
  background: radial-gradient(circle at 100% 0, transparent 8px, var(--line) 8.3px 9px, var(--surface) 9.3px);
}
.guide-tabs button:first-child::before { display: none; }
.guide-tabs button:focus-visible { z-index: 2; outline-offset: -4px; }
.guide-panels { position: relative; }
.guide-panels:has(.guide-playback:not([hidden])) .guide-slide { padding-bottom: 68px; }
.guide-playback {
  position: absolute; z-index: 2; inset: auto 14px 14px auto;
  display: flex; align-items: center; gap: 8px;
}
.guide-toggle { min-width: 44px; min-height: 44px; }
.guide-playback[hidden], .guide-slide[hidden] { display: none; }
.guide-progress-ring { width: 32px; height: 32px; fill: none; stroke-width: 3; }
.guide-progress-track { stroke: var(--line); }
.guide-progress-value {
  stroke: var(--primary); stroke-dasharray: 1; stroke-dashoffset: 1;
  transform: rotate(-90deg); transform-origin: center;
}
.guide-slide {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; scroll-margin-top: 20px;
}
.guide-copy { align-self: center; padding: 8px; }
.guide-copy h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.guide-copy p { margin: 9px 0 12px; max-width: 39ch; }
.guide-copy a { font-weight: 700; }
.guide-visual {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: 212px; padding: 16px; border-radius: 8px;
  background: var(--guide-tint);
}
.guide-visual--receita { --guide-tint: var(--tint); --guide-photo: url("images/guia-balcao.webp"); }
.guide-visual--das { --guide-tint: var(--warning-bg); --guide-photo: url("images/guia-padaria.webp"); }
.guide-visual--nota { --guide-tint: var(--stone); --guide-photo: url("images/guia-costura.webp"); }
.guide-visual::before, .guide-visual::after { content: ""; position: absolute; pointer-events: none; }
.guide-visual::before {
  z-index: -2; inset: -16px;
  background: var(--guide-photo) center 38% / cover no-repeat;
  filter: blur(7px) saturate(.55); opacity: .32; mix-blend-mode: multiply;
}
.guide-visual::after {
  z-index: -1; inset: 0; opacity: .23; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22768%22%20height%3D%22480%22%20viewBox%3D%220%200%20768%20480%22%3E%3Cfilter%20id%3D%22g%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.78%22%20numOctaves%3D%223%22%20seed%3D%2219%22%20stitchTiles%3D%22noStitch%22%2F%3E%3C%2Ffilter%3E%3Cpath%20fill%3D%22%23808080%22%20d%3D%22M0%200h768v480H0z%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E") center / cover no-repeat;
}
.guide-mock { width: min(100%, 300px); padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgb(31 30 28 / 8%); }
.guide-mock-title { display: block; font-weight: 700; margin-bottom: 8px; }
.guide-mock-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--label); }
.guide-mock-status { margin-top: 8px; padding: 6px 8px; border-radius: 4px; color: var(--primary); background: var(--tint); font-size: var(--label); font-weight: 700; }
.guide-visual--receita .guide-mock-status { color: var(--success-ink); background: var(--success-bg); }
@media (min-width: 750px) {
  .guide-tabs { justify-content: flex-start; gap: 6px; }
  .guide-tabs button { flex: 0 1 auto; padding-inline: 22px; }
  .guide-slide { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); padding: 27px; }
  .guide-copy { padding: 16px; }
  .guide-visual { min-height: 260px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-slide:not([hidden]) .guide-copy { animation: appear 230ms ease-out; }
  .guide-slide:not([hidden]) .guide-mock { animation: appear 300ms 60ms ease-out both; }
  .guide-slide:not([hidden]) .guide-mock-status { animation: appear 260ms 330ms ease-out both; }
}

.manifesto {
  position: relative; display: grid; gap: 20px; align-items: center;
  margin-block: 35px; padding: 21px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--stone);
}
.manifesto-copy { position: relative; z-index: 1; }
.manifesto-copy p { max-width: 42ch; margin-top: 14px; }
.manifesto-image { display: block; width: 100%; height: auto; border-radius: 7px; }
@media (min-width: 900px) {
  .manifesto { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); padding: 39px 34px; gap: 12px; }
  .manifesto-copy h2 { max-width: 13ch; }
}

.manifesto-map { min-width: 0; margin: 0; }
.map-stage { position: relative; isolation: isolate; }
.map-spot { position: absolute; left: var(--pin-x); top: var(--pin-y); }
.map-spot[hidden], .map-toggle[hidden] { display: none; }
.map-spot--salao { --pin-x: 36%; --pin-y: 34%; }
.map-spot--entrega { --pin-x: 54%; --pin-y: 48%; }
.map-spot--barbearia { --pin-x: 72%; --pin-y: 28%; }
.map-spot--atelie { --pin-x: 64%; --pin-y: 51%; }
.map-pin {
  position: absolute; width: 13px; height: 13px; border: 2px solid white; border-radius: 50%;
  background: var(--primary); transform: translate(-50%,-50%); box-shadow: 0 0 0 4px rgb(255 255 255 / 30%);
}
.map-receipt {
  position: absolute; left: 9px; top: -5px; display: grid; min-width: 122px; gap: 3px;
  padding: 9px 10px 9px 31px; background: var(--surface); color: var(--ink); border-radius: 6px;
  box-shadow: 0 4px 12px rgb(31 30 28 / 23%); font-size: var(--caption); line-height: 1.3;
}
.map-receipt span { color: var(--muted); white-space: nowrap; }
.map-receipt .map-receipt-check { position: absolute; top: 10px; left: 9px; width: 15px; height: 15px; border-radius: 50%; background: var(--success-bg); color: var(--success-ink); }
.map-receipt-check::after { content: ""; position: absolute; inset: 4px 4px 5px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.map-receipt strong { color: var(--success-ink); font-size: var(--body); font-variant-numeric: tabular-nums; }
.map-spot:not(.map-spot--salao) .map-receipt { left: auto; right: 9px; }




@media (prefers-reduced-motion: no-preference) {
  .map-spot:not([hidden]) .map-receipt { animation: appear 260ms ease-out both; }
  .manifesto-map.is-playing .map-pin { animation: map-pulse 1.7s ease-out infinite; }
  @keyframes map-pulse {
    from { box-shadow: 0 0 0 1px rgb(255 255 255 / 70%); }
    to { box-shadow: 0 0 0 12px rgb(255 255 255 / 0%); }
  }
}

.autoplay-toggle {
  display: inline-grid; place-items: center; width: 40px; min-height: 40px;
  padding: 0; color: var(--primary); background: var(--surface);
}
.autoplay-toggle::before {
  content: ""; display: block; width: 13px; height: 14px; background: currentColor;
  clip-path: polygon(18% 0, 92% 50%, 18% 100%);
}
.autoplay-toggle[data-running="true"]::before {
  background: linear-gradient(90deg,currentColor 0 31%,transparent 31% 69%,currentColor 69%);
  clip-path: none;
}
.map-toggle { position: absolute; top: 7px; right: 7px; border-radius: 6px; }

.manifesto-image { border-radius: 0; }
.map-spot { z-index: 3; }
.map-toggle { z-index: 4; }
.map-art { overflow: visible; }
.shop-window { opacity: .4; }
.manifesto-map[data-scene="salao"] .map-shop--salao .shop-window,
.manifesto-map[data-scene="barbearia"] .map-shop--barbearia .shop-window,
.manifesto-map[data-scene="atelie"] .map-shop--atelie .shop-window { opacity: 1; }
.map-road-signal { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .shop-window { transition: opacity 400ms ease; }
  .map-road-signal { animation: map-signal 4s linear infinite paused; }
  .manifesto-map.is-playing .map-road-signal { animation-play-state: running; }
  .manifesto-map.is-playing .barber-stripe { animation: barber-sign 1.2s ease-in-out infinite alternate; }
  @keyframes map-signal { to { stroke-dashoffset: -247; } }
  @keyframes barber-sign { to { transform: translateY(2px); } }
}
.faq-photo-frame { position: relative; min-height: 200px; aspect-ratio: 3 / 2; margin-bottom: 16px; }
.faq-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 46%; border-radius: 8px;
}
@media (min-width: 900px) {
  .faq-intro { display: grid; grid-template-rows: auto minmax(230px,1fr); }
  .faq-photo-frame { margin: 0; aspect-ratio: auto; }
  .faq-questions { display: flex; flex-direction: column; justify-content: center; padding: 12px 26px; }
  .map-receipt { min-width: 154px; padding: 10px 13px 10px 34px; }
}
@media (max-width: 420px) {
  .map-receipt { padding-inline: 7px; min-width: 0; }
  .map-receipt .map-receipt-check { display: none; }
}
.hero-copy h1 .hero-title-line { color: var(--ink); white-space: nowrap; }
.headline-receipt, .headline-pin {
  display: inline-grid; place-items: center; position: relative; vertical-align: .12em;
}
.hero-copy h1 .headline-receipt {
  width: .75em; height: .54em; margin-right: .13em;
  border: 1px solid rgb(255 255 255 / 25%); border-radius: .15em; background: var(--primary); color: white;
  transform: rotate(-8deg); box-shadow: 0 3px 9px rgb(58 79 209 / 15%);
}
.headline-receipt svg { width: 82%; height: 82%; }
.headline-pin {
  vertical-align: .04em; width: .76em; height: .76em; margin-right: .13em;
  border-radius: .18em; color: var(--ink); background: var(--accent); transform: rotate(8deg);
}
.manifesto-place { white-space: nowrap; }
.headline-pin svg { width: 82%; height: 82%; }
@media (prefers-reduced-motion: no-preference) {
  .headline-receipt { animation: headline-receipt-in 490ms 130ms cubic-bezier(.24,.72,.27,1) both; }
  .headline-receipt-check { stroke-dasharray: 1; animation: ledger-draw 250ms 430ms ease-out both; }
  .manifesto:has(.manifesto-map.is-playing) .headline-pin { animation: headline-pin-in 440ms ease-out both; }
  @keyframes headline-receipt-in {
    from { opacity: 0; transform: translateY(9px) rotate(-17deg) scale(.8); }
    to { opacity: 1; transform: rotate(-8deg); }
  }
  @keyframes headline-pin-in {
    0% { transform: translateY(5px) rotate(2deg); }
    65% { transform: translateY(-3px) rotate(11deg); }
    100% { transform: rotate(8deg); }
  }
}

/* Section rhythm */
.hero-site { padding-block: clamp(48px, 7vw, 96px) clamp(44px, 6vw, 80px); }
.routine { padding-top: clamp(56px, 8vw, 104px); }
.routine-grid { gap: clamp(14px, 2vw, 24px); }
.help-layout { padding-block: clamp(58px, 8vw, 110px) clamp(30px, 5vw, 65px); }
.guides, .faq { padding-block: clamp(40px, 6vw, 72px); }
.manifesto { margin-block: clamp(42px, 6vw, 80px); gap: 22px; }
.final-band { margin-bottom: clamp(46px, 7vw, 90px); }
@media (min-width: 900px) {
  .manifesto { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); padding: 44px 38px; }
  .manifesto-copy { padding-left: 8px; }
}

.map-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.has-3d-map .map-art { opacity: 0; }

@media (min-width: 900px) {
  .manifesto {
    width: 100%; border: 0; border-radius: 0; background: transparent;
    grid-template-columns: minmax(255px, .64fr) minmax(0,1.36fr);
    padding: 0 0 0 max(48px,calc((100% - 1220px)/2)); gap: clamp(18px,3vw,44px);
  }
  .manifesto-copy { padding: 36px 0; }
  .manifesto-map {
    padding: 0 clamp(20px,4vw,65px) 22px 10px;
    border-radius: 18px 0 0 18px;
    background: radial-gradient(ellipse at 48% 47%, var(--surface),var(--stone) 73%);
  }
  .map-stage { height: clamp(350px,43vw,590px); }
  .manifesto-image { width: 100%; height: 100%; }
}
.map-canvas--svg { background-color: transparent !important; filter: drop-shadow(1px 3px 4px rgb(32 41 96 / 22%)); }

.brand-lines {
  height: 150px;
  margin: 4px auto clamp(36px,6vw,74px);
}
.brand-lines-canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 750px) {
  .brand-lines { height: clamp(190px,18vw,234px); }
}

@media (min-width: 900px) {
  .hero-site { grid-template-columns: minmax(0,.77fr) minmax(0,1.23fr); }
  .help-photo { min-height: 392px; }
}

.map-loading { display: none; }
.map-stage[data-map-state="loading"] .map-art,
.map-stage[data-map-state="loading"] .map-spot { visibility: hidden; }
.map-stage[data-map-state="loading"] .map-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: var(--label); pointer-events: none;
}

.manifesto {
  background: transparent; border: 0; border-radius: 0; padding: 0; gap: 22px;
}
.manifesto-copy {
  padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.manifesto-map {
  position: relative; min-width: 0; border-radius: 12px;
  background: radial-gradient(ellipse at 55% 46%, #f3f1ff, #e3e8fb 68%, #dce3f7);
  padding: 0 14px 14px;
}
.map-stage { min-height: 300px; }
.manifesto-image { width: 100%; height: 100%; min-height: 300px; }
@media (min-width: 900px) {
  .manifesto {
    width: 100%; min-height: 120svh; align-items: start;
    grid-template-columns: minmax(270px, 340px) minmax(0,1fr);
    padding-left: max(48px,calc((100% - 1220px)/2));
    gap: clamp(20px,3vw,42px);
  }
  .manifesto-copy { position: sticky; top: clamp(28px,12svh,110px); margin-block: 8svh; padding: 28px; }
  .manifesto-map { min-height: 120svh; border-radius: 16px 0 0 16px; padding: 0 24px 22px; }
  .manifesto-map .map-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; }

}

.hero-botanical { display: none; }

@media (min-width: 1024px) {
  .marketing { overflow-x: clip; }
  .hero-visual { isolation: isolate; }
  .hero-botanical {
    display: block;
    position: absolute;
    z-index: -1;
    top: clamp(-152px, -10vw, -100px);
    right: clamp(-225px, calc((1220px - 100vw) / 2 - 26px), -74px);
    width: clamp(310px, 35vw, 500px);
    height: auto;
    color: #e3d6c3;
    stroke: currentColor;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-botanical:not(.is-revealed) { visibility: hidden; }
    .hero-botanical.is-revealed { animation: hero-botanical-fade 2100ms ease-out both; }
    .hero-botanical.is-revealed path {
      stroke-dasharray: 1;
      animation: hero-botanical-draw 7800ms cubic-bezier(.28,.12,.42,1) 300ms both;
    }
    .hero-botanical.is-revealed path:nth-child(2) { animation-delay: 1050ms; }
    .hero-botanical.is-revealed path:nth-child(3) { animation-delay: 1500ms; }
    .hero-botanical.is-revealed path:nth-child(4) { animation-delay: 1200ms; }
    .hero-botanical.is-revealed circle { animation: hero-botanical-fade 1500ms ease-out 7350ms both; }
  }
}

@keyframes hero-botanical-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes hero-botanical-fade {
  from { opacity: 0; }
}

/* The street runs behind the manifesto, with room for both inside the block. */
.manifesto#bairro {
  margin-block-start: clamp(64px, 8vw, 112px);
  margin-block-end: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(440px, 59svh);
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 0;
  gap: 0;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  scroll-margin-top: 0;
}

#bairro .manifesto-map {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
#bairro .map-stage {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}
.bairro-defs { position: absolute; width: 0; height: 0; }
.bairro-art { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.bairro-art--wide { display: none; }
.bairro-art text { text-anchor: middle; font-size: 11px; font-weight: 700; fill: #292c46; }
#bairro .manifesto-copy {
  position: relative;
  z-index: 5;
  top: auto;
  align-self: start;
  justify-self: center;
  box-sizing: border-box;
  margin: 0 0 clamp(20px, 3vw, 44px);
  padding: clamp(12px, 2vw, 28px) 18px;
  background: transparent;
  border: 0;
}
#bairro .manifesto-copy h2 { max-width: 13ch; font-size: clamp(2.15rem, 4.1vw, 4rem); }
#bairro .manifesto-copy p { margin-block: 12px 0; }
#bairro .map-toggle { inset: auto 12px 12px auto; }

@media (max-width: 759px) {
  .manifesto#bairro { grid-template-rows: auto clamp(236px, 70vw, 340px); }
  #bairro .manifesto-copy { margin-block-end: 0; padding-block-end: 0; }
}





.faq#antes-de-comecar {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #232942;
  border: 0;
  border-radius: 16px;
}
#antes-de-comecar .faq-intro { position: relative; min-height: 420px; display: grid; align-items: end; }
#antes-de-comecar .faq-photo-frame { position: absolute; inset: 0; z-index: -1; border: 0; margin: 0; border-radius: 0; }
#antes-de-comecar .faq-photo { width: 100%; height: 100%; object-fit: cover; object-position: 7% center; }
#antes-de-comecar h2 {
  width: fit-content;
  margin: 0 18px 18px;
  color: #fff;
  text-shadow: 0 2px 18px rgb(16 22 36 / 72%);
}
#antes-de-comecar .faq-questions {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  background: #f9f7f0;
}

.site-footer {
  display: block;
  padding-block: 0;
  margin: clamp(50px, 8vw, 102px) clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  --footer-blue: #263a9c;
  background: var(--footer-blue);
  color: #eef1ff;
}
.site-footer .brand-lines { margin-block: 0; background: transparent; }
.site-footer .brand-lines-canvas { --primary: #dce4ff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-main { padding-block: 36px 20px; display: grid; gap: 36px; }
.footer-brand .wordmark { color: #fff; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.065em; }
.footer-brand .wordmark span { color: var(--accent); }
.footer-brand .primary { color: var(--footer-blue); background: #fff; border-color: #fff; }
.footer-brand .primary:is(:hover, :focus-visible) { color: var(--footer-blue); background: var(--tint); border-color: var(--tint); }
.site-footer .footer-brand p { color: inherit; max-width: 28ch; margin: 16px 0 20px; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.footer-main nav div { display: grid; align-content: start; gap: 12px; }
.footer-main nav strong { color: #fff; }
.footer-main nav a { color: inherit; text-underline-offset: 4px; }
.footer-main nav a:is(:hover, :focus-visible) { color: var(--footer-blue); background: var(--tint); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 28%); }

@media (min-width: 760px) {
  #antes-de-comecar { grid-template-columns: 1fr 1fr; min-height: clamp(560px,56vw,720px); }
  #antes-de-comecar .faq-intro { position: static; }
  #antes-de-comecar .faq-photo { object-position: left center; }
  #antes-de-comecar h2 { margin: 0 0 32px 32px; }
  #antes-de-comecar .faq-questions { align-self: end; margin: 24px; border-radius: 14px; }
  .footer-main { grid-template-columns: 1fr auto; align-items: end; }
  .footer-bottom { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .bairro-art--wide { display: block; }
  .bairro-art--narrow { display: none; }
  .manifesto#bairro { grid-template-rows: auto clamp(560px, 86svh, 920px); min-height: 0; }
  #bairro .manifesto-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-inline: 0;
    gap: 0;
  }
  #bairro .manifesto-copy h2 { margin-inline: 32px 0; }
  #bairro .manifesto-description { padding-inline: calc(25px + clamp(18px, 3vw, 34px));
  }
  #bairro .manifesto-description p:first-child { margin-top: 0; }
}

#bairro .manifesto-map { align-self: stretch; grid-template-rows: minmax(0, 1fr); }

#antes-de-comecar .faq-photo-frame { aspect-ratio: auto; overflow: hidden; }
#antes-de-comecar .faq-photo-frame::after {
  z-index: 4;
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to top, rgb(16 22 36 / 67%), transparent);
}
@media (min-width: 760px) {
  #antes-de-comecar .faq-photo-frame::after {
    background: radial-gradient(ellipse at bottom left, rgb(16 22 36 / 70%), transparent 70%);
  }
}
#antes-de-comecar .faq-photo {
  border-radius: 0;
  transform: scale(1.24);
  transform-origin: 48% 24%;
}
@media (min-width: 760px) {
  #antes-de-comecar .faq-photo {
    transform: scale(1.43);
    transform-origin: 24% 23%;
  }
}
#antes-de-comecar .faq-intro { grid-template-rows: 1fr; }

.map-cta {
  display: grid;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 16px;
  background: var(--tint);
}
.map-cta h2 {
  max-width: 31ch;
  font-size: clamp(1.75rem, 3.1vw, 2.85rem);
  text-wrap: balance;
}
.map-cta-brand { white-space: nowrap; }
.map-cta p { margin: 12px 0 0; }
.map-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-cta-actions .button { min-height: 46px; }
@media (min-width: 900px) {
  .map-cta { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  .map-cta-actions { justify-content: flex-end; }
}

.work-gallery {
  --gallery-message-gap: clamp(36px, 4vw, 60px);
  margin-block: clamp(64px, 10vw, 144px);
}
.work-gallery-stage { position: relative; isolation: isolate; }
.work-gallery-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  gap: clamp(28px, 5vw, 76px);
  margin: 0;
  padding: 18px;
  list-style: none;
}
.work-gallery-track li {
  height: clamp(180px, 23vw, 290px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--stone);
}
.is-scroll-gallery::after {
  content: "";
  display: block;
  height: var(--gallery-scroll-distance, 0px);
}
.is-scroll-gallery .work-gallery-stage {
  position: sticky;
  top: 0;
  overflow: clip;
}
.is-scroll-gallery .work-gallery-track {
  width: max-content;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(205px, 65vw, 365px);
  padding: clamp(22px, 6svh, 64px) 18px calc(clamp(110px, 28svh, 260px) + var(--gallery-message-gap));
  transform: translateX(var(--gallery-shift, 0px));
}
.is-scroll-gallery .work-gallery-track li {
  height: clamp(165px, 38svh, 385px);
  opacity: var(--gallery-card-opacity, 1);
  transform:
    translate(var(--gallery-arc-x, 0px), var(--gallery-arc-y, 0px))
    rotate(var(--gallery-arc-angle, 0rad));
}
.work-gallery-track img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .work-gallery-track img {
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1),
      filter 520ms cubic-bezier(.22, 1, .36, 1);
  }
  .work-gallery-track:has(li:hover) li:not(:hover) img { filter: saturate(.74); }
  .work-gallery-track li:hover img { transform: scale(1.07); }
}
.work-gallery-track .work-gallery-borracheiro { object-position: center 24%; }
.work-gallery-track .work-gallery-programador { object-position: center; scale: 1.12; transform-origin: 62% 44%; }
.work-gallery-track li:has(.work-gallery-programador) { position: relative; isolation: isolate; }
.work-gallery-track li:has(.work-gallery-programador)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/granulado.png") repeat;
  mix-blend-mode: soft-light;
  opacity: .13;
  pointer-events: none;
}
.work-gallery-message {
  position: relative;
  width: min(440px, calc(100% - 36px));
  box-sizing: border-box;
  margin-inline: auto;
  padding: 16px clamp(18px, 3vw, 30px);
  text-align: center;
  color: var(--ink);
  pointer-events: none;
}
.work-gallery-flag { display: block; width: 24px; height: auto; margin: 10px auto 0; }
.work-gallery-message .wordmark { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
.work-gallery-message h2 {
  max-width: 23ch;
  margin: 5px auto 0;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: -.043em;
  line-height: 1.12;
}
.work-gallery:not(.is-scroll-gallery) .work-gallery-message { margin-block-start: var(--gallery-message-gap); }
.is-scroll-gallery .work-gallery-message { position: absolute; inset: auto 0 4px; }

@media (min-width: 760px) {
  .is-scroll-gallery .work-gallery-track { grid-auto-columns: clamp(285px, 26vw, 440px); }
  .is-scroll-gallery .work-gallery-message { bottom: 24px; }
}

.brand-lines { position: relative; }
.brand-lines .brand-lines-point {
  --dot-size: clamp(26px, 3vw, 36px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  perspective: 210px;
}
@media (max-width: 759px) {
  .brand-lines .brand-lines-point {
    --dot-size: 42px;
    width: 72px;
    height: 72px;
  }
}
.brand-lines-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--dot-size);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8%;
  border-radius: 12%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  z-index: 1;
}
.brand-lines-dot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #bd443a;
  transform: rotateX(-90deg);
  transform-origin: top;
  opacity: 0;
}
.brand-lines-shop {
  position: absolute;
  top: calc(50% - var(--dot-size) * .34);
  left: 50%;
  width: calc(var(--dot-size) * .94);
  height: calc(var(--dot-size) * .75);
  overflow: hidden;
  border-radius: 0 0 3px 3px;
  background: #fff3de;
  box-shadow: inset 0 -3px #dbc2a9;
  opacity: 0;
  transform: translate(-50%, -10%) rotateY(-32deg) scale(.85);
  transform-origin: top;
}
.brand-lines-shop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14%, #fff8ef 14% 28%);
}
.brand-lines-shop::after {
  content: "";
  position: absolute;
  inset: 45% 16% 0;
  background:
    linear-gradient(#3349ad 0 0) left top / 35% 65% no-repeat,
    linear-gradient(#3349ad 0 0) right bottom / 39% 100% no-repeat;
}
.brand-lines-point[aria-pressed="true"] .brand-lines-dot {
  transform: translate(-50%, -50%) translateY(calc(var(--dot-size) * -.38)) rotateX(86deg);
  border-radius: 2px;
}
.brand-lines-point[aria-pressed="true"] .brand-lines-dot::after { opacity: 1; }
.brand-lines-point[aria-pressed="true"] .brand-lines-eye { opacity: 0; }
.brand-lines-point[aria-pressed="true"] .brand-lines-shop {
  opacity: 1;
  transform: translate(-50%, 0) rotateY(0deg) scale(1);
}
@media (prefers-reduced-motion: no-preference) {
  .brand-lines-dot { transition: transform 480ms cubic-bezier(.22, 1, .36, 1); }
  .brand-lines-shop { transition: transform 300ms ease, opacity 160ms ease; }
  .brand-lines-eye, .brand-lines-dot::after { transition: opacity 120ms ease; }
}
.brand-lines-eye {
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: .84;
  border-radius: 50%;
  background: #fff8ef;
}
.brand-lines-eye i {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .brand-lines-eye i {
    transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
    transition: transform 120ms ease-out;
  }
  .brand-lines-point.is-visible .brand-lines-eye {
    animation: brand-point-blink 6s ease-in-out infinite;
  }
  @keyframes brand-point-blink {
    0%, 43%, 48%, 100% { transform: scaleY(1); }
    45%, 46% { transform: scaleY(.08); }
  }
}


@media (prefers-reduced-motion: no-preference) {
  #bairro .manifesto-copy {
    opacity: var(--manifesto-opacity, 1);
    transform: translateY(var(--manifesto-rise, 0px));
  }
}

.guide-tabs button {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 6px;
  min-height: 93px;
  padding: 8px 5px 12px;
}
.guide-tabs [aria-selected="true"] { min-height: 96px; }
.guide-tab-icon {
  --icon-light: #eef1ff;
  --icon-tint: #cbd4ff;
  --icon-ink: #3448b2;
  --icon-shadow: rgb(58 79 209 / 28%);
  display: grid;
  place-items: center;
  width: clamp(35px, 10vw, 48px);
  aspect-ratio: 1;
  border: 1px solid var(--icon-tint);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--icon-light), var(--icon-tint));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 2px 0 var(--icon-tint), 0 4px 8px var(--icon-shadow);
}
.guide-tab-icon--das {
  --icon-light: #fff8e5;
  --icon-tint: #f6dda5;
  --icon-ink: #875210;
  --icon-shadow: rgb(165 104 26 / 25%);
}
.guide-tab-icon--nota {
  --icon-light: #fff1e9;
  --icon-tint: #f7cbbb;
  --icon-ink: #a74131;
  --icon-shadow: rgb(173 71 49 / 25%);
}
.guide-tab-icon svg { width: 84%; height: 84%; overflow: visible; }
.guide-icon-back { fill: var(--icon-tint); stroke: var(--icon-ink); stroke-opacity: .45; }
.guide-icon-paper { fill: #fffefa; stroke: var(--icon-ink); stroke-width: 1.25; stroke-linejoin: round; }
.guide-icon-ink, .guide-icon-white { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-icon-ink { stroke: var(--icon-ink); }
.guide-icon-white { stroke: white; }
.guide-icon-badge { fill: var(--icon-ink); }
.guide-tabs [aria-selected="true"] .guide-tab-icon {
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 var(--icon-tint), 0 7px 13px var(--icon-shadow);
}
@media (min-width: 750px) {
  .guide-tabs button {
    grid-template: auto / auto 1fr;
    justify-items: start;
    gap: 12px;
    min-height: 66px;
    padding: 8px 18px 12px;
  }
  .guide-tabs [aria-selected="true"] { min-height: 70px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-tab-icon { transition: transform 220ms ease-out, box-shadow 220ms ease-out; }
  .guide-tabs [aria-selected="true"] .guide-tab-icon { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .help-official-icon:is(.is-waiting, .is-drawing) path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .help-official-icon.is-drawing path { animation: hero-botanical-draw 760ms ease-in-out both; }
  .help-official-icon.is-drawing path:nth-child(2) { animation-delay: 160ms; }
  .help-official-icon.is-drawing path:nth-child(3) { animation-delay: 320ms; }
}

@media (max-width: 759px) {
  .work-gallery-track { gap: clamp(40px, 10vw, 60px); }
  .is-scroll-gallery .work-gallery-track { grid-auto-columns: clamp(118px, 39vw, 204px); }
  .work-gallery-track li, .is-scroll-gallery .work-gallery-track li {
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .work-gallery-track img { object-position: center; }
}

.routine-icon {
  background: linear-gradient(145deg, #657be7, #3045b5);
  border: 1px solid rgb(255 255 255 / 56%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 34%),
    0 2px 0 #263a9c, 0 8px 17px rgb(25 36 93 / 35%);
}
.hero-copy h1 .headline-receipt {
  background: linear-gradient(145deg, #6279eb, #3249c6);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 34%),
    0 2px 0 #263a9c, 0 7px 16px rgb(58 79 209 / 22%);
}
.headline-pin {
  color: #853725;
  background: linear-gradient(145deg, #ffdfd1, #f2a88f);
  border: 1px solid #f3b49e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%),
    0 2px 0 #de9178, 0 5px 12px rgb(173 71 49 / 23%);
}

@media (width < 900px) {
  .routine-card { grid-template-columns: auto minmax(0, 1fr); }
  .routine-card img { display: none; }
  .routine-media { margin: 19px 0 0 19px; overflow: visible; }
  .routine-card .routine-media .routine-icon {
    position: static; width: 48px; height: 48px; padding: 9px; transform: none;
  }
  .headline-pin { width: .95em; height: .95em; }
}

.footer-brand .dot-mei-logo .dot-mei-name { color: inherit; }

/* Word wrappers preserve wrapping; letters emerge individually from blur. */
.marketing main :is(h1, h2) .title-word { display: inline-block; white-space: nowrap; color: inherit; }
.marketing main :is(h1, h2) .title-char { display: inline-block; color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .marketing main .title-awaiting .title-char { opacity: 0; filter: blur(10px); transform: translateY(.22em); }
  .marketing main .title-entering .title-char:not(.is-letter-visible) {
    animation: title-letter-entrance 540ms cubic-bezier(.22, 1, .36, 1) var(--letter-delay) both;
  }
}
@keyframes title-letter-entrance {
  from { opacity: 0; filter: blur(10px); transform: translateY(.22em); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* A softer disclosure for the Ponto card near the footer. */
.marketing .ponto-tip { overflow: hidden; }
.marketing .ponto-tip summary { position: relative; padding-right: 2rem; list-style: none; }
.ponto-tip summary::-webkit-details-marker { display: none; }
.ponto-tip summary::after { content: ''; position: absolute; right: .25rem; top: calc(50% - 5px); width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.ponto-tip[open]:not([data-expanded]) summary::after,
.ponto-tip[data-expanded="true"] summary::after { transform: translateY(4px) rotate(225deg); }
.marketing .ponto-tip[open] > .ponto-tip-answer { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .ponto-tip summary { transition: color 220ms ease; }
  .ponto-tip summary::after { transition: transform 360ms cubic-bezier(.22, 1, .36, 1); }
  .ponto-tip-answer { transition: opacity 250ms ease, transform 380ms cubic-bezier(.22, 1, .36, 1); }
  .ponto-tip[data-expanded="false"] .ponto-tip-answer { opacity: 0; transform: translateY(-6px); }
  .ponto-tip[data-expanded="true"] .ponto-tip-answer { opacity: 1; transform: translateY(0); }
  .ponto-preview:has(.ponto-tip[data-expanded="false"]) .ponto-render { transform: none; }
}
@media (hover: hover) { .ponto-tip summary:hover { color: var(--primary); } }
