/* ============================================================
   DONO DA OBRA AI v3 — Estilos
   Direção: editorial industrial moderno
   Mobile-first, responsivo
   ============================================================ */

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

:root {
  --bg: #FFFFFF;
  --paper: #F4F6F8;
  --ink: #14181C;
  --ink-2: #51606E;
  --ink-muted: #8593A0;
  --accent: #16A34A;
  --accent-warm: #128A3E;
  --accent-soft: #E9F8EF;
  --navy: #0E4F6E;
  --line: #E6EAEE;
  --line-strong: #C0C8D0;
  --green: #16A34A;
  --red: #E11D2A;

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

  --max: 1240px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(22,163,74,0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(14,79,110,0.03) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.logo-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 1px;
  margin-right: 8px;
  transform: rotate(45deg);
  position: relative;
  top: -3px;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 720px) {
  .header-inner { padding: 14px 16px; gap: 10px; }
  .nav { gap: 10px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 11px; white-space: nowrap; }
  .logo { font-size: 16px; }
  .logo-mark { width: 8px; height: 8px; margin-right: 6px; top: -2px; }
}

@media (max-width: 380px) {
  .nav-cta { font-size: 10px; padding: 7px 10px; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 28px 100px;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 1;
}

/* Notebooks/telas baixas: compacta o hero pra manter o CTA acima da dobra */
@media (min-width: 721px) and (max-height: 880px) {
  .hero { padding: 44px 28px 72px; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(36px, 5.6vw, 64px); }
  .hero-sub { margin-top: 20px; }
  .hero-cta-row { margin-top: 28px; }
  .hero-meta { margin-top: 32px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 950px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-muted);
  max-width: 560px;
  margin-top: 32px;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 18px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.28);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-decoration {
  position: absolute;
  right: 28px;
  top: 60px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  text-align: right;
  max-width: 200px;
  line-height: 1.4;
}

.hero-decoration::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  margin: 0 0 12px auto;
}

@media (max-width: 900px) {
  .hero-decoration { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 50px 20px 70px; }
  .hero h1 { font-size: clamp(32px, 9vw, 56px); }
  .hero-sub { margin-top: 24px; font-size: 16px; }
  .hero-cta-row { gap: 16px; margin-top: 32px; }
  .btn-primary { padding: 14px 22px; font-size: 14px; width: 100%; justify-content: center; }
  .hero-meta { gap: 14px; margin-top: 28px; }
  .hero-meta-item { font-size: 12px; }
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 28px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin-bottom: 60px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

@media (max-width: 720px) {
  .section { padding: 60px 20px; }
  .section-title { margin-bottom: 36px; }
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 28px; }

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .step:not(:first-child) { padding-left: 0; }
  .step:last-child { border-bottom: none; }
  .step-num { font-size: 44px; margin-bottom: 16px; }
}

/* ============ RECEIVE (escura) ============ */
.receive {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.receive .section { padding-top: 0; padding-bottom: 0; }
.receive .section-title { color: var(--bg); }

.receive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
}

.receive-item {
  background: var(--ink);
  padding: 36px 28px;
}

.receive-item-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-warm);
  margin-bottom: 16px;
  display: block;
}

.receive-item h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--bg);
}

.receive-item p {
  font-size: 14px;
  color: rgba(250, 246, 238, 0.65);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .receive { padding: 60px 0; }
  .receive-item { padding: 28px 22px; }
}

/* ============ TRUST ============ */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-point {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.trust-point:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.trust-point-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
}

.trust-point h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.trust-point p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .trust { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ PRICE ============ */
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px auto 0;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}

.price::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.price-left h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.price-left p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.price-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.price-list li::before {
  content: '';
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%23FFFFFF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.price-right {
  text-align: center;
  padding: 32px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--bg);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: var(--bg);
  letter-spacing: -0.02em;
}

.price-amount sup {
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-warm);
  margin-right: 4px;
  vertical-align: top;
  position: relative;
  top: 12px;
}

.price-amount sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(250, 246, 238, 0.6);
  display: block;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.price-right .btn-primary {
  width: 100%;
  margin-top: 24px;
  justify-content: center;
}

