/* Autorizando — site institucional (autorizando.com.br).
   Static page: no framework, fonts served from this origin (no third-party requests). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght.woff2") format("woff2-variations");
}

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-500: #14b8a6;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --green-100: #dcfce7;
  --green-800: #166534;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: var(--teal-700);
}

a:hover {
  color: var(--teal-900);
}

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--teal-700);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--slate-900);
  color: #ffffff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 17px;
}

.btn-primary {
  background: var(--teal-700);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--teal-900);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn-light {
  background: var(--slate-50);
  color: var(--slate-900);
}

.btn-light:hover {
  background: #ffffff;
  color: var(--slate-900);
}

.btn-ghost-light {
  border-color: var(--teal-200);
  color: #ffffff;
}

.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.1);
  color: #ffffff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  border-bottom: 1px solid var(--slate-200);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgb(255 255 255 / 0.85);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-900);
  text-decoration: none;
}

.brand:hover {
  color: var(--slate-900);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.site-nav ul {
  display: flex;
  gap: 4px 22px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--teal-700);
}

.header-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 1060px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .header-actions .btn-outline {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-dark {
  background: var(--slate-900);
  color: var(--slate-50);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46rem;
}

.eyebrow {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--teal-300);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  font-size: 17px;
  color: var(--slate-600);
}

.section-dark .lead {
  color: var(--slate-300);
}

.check-icon {
  flex: none;
  color: var(--teal-700);
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--teal-50);
  border-bottom: 1px solid var(--teal-100);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 88px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--teal-200);
  color: var(--teal-800);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-lead {
  max-width: 34rem;
  font-size: 19px;
  color: var(--slate-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--slate-600);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Product illustration: a drawing of the gatehouse screen, not a live component */
.mock-wrap {
  position: relative;
  margin: 0;
  padding-bottom: 28px;
}

.mock {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgb(15 23 42 / 0.28);
}

.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--slate-200);
}

.mock-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-600);
}

.mock-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.mock-date {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 14px 20px 6px;
  padding: 0 14px;
  border: 1px solid var(--slate-400);
  border-radius: 10px;
  color: var(--slate-600);
  font-size: 15px;
}

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 14px;
  list-style: none;
}

.mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.unit-tag {
  min-width: 58px;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-800);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}

.mock-guest {
  flex: 1 1 160px;
  min-width: 0;
}

.mock-guest strong {
  display: block;
  font-weight: 600;
}

.mock-guest span {
  font-size: 13px;
  color: var(--slate-600);
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-wait {
  background: var(--amber-100);
  color: var(--amber-800);
}

.status-in {
  background: var(--green-100);
  color: var(--green-800);
}

.mock-toast {
  position: absolute;
  left: -12px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--slate-900);
  color: #ffffff;
  box-shadow: 0 16px 36px -16px rgb(15 23 42 / 0.5);
  font-size: 14px;
  line-height: 1.35;
}

.mock-toast-icon {
  display: inline-flex;
  flex: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--teal-500);
  color: #042f2e;
}

.mock-toast small {
  display: block;
  font-size: 14px;
  color: var(--slate-300);
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 64px;
    gap: 40px;
  }

  .mock-toast {
    left: 8px;
    right: 8px;
    max-width: none;
  }
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  padding: 26px;
  border-radius: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  color: var(--slate-600);
}

.problem {
  padding-bottom: 40px;
}

.how {
  padding-top: 72px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--slate-300);
}

.step-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal-700);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.step h3 {
  font-size: 20px;
}

.step p {
  color: var(--slate-600);
}

/* ---------- Audiences (tabs) ---------- */

.audience-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tablist {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--slate-200);
}

/* Tabs only appear once site.js runs; without it every audience panel is listed in full. */
.js .tablist {
  display: flex;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--slate-700);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.tabpanel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 40px;
  align-items: start;
  margin-top: 40px;
}

.js .tabpanel[hidden] {
  display: none;
}

.tabpanel-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tabpanel h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
}

.tabpanel-intro p {
  font-size: 17px;
  color: var(--slate-700);
}

.checklist {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
}

.checklist .check-icon {
  margin-top: 2px;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  margin-top: 44px;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: #ffffff;
}

.feature svg {
  color: var(--teal-700);
}

.feature h3 {
  font-size: 17px;
}

.feature p {
  color: var(--slate-600);
  font-size: 15px;
}

/* ---------- Integrations ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.integration-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.integration-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--slate-200);
}

.tag {
  flex: none;
  min-width: 64px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--teal-900);
  color: var(--teal-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.code {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--slate-950);
  border: 1px solid var(--slate-700);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-800);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--slate-700);
}

.code-title {
  margin-left: 8px;
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 13px;
}

.code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: var(--slate-200);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}

.code .k {
  color: var(--teal-300);
}

.code .s {
  color: #fcd34d;
}

.code .c {
  color: var(--slate-400);
}

/* ---------- Security ---------- */

.security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
  align-items: start;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--slate-300);
}

.security-item h3 {
  font-size: 17px;
}

.security-item p {
  color: var(--slate-600);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
}

.faq .h2 {
  margin-bottom: 32px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  padding: 0 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--slate-300);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  flex: none;
  color: var(--teal-700);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 20px;
  color: var(--slate-600);
}

/* ---------- Final CTA ---------- */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 24px;
  background: var(--teal-700);
  color: #ffffff;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 38rem;
}

.cta-copy p {
  color: var(--teal-100);
  font-size: 18px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand,
.footer-brand .brand:hover {
  color: #ffffff;
}

.footer-brand p {
  font-size: 14px;
}

.footer-col h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-col a {
  color: var(--slate-300);
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--slate-800);
  color: var(--slate-400);
  font-size: 14px;
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 120px;
  padding-bottom: 120px;
}
