/* FinaMorada, site institucional.
   Tokens do Design D (Ateliê sóbrio), artifacts/design-comps-2026-09-21:
   canvas claro, tinta verde-escura, lima só como acento, display grande,
   cantos de 20 a 24px e controles em pílula.
   Raios: pílula para tudo que é clicável, 24px para blocos, 16px para
   imagens dentro de blocos. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --color-canvas: #FBFBF9;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F1F2EF;
  --color-muted-band: #F2F3F0;
  --color-text: #131A17;
  --color-text-muted: #565E59;
  --color-text-faint: #676F6A;
  --color-border: #E6E8E4;
  --color-border-soft: #E9EBE7;
  --color-border-strong: #CCD1CC;
  --color-focus: #2C6BE8;
  --color-accent: #B9FF39;
  --color-accent-soft: #E9FFC0;
  --color-accent-border: #D3F293;
  --color-accent-ink: #37471A;
  --color-ink: #151F1B;
  --color-ink-raised: #1C2823;
  --color-ink-text: #B6C0BA;
  --color-ink-label: #8E9B94;
  --color-ink-rule: rgba(255, 255, 255, .1);
  --color-ink-hover: rgba(255, 255, 255, .07);
  --btn-primary-hover: #232F2A;
  --radius-block: 24px;
  --radius-shot: 16px;
  --shadow-card: 0 1px 2px rgba(19, 26, 23, .04), 0 14px 30px -22px rgba(19, 26, 23, .5);
  --shadow-lift: 0 2px 6px rgba(19, 26, 23, .07), 0 28px 50px -28px rgba(19, 26, 23, .55);
  --shadow-button: 0 2px 4px rgba(19, 26, 23, .12), 0 14px 30px -18px rgba(19, 26, 23, .8);
  --shadow-device: 0 2px 4px rgba(19, 26, 23, .06), 0 50px 90px -40px rgba(19, 26, 23, .55);
  --display-size: 52px;
  --hero-size: 64px;
  --wrap: 1200px;
  --gutter: 44px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--color-accent); color: var(--color-text); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; padding: 1px 7px; border-radius: 999px; background: var(--color-surface-hover); }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--color-text); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Marca: "F" lima sobre tinta, canto inferior esquerdo fechado. */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50% 50% 50% 8px; background: var(--color-accent); color: var(--color-text); font-size: 15px; font-weight: 800; }

