/* Butter Code — landing page */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --indigo: #222E50;
  --indigo-2: #2C3A63;
  --indigo-line: #34406A;
  --custard: #F5E8AA;
  --cream: #FFFBEE;
  --white: #FFFFFF;
  --fern: #628B48;
  --fern-text: #4A6B35;
  --fern-light: #A9CC8F;
  --fern-bg: #E3EED9;
  --steel: #95A3B3;
  --steel-light: #C9D1DC;
  --rose: #DA667B;
  --line: #EFE3B4;
  --muted: #4C5670;
  --ink-2: #3A4566;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--indigo);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); }
a:hover { color: var(--fern-text); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 251, 238, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--indigo); }
.wordmark span { font-family: var(--mono); font-weight: 500; font-size: .875em; color: var(--fern-text); letter-spacing: 0; }
.wordmark-sm { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav-links a:not(.btn) { text-decoration: none; }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 16px 28px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-primary { background: var(--indigo); color: var(--custard); }
.btn-primary:hover { color: var(--custard); transform: translateY(-2px); box-shadow: 0 6px 0 var(--custard), 0 6px 0 1px var(--indigo); }
.btn-outline { border: 2px solid var(--indigo); padding: 14px 26px; color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--custard); }
.btn-sm { padding: 11px 20px; font-size: 16px; }
.btn-lg { padding: 18px 28px; }
.btn-outline.btn-lg { padding: 16px 26px; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--fern); outline-offset: 3px; }

.tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  background: var(--custard); padding: 6px 12px; border-radius: 6px;
}
.eyebrow { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--fern-text); }
.pill { font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: var(--fern-bg); color: var(--fern-text); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.rotator {
  display: inline-block; position: relative;
  min-height: 1.1em;
  background: linear-gradient(transparent 58%, var(--custard) 58%, var(--custard) 92%, transparent 92%);
  padding-right: .08em;
}
.caret {
  display: inline-block; width: .09em; height: .82em; margin-left: .06em;
  background: var(--fern); vertical-align: -0.06em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.terminal {
  flex: 1 1 420px; min-width: 0;
  background: var(--indigo); border-radius: 20px; padding-bottom: 28px;
  box-shadow: 12px 12px 0 var(--custard); overflow: hidden;
}
.terminal-bar { display: flex; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--indigo-line); }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--rose); }
.terminal-bar span:nth-child(2) { background: var(--custard); }
.terminal-bar span:nth-child(3) { background: var(--fern); }
.terminal-body { padding: 24px 28px 0; font-family: var(--mono); font-size: 16px; line-height: 2; color: var(--steel-light); overflow-x: auto; }
.terminal-body > div { white-space: pre; }
.terminal-body b { color: var(--custard); font-weight: 500; }
.terminal-body .dim { color: var(--steel); }
.terminal-body .ok { color: var(--fern-light); }
#term-word { color: var(--custard); }
.block-caret { display: inline-block; width: 10px; height: 20px; background: var(--custard); vertical-align: middle; animation: blink 1s steps(1) infinite; }

