:root {
  --ink: #1c1a17;
  --paper: #f4efe6;
  --paper-2: #ece4d6;
  --line: #e2d8c6;
  --brass: #b08543;
  --brass-deep: #8a6529;
  --muted: #6b6459;
  --fraque: #1f1d18;
  --on-dark: #f0e9dc;
  --on-dark-muted: #a79d8c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: min(1000px, 100%); margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; border-radius: 10px; padding: 0.8rem 1.5rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--brass-deep); color: var(--paper); }
.btn-primary:hover { background: #74531f; }
.btn-ghost-dark { color: var(--on-dark); border-color: rgba(240,233,220,0.28); }
.btn-ghost-dark:hover { border-color: rgba(240,233,220,0.6); }

/* Brasão */
.crest {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper);
  background: linear-gradient(155deg, var(--brass) 0%, var(--brass-deep) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 30px -12px rgba(138,101,41,0.7);
}
.crest svg { width: 32px; height: 32px; }

/* HERO — superfície fraque */
.hero {
  background: radial-gradient(120% 90% at 50% -20%, #2a251d 0%, var(--fraque) 60%);
  color: var(--on-dark);
  text-align: center;
  padding: 4rem 0 4.5rem;
}
.hero .brand { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-bottom: 2rem; }
.hero .wordmark { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 16ch; margin: 0 auto 1.1rem;
}
.hero .sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--on-dark-muted); max-width: 52ch; margin: 0 auto 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.cta-note { margin-top: 1rem; font-size: 0.85rem; color: var(--on-dark-muted); }

/* Faixa de introdução */
.intro { padding: 3.5rem 0; }
.intro p {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.3; letter-spacing: -0.01em;
  max-width: 24ch;
}
.intro .accent { color: var(--brass-deep); }

/* Seção */
.section { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); }
.section h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 2rem;
}

/* "Livro de tarefas" — sem cards flutuantes, divisórias tipo ledger */
.duties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.duty { display: flex; gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.duty:nth-child(-n+2) { border-top: 0; }
@media (max-width: 640px) {
  .duties { grid-template-columns: 1fr; }
  .duty { border-top: 1px solid var(--line); }
  .duty:first-child { border-top: 0; }
}
.duty .ic { flex: none; width: 34px; height: 34px; color: var(--brass-deep); }
.duty .ic svg { width: 34px; height: 34px; }
.duty h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; font-weight: 600; margin-bottom: 0.2rem; }
.duty p { color: var(--muted); font-size: 0.95rem; }

/* Para quem — trio, sem numeração */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 640px) { .how { grid-template-columns: 1fr; } }
.how h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.how p { color: var(--muted); font-size: 0.95rem; }

/* CTA final — fraque de novo (bookend) */
.cta-band { background: var(--fraque); color: var(--on-dark); text-align: center; padding: 3.5rem 0; }
.cta-band h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; max-width: 20ch; margin-inline: auto; }

