/* ObraFácil — CSS comum do site estático (tokens, base, header, botões, hero compacto, footer).
   Mesmo código do simulador.html (commit 8b3d99c); equivalente a landing/tailwind.config.ts e docs/design-system.md. */

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

/* Tokens do design system da landing (landing/tailwind.config.ts · docs/design-system.md) */
:root {
  --of-bg:            #0F1114;
  --of-surface:       #1A1B1E;
  --of-surface-2:     #22242A;
  --of-paper:         #F8F7F5;
  --of-sand:          #F0EFEC;
  --of-card:          #FFFFFF;
  --of-accent:        #E05C1A;
  --of-accent-hover:  #C94F14;
  --of-accent-text:   #B5470F;
  --of-accent-soft:   rgba(224,92,26,.12);
  --of-accent-line:   rgba(224,92,26,.35);
  --of-text:          #F8F7F5;
  --of-ink:           #0F1114;
  --of-muted:         #9A9893;
  --of-muted-dark:    #5E5C58;
  --of-line:          rgba(255,255,255,.08);
  --of-line-light:    #E6E4DF;
  --of-success:       #2E9E5B;
  --of-error:         #D64545;
  --font-heading:     'Outfit', sans-serif;
  --font-body:        'DM Sans', sans-serif;
  --font-mono:        'IBM Plex Mono', monospace;
  --radius-btn:       999px;
  --radius-card:      20px;
  --radius-card-lg:   28px;
  --radius-input:     12px;
  --shadow-sm:        0 1px 2px rgba(15,17,20,.06);
  --shadow-md:        0 8px 24px rgba(15,17,20,.08);
  --shadow-lg:        0 24px 64px rgba(15,17,20,.14);
  --shadow-cta:       0 8px 24px rgba(224,92,26,.35);
  --ease-out:         cubic-bezier(.22,1,.36,1);
  --gutter:           20px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font-body); color: var(--of-ink); background: var(--of-paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-heading); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(224,92,26,.25); }
:focus-visible { outline: 2px solid var(--of-accent); outline-offset: 3px; border-radius: 8px; }
.of-icon { flex-shrink: 0; display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 200ms !important; scroll-behavior: auto !important; }
}

/* Header (equivalente a landing/src/components/sections/Header.tsx) */
.of-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px; border-bottom: 1px solid transparent; background: transparent; transition: background-color .3s, border-color .3s; }
.of-header.is-scrolled { background: rgba(15,17,20,.72); border-color: var(--of-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.of-header.is-open { background: var(--of-bg); }
.of-header-inner { position: relative; z-index: 2; max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.of-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; flex-shrink: 0; }
.of-logo-mark { height: 30px; width: auto; }
.of-logo-text { display: flex; flex-direction: column; gap: 3px; }
.of-logo-name { font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: var(--of-text); }
.of-logo-tag { font-family: var(--font-mono); font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--of-muted); }
.of-nav { display: none; align-items: center; gap: 2rem; }
.of-nav a, .of-header-login { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--of-muted); text-decoration: none; transition: color .2s; }
.of-nav a:hover, .of-header-login:hover { color: var(--of-text); }
.of-nav a[aria-current="page"] { color: var(--of-text); }
.of-nav .of-nav-current { text-decoration: underline; text-decoration-color: var(--of-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.of-free-badge { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: var(--radius-btn); background: var(--of-accent-soft); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; color: var(--of-accent); }
.of-header-actions { display: flex; align-items: center; }
.of-header-login { display: none; }
.of-menu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; border: none; border-radius: var(--radius-btn); background: none; color: var(--of-text); cursor: pointer; }
.of-menu-toggle .of-icon-close { display: none; }
.of-header.is-open .of-menu-toggle .of-icon-open { display: none; }
.of-header.is-open .of-menu-toggle .of-icon-close { display: block; }
.of-drawer { position: fixed; inset: 0; z-index: 1; overflow-y: auto; background: var(--of-bg); padding: 96px var(--gutter) 40px; }
.of-drawer[hidden] { display: none; }
.of-drawer nav { display: flex; flex-direction: column; gap: 1.5rem; }
.of-drawer nav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-heading); font-size: 24px; font-weight: 500; color: var(--of-text); text-decoration: none; }
.of-drawer .btn { width: 100%; margin-top: 2.5rem; }
@media (min-width: 1024px) {
  .of-header { height: 72px; }
  .of-logo { gap: 10px; }
  .of-logo-mark { height: 36px; }
  .of-logo-text { gap: 4px; }
  .of-logo-name { font-size: 22px; }
  .of-logo-tag { font-size: 10px; }
  .of-nav { display: flex; }
  .of-header-actions { gap: 1.5rem; }
  .of-header-login { display: flex; }
  .of-menu-toggle, .of-drawer { display: none !important; }
}