.eyebrow, .label { color: var(--color-text-faint); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.display { font-size: var(--display-size); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
.lede { color: var(--color-text-muted); font-size: 18px; line-height: 1.6; max-width: 60ch; }

/* Cabeçalho: canvas translúcido sobre o conteúdo. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 249, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(230, 232, 228, .8); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-header .brand { margin-right: auto; }
.site-nav { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--color-text-muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.nav-link:hover { background: var(--color-surface-hover); color: var(--color-text); }
.nav-link[aria-current="page"] { background: var(--color-text); color: #fff; }

/* Botões em pílula. */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s, border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.button:active { transform: scale(.98); }
.button--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.button--primary { background: var(--color-text); color: #fff; box-shadow: var(--shadow-button); }
.button--primary:hover { background: var(--btn-primary-hover); transform: translateY(-2px); }
.button--primary:hover .icon { transform: translateX(3px); }
.button--primary .icon { transition: transform .35s var(--ease); }
.button--secondary { background: var(--color-surface); border-color: #DDE1DC; color: var(--color-text); }
.button--secondary:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); }

/* Hero: texto à esquerda, produto real à direita. */
.hero { padding: 56px 0 40px; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 40px; align-items: center; }
.hero__copy { display: grid; gap: 24px; }
.hero__title { font-size: var(--hero-size); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.hero__lede { color: var(--color-text-muted); font-size: 19px; line-height: 1.55; max-width: 34ch; }
.hero__stage { position: relative; padding: 36px 0 36px 36px; }
.hero__stage::before { content: ""; position: absolute; inset: 0 -30vw 0 0; border-radius: 32px 0 0 32px; background: var(--color-muted-band); border: 1px solid var(--color-border-soft); }
.device { position: relative; margin: 0; padding: 10px; border-radius: 28px; background: var(--color-ink); box-shadow: var(--shadow-device); transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.device img { border-radius: 18px; }

/* Seções */
.section { padding: 96px 0; }
.section-title { font-size: 44px; letter-spacing: -.04em; line-height: 1.06; max-width: 22ch; }
#recursos .section-title { margin-bottom: 40px; }

/* Bento: 4 blocos, largo/estreito alternados. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 300px; padding: 28px; overflow: hidden; border: 1px solid var(--color-border-soft); border-radius: var(--radius-block); background: var(--color-surface); box-shadow: var(--shadow-card); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile--wide { grid-column: span 2; flex-direction: row; align-items: flex-start; }
.tile__text { display: grid; gap: 10px; align-content: start; max-width: 34ch; }
.tile--wide .tile__text { flex: 0 0 min(300px, 42%); }
.tile__icon { width: 30px; height: 30px; margin-bottom: 8px; }
.tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.tile p { color: var(--color-text-muted); font-size: 15.5px; }
.tile__shot { flex: 1; min-width: 0; align-self: flex-end; position: relative; height: 300px; margin: 8px -28px -28px 0; overflow: hidden; border-radius: var(--radius-shot) 0 0 0; box-shadow: -1px -1px 0 var(--color-border-soft); }
.tile__shot img { position: absolute; top: 0; left: 0; width: 170%; max-width: none; transition: transform .8s var(--ease); transform-origin: left top; }
.tile:hover .tile__shot img { transform: scale(1.03); }
.tile--ink { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.tile--ink p { color: var(--color-ink-text); }
.tile--ink .tile__icon { color: var(--color-accent); }
.tile--ink .tile__shot { box-shadow: none; }
.tile--ink .tile__shot img { left: 0; }
.tile--lime { background: var(--color-accent-soft); border-color: var(--color-accent-border); }
.tile--lime p { color: var(--color-accent-ink); }
.tile--muted { background: var(--color-muted-band); }
.tile--muted .tile__shot img { left: -29.6%; }

/* Como funciona: trilho horizontal com passos. */
.section--flow { padding-top: 32px; }
.section--flow .eyebrow { margin-bottom: 14px; }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: var(--color-border-strong); }
.flow__step { position: relative; display: grid; gap: 10px; align-content: start; }
.flow__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border: 1px solid var(--color-border-soft); border-radius: 999px; background: var(--color-surface); box-shadow: var(--shadow-card); }
.flow__step:first-child .flow__icon { background: var(--color-accent); border-color: var(--color-accent); }
.flow__step h3 { font-size: 18px; font-weight: 700; }
.flow__step p { color: var(--color-text-muted); font-size: 15px; }
.flow__note { max-width: 70ch; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--color-border); color: var(--color-text-faint); font-size: 14.5px; }

/* Privacidade: único bloco escuro de conteúdo, como a barra do produto. */
.trust { margin: 0 16px; padding: 88px 0; border-radius: 32px; background: var(--color-ink); color: #fff; }
.trust__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.trust__head { display: grid; gap: 28px; }
.trust :focus-visible { outline-color: var(--color-accent); }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-ink-rule); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.pill-links a:hover { background: var(--color-ink-hover); border-color: rgba(255, 255, 255, .24); }
.trust__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.trust__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: var(--radius-block); background: var(--color-ink-raised); }
.trust__list .icon { width: 28px; height: 28px; color: var(--color-accent); }
.trust__list h3 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.trust__list p { color: var(--color-ink-text); font-size: 15px; }

/* Fechamento com contato. */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; padding: 48px; border: 1px solid var(--color-border-soft); border-radius: 32px; background: var(--color-surface); box-shadow: var(--shadow-card); }
.closing p { margin-top: 12px; color: var(--color-text-muted); font-size: 17px; }

/* Placeholder visível até ser preenchido em legalConfig. */
.placeholder { padding: 1px 8px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-ink); font-weight: 700; font-size: .92em; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #DDE1DC; border-radius: 999px; background: var(--color-surface); color: var(--color-text); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.link-list a:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); }