/* Rodapé */
footer { padding: 2.5rem 0; color: var(--muted); font-size: 0.88rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
footer a { color: var(--brass-deep); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
.langs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.langs a { color: var(--muted); font-weight: 500; text-decoration: none; }
.langs a[aria-current="true"] { color: var(--brass-deep); font-weight: 700; }
.langs a:hover { color: var(--brass-deep); }

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

/* Landing pages de módulo */
a.brand { text-decoration: none; }
.crumbs { padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--brass-deep); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 65ch; display: flex; flex-direction: column; gap: 1rem; font-size: 1.05rem; }
.faq { max-width: 70ch; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; font-weight: 600; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }
.related { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.related a {
  display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--brass-deep); font-weight: 600; text-decoration: none; background: var(--paper-2);
}
.related a:hover { border-color: var(--brass); }
.duty h3 a { text-decoration: none; }
.duty h3 a:hover { color: var(--brass-deep); text-decoration: underline; }

/* Páginas legais: Privacidade e Termos (#legal) */
.legal { padding: 1rem 0 3rem; }
.legal h1 { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; margin: 0.5rem 0 0.25rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal section { display: flex; flex-direction: column; gap: 0.75rem; scroll-margin-top: 1rem; }
.legal h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal a { color: var(--brass-deep); font-weight: 600; }
.legal-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Vitrine: print real do app. O celular fica sobre a barra lateral do print desktop, que é a parte
   que menos informa, e sai pela esquerda do quadro em vez de cobrir o conteúdo (#181). */
.showcase-band { padding: 2.5rem 0 1rem; }
.showcase { position: relative; margin: 0 auto; max-width: 980px; padding: 0 0 2rem 6%; }
.frame-browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -30px rgba(28,26,23,.45); }
.frame-browser .dots { display: flex; gap: 6px; padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.frame-browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-browser img, .frame-phone img { display: block; width: 100%; height: auto; }
/* Recorta o vazio de baixo das telas com pouco conteúdo. */
.frame-browser img { aspect-ratio: 1440 / 800; object-fit: cover; object-position: top; }
.frame-phone { position: absolute; left: 0; bottom: 0; width: 23%; border: 6px solid var(--fraque); border-radius: 26px; overflow: hidden; background: var(--fraque); box-shadow: 0 20px 40px -18px rgba(28,26,23,.6); }
.tour-link { text-align: center; margin: 0; }
.tour-link a:not(.btn) { color: var(--brass-deep); font-weight: 600; }
@media not all and (min-width: 768px) {
  .frame-browser { display: none; }
  .showcase { padding: 0; }
  .frame-phone { position: static; width: min(260px, 72%); margin: 0 auto; }
}
/* Tela sem print ainda (#595): duas maquetes de celular lado a lado, sem o navegador. */
.showcase.showcase-pair { display: flex; justify-content: center; align-items: flex-start; gap: 2.5rem; padding: 0 0 2rem; }
.showcase-pair .frame-phone { position: static; width: min(260px, 44%); margin: 0; }
@media not all and (min-width: 768px) {
  .showcase.showcase-pair { gap: 1rem; padding: 0 0 1.5rem; }
}

/* "Como funciona" numerado das páginas de módulo (#595) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; padding: 0; margin: 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 1rem; } }
.steps li { display: flex; align-items: center; gap: 0.9rem; }
.steps .step-n { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brass-deep); color: var(--paper); font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; }
.steps p { font-size: 1.02rem; }

/* Tour "Como funciona": a casa é apresentada saindo do fraque (#181) */
.tour-hero { padding-bottom: 14.5rem; }
.tour-hero .brand { margin-bottom: 1.5rem; }
.tour-hero .crest { width: 48px; height: 48px; }
.tour-hero .crest svg { width: 24px; height: 24px; }
.tour-lead { margin-top: -10rem; padding-bottom: 3.5rem; }
.tour-lead .container { width: min(1120px, 100%); }
.showcase-lead { max-width: 1040px; padding-left: 5%; }
.showcase-lead .frame-browser { border-color: rgba(240,233,220,.16); box-shadow: 0 40px 90px -40px rgba(0,0,0,.75); }
/* A tela inicial tem pouco conteúdo: recorte logo abaixo dos cartões, no navegador e no celular. */
.showcase-lead { padding-bottom: 0; }
.showcase-lead .frame-browser img { aspect-ratio: 1440 / 560; }
.showcase-lead .frame-phone { width: 19%; bottom: -2.5rem; }
.showcase-lead .frame-phone img { aspect-ratio: 780 / 1240; object-fit: cover; object-position: top; }
.tour-lead .stop-text { text-align: center; max-width: 46ch; margin: 4rem auto 0; }
.tour-lead .stop-icon { margin: 0 auto; }

.tour-index { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour-index ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; padding: 1.1rem 0; }
.tour-index a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; text-decoration: none; font-weight: 500; color: var(--ink); }
.tour-index a:hover { color: var(--brass-deep); }
.tour-index svg { width: 18px; height: 18px; color: var(--brass-deep); }

.tour { padding: 1rem 0 3rem; }
.tour .container, .tour-index .container { width: min(1180px, 100%); }
.stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: 3rem; align-items: center; padding: 4rem 0; scroll-margin-top: 1rem; }
.stop:nth-of-type(even) { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.stop:nth-of-type(even) .stop-text { order: 2; }
.stop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fbf8f2; color: var(--brass-deep); }
.stop-icon svg { width: 22px; height: 22px; }
.stop-text h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 1rem 0 .7rem;
}
.stop-text p { color: var(--muted); max-width: 46ch; margin: 0 0 1rem; }
.tour-lead .stop-text p { margin-left: auto; margin-right: auto; }
.stop-more { color: var(--brass-deep); font-weight: 600; text-underline-offset: 3px; }
.tour-index a:focus-visible, .stop-more:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 4px; }