@media (max-width: 760px) {
  .price { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .price-left h3 { font-size: 26px; }
  .price-amount { font-size: 52px; }
}

/* ============ FAQ ============ */
.faq-list {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-q:hover { color: var(--accent); }

.faq-q-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  position: relative;
  margin-left: 24px;
}

.faq-q-icon::before, .faq-q-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 0.25s;
}

.faq-q-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }

.faq-item.open .faq-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a { max-height: 500px; }

.faq-a-inner {
  padding: 0 0 24px 0;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 720px;
}

@media (max-width: 720px) {
  .faq-q { font-size: 17px; padding: 20px 0; }
  .faq-a-inner { font-size: 14px; }
}

/* ============ CTA FINAL ============ */
.cta-final {
  text-align: center;
  padding: 120px 28px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-final h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-final p {
  font-size: 17px;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  .cta-final { padding: 70px 20px; }
  .cta-final h2 { margin-bottom: 16px; }
  .cta-final p { font-size: 15px; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(250, 246, 238, 0.7);
  padding: 60px 28px 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bg);
  margin-bottom: 12px;
}

.footer-brand em { font-style: italic; color: var(--accent-warm); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-warm);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover { color: var(--bg); }

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(250, 246, 238, 0.4);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fade 0.2s;
}

.modal-overlay.open { display: flex; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(20, 24, 28, 0.4);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes pop {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 24px;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.modal-close:hover { background: var(--line); color: var(--ink); }

.modal-body {
  padding: 32px;
}

@media (max-width: 540px) {
  .modal-overlay { padding: 0; }
  .modal { max-height: 100vh; height: 100vh; border-radius: 0; border: none; box-shadow: none; }
  .modal-header { padding: 16px 20px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 20px; }
}

/* Form steps */
.form-steps-wrap {
  margin-bottom: 26px;
}

.form-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.form-steps-label {
  display: block;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-step-dot {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  transition: background 0.3s;
}

.form-step-dot.active { background: var(--accent); }

.form-step h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.form-step .step-hint {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

@media (max-width: 540px) {
  .form-step h3 { font-size: 22px; }
}

/* Option grid (cards de tipo) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-card {
  padding: 24px 20px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: all 0.15s;
  cursor: pointer;
}

.option-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.option-card.selected { border-color: var(--accent); background: var(--accent-soft); }

.option-card-icon {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 8px;
}

.option-card h5 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.option-card p {
  font-size: 12px;
  color: var(--ink-muted);
}

@media (max-width: 540px) {
  .option-grid { grid-template-columns: 1fr; }
}

/* Chips (botões de escolha rápida) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Form fields */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Photo upload */
.photo-upload {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--paper);
  display: block;
}

.photo-upload:hover { border-color: var(--accent); background: var(--accent-soft); }

.photo-upload-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.photo-upload p {
  font-size: 14px;
  color: var(--ink-muted);
}

.photo-upload p strong { color: var(--accent); }

.photo-upload input[type="file"] { display: none; }

.photo-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  position: relative;
}

.photo-thumb-remove {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn-back {
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
  background: transparent;
  cursor: pointer;
}

.btn-back:hover { border-color: var(--ink-muted); color: var(--ink); }

.btn-next {
  flex: 1;
  background: var(--accent);
  color: #FFFFFF;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(22,163,74,0.28);
  transition: background 0.15s, transform 0.12s;
  cursor: pointer;
}

.btn-next:hover { background: var(--accent-warm); transform: translateY(-1px); }
.btn-next:active { transform: translateY(0); }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 50px; height: 50px;
  margin: 0 auto 24px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.loading p {
  font-size: 14px;
  color: var(--ink-muted);
}

/* Resultado / Preview */
.result-resumo {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--ink-2);
  font-style: italic;
  padding: 22px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.result-perfil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.result-perfil-item {
  background: var(--paper);
  padding: 16px;
  text-align: center;
}

.result-perfil-item span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.result-perfil-item strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.result-faixas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.result-faixa {
  padding: 22px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.result-faixa.destaque {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(26,20,16,0.15);
}

.result-faixa .faixa-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.result-faixa.destaque .faixa-label { color: var(--accent-warm); }

.result-faixa .faixa-valor {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.result-faixa.destaque .faixa-valor { color: var(--bg); }

.result-faixa .faixa-m2 {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.result-faixa.destaque .faixa-m2 { color: rgba(250,246,238,0.7); }

@media (max-width: 540px) {
  .result-faixas { grid-template-columns: 1fr; gap: 8px; }
  .result-faixa.destaque { transform: none; }
  .result-perfil { grid-template-columns: 1fr 1fr 1fr; }
}

/* Result etapas amostra */
.result-etapas-amostra {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-etapa-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-etapa-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.result-etapa-content { flex: 1; }

.result-etapa-content h6 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-etapa-content p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.result-etapa-prazo {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 100px;
}

.result-etapa-mais {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.02);
}

.result-alerta-amostra {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.result-alerta-amostra strong {
  font-family: var(--font-display);
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent);
}

.result-alerta-amostra p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.result-locked {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
}

.result-locked h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--bg);
}

.result-locked > p {
  font-size: 14px;
  color: rgba(250,246,238,0.75);
  margin-bottom: 18px;
}

.result-locked > p strong { color: var(--accent-warm); font-weight: 700; }

.result-locked-list {
  list-style: none;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-locked-list li {
  font-size: 13px;
  color: rgba(250,246,238,0.85);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.result-locked-list li strong {
  color: var(--accent-warm);
  font-weight: 600;
}

.result-locked-list li::before {
  content: '+';
  color: var(--accent-warm);
  font-weight: 700;
  flex-shrink: 0;
}

.result-locked-pix {
  text-align: center;
  font-size: 11px;
  color: rgba(250,246,238,0.5) !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 540px) {
  .result-locked { padding: 22px 18px; }
}

/* ============ TELA DO ORÇAMENTO COMPLETO (orcamento.html) ============ */
.orcamento-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 50px 28px 80px;
}

@media (max-width: 720px) {
  .orcamento-page { padding: 32px 18px 60px; }
}

/* Header de aprovação */
.orc-success {
  background: var(--ink);
  color: var(--bg);
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.orc-success-info span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 6px;
}

.orc-success-info h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.orc-success-info p {
  font-size: 13px;
  color: rgba(250,246,238,0.65);
  margin-top: 4px;
}

.orc-pdf-btn {
  background: var(--accent-warm);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.orc-pdf-btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }

@media (max-width: 540px) {
  .orc-success { padding: 22px; }
  .orc-success-info h1 { font-size: 22px; }
  .orc-pdf-btn { width: 100%; justify-content: center; }
}

/* Seção do orçamento */
.orc-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.orc-section:last-child { border-bottom: none; }

.orc-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.orc-section .orc-sub {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.orc-section h2 + .orc-sub { margin-top: -4px; }

.orc-resumo {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  padding: 20px 24px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 16px;
}

@media (max-width: 540px) {
  .orc-section h2 { font-size: 21px; }
  .orc-section { margin-bottom: 32px; padding-bottom: 32px; }
  .orc-resumo { font-size: 15px; padding: 18px; }
}

/* Perfil em 3 cols */
.orc-perfil {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}

.orc-perfil-item {
  background: var(--paper);
  padding: 18px;
  text-align: center;
}

.orc-perfil-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 6px;
}

.orc-perfil-item strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.orc-perfil-item.regional {
  text-align: left;
}

.orc-perfil-item.regional p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 6px;
}

@media (max-width: 540px) {
  .orc-perfil { grid-template-columns: 1fr; }
  .orc-perfil-item { text-align: left; }
}

/* Faixas no orçamento completo */
.orc-faixas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.orc-faixa {
  padding: 24px 20px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.orc-faixa.destaque {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(26,20,16,0.15);
}

.orc-faixa-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.orc-faixa.destaque .orc-faixa-label { color: var(--accent-warm); }

.orc-faixa-valor {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.orc-faixa.destaque .orc-faixa-valor { color: var(--bg); }

.orc-faixa-m2 {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.orc-faixa.destaque .orc-faixa-m2 { color: rgba(250,246,238,0.7); }

.orc-faixa-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.orc-faixa.destaque .orc-faixa-desc { color: rgba(250,246,238,0.85); }

.orc-faixa-meta {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.orc-faixa.destaque .orc-faixa-meta {
  color: rgba(250,246,238,0.65);
  border-color: rgba(255,255,255,0.15);
}

@media (max-width: 720px) {
  .orc-faixas { grid-template-columns: 1fr; gap: 10px; }
  .orc-faixa.destaque { transform: none; }
}

/* Divisão "para onde vai cada real" */
.orc-divisao-bar {
  height: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  margin: 18px 0 14px;
}

.orc-divisao-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  transition: width 0.4s;
}

.orc-divisao-leg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orc-divisao-leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.orc-divisao-leg-dot {
  width: 12px; height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.orc-divisao-leg-item strong { font-weight: 600; color: var(--ink); }
.orc-divisao-leg-item span { color: var(--ink-muted); }

.orc-divisao-outros {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: var(--radius);
}

/* ============ ETAPAS — DESKTOP/TABLET = TABELA, MOBILE = CARDS ============ */
/* Desktop tabela */
.orc-etapas-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.orc-etapas-tabela thead th {
  text-align: left;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.orc-etapas-tabela thead th.col-num { text-align: right; }

.orc-etapas-tabela tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.orc-etapas-tabela tbody tr:nth-child(even) { background: var(--paper); }

.orc-etapas-tabela .col-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.orc-etapas-tabela .etapa-nome { font-weight: 700; color: var(--ink); }
.orc-etapas-tabela .etapa-desc { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.orc-etapas-tabela .etapa-obs {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
}

.orc-etapas-tabela .valor-padrao {
  font-weight: 700;
  color: var(--accent);
}

/* Mobile - cards */
.orc-etapas-cards {
  display: none;
}

.orc-etapa-card-m {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}

.orc-etapa-card-m-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 12px;
}

.orc-etapa-card-m-head h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.orc-etapa-card-m-head .valor {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  white-space: nowrap;
}

.orc-etapa-card-m-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.orc-etapa-card-m-meta span {
  display: inline-flex;
  gap: 4px;
}

.orc-etapa-card-m-meta b { color: var(--ink); font-weight: 600; }

.orc-etapa-card-m-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 8px;
}

.orc-etapa-card-m-obs {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-muted);
  padding: 8px 12px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .orc-etapas-tabela { display: none; }
  .orc-etapas-cards { display: block; }
}

/* Lista de materiais */
.orc-materiais-cat {
  margin-bottom: 22px;
}

.orc-materiais-cat h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.orc-materiais-cat ul {
  list-style: none;
}

.orc-materiais-cat li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  gap: 12px;
}

.orc-materiais-cat li span:first-child { color: var(--ink-2); }
.orc-materiais-cat li span:last-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Marcas - tabela com responsividade */
.orc-marcas-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 16px;
}

.orc-marcas-tabela thead th {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: left;
}

.orc-marcas-tabela thead th:nth-child(n+2) { text-align: center; }

.orc-marcas-tabela tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.orc-marcas-tabela tbody tr:nth-child(even) { background: var(--paper); }

.orc-marcas-tabela .marca-cat { font-weight: 700; color: var(--ink); }
.orc-marcas-tabela td.col-faixa { text-align: center; color: var(--ink-2); font-size: 12px; }
.orc-marcas-tabela td.col-padrao {
  font-weight: 700;
  color: var(--accent);
}

/* Mobile: marcas viram cards */
.orc-marcas-cards { display: none; }

.orc-marca-card-m {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.orc-marca-card-m h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.orc-marca-card-m-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  gap: 8px;
}

.orc-marca-card-m-row span:first-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-muted);
  flex-shrink: 0;
  width: 80px;
}

.orc-marca-card-m-row.padrao span:last-child {
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 720px) {
  .orc-marcas-tabela { display: none; }
  .orc-marcas-cards { display: block; }
}

/* Checklist */
.orc-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.orc-checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.orc-checklist-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
}

.orc-checklist-item p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  flex: 1;
}

/* Custos adicionais */
.orc-custos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.orc-custo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
}

