/* Me & You SRE — landing page layout glue.
   Built only from design-system tokens (ds/colors_and_type.css + ds/components.css, loaded first).
   The design system ships no global reset (its starter page sets these inline). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 76px; }                 /* anchors land below the sticky nav */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* 44px touch targets for every interactive control */
.btn, .nav__link, .lang-link { min-height: 44px; }
.nav__link, .lang-link { display: inline-flex; align-items: center; }
/* The DS .btn:focus-visible (outline --brand) loads after the product focus ring and wins on equal
   specificity; --brand on the dark --bg is about 2:1. Restore the product ring (theme accent + halo). */
.product .btn:focus-visible {
  outline-color: var(--theme-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-accent) 22%, transparent);
}

/* ---- Nav --------------------------------------------------------------- */
.nav__brand { min-height: 44px; }
.nav__brand img { border-radius: var(--radius-sm); }
.nav__links { gap: var(--sp-2); }
.lang-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink-soft);
  text-decoration: none;
  padding-inline: var(--sp-2);
  border-radius: var(--radius-sm);
}
.lang-link:visited { color: var(--ink-soft); }
.lang-link:hover { color: var(--theme-accent); }
@media (max-width: 860px) { .nav__links .nav__link { display: none; } }
@media (max-width: 420px) { .nav__cta { display: none; } }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__inner { max-width: 54rem; text-align: center; display: grid; gap: var(--sp-6); justify-items: center; }
.hero__inner h1 { margin: 0; }
.hero__inner .lead { margin: 0; max-width: 42rem; }
/* --brand-deep (the gradient's first stop) has no dark override and nearly vanishes on the dark --bg. */
@media (prefers-color-scheme: dark) {
  .hero__title-accent { background-image: linear-gradient(110deg, var(--brand-blue) 0%, var(--accent-bright) 100%); }
}
/* Same DS gap for inline links (a: --brand / a:visited: --brand-deep, about 2:1 on the dark --bg) and
   the small eyebrow text (--accent-sre, about 3.3:1): lift both to --brand-blue (about 5:1) in dark mode. */
@media (prefers-color-scheme: dark) {
  .product main a:not(.btn), .product main a:not(.btn):visited {
    color: var(--brand-blue);
    text-decoration-color: color-mix(in srgb, var(--brand-blue) 45%, transparent);
  }
  .product .section-eyebrow { color: var(--brand-blue); }
  /* The DS .aviso callout keeps its light amber background in dark mode: keep its links on --brand-deep. */
  .product main .aviso a:not(.btn), .product main .aviso a:not(.btn):visited {
    color: var(--brand-deep);
    text-decoration-color: currentColor;
  }
}
.cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); margin: 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--ink-mute); }
.trust .icon { color: var(--theme-accent); }

/* ---- Sections ---------------------------------------------------------- */
.stack { display: grid; gap: var(--sp-8); }
.stack > * { min-width: 0; }                      /* grid items default to min-width:auto; wide tables scroll in .table-wrap */
.section-head { max-width: 46rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--sp-3) 0 0; }
.grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card h3 { margin: 0 0 var(--sp-3); font-size: var(--text-lg); }
.card p { margin: 0; font-size: var(--text-sm); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.card__head h3 { margin: 0; }
.tag {
  font-size: var(--text-xs); font-weight: var(--fw-semibold); color: var(--ink-soft);
  border: 1px solid var(--theme-accent); border-radius: var(--radius-pill); padding: 0.1rem 0.55rem; white-space: nowrap;
}

/* ---- How it works ------------------------------------------------------ */
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: var(--sp-4);
  border-radius: var(--radius-pill); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums;
  color: var(--ink); background: color-mix(in srgb, var(--theme-accent) 16%, transparent);
}

/* ---- Screenshot -------------------------------------------------------- */
.shot { margin: 0; display: grid; gap: var(--sp-3); }
.shot picture, .shot img { border-radius: var(--radius-lg); }
.shot img { border: 1px solid var(--rule); box-shadow: var(--shadow-lg); width: 100%; }
.shot figcaption { text-align: center; }