/* Páginas legais */
.legal { padding-top: 64px; padding-bottom: 96px; }
.page-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: 48px; }
.updated { color: var(--color-text-faint); font-size: 14px; }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal__toc { position: sticky; top: 92px; }
.legal__toc ol { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.legal__toc a { display: block; padding: 7px 12px; border-radius: 999px; color: var(--color-text-muted); font-size: 14px; font-weight: 550; text-decoration: none; }
.legal__toc a:hover { background: var(--color-surface-hover); color: var(--color-text); }
.legal__body { display: grid; gap: 16px; min-width: 0; }
.legal-section { display: grid; gap: 14px; min-width: 0; overflow-wrap: break-word; padding: 28px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-block); background: var(--color-surface); box-shadow: var(--shadow-card); color: var(--color-text-muted); }
.legal-section h2 { color: var(--color-text); font-size: 20px; font-weight: 700; }
.legal-section ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.legal-section a:not(.button) { color: var(--color-text); font-weight: 600; text-decoration-color: var(--color-border-strong); text-underline-offset: 3px; }
.legal-section a:not(.button):hover { text-decoration-color: var(--color-text); }
.legal-section strong { color: var(--color-text); }

.table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-shot); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
thead th { background: var(--color-muted-band); color: var(--color-text); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
tbody th { color: var(--color-text); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }

/* Rodapé: tinta, como a barra lateral do produto. */
.site-footer { padding: 56px 0 28px; background: var(--color-ink); color: var(--color-ink-text); font-size: 14.5px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--color-accent); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.site-footer__brand { display: grid; align-content: start; gap: 12px; }
.site-footer__facts { display: grid; gap: 12px; margin: 0; }
.site-footer__facts dt { color: var(--color-ink-label); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__facts dd { margin: 2px 0 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.site-footer__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-ink-rule); color: var(--color-ink-label); font-size: 13px; }
.site-footer .placeholder { background: rgba(185, 255, 57, .16); color: var(--color-accent); }

.not-found { display: grid; gap: 20px; justify-items: start; padding-top: 96px; padding-bottom: 24px; }

/* Movimento: só CSS, só transform e opacity, e só sem preferência por
   movimento reduzido. O conteúdo aparece mesmo sem suporte a animação. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes settle {
    from { opacity: 0; transform: perspective(1800px) rotateY(-22deg) rotateX(8deg) translateY(40px); }
    to { opacity: 1; transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); }
  }
  .hero__title, .hero__lede, .hero .actions { animation: rise .9s var(--ease) both; }
  .hero__lede { animation-delay: .08s; }
  .hero .actions { animation-delay: .16s; }
  .device { animation: settle 1.3s var(--ease) .1s both; }

  @supports (animation-timeline: view()) {
    @keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .flow__step.reveal { animation-range: entry calc(5% + var(--i) * 6%) cover calc(28% + var(--i) * 6%); }
  }
}

/* Responsivo */
@media (max-width: 1080px) {
  :root { --display-size: 44px; --hero-size: 56px; --gutter: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__lede { max-width: 48ch; }
  .hero__stage { padding: 28px 0 28px 28px; }
  .section-title { font-size: 38px; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile--wide { grid-column: 1 / -1; }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
  .flow::before { display: none; }
  .trust__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .legal__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal__toc { position: static; padding: 16px 12px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-block); background: var(--color-surface); }
  .legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --display-size: 36px; --hero-size: 42px; --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .site-header__bar { min-height: 60px; gap: 12px; }
  .site-nav { display: none; }
  .hero { padding: 36px 0 48px; }
  .hero__lede { font-size: 17px; }
  .hero__stage { padding: 16px 0 16px 16px; }
  .hero__stage::before { border-radius: 24px 0 0 24px; }
  .device { padding: 6px; border-radius: 18px; transform: none; }
  .device img { border-radius: 13px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  #recursos .section-title { margin-bottom: 28px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 22px; }
  .tile--wide { flex-direction: column; }
  .tile--wide .tile__text { flex: none; }
  .tile__shot { width: calc(100% + 22px); margin: 0 -22px -22px 0; }
  .tile__shot { flex: none; height: 220px; }
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 28px; margin-top: 32px; }
  .trust { margin: 0 8px; padding: 56px 0; border-radius: 24px; }
  .trust__list li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px; }
  .closing { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; border-radius: 24px; }
  .closing .button { justify-self: start; }
  .legal { padding-top: 40px; }
  .legal-section { padding: 22px 18px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes settle { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
