/* Lexend (SIL Open Font License, ver assets/fonts/OFL.txt), hospedada junto com o site */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/lexend-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/lexend-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #12131A; --paper: #F6F3EC; --lime: #C8F542; --violet: #4B3BFF; --coral: #FF5A36;
  --bg: var(--ink); --fg: var(--paper); --accent: var(--lime);
  --gutter: clamp(16px, 5vw, 88px);
  --font: "Lexend", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --radius: clamp(22px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); font-size: 18px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.grain-def { position: absolute; width: 0; height: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 40; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; box-shadow: 0 0 0 2px var(--paper); }

.surface { position: relative; isolation: isolate; background: radial-gradient(ellipse 75% 75% at 50% 40%, color-mix(in srgb, var(--bg) 84%, white), var(--bg) 52%, color-mix(in srgb, var(--bg) 70%, black)); color: var(--fg); }
.surface::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); background-size: 240px 240px; opacity: .15; mix-blend-mode: overlay; pointer-events: none; }

.hero, .film, .footer { background: radial-gradient(ellipse 72% 72% at 50% 42%, color-mix(in srgb, var(--bg) 87%, white), var(--bg) 68%); }

.nav { position: fixed; z-index: 30; top: 14px; left: var(--gutter); right: var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 12px 0 20px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 6px 0 var(--ink); }
.nav-logo { display: block; width: 92px; line-height: 0; }
.nav nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 16px; }
.nav nav a:hover { color: var(--violet); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 26px; border: 3px solid var(--ink); border-radius: 16px; background: var(--lime); color: var(--ink); box-shadow: 5px 6px 0 var(--ink); font: 700 17px var(--font); text-decoration: none; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 4px 0 var(--ink); }
.btn:active { transform: translate(5px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-small { min-height: 42px; padding: 6px 16px; font-size: 15px; border-radius: 12px; box-shadow: 3px 4px 0 var(--ink); white-space: nowrap; }
.btn-small:hover { transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.hero .btn, .assistant .btn { box-shadow: 5px 6px 0 var(--violet); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 5px 6px 0 var(--violet); width: 100%; }

.eyebrow { color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.lead { max-width: 560px; font-size: clamp(18px, 1.5vw, 22px); }
.fita { display: block; width: 100%; height: auto; overflow: visible; }
.fita path { fill: none; stroke: currentColor; stroke-linecap: butt; stroke-linejoin: round; }
.fita circle { fill: currentColor; }
.fita.is-drawing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.6,0,.2,1) forwards; animation-delay: var(--d); }
.fita.is-drawing circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: dot .3s cubic-bezier(.3,1.7,.5,1) forwards; animation-delay: calc(var(--d) + .35s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { to { transform: scale(1); } }

.hero { --bg: var(--ink); min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(20px, 3vw, 56px); padding: 112px var(--gutter) 48px; }
.hero .fita-title { color: var(--lime); width: min(100%, 680px); margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-character { width: min(100%, 76vh); justify-self: center; aspect-ratio: 1; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 28%; }
.character { display: block; width: 100%; height: 100%; overflow: visible; }

.section-head { max-width: 860px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.film { --bg: var(--ink); padding: clamp(64px, 8vw, 120px) var(--gutter); }
.video-frame { border: 4px solid var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 10px 12px 0 var(--violet); line-height: 0; background: var(--ink); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

.services { --bg: var(--coral); --fg: var(--ink); --accent: var(--ink); overflow: hidden; transition: color .25s; }
.services[data-tone="violet"] { --bg: var(--violet); --fg: var(--paper); --accent: var(--lime); }
.services[data-tone="paper"] { --bg: var(--paper); --fg: var(--ink); --accent: var(--violet); }
.services[data-tone="ink"] { --bg: var(--ink); --fg: var(--paper); --accent: var(--lime); }
.services[data-tone="lime"] { --bg: var(--lime); --fg: var(--ink); --accent: var(--violet); }
.iris { position: absolute; inset: 0; z-index: -1; clip-path: circle(0 at 72% 48%); }
.iris.run { animation: iris .5s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes iris { to { clip-path: circle(150% at 72% 48%); } }
.services-inner { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(84px, 8vw, 120px) var(--gutter); }
.service-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.service-tabs button { min-height: 44px; padding: 6px 15px; border: 2.5px solid currentColor; border-radius: 12px; background: transparent; color: inherit; font: 600 16px var(--font); cursor: pointer; }
.service-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.service-word { color: var(--fg); width: min(100%, 610px); min-height: clamp(90px, 10vw, 150px); margin-bottom: 18px; }
.service-name { font-weight: 700; font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.service-text { max-width: 560px; margin-bottom: 18px; }
.service-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.service-list li { padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 13%, transparent); font-size: 15px; font-weight: 600; }
.service-character { width: min(100%, 72vh); aspect-ratio: 1; justify-self: center; }

.process { --bg: var(--paper); --fg: var(--ink); --accent: var(--violet); padding: clamp(72px, 9vw, 130px) var(--gutter); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: 0; margin: 0; }
.steps li { background: #fff8; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 7px 0 var(--ink); padding: clamp(22px, 2.4vw, 34px); }
.step-face { width: min(62%, 210px); aspect-ratio: 1; margin-bottom: 18px; }
.steps h3 { color: var(--violet); height: clamp(56px, 5vw, 76px); margin-bottom: 14px; }
.steps h3 .fita { height: 100%; width: auto; max-width: 100%; }

.assistant { --bg: var(--violet); --fg: var(--paper); --accent: var(--lime); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(72px, 9vw, 130px) var(--gutter); }
.fita-title.small { color: var(--lime); width: min(62%, 300px); margin-bottom: 22px; }
.note { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--lime); }
.chat { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 9px 10px 0 var(--ink); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 3px solid var(--ink); background: var(--lime); }
.chat-head strong, .chat-head small { display: block; line-height: 1.25; }
.chat-avatar { width: 52px; height: 52px; flex: none; }
.chat-log { height: 310px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.42; }
.msg.bot { background: #e9e5dc; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: hop .7s infinite; }
.typing i:nth-child(2) { animation-delay: .12s; } .typing i:nth-child(3) { animation-delay: .24s; }
@keyframes hop { 50% { transform: translateY(-5px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 16px 16px; border-top: 2px solid #d9d4ca; }
.chat-chips button { min-height: 40px; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 11px; background: #fff; color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
.chat-chips button:hover { background: var(--lime); }

.contact { --bg: var(--lime); --fg: var(--ink); --accent: var(--violet); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(72px, 9vw, 130px) var(--gutter); }
.contact .fita-title { width: min(100%, 620px); margin-bottom: 24px; }
.contact-face { width: min(52%, 250px); aspect-ratio: 1; margin-top: 28px; }
form { display: grid; gap: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 9px 10px 0 var(--ink); padding: clamp(20px, 3vw, 36px); }
label { display: grid; gap: 6px; font-weight: 700; font-size: 16px; }
input, textarea { width: 100%; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px var(--font); resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C72E10; }
.error { color: #B4280C; font-size: 14px; font-weight: 600; min-height: 0; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }

.footer { --bg: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 38px var(--gutter); }
.footer [data-logo] { display: block; width: 130px; line-height: 0; }
.footer small { opacity: .75; }

@property --intro-hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.intro { display: none; }
.has-intro, .has-intro body { overflow: hidden; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ink); }
.intro video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-controls { position: absolute; right: max(16px, 2.4vw); bottom: max(16px, 2.4vw); display: flex; gap: 8px; }
.intro-controls button { min-height: 44px; padding: 7px 16px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); font: 700 15px var(--font); cursor: pointer; }
.intro-controls button:hover { background: var(--lime); }
.intro.leaving { pointer-events: none; -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-hole), #000 calc(var(--intro-hole) + 1px)); mask-image: radial-gradient(circle at 50% 50%, transparent var(--intro-hole), #000 calc(var(--intro-hole) + 1px)); animation: intro-open .68s cubic-bezier(.65,0,.25,1) forwards; }
.intro.leaving .intro-controls { display: none; }
@keyframes intro-open { to { --intro-hole: 125vmax; } }

@media (max-width: 920px) {
  body { font-size: 17px; }
  .nav { height: 58px; top: 10px; left: 12px; right: 12px; padding: 0 8px 0 14px; }
  .nav nav { display: none; }
  .nav-logo { width: 82px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 92px; gap: 18px; }
  .hero-character { order: -1; width: min(82vw, 44svh); }
  .services-inner, .assistant, .contact { grid-template-columns: minmax(0, 1fr); }
  .service-character { order: -1; width: min(66vw, 300px); }
  .services-inner { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-face { width: 130px; }
  .chat-log { height: 280px; }
  .video-frame { box-shadow: 5px 6px 0 var(--violet); border-width: 3px; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