.tour-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.75rem 2rem; border-radius: 14px; background: var(--paper-2); }
.tour-mid p { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; line-height: 1.3; max-width: 34ch; }

.tour-also { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .5rem 1.25rem; margin-top: 2rem; padding-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.tour-also strong { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--ink); }
.tour-also ul { list-style: none; display: contents; }
.tour-also li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-right: .5rem; vertical-align: middle; }

/* Até ~1000 px o texto ao lado do print fica espremido: uma coluna, texto antes do print. */
@media (max-width: 1000px) {
  .stop, .stop:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.75rem; padding: 3rem 0; }
  .stop:nth-of-type(even) .stop-text { order: 0; }
  .stop .showcase { width: 100%; max-width: 720px; margin: 0; }
}
@media not all and (min-width: 768px) {
  .tour-hero { padding-bottom: 9rem; }
  .tour-lead { margin-top: -7rem; }
  .showcase-lead .frame-phone { width: min(260px, 72%); bottom: auto; }
  .tour-lead .stop-text { margin-top: 2rem; }
  .tour-index ul { justify-content: flex-start; gap: .25rem 1.25rem; }
  .tour-mid { padding: 1.5rem; }
}
/* Hero (#440): o tour vira botão e o selo da loja fica do lado, na mesma altura; o link para a
   página dos apps vai embaixo, discreto. */
.hero-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin: 1.5rem 0 0; }
.hero-tour-btn { display: inline-flex; align-items: center; gap: .65rem; height: 48px; padding: 0 1.2rem 0 .45rem; border-radius: 999px; border: 1px solid rgba(176, 133, 67, .55); background: rgba(240, 233, 220, .05); color: var(--on-dark); font-weight: 600; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.hero-tour-btn:hover { background: rgba(240, 233, 220, .1); border-color: var(--brass); }
.hero-tour-btn:active { transform: translateY(1px); }
.hero-tour-play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brass); color: var(--fraque); flex: none; }
.hero-tour-play svg { width: 16px; height: 16px; margin-left: 2px; }
.hero-tour-btn:hover .hero-tour-play { background: #c4995a; }
.hero-next .store-badge { border-radius: 10px; transition: transform .2s; }
.hero-next .store-badge:hover { transform: translateY(-1px); }
.hero-next .store-badge-apple img { height: 48px; }
.hero-app-link { margin: .85rem 0 0; font-size: .95rem; }
.hero-app-link a { color: var(--on-dark-muted); text-decoration: none; border-bottom: 1px solid rgba(240, 233, 220, .25); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.hero-app-link a:hover { color: var(--on-dark); border-color: var(--on-dark); }
@media (prefers-reduced-motion: reduce) { .hero-tour-btn, .hero-next .store-badge { transition: none; } }
.duties + .tour-link { margin-top: 1.75rem; }

/* Home: faixa de chamada para o tour (#183) — o fraque do hero volta no meio da página */
.home-tour { background: var(--fraque); color: var(--on-dark); padding: 4.5rem 0; overflow: hidden; }
.home-tour .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.home-tour h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: .9rem; }
.home-tour p { color: var(--on-dark-muted); max-width: 42ch; margin-bottom: 1.75rem; }
.home-tour-phones { display: flex; justify-content: center; gap: 4%; }
.home-tour-phones img { width: 30%; height: auto; border: 5px solid #3a342b; border-radius: 22px; background: #3a342b; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.home-tour-phones img:nth-child(2) { transform: translateY(-1.75rem); }

/* Home: temas (páginas de campanha) */
.home-topics ul { list-style: none; display: grid; gap: 1.25rem; }
.home-topics a { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--brass-deep); text-underline-offset: 3px; }
.home-topics span { display: block; color: var(--muted); }

@media (max-width: 860px) {
  .home-tour .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-tour-phones img:nth-child(2) { transform: translateY(-1rem); }
}

/* Página dos apps (#228): celular com aviso no hero, o dia pelo horário, as duas plataformas */
.app-hero { text-align: left; padding: 3.5rem 0 0; overflow: hidden; }
.app-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: end; }
.app-hero .brand { flex-direction: row; align-items: center; margin-bottom: 2.5rem; }
.app-hero .crest { width: 44px; height: 44px; }
.app-hero .crest svg { width: 22px; height: 22px; }
.app-hero h1 { margin: 0 0 1.1rem; max-width: 14ch; }
.app-hero .sub { margin: 0 0 2rem; }
.app-hero .cta-row { justify-content: flex-start; }
.app-hero-text { padding-bottom: 4rem; }

