/* Estilos da demonstração e dos documentos de apoio. */
:root {
  --wine: #4d232f;
  --rose: #9b4448;
  --cream: #faf6f2;
  --ink: #30272a;
  --muted: #62565b;
  --line: #e8dfe1;
  --green: #b9efbd;
  --white: #fff;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-wrap: break-word;
}

a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }

a, button, summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #156bb0;
  outline-offset: 5px;
}

[hidden] { display: none !important; }

.container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { max-width: 790px; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  line-height: 1.16;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.45rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  max-width: 790px;
  margin-bottom: 28px;
}

h3 { font-size: 1.2rem; margin-bottom: 14px; }
p + p { margin-top: 14px; }

.topbar { border-bottom: 1px solid var(--line); }

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-block: 19px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}

.brand span { font-weight: 400; }
.disclosure { font-size: .76rem; color: var(--muted); }

.hero {
  background: var(--wine);
  color: var(--white);
  padding: 70px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-grid > *, .grid > * { min-width: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .73rem;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 16px;
}

.hero .eyebrow { color: #f3c8ca; }

.intro {
  font-size: 1.13rem;
  margin-top: 25px;
  max-width: 650px;
  color: #f3e5e9;
}

.hero-secondary { font-size: .95rem; color: #ead5dd; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.4;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #16331c;
  padding: 17px 23px;
  min-height: 52px;
  max-width: 100%;
  text-align: center;
  transition: background .2s;
}

.button:hover { background: #d1f7d4; }
.hero .button { margin-top: 28px; }

.microcopy {
  font-size: .8rem;
  margin-top: 13px;
  opacity: .86;
}

.hero-note {
  border: 1px solid #8b5d6d;
  border-radius: var(--radius);
  padding: 30px;
  background: #ffffff06;
}

.note-label {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #f3c8ca;
}

.hero-note p {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.25;
  margin: 22px 0;
  font-family: Georgia, serif;
}

.hero-note > span:last-of-type {
  font-size: .9rem;
  color: #ead5dd;
}

.quiet-link {
  display: block;
  margin-top: 24px;
  font-size: .88rem;
  padding-block: 8px;
}

.section { padding: 66px 0; }
.soft { background: var(--cream); }
.grid { display: grid; gap: 20px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card p, .section-note, .section-intro { color: var(--muted); }

.number {
  display: block;
  color: var(--rose);
  font-size: .8rem;
  font-weight: 750;
  margin-bottom: 22px;
}

.section-note { font-size: .93rem; margin-top: 24px; }
.section-intro { margin-bottom: 26px; }

.video-shell {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2e1920;
  position: relative;
}

.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 18px;
}

.play-mark { font-size: 2rem; color: #f3c8ca; }
.video-placeholder p { font-weight: 650; }
.video-demo-note { font-size: .85rem; color: #f3c8ca; }

.small {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 15px;
  overflow-wrap: anywhere;
}

.section-action { margin-top: 25px; }
.faq { border-top: 1px solid var(--line); }

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 16px 8px 0;
  min-height: 44px;
}

details p { color: var(--muted); margin-top: 14px; }

.closing { text-align: center; }
.closing h2 { margin-inline: auto; }
.closing .button { margin-top: 27px; }
.closing > div > p:not(.eyebrow) { color: var(--muted); }

.footer {
  background: var(--wine);
  color: #f0e1e6;
  padding: 35px 0;
  font-size: .85rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer .small { color: #e4ced7; }

.legal {
  padding: 55px 0 70px;
  max-width: 800px;
}

.legal h1 { font-size: 2.5rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.legal ul { padding-left: 24px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  color: var(--wine);
  padding: 10px;
  z-index: 30;
}

.skip-link:focus { top: 10px; }

/* Identificação da versão de portfólio. */
.portfolio-banner {
  background: #102347;
  color: #e2eaff;
  border-bottom: 4px solid #b8d4ff;
  padding: 20px 0;
}

.portfolio-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.portfolio-banner-inner > div {
  flex: 1 1 560px;
  min-width: 0;
}

.portfolio-banner strong { font-size: 1rem; }

.portfolio-banner p {
  font-size: .9rem;
  margin-top: 7px;
}

.portfolio-banner a {
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.demo-notice {
  background: #102347;
  color: #e2eaff;
}

.demo-notice h2 { color: white; }
.demo-notice .eyebrow { color: #b8d4ff; }

.demo-notice:target {
  box-shadow: inset 0 5px 0 #b8d4ff;
}

.portfolio-banner :focus-visible,
.demo-notice :focus-visible,
.footer :focus-visible,
.hero :focus-visible {
  outline-color: #b8d4ff;
}

@media (max-width: 760px) {
  .hero { padding: 45px 0; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-note { display: none; }

  .three, .two {
    grid-template-columns: minmax(0, 1fr);
  }

  .section { padding: 43px 0; }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .button { width: 100%; font-size: .95rem; }

  .video-shell {
    aspect-ratio: auto;
    min-height: 245px;
  }

  .video-placeholder { min-height: 245px; }
  .play-mark { font-size: 1.5rem; }
  .card { padding: 23px; }
  .legal h1 { font-size: 2rem; }
  .legal { padding-top: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}