/*
 * Site institucional do GYRA — usegyra.com.
 *
 * As cores e as fontes são as MESMAS do app (Vieweat_Frontend/src/constants):
 * laranja #FF6600 só como preenchimento; como letra sobre fundo claro, o
 * #CC4E00 (o laranja da marca dá 2,9:1 no branco e não passa contraste).
 * Poppins é a voz da marca (títulos, botões); Inter é o que se lê.
 */

:root {
  --orange: #ff6600;
  --orange-text: #cc4e00;
  --orange-deep: #b84800;
  --orange-soft: #fff0e6;
  --graphite: #1a1a1a;
  --text: #1a1a1a;
  --muted: #4d4d4d;
  --secondary: #6b6b6b;
  --page: #f2f2f2;
  --card: #ffffff;
  --border: #d9d9d9;
  --divider: #e6e6e6;
  --success: #15803d;
  --success-bg: #e8f7ee;

  --display: 'Poppins', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --max: 1120px;
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--card);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange-text);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ─── Botões ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-light {
  background: var(--card);
  color: var(--orange-deep);
}
.btn-ghost-light {
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}
.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.12);
}
.btn-primary {
  background: var(--orange-deep);
  color: #fff;
}
.btn-primary:hover {
  background: #9a3c00;
}
.btn-outline {
  color: var(--orange-text);
  border-color: var(--orange-text);
}
.btn-outline:hover {
  background: var(--orange-soft);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* ─── Cabeçalho ──────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand img {
  height: 24px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-nav a:hover {
  color: var(--orange-text);
}
@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

/*
 * Fundo CLARO de propósito: texto branco sobre o laranja da marca dá 2,9:1 e o
 * parágrafo do hero não passaria contraste. O laranja entra no celular, no
 * destaque do título e no símbolo ao fundo.
 */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #fff 45%, var(--orange-soft) 100%);
}
/* O símbolo da marca, grande e apagado, atrás de tudo. */
.hero::before {
  content: '';
  position: absolute;
  right: -180px;
  top: -140px;
  width: 640px;
  height: 640px;
  background: url('/assets/symbol-orange.png') center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 80px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-text);
}
.hero p.lead {
  font-size: 19px;
  max-width: 34ch;
  margin: 20px 0 32px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--secondary);
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* Celular desenhado em CSS: o que o cliente vê de verdade no app. */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  background: var(--graphite);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.25);
}
.phone-screen {
  background: var(--page);
  border-radius: 30px;
  overflow: hidden;
  color: var(--text);
}
.phone-bar {
  background: var(--orange);
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-bar img {
  height: 16px;
  width: auto;
}
.phone-bar span {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  background: var(--orange-deep);
  padding: 3px 10px;
  border-radius: 999px;
}
.phone-body {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.ui-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.ui-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}
.ui-sub {
  font-size: 12px;
  color: var(--secondary);
}
.ui-3d {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ui-chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-text);
  background: var(--orange-soft);
  padding: 3px 9px;
  border-radius: 999px;
}
.ui-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ui-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  padding: 3px 9px;
  border-radius: 999px;
}
.ui-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 12px 0 8px;
}
.ui-steps i {
  height: 5px;
  border-radius: 3px;
  background: var(--divider);
}
.ui-steps i.on {
  background: var(--orange);
}
.ui-eta {
  font-size: 13px;
  color: var(--muted);
}
.ui-eta b {
  color: var(--text);
}

/* Cubo girando: o "3D" do app, sem imagem nenhuma. */
.cube-wrap {
  width: 56px;
  height: 56px;
  perspective: 300px;
  flex: none;
}
.cube {
  position: relative;
  width: 36px;
  height: 36px;
  margin: 10px;
  transform-style: preserve-3d;
  animation: spin 7s linear infinite;
}
.cube span {
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  background: rgb(255 102 0 / 0.12);
  border-radius: 4px;
}
.cube span:nth-child(1) { transform: translateZ(18px); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(18px); }
.cube span:nth-child(3) { transform: rotateY(180deg) translateZ(18px); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(18px); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(18px); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(18px); }
@keyframes spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to { transform: rotateX(-20deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-20deg) rotateY(35deg); }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ─── Seções ─────────────────────────────────────────────────────────── */

.section {
  padding: 88px 0;
}
.section-gray {
  background: var(--page);
}
.section-dark {
  background: var(--graphite);
  color: #fff;
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head .kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-text);
}
.section-dark .section-head .kicker {
  color: #ff8a3d;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin-top: 8px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}
.section-dark .section-head p {
  color: #cfcfcf;
}
@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 19px;
  font-weight: 700;
}
.step p {
  color: var(--muted);
  font-size: 16px;
  margin: 8px 0 0;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 24px;
  background: #222;
}
.feature svg {
  width: 28px;
  height: 28px;
  color: #ff8a3d;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 14px;
}
.feature p {
  color: #cfcfcf;
  font-size: 16px;
  margin: 8px 0 0;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.partner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.places {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.place {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.place-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-text);
}
.place h3 {
  font-size: 18px;
}
.place p {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 15px;
}
.places-note {
  margin-top: 20px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .places {
    grid-template-columns: 1fr;
  }
}

/* ─── Rodapé ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--graphite);
  color: #cfcfcf;
  padding: 48px 0 32px;
  font-size: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-top img {
  height: 22px;
  width: auto;
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 32px;
  padding-top: 20px;
  font-size: 14px;
  color: #a6a6a6;
}

/* ─── Páginas de texto (privacidade, termos, exclusão) ───────────────── */

.doc-hero {
  background: var(--page);
  border-bottom: 1px solid var(--divider);
  padding: 56px 0 40px;
}
.doc-hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
}
.doc-hero p {
  color: var(--muted);
  margin: 12px 0 0;
}
.doc {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.doc h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 44px 0 12px;
}
.doc h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.doc p,
.doc li {
  color: #333;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}
.doc th {
  font-family: var(--display);
  font-weight: 600;
  background: var(--page);
}
.table-scroll {
  overflow-x: auto;
}
.toc {
  background: var(--page);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 8px;
}
.toc ol {
  margin: 8px 0 0;
}
.callout {
  border-left: 4px solid var(--orange);
  background: var(--orange-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
}
.callout p {
  margin: 0;
}

/*
 * Dado que ainda falta (CNPJ, telefone, e-mail). Amarelo de propósito: tem que
 * saltar aos olhos antes de o site ir ao ar. Lista completa no README.
 */
.todo {
  background: #fff3b0;
  color: #5c4500;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* ─── 404 ────────────────────────────────────────────────────────────── */

.notfound {
  text-align: center;
  padding-top: 96px;
}
.notfound img {
  margin: 0 auto 24px;
}
.notfound h1 {
  font-size: 36px;
}
.notfound-cta {
  margin-top: 28px;
}
