/* Financeriza — identidade oficial (ver docs/marca.md) */
:root {
  color-scheme: light;
  --navy: #13273F;
  --blue: #91ABDA;
  --blue-pale: #E4EAF5;
  --cream: #F1E9DC;
  --gold: #C19A32;
  --white: #FFFFFF;
  --muted: #5B6680;
  --line: rgba(19, 39, 63, .12);
  --display: 'Clash Display', 'Roboto', 'Segoe UI', sans-serif;
  --body: 'Roboto', 'Segoe UI', sans-serif;
  --radius: 22px;
  font-family: var(--body);
  color: var(--navy);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--blue); color: var(--navy); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }

.nav-wrap, .container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* Cabeçalho */
.site-header {
  position: sticky; z-index: 20; top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 233, 220, .92);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; text-decoration: none; }
.site-header .brand img { width: 168px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); font-size: .9rem; font-weight: 500; text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }

/* Botões */
.nav-links .nav-cta, .button-primary, .format-quote {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--navy); color: var(--white); opacity: 1;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: transform .2s, background .2s;
}
.nav-links .nav-cta:hover, .button-primary:hover, .format-quote:hover { transform: translateY(-2px); background: #1c3656; }
.button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border: 1.5px solid var(--navy); border-radius: 999px;
  color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: transform .2s, background .2s;
}
.button-secondary:hover { transform: translateY(-2px); background: rgba(19, 39, 63, .05); }
.arrow { font-size: 1.05rem; line-height: 1; }

.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--navy); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* Linhas verticais da marca (templates de feed e stories) */
.brand-lines { position: absolute; z-index: 0; display: flex; gap: 14px; pointer-events: none; }
.brand-lines i { display: block; width: 4px; background: var(--navy); }
.brand-lines i:nth-child(odd) { background: var(--blue); }
.lines-top { top: 0; left: 0; align-items: flex-start; }
.lines-top i:nth-child(1) { height: 360px; } .lines-top i:nth-child(2) { height: 300px; }
.lines-top i:nth-child(3) { height: 240px; } .lines-top i:nth-child(4) { height: 190px; }
.lines-bottom { right: 0; bottom: 0; align-items: flex-end; flex-direction: row-reverse; }
.lines-bottom i:nth-child(1) { height: 330px; } .lines-bottom i:nth-child(2) { height: 280px; }
.lines-bottom i:nth-child(3) { height: 230px; } .lines-bottom i:nth-child(4) { height: 180px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
.hero h1 { max-width: 620px; margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.05; }
.hero-copy { max-width: 540px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-copy strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-footnote { display: flex; align-items: flex-start; gap: 10px; max-width: 500px; margin: 26px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.hero-footnote svg { flex: 0 0 18px; color: var(--navy); }
.hero-seal { display: grid; place-items: center; }
.hero-seal img { width: min(100%, 420px); }

/* Ícones de linha em círculo azul-claro (destaques do Instagram) */
.line-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--blue); border-radius: 50%; color: var(--navy); }
.line-icon svg { width: 21px; height: 21px; }

/* Faixa de confiança */
.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.trust-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-block: 20px; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .88rem; font-weight: 500; }
.trust-item .line-icon { width: 38px; height: 38px; }
.trust-item .line-icon svg { width: 18px; height: 18px; }