.app-phone {
  position: relative; margin: 0; width: 100%; max-width: 300px; justify-self: center;
  padding: 9px; border-radius: 46px; background: #0f0e0c;
  box-shadow: 0 0 0 1px rgba(240,233,220,0.12), 0 30px 60px -20px rgba(0,0,0,0.55);
}
.app-phone img { display: block; width: 100%; height: auto; border-radius: 38px; }
/* No hero o celular sai pela base da faixa escura: a parte de baixo fica cortada de propósito */
.app-hero .app-phone { max-width: 330px; margin-bottom: -9rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* O aviso que chega: o único movimento da página */
.app-notice {
  position: absolute; z-index: 1; left: 6%; right: 6%; top: 6.5%;
  display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 0.85rem;
  border-radius: 20px; color: var(--ink); text-align: left;
  background: rgba(250,247,241,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(28,26,23,0.45);
  animation: app-notice-in 0.7s cubic-bezier(.2,.8,.2,1) 0.6s both;
}
.app-notice-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--paper); background: linear-gradient(155deg, var(--brass) 0%, var(--brass-deep) 100%);
}
.app-notice-icon svg { width: 20px; height: 20px; }
.app-notice-text { display: flex; flex-direction: column; min-width: 0; font-size: 0.85rem; line-height: 1.3; }
.app-notice-head { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); font-size: 0.75rem; }
.app-notice-head b { color: var(--ink); font-weight: 600; }
.app-notice-text > b { font-weight: 600; margin-top: 0.1rem; }
@keyframes app-notice-in {
  from { opacity: 0; transform: translateY(-140%) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .app-notice { animation: none; } }

/* O dia pelo horário: a linha à esquerda liga as horas */
.app-day { border-top: 0; }
.app-stops { list-style: none; position: relative; }
.app-stops::before { content: ""; position: absolute; left: 3.1rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.app-stop { display: grid; grid-template-columns: 6.2rem minmax(0, 42ch) 170px; justify-content: start; gap: 2rem 3.5rem; align-items: center; padding: 1.5rem 0; }
.app-time {
  position: relative; justify-self: center; padding: 0.35rem 0; background: var(--paper);
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.7rem; color: var(--brass-deep);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.app-stop-text { max-width: 42ch; }
.app-stop h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.5rem; }
.app-stop p { color: var(--muted); }
.app-stop .app-phone { max-width: 170px; padding: 6px; border-radius: 28px; box-shadow: 0 24px 40px -22px rgba(28,26,23,0.5); }
.app-stop .app-phone img { border-radius: 23px; }

/* Selos das lojas: o PNG do Google Play tem margem transparente; a altura compensa para os dois
   selos terem a mesma altura visível (diretrizes da Apple e do Google) */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.store-badge { display: block; line-height: 0; border-radius: 9px; }
.store-badge img { display: block; width: auto; }
.store-badge-play img { height: 62px; margin: 0 -3px; }
.store-badge-apple img { height: 46px; }
.app-platforms .store-badges { justify-content: center; }
.app-web { margin-top: 2.5rem; color: var(--on-dark-muted); font-size: 0.95rem; }
.app-web a { color: var(--on-dark); font-weight: 600; }

@media (max-width: 760px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .app-hero-text { padding-bottom: 0; }
  .app-hero .app-phone { max-width: 270px; margin-bottom: -8rem; }
  .app-stops::before { left: 0; }
  .app-stop { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem 0 1.75rem 1.25rem; }
  .app-time { justify-self: start; font-size: 1.4rem; }
  .app-time::before { content: ""; position: absolute; left: -1.25rem; top: 50%; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brass); }
  .app-stop .app-phone { justify-self: start; max-width: 170px; }
}

/* Novidades (#393): itens por mês. */
.news-month { margin: 2.5rem 0 0; }
.legal.news .news-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.legal.news .news-item { margin: 0; }
.news-item { background: #fff; border: 1px solid var(--line, #e2d8c6); border-radius: 14px; padding: 1rem 1.25rem; }
.news-item h3 { margin: .35rem 0 .25rem; font-size: 1.1rem; }
.news-item p { margin: 0; }
.news-kind { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8a6529; }
.news-meta { margin-top: .4rem !important; font-size: .85rem; color: #6b6459; }
.news-fixes { margin: 1rem 0 0; font-size: .9rem; color: #6b6459; }
.news-empty { margin: 2rem 0; color: #6b6459; }

/* Alf se apresenta no topo da home (#422). */
.alf-hello { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 1.25rem auto .5rem; max-width: 30rem; }
.alf-medal { width: 104px; height: 104px; flex: none; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.alf-bubble { position: relative; margin: 0; padding: .7rem 1rem; background: #f4efe6; color: #1c1a17; border-radius: 16px; font-size: .98rem; line-height: 1.4; text-align: left; }
.alf-bubble::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #f4efe6; }
@media (prefers-reduced-motion: no-preference) {
  .alf-medal { animation: alf-in .6s ease-out both; }
  .alf-bubble { animation: alf-in .6s .25s ease-out both; }
  @keyframes alf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Alf flutuante, "Pergunte ao Alf" (#422): só no computador, no canto, depois do topo. */
.alf-float { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.alf-float[hidden] { display: none; }
.alf-launch { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: #1c1a17; color: #f4efe6; font: 600 .95rem/1 Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(28,26,23,.35); }
.alf-launch:focus-visible { outline: 3px solid #b08543; outline-offset: 3px; }
.alf-launch-art { width: 64px; height: 64px; flex: none; }
.alf-panel { width: 340px; max-height: 70vh; overflow: auto; background: #fffaf2; color: #1c1a17; border: 1px solid #e2d8c6; border-radius: 18px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(28,26,23,.25); }
.alf-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-family: Fraunces, Georgia, serif; font-size: 1.15rem; }
.alf-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #6b6459; padding: 2px 6px; border-radius: 8px; }
.alf-close:focus-visible { outline: 2px solid #b08543; }
.alf-q { border-top: 1px solid #e2d8c6; padding: 10px 0; }
.alf-q summary { cursor: pointer; font-weight: 600; }
.alf-q p { margin: .4rem 0 0; color: #3d3730; font-size: .95rem; }
.alf-q a { color: #8a6529; font-weight: 600; }
@media (max-width: 959px) { .alf-float { display: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .alf-launch-art { animation: alf-float 3.2s ease-in-out infinite; }
  @keyframes alf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
}

/* Página de erro (#422): o Alf "ops" e o caminho de volta. */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.not-found .alf-ops { width: 180px; height: auto; margin: 0 auto 1rem; display: block; }
.not-found h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .5rem; text-wrap: balance; }
.not-found p { color: #6b6459; margin: 0 auto 1.5rem; max-width: 34rem; }
.not-found .cta-row { justify-content: center; }
.tour-hero .alf-hello { margin-top: 0; }
.not-found .btn-ghost { color: #1c1a17; border: 1px solid #d8ccb6; background: transparent; }
.not-found .btn-ghost:hover { border-color: #b08543; }

/* Rotina visual e apoio (#471): topo em duas colunas, com a demonstração do "agora / depois". */
.rv-hero { text-align: left; padding: 3.5rem 0 4rem; }
.rv-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3.5rem; align-items: center; }
.rv-hero .brand { align-items: flex-start; flex-direction: row; gap: .8rem; margin-bottom: 2.25rem; text-decoration: none; }
.rv-hero .brand .crest { width: 48px; height: 48px; }
.rv-hero .brand .crest svg { width: 24px; height: 24px; }
.rv-hero .brand .wordmark { align-self: center; }
.rv-hero h1 { margin: 0 0 1.1rem; max-width: 15ch; }
.rv-hero .sub { margin: 0 0 2rem; max-width: 46ch; }
.rv-hero .cta-row { justify-content: flex-start; align-items: center; }
.rv-hero .store-badge img { height: 48px; width: auto; }

/* A demonstração imita a tela do app: papel claro, contraste alto e alvos grandes. */
.rv-demo { margin: 0; }
.rv-screen {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 1.4rem 1.4rem 1.5rem;
  border: 6px solid #2c2720; box-shadow: 0 30px 60px -28px rgba(0,0,0,.75);
  min-height: 27rem;
}
.rv-progress { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.rv-label { display: block; font-size: .95rem; font-weight: 600; color: var(--brass-deep); }
.rv-now { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 1.25rem 1rem 1.4rem; border-radius: 20px; background: #fff; border: 2px solid var(--brass); }
.rv-pic { font-size: 5.5rem; line-height: 1.1; }
.rv-text { font-family: "Fraunces", Georgia, serif; font-size: 1.65rem; font-weight: 600; line-height: 1.15; }
.rv-next { padding: .75rem 1rem; border-radius: 14px; background: var(--paper-2); }
.rv-next .rv-label { color: var(--muted); font-size: .85rem; }
.rv-next-row { font-size: 1.05rem; font-weight: 500; }
.rv-done {
  margin-top: auto; width: 100%; min-height: 64px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--brass-deep); color: var(--paper); font: 600 1.35rem/1 "Inter", system-ui, sans-serif;
}
.rv-done:hover { background: #74531f; }
.rv-done:focus-visible, .rv-again:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.rv-cheer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; border-radius: 22px; background: var(--paper); text-align: center; }
.rv-cheer[hidden] { display: none; }
.rv-cheer-pic { font-size: 5rem; line-height: 1; }
.rv-cheer-text { font-family: "Fraunces", Georgia, serif; font-size: 2rem; font-weight: 600; }
.rv-again { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: .6rem 1.1rem; font: 600 .95rem "Inter", system-ui, sans-serif; cursor: pointer; }
.rv-demo figcaption { margin-top: .85rem; font-size: .85rem; color: var(--on-dark-muted); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .rv-step .rv-now { animation: rv-in .35s ease-out; }
  .rv-finished .rv-cheer-pic { animation: rv-in .45s ease-out; }
}
@keyframes rv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rv-lead { max-width: 60ch; font-size: 1.05rem; margin: -.25rem 0 1.25rem; color: var(--muted); }
.rv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 860px) {
  .rv-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rv-demo { max-width: 22rem; width: 100%; margin: 0 auto; }
  .rv-two { grid-template-columns: 1fr; gap: 2rem; }
}

/* Só para leitor de tela: a demonstração anuncia a atividade nova a cada passo (CodeRabbit #518). */
.rv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
