@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

/* Orvyan — landing pública (Alfa).
   Tokens visuais herdados do app orvyan-web (public/assets/app.css):
   fonte system-ui, fundo #f4f5f7, texto #1a1a1a, destaque #2541b2,
   cards brancos com borda #e1e1e1 raio 6px, botões raio 4px,
   acento "alfa"/stub em âmbar #e0a800 sobre #fffbe6. */

:root {
  --bg: #f4f5f7;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --muted-soft: #888;
  --border: #e1e1e1;
  --accent: #2541b2;
  --accent-strong: #1d3596;
  --alfa: #e0a800;
  --alfa-bg: #fffbe6;
  --header: #0B1F3B;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* Cabeçalho — mesmo padrão da topbar do app */
.topbar {
  background: var(--header);
  border-bottom: 1px solid #081729;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo { height: 50px; width: auto; display: block; }
.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.topnav a {
  color: rgba(255, 255, 255, .86);
  font-size: .95rem;
  text-decoration: none;
}
.topnav a:hover {
  color: #fff;
  text-decoration: underline;
}
.topnav .lang-switch { color: rgba(255, 255, 255, .55); font-size: .85rem; letter-spacing: .02em; }
.topnav .lang-switch strong { color: #fff; font-weight: 700; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none;
  border: none;
  font: inherit;
  color: rgba(255, 255, 255, .86);
  cursor: pointer;
  padding: 0;
}
.nav-dropdown-trigger:hover { color: #fff; text-decoration: underline; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: .6rem;
  min-width: 170px;
  display: none;
  z-index: 30;
}
.nav-dropdown-menu-inner {
  background: var(--header);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: .4rem 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.nav-dropdown-menu-inner a { display: block; padding: .5rem .9rem; white-space: nowrap; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Conteúdo */
main { max-width: 820px; margin: 1.6rem auto; padding: 0 1rem; }

/* Layout de marketing (home): grade mais larga que as guias (que seguem 760px) */
main.mkt { max-width: 960px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; align-items: stretch; }
.grid-2 > * { margin-bottom: 0; }
.mkt .feature-grid { grid-template-columns: repeat(2, 1fr); }
.mkt .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.mkt .check-list { columns: 2; column-gap: 2.5rem; }
.mkt .check-list li { break-inside: avoid; }
.consulta-box { border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1.4rem; }
.consulta-title { font-size: 1.05rem; margin: 0 0 .7rem; color: var(--header); }
@media (max-width: 720px) {
  main.mkt { max-width: 760px; }
  .grid-2 { grid-template-columns: 1fr; }
  .mkt .feature-grid { grid-template-columns: 1fr; }
  .mkt .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .mkt .check-list { columns: 1; }
}

h2 { font-size: 1.1rem; margin: 0 0 .6rem; }

/* Botões — herdados do app (raio 4px, destaque #2541b2) */
.btn {
  display: inline-block;
  padding: .6rem 1.2rem;
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: #234a82; color: #fff; }
.btn-primary:hover { background: #2c5a9c; }
.btn-ghost {
  background: none;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  padding: .45rem 1rem;
  font-size: .95rem;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1rem;
}
.hero h1 { font-size: 1.55rem; line-height: 1.2; margin: .1rem 0 .8rem; color: var(--header); }
.hero .tagline { font-size: 1rem; font-weight: 600; color: var(--muted); margin: -.5rem 0 1rem; }
.badge-alfa {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 10px;
  background: var(--alfa-bg);
  color: #8a6d00;
  border: 1px solid #f0e2a8;
  margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; margin: 0 0 1rem; }
.lead em { font-style: italic; }
.anchor {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.4rem;
  padding-left: .9rem;
  border-left: 3px solid var(--alfa);
}
.hero-cta { margin: 0; }

/* Cards de conteúdo */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.card p { margin: 0; }

/* Lista "O que consultamos" */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: .4rem 0 .4rem 1.6rem;
  border-bottom: 1px solid #f0f0f0;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.check-list .gloss {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.35;
  margin-top: .1rem;
}
.check-list a {
  color: var(--text);
  text-decoration: none;
}
.check-list a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}
/* Vídeos — grade flexível de placeholders 16:9 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.video-ph { margin: 0; }
.video-box {
  aspect-ratio: 16 / 9;
  background: #f4f5f7;
  border: 1px dashed #cfd2da;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.soon {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .15rem .6rem;
}
.video-ph figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted);
}

/* Rodapé — tom do site-footer do app */
.site-footer {
  max-width: 820px;
  margin: 1.4rem auto 2.4rem;
  padding: 0 1rem;
  color: var(--muted-soft);
  font-size: .8rem;
}
.site-footer.mkt { max-width: 960px; }
.site-footer .muted { color: var(--muted-soft); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--header); text-decoration: underline; }
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer-main .muted {
  text-align: right;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  gap: .7rem;
  margin-top: .25rem;
}

/* Guias (conteúdo de referência) */
.breadcrumb { font-size: .82rem; color: var(--muted-soft); margin: .2rem 0 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--header); text-decoration: underline; }
.guia h1 { font-size: 1.5rem; line-height: 1.25; margin: .2rem 0 .9rem; }
.guia .lead { font-size: 1.1rem; color: #333; }
.guia article h2 { font-size: 1.15rem; margin: 1.9rem 0 .5rem; }
.guia article p { margin: 0 0 .9rem; }
.guia article em { font-style: italic; }
.guia article ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.guia article li { margin: .35rem 0; }
.orvyan-box { background: var(--surface); border: 1px solid var(--border);
              border-left: 3px solid var(--header); border-radius: 6px;
              padding: .4rem 1.2rem 1.1rem; margin: 1.8rem 0; }
.orvyan-box h2 { margin-top: 1rem; }
.guia-cta { margin: 1.1rem 0 .2rem; }

.faq { margin-top: 2rem; }
.faq h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.faq details { border: 1px solid var(--border); border-radius: 6px;
               padding: .7rem 1rem; margin-bottom: .6rem; background: var(--surface); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: .7rem 0 0; color: #333; }

.guia-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.guia-list li { margin-bottom: 1rem; }
.guia-list a { display: block; background: var(--surface); border: 1px solid var(--border);
               border-radius: 6px; padding: 1rem 1.2rem; text-decoration: none; }
.guia-list a:hover { border-color: var(--header); }
.guia-list .g-title { display: block; font-weight: 600; color: var(--header); }
.guia-list .g-desc { display: block; font-size: .9rem; color: var(--muted); margin-top: .25rem; }

/* ============================================================= */
/* Onboarding — grade de recursos, passos, tabela de specs, code  */
/* ============================================================= */

/* Grade de recursos (cards de funcionalidade) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: .4rem;
}
.feature {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .9rem 1rem;
  background: var(--surface);
}
.feature h3 { font-size: 1rem; margin: 0 0 .3rem; color: var(--header); }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Passos do fluxo (numerados) */
.steps { list-style: none; counter-reset: step; margin: .4rem 0 0; padding: 0; }
.steps li {
  position: relative;
  padding: .2rem 0 1rem 2.4rem;
  border-left: 2px solid var(--border);
  margin-left: .8rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -.85rem;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps .s-title { font-weight: 600; display: block; }
.steps .s-desc { font-size: .9rem; color: var(--muted); }

/* Público-alvo / etiquetas */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.tag {
  font-size: .85rem;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafbfc;
  color: #333;
}

/* Responsivo / mobile-first */
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; gap: .4rem .8rem; padding: .55rem .8rem; }
  .brand { order: 1; }
  .topbar .btn-ghost { order: 2; margin-left: auto; }
  .topnav { order: 3; width: 100%; margin-left: 0; gap: .5rem .9rem; flex-wrap: wrap; }
  .brand-logo { height: 38px; }
  .topnav a, .btn-ghost { font-size: .9rem; }
  .footer-main {
    flex-direction: column;
    gap: .15rem;
  }
  .footer-main .muted {
    text-align: left;
    white-space: normal;
  }
  .lead, .anchor { font-size: 1.05rem; }
  .hero h1 { font-size: 1.3rem; }
  .video-grid { grid-template-columns: 1fr; }
  .guia h1 { font-size: 1.3rem; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================= */
/* Identidade visual Orvyan 2026 — conteúdo e comportamento preservados */
/* ============================================================= */
:root {
  --bg: #f4efe5;
  --surface: #fffaf1;
  --text: #142234;
  --muted: #5d6976;
  --muted-soft: #5f6b77;
  --border: #d9d1c5;
  --accent: #9c7734;
  --accent-strong: #76581f;
  --alfa: #c7a35a;
  --alfa-bg: #f5ead2;
  --header: #081729;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(199, 163, 90, .08), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
}

.topbar {
  min-height: 88px;
  padding: 0 clamp(1.2rem, 5vw, 5rem);
  gap: clamp(1rem, 3vw, 2.8rem);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #081729;
}
.topbar .brand { overflow: hidden; width: 230px; height: 54px; }
.brand-logo {
  width: 230px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.topnav { gap: clamp(.7rem, 1.5vw, 1.5rem); }
.topnav a, .nav-dropdown-trigger { color: #c3ccd5; font-size: .84rem; font-weight: 500; }
.topnav a:hover, .nav-dropdown-trigger:hover { color: #fff; text-decoration: none; }
.topnav .lang-switch { color: #697b8d; font-size: .75rem; }
.btn { border-radius: 0; font-weight: 600; }
.btn-primary { background: var(--alfa); color: var(--header); }
.btn-primary:hover { background: #d6b66f; }
.btn-ghost { border-color: rgba(199,163,90,.65); color: #f5e4bc; }
.btn-ghost:hover { background: rgba(199,163,90,.12); }

main.mkt { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem 4rem; }

.hero {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw) 0;
  padding: clamp(4rem, 8vw, 7.4rem) max(calc((100vw - 1135px) / 2), 1.4rem) clamp(4.4rem, 7vw, 6.8rem);
  border: 0;
  border-radius: 0;
  color: #fff;
  background:
    radial-gradient(circle at 79% 48%, transparent 0 5.5rem, rgba(199,163,90,.18) 5.55rem 5.62rem, transparent 5.67rem 9rem, rgba(199,163,90,.10) 9.05rem 9.12rem, transparent 9.17rem 13rem, rgba(199,163,90,.07) 13.05rem 13.12rem, transparent 13.17rem),
    radial-gradient(circle at 22% 18%, #15324f, #081729 48%, #050e19 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: 13%; top: 42%;
  width: 92px; height: 92px;
  border: 8px solid var(--alfa); border-bottom-color: transparent; border-radius: 50%;
  transform: rotate(-22deg); opacity: .95;
}
.hero h1 {
  max-width: 760px;
  margin: .4rem 0 1.4rem;
  color: #fff;
  font: 400 clamp(2.7rem, 5vw, 4.7rem)/1.04 "Manrope", sans-serif;
  letter-spacing: -.045em;
}
.hero .tagline { max-width: 720px; margin: 0 0 2rem; color: #c6d0da; font-size: 1.2rem; font-weight: 400; line-height: 1.55; }
.badge-alfa {
  margin-bottom: 1.4rem; padding: .28rem 0;
  border: 0; border-radius: 0; background: none; color: var(--alfa);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.badge-alfa::before { content: "— "; }
.lead { max-width: 830px; margin: 0 0 1.8rem; color: #aebbc8; font-size: 1rem; line-height: 1.75; }
.lead strong { color: #edf1f4; font-weight: 600; }
.hero .anchor { max-width: 700px; margin: 0 0 2rem; padding-left: 1.15rem; border-left: 1px solid var(--alfa); color: #e0e6eb; font-size: 1rem; }
.hero-cta .btn { padding: .85rem 1.45rem; }

.hero + .grid-2 { margin-top: 1.5rem; }
.grid-2 { gap: 0; margin-bottom: 0; }
.orvyan-box, .card {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255,250,241,.82);
  box-shadow: none;
}
.orvyan-box {
  margin: 0;
  padding: 2.3rem 2.5rem;
  border-left: 1px solid var(--border);
}
.grid-2 .orvyan-box:first-child { background: var(--header); color: #d4dce4; border-color: var(--header); }
.grid-2 .orvyan-box:first-child h2 { color: #fff; }
.orvyan-box h2, .card h2 {
  color: var(--header);
  font: 500 clamp(1.35rem, 2vw, 1.8rem)/1.25 "Manrope", sans-serif;
  letter-spacing: -.02em;
}
.orvyan-box p, .card p { line-height: 1.7; }
.orvyan-box .hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .65rem;
}
.orvyan-box .hero-cta .btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-left: 0;
  white-space: nowrap;
}
.orvyan-box .apidemo-cta { color: var(--accent-strong); border-color: #a99d8c; }
.orvyan-box .apidemo-cta:hover { color: #4e3914; background: #eee3d1; border-color: var(--accent-strong); }
.card { margin: 1.4rem 0 0; padding: 2.1rem 2.4rem; }
.mkt > .card:nth-of-type(4) { border-top: 3px solid var(--alfa); }
.feature-grid { gap: 0; margin: 1.4rem 0 0; }
.feature { padding: 1.6rem; border-radius: 0; background: #fffdf8; }
.feature h3 { color: var(--header); font: 600 1.1rem "Manrope", sans-serif; }
.consulta-box { margin-top: 2rem; padding: 1.6rem 1.8rem; border-radius: 0; background: #f7f1e7; }
.consulta-title { font: 600 1.08rem "Manrope", sans-serif; }
.check-list li { padding: .7rem 0 .7rem 1.5rem; border-bottom-color: #ddd4c7; }
.check-list li::before { top: 1.1rem; width: 6px; height: 6px; border-radius: 0; transform: rotate(45deg); background: var(--alfa); }
.check-list .gloss { color: #5d6976; line-height: 1.45; }
.card > .anchor {
  color: #26374a;
  border-left-color: var(--alfa);
}
.apidemo { border-radius: 0; }

.site-footer.mkt {
  max-width: none;
  margin: 0;
  padding: 2.8rem max(calc((100vw - 1135px) / 2), 1.4rem);
  color: #97a5b3;
  background: #050e19;
}
.site-footer a { color: #c4cdd6; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

main.mkt .hero code {
  color: var(--header);
  background: var(--ivory, #f4efe5);
  border: 1px solid rgba(8, 23, 41, .18);
}

main.mkt .demo-tabs { margin-top: 1.5rem; }

@media (max-width: 980px) {
  .topbar { min-height: 0; padding: .8rem 1rem; }
  .topbar .brand { width: 190px; height: 44px; }
  .brand-logo { width: 190px; height: auto; }
  .hero::after { opacity: .25; right: -1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .mkt .check-list { columns: 1; }
}

@media (max-width: 520px) {
  .topbar .brand { width: 170px; height: 40px; }
  .brand-logo { width: 170px; height: auto; }
  .hero { padding-top: 3.7rem; }
  .hero h1 { font-size: 2.6rem; }
  .orvyan-box, .card { padding: 1.5rem; }
  .footer-main, .footer-links { flex-wrap: wrap; }
}