/* ---------- Sections ---------- */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; margin-bottom: 48px; }
.section h2, .tools h2 { font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p, .tools-text > p { font-size: 18px; line-height: 1.6; color: var(--muted); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--custard); }
.card svg { width: 36px; height: 36px; fill: none; stroke: var(--indigo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3, .steps h3 { font-size: 22px; font-weight: 700; }
.card p, .steps p { line-height: 1.6; color: var(--muted); }

/* ---------- Ferramentas ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.tools-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tool-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tool-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 14px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.tool-list li::before { content: '>'; position: absolute; left: 4px; top: 14px; font-family: var(--mono); font-weight: 700; color: var(--fern); }
.tool-list b { font-weight: 600; font-size: 17px; }
.tool-list span { color: var(--muted); }

.demo {
  flex: 1 1 380px; min-width: 0; max-width: 480px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--indigo); border-radius: 20px;
  box-shadow: 10px 10px 0 var(--indigo); overflow: hidden;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: var(--custard); border-bottom: 2px solid var(--indigo); }
.demo-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.demo-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.demo label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.field {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--steel); border-radius: 12px; padding: 0 14px; background: var(--cream);
}
.field:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px var(--custard); }
.field i { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 15px; }
.field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--indigo); padding: 13px 0;
}
.demo-result { display: flex; flex-direction: column; gap: 4px; background: var(--indigo); color: var(--cream); border-radius: 14px; padding: 18px 20px; }
.demo-result span { font-family: var(--mono); font-size: 13px; color: var(--steel-light); }
.demo-result strong { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; color: var(--custard); }
.demo-note { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--indigo); padding-top: 20px; }
.step-n { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--fern-text); }

/* ---------- Projetos ---------- */
.band-indigo { background: var(--indigo); color: var(--cream); }
.band-indigo .eyebrow { color: var(--custard); }
.grid-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project { background: var(--indigo-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.project h3 { font-size: 22px; font-weight: 700; }
.project p { line-height: 1.6; color: var(--steel-light); }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 13px; border: 1px solid var(--steel); color: var(--steel-light); padding: 4px 10px; border-radius: 999px; }

.shot { height: 180px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
.shot-custard { background: var(--custard); }
.shot-fern { background: var(--fern-light); }
.shot-rose { background: #F2B8C2; }
.mock { width: 100%; max-width: 250px; background: var(--white); border: 2px solid var(--indigo); border-radius: 10px; box-shadow: 4px 4px 0 var(--indigo); color: var(--indigo); font-family: var(--mono); font-size: 11px; }

.mock-agenda { padding: 10px; position: relative; display: flex; flex-direction: column; gap: 5px; }
.mock-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mock-row i { height: 18px; border-radius: 4px; background: var(--cream); border: 1px solid var(--line); }
.mock-head span { text-align: center; font-weight: 700; }
.mock-row .slot.a { background: var(--indigo); border-color: var(--indigo); }
.mock-row .slot.b { background: var(--fern-light); border-color: var(--fern); }
.mock-row .slot.c { background: var(--custard); border-color: #E6CF72; }
.mock-chip { position: absolute; right: -10px; bottom: -14px; background: var(--fern-bg); color: var(--fern-text); font-weight: 700; padding: 4px 8px; border-radius: 999px; border: 1.5px solid var(--fern); }

.mock-market { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mock-listing { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.mock-listing svg { width: 64px; height: 36px; flex: none; }
.mock-lines { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mock-lines b { height: 7px; width: 85%; background: var(--indigo); border-radius: 4px; }
.mock-lines i { height: 6px; width: 60%; background: var(--steel-light); border-radius: 4px; }
.mock-lines em { font-style: normal; font-weight: 700; color: var(--fern-text); }
.mock-bubble { max-width: 80%; padding: 4px 8px; border-radius: 8px; font-family: var(--text); font-size: 11px; }
.mock-bubble.left { align-self: flex-start; background: var(--cream); border: 1px solid var(--line); }
.mock-bubble.right { align-self: flex-end; background: var(--indigo); color: var(--custard); }

.mock-calc { padding: 6px 12px; }
.mock-calc div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mock-calc span { color: var(--muted); }
.mock-calc .total { border-bottom: 0; font-size: 13px; }
.mock-calc .total span { color: var(--indigo); font-weight: 700; }
.mock-calc .total b { color: var(--fern-text); }

/* ---------- Contato ---------- */
.cta {
  background: var(--custard); border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; }
.cta-text p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.cta-actions { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn-outline { font-size: 16px; overflow-wrap: anywhere; }
.cta-phone { text-align: center; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--fern); color: var(--white);
  box-shadow: 0 6px 20px rgba(34, 46, 80, .28);
  transition: transform .15s ease;
}
.wa-float:hover { color: var(--white); transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .nav-links a:not(.btn) { display: none; }
  .nav .btn-sm { white-space: nowrap; padding: 10px 16px; font-size: 15px; }
  .brand { gap: 8px; }
  .brand .mark { width: 36px; height: 33px; }
  .wordmark { font-size: 21px; }
  .tag { font-size: 12px; }
  .demo-title { font-size: 18px; }
  .site-footer { padding-bottom: 72px; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 18px; }
  .terminal { box-shadow: 8px 8px 0 var(--custard); }
  .terminal-body { font-size: 14px; padding: 20px 20px 0; }
  .demo { box-shadow: 6px 6px 0 var(--indigo); }
  .actions .btn { flex: 1 1 auto; }
  .cta-actions { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .caret, .block-caret { animation: none; }
  .card, .btn, .wa-float { transition: none; }
}