/* Seções */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-heading { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* Serviços (fundo marinho) */
.routines-section { background: var(--navy); color: var(--cream); }
.routines-section .eyebrow { color: var(--blue); }
.routines-section h2 { color: var(--white); }
.routines-section .section-heading p { color: rgba(241, 233, 220, .72); }
.routine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.routine-card { padding: 26px; border: 1px solid rgba(145, 171, 218, .25); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.routine-card .line-icon { margin-bottom: 20px; color: var(--cream); }
.routine-card h3 { margin-bottom: 9px; color: var(--white); font-size: 1.08rem; }
.routine-card p { margin: 0; color: rgba(241, 233, 220, .7); font-size: .9rem; line-height: 1.65; }

/* Pattern oficial "fz" */
.pattern-band {
  height: 164px;
  background: var(--cream) url("assets/marca/pattern-tile.png") 0 0 / 168px 164px repeat-x;
}

/* Como funciona */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.step-number { display: block; margin-bottom: 18px; color: var(--blue); font: 600 2.6rem/1 var(--display); }
.process-card h3 { margin-bottom: 9px; font-size: 1.1rem; }
.process-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* Planos */
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.format-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.format-card.featured { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.format-watermark { position: absolute; right: -40px; bottom: -30px; width: 230px; opacity: .07; pointer-events: none; }
.format-badge { position: absolute; top: 0; right: 0; padding: 8px 14px; border-radius: 0 0 0 14px; background: var(--blue); color: var(--navy); font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.format-card-top { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.featured .format-card-top { border-color: rgba(241, 233, 220, .18); }
.format-card-top > span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.featured .format-card-top > span { color: var(--blue); }
.format-card-top h3 { margin: 10px 0 8px; font-size: 1.6rem; }
.featured h3 { color: var(--white); }
.format-card-top p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.featured .format-card-top p { color: rgba(241, 233, 220, .72); }
.format-list { display: grid; gap: 11px; margin: 22px 0; padding: 0; list-style: none; }
.format-list li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.45; }
.format-list li::before { content: '✓'; color: var(--blue); font-weight: 700; }
.format-card:not(.featured) .format-list li::before { color: var(--navy); }
.format-price { display: grid; gap: 3px; margin: auto 0 6px; }
.format-price strong { font: 600 1.4rem/1.25 var(--display); }
.format-price small { color: var(--muted); font-size: .72rem; }
.featured .format-quote { position: relative; margin: auto 0 16px; background: var(--blue); color: var(--navy); }
.featured .format-quote:hover { background: #a9bfe4; }
.format-note { position: relative; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.5; }
.featured .format-note { border-color: rgba(241, 233, 220, .18); color: rgba(241, 233, 220, .66); }

/* Dúvidas */
.faq-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.faq-intro h2 { margin-bottom: 15px; font-size: clamp(2rem, 3.5vw, 2.7rem); line-height: 1.1; }
.faq-intro p { margin: 0; color: var(--muted); line-height: 1.7; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; cursor: pointer; font: 600 1rem/1.45 var(--display); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--blue); border-radius: 50%; font: 400 1.1rem/1 var(--body); transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -4px 22px 20px; color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* Contato */
.contact-section { padding-top: 0; }
.contact-panel { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; overflow: hidden; padding: 48px; border-radius: 28px; background: var(--navy); color: var(--cream); }
.contact-watermark { position: absolute; right: 22%; top: 50%; width: 360px; opacity: .06; transform: translateY(-50%); pointer-events: none; }
.contact-copy, .contact-actions { position: relative; z-index: 1; }
.contact-copy .eyebrow { color: var(--blue); }
.contact-copy h2 { max-width: 600px; margin-bottom: 12px; color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; }
.contact-copy p { max-width: 540px; margin: 0; color: rgba(241, 233, 220, .74); line-height: 1.65; }
.contact-actions { width: min(100%, 300px); display: grid; gap: 10px; }
.contact-button { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border: 1px solid rgba(145, 171, 218, .4); border-radius: 14px; color: var(--cream); font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.contact-button:hover { transform: translateY(-2px); background: rgba(145, 171, 218, .12); }
.contact-button.whatsapp-button { border-color: var(--blue); background: var(--blue); color: var(--navy); }
.contact-button.whatsapp-button:hover { background: #a9bfe4; }
.contact-detail { font-size: .74rem; font-weight: 400; opacity: .85; text-align: right; }

/* Rodapé com faixa diagonal (timbrado) */
.site-footer { position: relative; overflow: hidden; padding: 40px 0 0; background: var(--navy); color: rgba(241, 233, 220, .72); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-bottom: 36px; }
.footer-row .brand img { width: 170px; }
.footer-copy { margin: 0; font-size: .78rem; line-height: 1.7; }
.footer-copy a { text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--white); }
.footer-seal { width: 72px; opacity: .9; }
.footer-stripe { height: 34px; background: linear-gradient(176deg, var(--navy) 0 44%, var(--blue) 45% 100%); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Linhas do canto esquerdo só quando há margem livre ao lado do conteúdo */
@media (max-width: 1279px) {
  .lines-top { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-seal img { width: min(70%, 320px); }
  .routine-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .lines-top { display: none; }
  .lines-bottom i { transform: scaleY(.5); transform-origin: bottom; }
}
@media (max-width: 620px) {
  .nav-wrap, .container { width: min(100% - 32px, 1120px); }
  .nav-wrap { min-height: 66px; }
  .site-header .brand img { width: 134px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { min-height: 40px; padding-inline: 14px; font-size: .78rem; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .brand-lines { gap: 9px; }
  .brand-lines i { width: 3px; }
  .lines-bottom i { transform: scaleY(.32); }
  .trust-items { grid-template-columns: 1fr; gap: 12px; }
  .trust-item { justify-content: flex-start; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 30px; text-align: left; }
  .routine-grid, .process-grid, .format-grid { grid-template-columns: 1fr; gap: 12px; }
  .routine-card, .process-card { padding: 22px; }
  .format-card { padding: 24px; }
  .pattern-band { height: 115px; background-size: 118px 115px; }
  .contact-section { padding-top: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 30px 22px; }
  .contact-actions { width: 100%; }
  .contact-watermark { right: -60px; width: 260px; }
  .footer-row { grid-template-columns: 1fr; gap: 18px; }
  .footer-seal { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .site-header, .brand-lines, .pattern-band, .button-primary, .button-secondary { display: none !important; }
  body { background: white; }
  .section { padding: 32px 0; }
}