/* ---- Plans ------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; gap: var(--sp-4); }
.plan h3 { margin: 0; }
.plan .plan__hosts { margin: 0; font-size: var(--text-2xl); font-weight: var(--fw-extrabold); color: var(--ink); letter-spacing: -0.02em; }
.plan .plan__price { margin: 0; font-size: var(--text-sm); color: var(--ink-mute); }
.plan .plan__buy { margin-top: auto; display: grid; gap: var(--sp-2); }
.plan .plan__buy .btn { width: 100%; justify-content: center; }
.plan .plan__annual { margin: calc(var(--sp-2) * -1) 0 0; font-size: var(--text-sm); color: var(--ink-mute); }
.plan .plan__annual .preco { color: var(--ink); font-weight: var(--fw-semibold); }
.plan--featured { border-color: var(--theme-accent); box-shadow: var(--shadow); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--text-sm); }
.checklist li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.checklist .icon { color: var(--theme-accent); margin-top: 0.15em; }
.note { margin: 0; font-size: var(--text-sm); color: var(--ink-mute); max-width: 52rem; }

/* ---- Security ---------------------------------------------------------- */
.aviso p { margin: 0; font-size: var(--text-sm); }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: 52rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  min-height: 44px; padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-weight: var(--fw-semibold); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-mute); transition: transform var(--dur-transform) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin: 0 0 var(--sp-4); max-width: 46rem; }

/* ---- Contact ----------------------------------------------------------- */
.contact { max-width: 44rem; text-align: center; display: grid; gap: var(--sp-4); justify-items: center; }
.contact h2, .contact p { margin: 0; }

/* ---- Footer ------------------------------------------------------------ */
.footer p { margin: 0; }
.footer__brand { font-weight: var(--fw-semibold); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin-top: var(--sp-4); }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.nowrap { white-space: nowrap; }

/* ---- Document pages (sobre/terceiros, en/about/third-party) ------------ */
.stack--tight { gap: var(--sp-4); min-width: 0; }   /* grid items default to min-width:auto; let tables scroll */
.stack--tight > * { min-width: 0; }
.doc-title { margin: 0; font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl)); }
.doc-h2 { margin: 0; font-size: var(--text-2xl); }
.doc-p { margin: 0; max-width: 52rem; }
.stack--tight .table { min-width: 44rem; }   /* narrow screens scroll the table inside .table-wrap instead of squashing it */
.table td { vertical-align: top; }
.table td a { overflow-wrap: anywhere; }
.table .status { white-space: nowrap; }

/* ---- Generated pages (tools/site.js): planos, capacidades, segurança, orçamento, diagnóstico, legal ----- */
.nav__link[aria-current="page"] { color: var(--ink); }
.cta-row--start { justify-content: flex-start; }
.hero__price { margin: 0; font-size: var(--text-sm); color: var(--ink-mute); }
.preco { font-variant-numeric: tabular-nums; white-space: nowrap; }
.preco__unid { font-size: var(--text-sm); color: var(--ink-mute); font-weight: var(--fw-normal); }
.plan .plan__price .preco { font-size: var(--text-2xl); font-weight: var(--fw-extrabold); color: var(--ink); letter-spacing: -0.02em; }
.plan .plan__price .preco--proposta, .plan .plan__price .preco--gratis { font-size: var(--text-base); }
.grid--plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: var(--sp-4); }
.grid--plans .plan .plan__hosts { font-size: var(--text-xl); }
.grid--caps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }

/* comparison table: scrolls inside .table-wrap on narrow screens, never the page. The wrapper is the containing
   block of the .sr-only labels in the cells: without it they escape the scroll box and widen the page. */
.table-wrap { position: relative; }
.table--compare { min-width: 46rem; }
.table--compare th[scope="row"] { font-weight: var(--fw-medium); color: var(--ink); text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; font-size: var(--text-sm); background: none; }
.table--compare td { text-align: center; }
.table--compare .row-group th { background: var(--bg-soft); color: var(--ink-mute); }
.table--compare .status { margin-left: var(--sp-2); vertical-align: middle; }
.table-note { display: block; font-size: var(--text-xs); color: var(--ink-mute); font-weight: var(--fw-normal); }
.cell-yes .icon { color: var(--theme-accent); }
.cell-no .icon { color: var(--ink-mute); opacity: 0.6; }

/* calculator */
.calc { display: grid; gap: var(--sp-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; }
.calc__fields { display: grid; gap: var(--sp-4); }
.calc__result { display: grid; gap: var(--sp-3); padding: var(--sp-6); border-radius: var(--radius-lg); background: var(--bg-tint); }
.calc__result p { margin: 0; }
.calc__line strong { font-size: var(--text-lg); color: var(--ink); }
.calc__price { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--ink); }
.calc__hint { font-size: var(--text-sm); color: var(--ink-mute); min-height: 1.4em; }
.calc__result .btn { justify-self: start; }