.orc-custo-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--red);
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  align-self: start;
  white-space: nowrap;
}

.orc-custo-badge.opcional {
  background: var(--ink-muted);
}

.orc-custo-info h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.orc-custo-info p {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.orc-custo-valor {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-size: 14px;
  text-align: right;
}

@media (max-width: 540px) {
  .orc-custo { grid-template-columns: 1fr; gap: 8px; }
  .orc-custo-valor { text-align: left; font-size: 16px; }
  .orc-custo-badge { justify-self: start; }
}

/* Alertas */
.orc-alertas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.orc-alerta {
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.orc-alerta.cat-financeiro { border-left-color: var(--red); }
.orc-alerta.cat-tecnico { border-left-color: var(--ink-2); }
.orc-alerta.cat-saude { border-left-color: var(--green); }
.orc-alerta.cat-legal { border-left-color: var(--accent); }

.orc-alerta-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.orc-alerta.cat-financeiro .orc-alerta-cat { color: var(--red); }
.orc-alerta.cat-tecnico .orc-alerta-cat { color: var(--ink-2); }
.orc-alerta.cat-saude .orc-alerta-cat { color: var(--green); }
.orc-alerta.cat-legal .orc-alerta-cat { color: var(--accent); }

.orc-alerta h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.orc-alerta p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Premissas */
.orc-premissas {
  list-style: none;
  margin-top: 16px;
}

.orc-premissas li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}

.orc-premissas li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.orc-premissas li:last-child { border-bottom: none; }

/* Disclaimer */
.orc-disclaimer {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-top: 24px;
}

.orc-fontes {
  font-size: 13px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.orc-fontes-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 6px;
}

/* Pending payment */
.orc-pending {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.orc-pending h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}

.orc-pending h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.orc-pending p {
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

/* ============ PÁGINAS LEGAIS ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal .legal-date {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 14px;
  letter-spacing: -0.01em;
}

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.legal ul { padding-left: 20px; margin-bottom: 14px; }

@media (max-width: 720px) {
  .legal { padding: 50px 20px; }
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--red);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 2000;
  animation: slide-in 0.3s;
  max-width: 360px;
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 540px) {
  .toast { left: 12px; right: 12px; max-width: none; }
}

.hidden { display: none !important; }

/* ============ NOVAS SEÇÕES v3.1 ============ */

/* Programa arquitetônico - tabela desktop */
.orc-programa-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
}

.orc-programa-tabela thead th {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: left;
}

.orc-programa-tabela tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.orc-programa-tabela tbody tr:nth-child(even) { background: var(--paper); }

.orc-programa-tabela td.area {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.orc-programa-tabela td.obs {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}

.orc-programa-cards { display: none; }

.orc-programa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.orc-programa-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 12px;
}

.orc-programa-card-head h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.orc-programa-card-head .area {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

.orc-programa-card-dim {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.orc-programa-card-obs {
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
  padding: 6px 10px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  margin-top: 6px;
}

.orc-programa-total {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
}

.orc-programa-total strong { color: var(--ink); font-weight: 700; }

@media (max-width: 720px) {
  .orc-programa-tabela { display: none; }
  .orc-programa-cards { display: block; }
}

/* Projetos necessários */
.orc-projetos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.orc-projeto {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
}

.orc-projeto.obrigatorio { border-left-color: var(--red); }

.orc-projeto-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.orc-projeto-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--red);
  color: white;
  padding: 4px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.orc-projeto-badge.opcional { background: var(--ink-muted); }

.orc-projeto-head h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 150px;
}

.orc-projeto-custo {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
}

.orc-projeto-resp {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.orc-projeto-resp strong { color: var(--ink); }

.orc-projeto-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 540px) {
  .orc-projeto { padding: 14px 16px; }
  .orc-projeto-custo { width: 100%; text-align: left; font-size: 16px; }
}

/* Etapas - mini-seções (incluso, materiais, riscos, exigir) */
.orc-etapa-mini-secoes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.orc-etapa-mini span {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.orc-etapa-mini.risco span { color: var(--red); }
.orc-etapa-mini.exigir span { color: var(--ink); }

.orc-etapa-mini p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

@media (min-width: 720px) {
  .orc-etapa-mini-secoes { grid-template-columns: 1fr 1fr; }
}

/* Sinais de orçamento ruim */
.orc-sinais {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.orc-sinal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.orc-sinal-x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.orc-sinal-conteudo h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.orc-sinal-conteudo p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Barra de progresso do loading */
.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 20px auto 0;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  border-radius: 2px;
  width: 8%;
  transition: width 1.2s ease;
}
