/* closing-sections.css: o fim da home: privacidade, preços, perguntas
 * frequentes e o download. O formulário de compra é o de buy-button.js, e a
 * porta local do app tira o formulário (app/site-landing.js); os cartões
 * precisam ficar bonitos com e sem ele.
 */
.privacy-section, .pricing, .faq { display: grid; gap: 48px; }

.card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plain-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.plain-card > p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.price-card.is-featured { border-color: var(--accent-border); }
.plain-card > .price { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.price small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text-subtle); }
.buy-form { display: grid; gap: 12px; margin-top: 8px; }
.buy-form button { cursor: pointer; font-family: inherit; }
.seat-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-muted); }
.seat-count input {
  width: 80px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.buy-status { text-align: center; font-size: 14px; color: var(--text-muted); }
.buy-error { color: var(--text); }

/* As perguntas usam <details>: abre e fecha sem JavaScript e sem modal, e o
   `name` igual em todas deixa uma aberta por vez onde o navegador suporta. */
.faq-list { display: grid; gap: 12px; max-width: 800px; width: 100%; margin: 0 auto; }
.faq-item { border-radius: 16px; border: 1px solid var(--border); background: var(--surface-raised); transition: border-color 0.15s ease; }
.faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-soft); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 64px 16px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
/* O botão redondo: o traço de pé some quando a pergunta abre, e o mais vira menos. */
.faq-item summary::before, .faq-item summary::after {
  content: "";
  position: absolute;
  right: 31px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq-item summary { background:
  radial-gradient(circle at calc(100% - 37px) 50%, var(--surface-muted) 0 15px, transparent 15.5px); }
.faq-item p { padding: 0 64px 20px 20px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.baixar { display: grid; justify-items: center; text-align: center; gap: 20px; }
main > section.baixar { padding-bottom: var(--section-space); }
.baixar > p:not(.endereco) { color: var(--text-muted); max-width: 62ch; }
.endereco { font-size: 14px; color: var(--text-subtle); }
.endereco a { color: var(--text-muted); text-underline-offset: 3px; }

@media (max-width: 960px) {
  .card-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .faq-item summary { padding: 16px 56px 16px 16px; font-size: 15px; }
  .faq-item summary::before, .faq-item summary::after { right: 25px; }
  .faq-item summary { background: radial-gradient(circle at calc(100% - 31px) 50%, var(--surface-muted) 0 14px, transparent 14.5px); }
  .faq-item p { padding: 0 16px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::before, .faq-item summary::after { transition: none; }
}

.billing-periods { display: flex; flex-wrap: wrap; justify-self: center; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); }
.billing-periods button { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px; padding: 12px 20px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.billing-periods button[aria-pressed="true"] { background: var(--accent-fill); color: var(--accent-fill-text); box-shadow: var(--shadow-soft); }
.billing-periods button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 540px) { .billing-periods { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .billing-periods button { padding: 12px 8px; } }

/* Cartões de preço: o valor mensal em destaque, o que vem incluído em lista
   marcada e o botão sempre no pé, para os três cartões terminarem alinhados. */
.pricing .card-row { align-items: stretch; gap: 20px; }
.pricing .price-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; }
.pricing .price-card h3 { font-size: 15px; font-weight: 600; color: var(--text-muted); letter-spacing: .01em; }
.pricing .plain-card > .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; font-family: var(--font-display); font-size: clamp(38px, 4vw, 48px); font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.pricing .price small { font-family: var(--font-body, inherit); font-size: 14px; color: var(--text-subtle); }
.pricing .price-card > p:not(.price) { margin: 0; }
.price-includes { display: grid; gap: 10px; margin: 6px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.45; color: var(--text); }
.price-includes li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.price-includes .check { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pricing .buy-form { margin-top: auto; padding-top: 12px; }
.pricing .price-card.is-featured { border-color: var(--accent-border); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface-raised)), var(--surface-raised) 55%); box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-soft); }
@media (max-width: 900px) { .pricing .card-row { grid-template-columns: 1fr; max-width: 520px; width: 100%; justify-self: center; } }