/* forms */
.form-row { display: grid; gap: 0; min-width: 0; }
.form-row .label { margin-bottom: var(--sp-2); }
.form-grid { display: grid; gap: var(--sp-4) var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.quote { display: grid; gap: var(--sp-8); max-width: 52rem; }
.quote__group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-4); min-width: 0; }
.quote__group legend { padding: 0; margin-bottom: var(--sp-4); font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--ink); }
.quote__group > .field-hint { margin: 0; }
.quote__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.quote__actions .field-msg--error { margin: 0; }
.quote__fallback { display: grid; gap: var(--sp-3); }
.quote__fallback p { margin: 0; }
.optional { font-weight: var(--fw-normal); color: var(--ink-mute); }
.check-grid { display: grid; gap: var(--sp-2) var(--sp-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.check-grid .checkbox { min-height: 44px; }
.checkbox input { flex: none; }

/* capabilities */
.section--intro { padding-bottom: 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); font-size: var(--text-sm); color: var(--ink-mute); }
.legend li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.toc { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cap { display: grid; gap: var(--sp-4); align-content: start; }
.cap .card__head { margin: 0; align-items: flex-start; }
.cap__meta { margin: 0; display: grid; gap: var(--sp-3); font-size: var(--text-sm); }
.cap__meta div { display: grid; gap: var(--sp-1); }
.cap__meta dt { font-size: var(--text-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute); }
.cap__meta dd { margin: 0; color: var(--ink-soft); }
.card__head .status { flex: none; }

/* prose (segurança, diagnóstico) */
.doc-list { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--sp-2); max-width: 52rem; }
.code-block { margin: 0; padding: var(--sp-4); border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--rule); overflow-x: auto; font-size: var(--text-sm); max-width: 100%; }
.code-block code { background: none; padding: 0; white-space: pre; }
.stack--tight .aviso { max-width: 52rem; }
.offer { margin: 0; display: grid; gap: var(--sp-1); justify-items: center; }
.offer__price { font-size: var(--text-3xl); font-weight: var(--fw-extrabold); color: var(--ink); letter-spacing: -0.02em; }
.offer__note { font-size: var(--text-sm); color: var(--ink-mute); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); max-width: 52rem; }
.steps-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.steps-list .step__num { margin: 0; }
.steps-list h3 { margin: 0 0 var(--sp-1); font-size: var(--text-lg); }
.steps-list p { margin: 0; }
.checklist--wide { max-width: 52rem; font-size: var(--text-base); }

/* legal documents (HTML and the printed PDF) */
.legal { max-width: var(--container-sm); display: grid; gap: var(--sp-8); }
.legal__head { display: grid; gap: var(--sp-3); }
.legal__head .section-eyebrow, .legal__head p { margin: 0; }
.legal__meta { font-size: var(--text-sm); color: var(--ink-mute); }
.legal__toc { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-6); background: var(--bg-soft); }
.legal__toc p { margin: 0 0 var(--sp-2); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; columns: 2 14rem; column-gap: var(--sp-8); font-size: var(--text-sm); }
.legal__toc li { break-inside: avoid; padding-block: 2px; }
.legal__body { min-width: 0; overflow-wrap: break-word; }
.legal__body h2 { font-size: var(--text-2xl); margin: var(--sp-12) 0 var(--sp-3); }
.legal__body h3 { font-size: var(--text-lg); margin: var(--sp-8) 0 var(--sp-3); }
.legal__body p, .legal__body li { max-width: 46rem; }
.legal__body ul, .legal__body ol { padding-left: 1.25rem; display: grid; gap: var(--sp-2); }
.legal__body .list-alpha { list-style: lower-alpha; }
.legal__body blockquote { margin: 0; }
.legal__body .aviso p { margin: 0; }
.legal__body hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-8) 0; }
.legal__body .table-wrap { margin-block: var(--sp-4); }
.legal__body .table { min-width: 30rem; }
@media print {
  @page { size: A4; margin: 16mm 15mm; }
  .legal__toc, .skip-link, .cta-row { display: none !important; }
  .section { padding-block: 0; }
  .legal { max-width: none; gap: var(--sp-4); }
  .legal__body h2 { font-size: 14pt; margin-top: 14pt; }
  .legal__body h3 { font-size: 11.5pt; margin-top: 10pt; }
  .legal__body p, .legal__body li { max-width: none; }
  .legal__body .table { min-width: 0; }
  .legal__body .table-wrap { overflow: visible; }
  .hero__glow { display: none; }
}
