/* CleverCOM Design System 1.0 — tokens e componentes. Sem imagens. */

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cc-graphite-950: #121820;
  --cc-graphite-850: #202b36;
  --cc-teal-600: #087f8c;
  --cc-teal-700: #075e68;
  --cc-teal-300: #69cbd2;
  --cc-steel-300: #c3cdd3;
  --cc-steel-100: #e6ebee;
  --cc-ice-50: #f5f7f8;
  --cc-bg: #f5f7f8;
  --cc-surface: #ffffff;
  --cc-surface-alt: #e6ebee;
  --cc-text: #17212b;
  --cc-text-muted: #536471;
  --cc-border: #d6dfe4;
  --cc-primary: #087f8c;
  --cc-primary-hover: #075e68;
  --cc-on-primary: #ffffff;
  --cc-success: #177245;
  --cc-warning: #9a6700;
  --cc-danger: #b42332;
  --cc-font-heading: Manrope, sans-serif;
  --cc-font-body: Inter, sans-serif;
  --cc-font-mono: "JetBrains Mono", monospace;
  --cc-radius-sm: 8px;
  --cc-radius-md: 12px;
  --cc-radius-lg: 16px;
  --cc-container: 1200px;
  --cc-focus: #087f8c;
  --cc-transition: 160ms ease;
  --cc-header: 76px;
  --cc-shadow: 0 4px 16px rgba(18, 24, 32, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: var(--cc-font-body);
  font-size: 16px;
  line-height: 1.6;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--cc-font-heading);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

h1 { font-size: 2.125rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.4375rem; font-weight: 600; }

p { margin: 0 0 16px; }

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

:focus-visible {
  outline: 2px solid var(--cc-focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--cc-primary);
  color: var(--cc-on-primary);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 8px; }

.cc-container {
  width: min(100% - 32px, var(--cc-container));
  margin-inline: auto;
}

.site-header {
  min-height: var(--cc-header);
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-border);
}

.header-bar {
  min-height: var(--cc-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--cc-text);
  text-decoration: none;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

.header-actions, .nav-list, .subnav, .contact-actions, .button-row, .meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle, .subnav-toggle, .cc-button, button, .cc-button-primary, .cc-button-secondary, .cc-button-quiet {
  font: inherit;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--cc-radius-sm);
}

.nav-toggle, .subnav-toggle {
  background: transparent;
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  padding: 8px 12px;
}

.cc-button, .cc-button-primary, .cc-button-secondary, .cc-button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.cc-button-primary, .cc-button {
  background: var(--cc-primary);
  color: var(--cc-on-primary);
}

.cc-button-primary:hover, .cc-button:hover { background: var(--cc-primary-hover); color: var(--cc-on-primary); }

.cc-button-secondary {
  background: transparent;
  color: var(--cc-text);
  border-color: var(--cc-border);
}

.cc-button-quiet {
  background: transparent;
  color: var(--cc-text);
  border-color: transparent;
  padding-inline: 8px;
}

.site-nav[hidden] { display: none; }

.site-nav {
  border-top: 1px solid var(--cc-border);
  background: var(--cc-surface);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  flex-direction: column;
  align-items: stretch;
}

.nav-list a, .subnav a {
  color: var(--cc-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
}

.nav-list a[aria-current="page"] { font-weight: 700; }

.subnav[hidden] { display: none; }
.subnav {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 12px;
  flex-direction: column;
  align-items: stretch;
}

.hero {
  padding: 48px 0 24px;
  background: linear-gradient(135deg, #121820 0%, #202b36 70%, #123c46 100%);
  color: #ffffff;
}

.hero h1 { font-size: 2.125rem; max-width: 16ch; }
.hero p { color: #d1dae0; max-width: 62ch; }
.hero .cc-button-secondary { color: #ffffff; border-color: #354451; }

.section { padding: 48px 0; }
.section-alt { background: var(--cc-surface); }

.grid {
  display: grid;
  gap: 16px;
}

.cc-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-md);
  padding: 24px;
  box-shadow: var(--cc-shadow);
}

.muted { color: var(--cc-text-muted); }
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
}

.qr-official {
  margin: 24px 0 0;
}
.qr-official img {
  width: 148px;
  height: 148px;
  background: #ffffff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
}
.qr-official figcaption {
  margin-top: 8px;
  color: var(--cc-text-muted);
  font-size: 0.875rem;
}
.method { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.method li { display: grid; gap: 4px; }

.connect-shell {
  width: min(100% - 32px, 640px);
  margin: 32px auto 48px;
}

.contact-actions { flex-direction: column; align-items: stretch; margin: 16px 0; }
.contact-actions a, .contact-actions span { width: 100%; }

label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  background: var(--cc-surface);
  color: var(--cc-text);
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 16px; }
.field-error, .form-error { color: var(--cc-danger); }
.required::after { content: " *"; color: var(--cc-danger); }

.alert {
  border-radius: var(--cc-radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--cc-border);
  margin-bottom: 16px;
}
.alert-success { border-color: var(--cc-success); }
.alert-danger { border-color: var(--cc-danger); }

.site-footer {
  background: var(--cc-graphite-950);
  color: #d1dae0;
  padding: 48px 0 32px;
}
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; gap: 16px; }
.legal { font-size: 0.875rem; }

.choice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.choice-list a[aria-current="true"] {
  border-color: var(--cc-primary);
  background: var(--cc-surface-alt);
}
.prose { max-width: 72ch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--cc-border); text-align: left; vertical-align: top; padding: 8px; }
.banner {
  background: var(--cc-surface-alt);
  border-left: 4px solid var(--cc-warning);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; min-height: 20px; margin-top: 4px; }

@media (min-width: 768px) {
  h1, .hero h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-actions a { width: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    border: 0;
    background: transparent;
  }
  .site-nav[hidden] { display: block; }
  .header-bar { gap: 24px; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
  .nav-item { position: relative; }
  .subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-md);
    padding: 8px;
    box-shadow: var(--cc-shadow);
  }
  .method { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .header-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 359px) {
  .cc-container, .connect-shell { width: min(100% - 24px, var(--cc-container)); }
  h1, .hero h1 { font-size: 2rem; }
  .nav-toggle, .header-actions .cc-button-primary {
    padding-inline: 10px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