/* Botões (equivalente a landing/src/components/ui-of/Button.tsx) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-btn); font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: all .2s var(--ease-out); }
.btn .of-icon { transition: transform .2s var(--ease-out); }
/* Texto escuro sobre o laranja (contraste AA, decisão de 27/10/2026) */
.btn-primary { background: var(--of-accent); color: var(--of-ink); }
.btn-primary:hover { box-shadow: var(--shadow-cta); transform: translateY(-2px); }
.btn-primary:hover .of-icon-arrow { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary-dark { background: transparent; border-color: rgba(248,247,245,.24); color: var(--of-text); }
.btn-secondary-dark:hover { background: rgba(248,247,245,.06); }
.btn-secondary-light { background: transparent; border-color: rgba(15,17,20,.24); color: var(--of-ink); }
.btn-secondary-light:hover { background: rgba(15,17,20,.04); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 52px; }
@media (min-width: 768px) { .btn-lg { height: 48px; padding: 0 28px; } }

/* Hero compacto (dobra escura, como o hero da landing) */
.hero-compact { position: relative; overflow: hidden; background: var(--of-bg); color: var(--of-text); padding: 112px var(--gutter) 152px; text-align: center; }
.hero-compact::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(224,92,26,.22), transparent 70%); }
.hero-compact::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%); }
.hero-compact-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-label { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-btn); border: 1px solid rgba(224,92,26,.3); background: var(--of-accent-soft); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--of-accent); }
.hero-title { margin-top: 24px; max-width: 16ch; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--of-text); }
.hero-title span { color: var(--of-accent); }
.hero-sub { margin-top: 24px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--of-muted); }
.hero-social-proof { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--of-muted); }
.hero-social-proof .of-icon { color: var(--of-accent); }
@media (min-width: 768px) {
  .hero-compact { padding: 140px var(--gutter) 168px; }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 18px; }
  .hero-social-proof { font-size: 12px; }
}

/* Footer (equivalente a landing/src/components/sections/Footer.tsx) */
.footer { background: var(--of-bg); color: var(--of-text); border-top: 1px solid var(--of-line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px var(--gutter) 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; }
.footer-brand { padding-bottom: 32px; }
.footer-brand p { margin-top: 16px; max-width: 32ch; font-size: 15px; line-height: 1.6; color: var(--of-muted); }
.footer-col { border-top: 1px solid var(--of-line); }
.footer-col-title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--of-muted); }
.footer-col-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; background: none; border: none; cursor: pointer; text-align: left; }
.footer-col-toggle .of-icon { transition: transform .3s; }
.footer-col-toggle[aria-expanded="true"] .of-icon { transform: rotate(180deg); }
.footer-col > p.footer-col-title { display: none; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: none; flex-direction: column; padding-bottom: 12px; }
.footer-col ul.is-open { display: flex; }
.footer-link { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--of-muted); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--of-text); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--of-line); font-size: 13px; color: var(--of-muted); text-align: center; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
  .footer-brand { padding-bottom: 0; }
  .footer-col { border-top: 0; }
  .footer-col-toggle { display: none; }
  .footer-col > p.footer-col-title { display: block; }
  .footer-col ul, .footer-col ul.is-open { display: flex; gap: 12px; padding-bottom: 0; }
  .footer-link { min-height: 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 56px; text-align: left; }
}

.footer-legal { display: flex; align-items: center; min-height: 44px; color: var(--of-muted); text-decoration: underline; text-decoration-color: var(--of-line); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.footer-legal:hover { color: var(--of-text); text-decoration-color: var(--of-accent); }
@media (min-width: 768px) { .footer-legal { min-height: 0; } }

/* Banner de cookies (assets/consent.js é compartilhado): só a fonte segue o design system aqui */
#cookie-banner .cookie-text, #cookie-banner .cookie-btn { font-family: var(--font-body) !important; }
