@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --black: #000;
  --panel: #08110c;
  --raised: #122019;
  --line: #24352c;
  --ink: #f3f7f2;
  --mute: #a0aea6;
  --neon: #19ff8c;
  --neon-dim: #0d6b3e;
  --wait: #ffb84d;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
svg { display: block; }
h2 {
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 600;
  max-width: 17ch;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; background: var(--neon); color: #000; padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-stuck { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--neon); stroke-width: 3; stroke-linejoin: miter; }
.top nav { display: flex; gap: 30px; }
.top nav a { font-size: .95rem; color: var(--mute); text-decoration: none; transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.top-cta { font-size: .95rem; font-weight: 600; text-decoration: none; padding: 9px 16px; border: 1px solid var(--neon-dim); border-radius: 6px; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.top-cta:hover { background: var(--neon); border-color: var(--neon); color: #000; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 24px;
  background: var(--neon); color: #000;
  font-weight: 700; text-decoration: none; border-radius: 8px;
  box-shadow: 0 0 0 0 rgb(25 255 140 / 0);
  transition: box-shadow .2s var(--ease), transform .12s var(--ease);
}
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn:hover { box-shadow: 0 0 34px rgb(25 255 140 / .34); }
.btn:active { transform: scale(.98); }
.link {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--neon);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color .15s;
}
.link:hover { color: var(--neon); }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .72fr);
  gap: clamp(32px, 5vw, 88px); align-items: end;
  min-height: 100svh; padding: 112px var(--gutter) 56px;
}
.hero::before {
  content: ""; position: absolute; right: 0; bottom: 0; width: 56vw; height: 80%;
  background: radial-gradient(ellipse at 76% 72%, rgb(25 255 140 / .12), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; }
h1 {
  font-size: clamp(2.85rem, 6.7vw, 7rem);
  line-height: .98; letter-spacing: -.04em; font-weight: 600;
  max-width: 14ch; text-wrap: balance;
}
.lede { margin-top: clamp(24px, 3vw, 40px); max-width: 56ch; color: var(--mute); font-size: clamp(1.0625rem, 1.4vw, 1.3rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

.run { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 1px solid var(--neon-dim); }
.run-time { font-size: 2.4rem; line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--wait); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.b { width: fit-content; max-width: 88%; padding: 9px 13px; border-radius: 12px; font-size: .98rem; line-height: 1.35; }
.b.them { background: var(--raised); border-bottom-left-radius: 3px; }
.b.me { align-self: flex-end; background: var(--neon); color: #00170b; font-weight: 500; border-bottom-right-radius: 3px; }
.w { position: relative; padding-left: 14px; color: var(--neon); font-size: .88rem; line-height: 1.3; }
.w::before { content: ""; position: absolute; left: -24px; top: .42em; width: 7px; height: 7px; background: var(--neon); border-radius: 50%; box-shadow: 0 0 10px var(--neon); }
.run figcaption { margin-top: 8px; font-size: .8rem; color: var(--mute); }
.js .run.is-armed > * { opacity: 0; transform: translateY(6px); }
.js .run.is-armed > .on { opacity: 1; transform: none; transition: opacity .32s var(--ease), transform .32s var(--ease); }

/* Hours */
.hours, .work, .demo-section, .segments, .process, .compare, .faq { padding: var(--section) var(--gutter) 0; }
.hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px clamp(40px, 7vw, 120px); align-items: start; }
.hours-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hours-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--mute); }
.hours-form select { width: 100%; min-height: 48px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 1rem; }
.day { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 72px; margin-top: 32px; }
.day i { background: var(--raised); transition: background .25s; }
.day i.open { background: var(--neon); }
.day-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: .82rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.hours-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 28px; }
.hours-result strong { font-size: clamp(4.5rem, 10vw, 9rem); line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--wait); font-variant-numeric: tabular-nums; }
.hours-result span { max-width: 24ch; font-size: 1.2rem; line-height: 1.25; }
.pains { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--mute); }

/* Work */
.work-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 32px clamp(40px, 7vw, 120px); align-items: end; }
.work-head p { color: var(--mute); font-size: 1.15rem; max-width: 42ch; }
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, var(--neon), var(--neon-dim)); }
.flow li { position: relative; padding-top: 34px; }
.flow li::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--black); border: 2px solid var(--neon); }
.flow p { margin-top: 8px; color: var(--mute); font-size: 1rem; max-width: 24ch; }

/* Demo */
.demo-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 24px clamp(40px, 7vw, 120px); align-items: end; }
.demo-head p { color: var(--mute); font-size: 1.15rem; max-width: 42ch; }
.seg-tabs { display: flex; gap: 8px; margin-top: 48px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 3px var(--gutter); }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs button { flex: none; min-height: 44px; padding: 8px 16px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.seg-tabs button:hover { color: var(--ink); border-color: var(--neon-dim); }
.seg-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #000; font-weight: 600; }
.demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.phone { display: flex; flex-direction: column; height: 620px; min-width: 0; border-right: 1px solid var(--line); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--raised); }
.phone-top > span:nth-child(2) { display: grid; line-height: 1.15; min-width: 0; }
.phone-top small { color: var(--mute); font-size: .8rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--neon); color: #000; font-weight: 700; }
.reset { margin-left: auto; min-height: 36px; padding: 4px 10px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); font-size: .88rem; cursor: pointer; }
.reset:hover { color: var(--ink); }
.thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; overflow-y: auto; overscroll-behavior: contain; }
.thread .b { animation: pop .24s var(--ease); }
.thread .b.me { background: #0c5c38; color: var(--ink); font-weight: 400; align-self: flex-start; border-radius: 12px; border-bottom-left-radius: 3px; }
.thread .b.them { align-self: flex-end; background: var(--raised); border-radius: 12px; border-bottom-right-radius: 3px; }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 12px 14px; background: #0c5c38; border-radius: 12px; }
.typing i { width: 6px; height: 6px; background: var(--ink); border-radius: 50%; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.thread .w { display: none; }
.choices { display: flex; flex-direction: column; gap: 8px; min-height: 124px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.choices button { width: 100%; min-height: 44px; padding: 8px 14px; text-align: left; background: var(--black); border: 1px solid var(--neon-dim); border-radius: 8px; cursor: pointer; line-height: 1.25; transition: border-color .15s, background .15s; }
.choices button:hover { border-color: var(--neon); background: var(--panel); }
.choices .btn { min-height: 52px; font-size: 1rem; }
.backstage { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 3vw, 36px); }
.backstage h3 { font-size: 1.6rem; letter-spacing: -.02em; }
.backstage ol { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; margin-top: 24px; overflow-y: auto; }
.backstage li { position: relative; padding: 0 0 18px 24px; color: var(--ink); line-height: 1.3; animation: pop .28s var(--ease); }
.backstage li::before { content: ""; position: absolute; left: 0; top: .34em; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgb(25 255 140 / .8); }
.backstage li::after { content: ""; position: absolute; left: 4px; top: 1.1em; bottom: -.3em; width: 1px; background: var(--neon-dim); }
.backstage li:last-child::after { display: none; }
.backstage li small { display: block; margin-top: 2px; color: var(--mute); font-size: .88rem; }
.backstage li.empty { color: var(--mute); padding-left: 0; animation: none; }
.backstage li.empty::before, .backstage li.empty::after { display: none; }
.backstage-note { margin-top: 16px; font-size: .85rem; color: var(--mute); }

/* Segments */
.seg-list { margin-top: 56px; border-top: 1px solid var(--line); }
.seg-list details { border-bottom: 1px solid var(--line); }
.seg-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: clamp(16px, 2vw, 24px) 0; cursor: pointer; list-style: none;
  font-size: clamp(1.6rem, 3.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 500;
  color: var(--mute); transition: color .15s;
}
.seg-list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.seg-list summary:hover, .seg-list details[open] summary { color: var(--ink); }
.seg-list summary::after, .faq summary::after { content: "+"; flex: none; color: var(--neon); font-weight: 400; transition: transform .2s var(--ease); }
.seg-list details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.seg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px clamp(32px, 5vw, 72px); align-items: start; padding: 4px 0 36px; }
.seg-body > p { max-width: 42ch; color: var(--mute); font-size: 1.15rem; }
.seg-body ul { display: grid; gap: 7px; }
.seg-body li { padding-left: 18px; position: relative; }
.seg-body li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--neon); }

/* Process */
.process ol { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.process li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--neon-dim); }
.process li:nth-child(2) { margin-top: 40px; }
.process li:nth-child(3) { margin-top: 80px; }
.process li:nth-child(4) { margin-top: 120px; }
.process li::before { content: counter(step); display: block; margin-bottom: 20px; font-size: clamp(3rem, 5vw, 4.75rem); line-height: 1; letter-spacing: -.04em; color: var(--neon); font-weight: 500; }
.process p { margin-top: 10px; color: var(--mute); max-width: 30ch; }

/* Compare */
.table-wrap { margin-top: 56px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 20px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
thead th { font-weight: 600; color: var(--mute); }
thead th:last-child { color: var(--neon); }
tbody th { width: 22%; font-weight: 600; }
tbody td:nth-child(2) { width: 34%; color: var(--mute); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.faq h2 { position: sticky; top: 104px; font-size: clamp(2.25rem, 4.4vw, 4rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: 1.2rem; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::after { font-size: 1.5rem; line-height: 1.1; }
.faq details p { max-width: 62ch; padding: 0 36px 22px 0; color: var(--mute); }

/* Close */
.close {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 40px clamp(40px, 7vw, 120px); align-items: end;
  margin-top: var(--section); padding: clamp(64px, 9vw, 136px) var(--gutter);
  background: var(--neon); color: #00170b;
}
.close h2 { font-size: clamp(2.5rem, 6.2vw, 6.25rem); line-height: .98; letter-spacing: -.04em; max-width: 16ch; }
.close-side p { max-width: 40ch; font-size: 1.15rem; font-weight: 500; }
.close .btn { width: 100%; margin-top: 24px; background: #000; color: var(--neon); }
.close .btn:hover { box-shadow: 0 8px 24px rgb(0 0 0 / .32); }
.close :focus-visible { outline-color: #000; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: 32px var(--gutter); color: var(--mute); font-size: .95rem; }
.foot-mark { color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.foot-mail { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.foot-mail:hover { color: var(--neon); }

/* Legal pages */
.legal { width: 100%; max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding: 136px var(--gutter) 88px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; max-width: none; margin-bottom: 14px; }
.legal section { margin-top: 48px; }
.legal section p + p, .legal section ul + p, .legal section ol + p { margin-top: 14px; }
.legal section p, .legal li { color: #d5ddd7; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal section a { color: var(--ink); text-decoration-color: var(--neon); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal ul, .legal ol { display: grid; gap: 10px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; margin-top: 14px; }
.legal li::marker { color: var(--neon); }
.legal mark { background: var(--wait); color: #000; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.legal-date { margin-top: 16px; color: var(--mute); font-size: .95rem; }
.legal-lede { margin-top: 28px; font-size: 1.2rem; line-height: 1.5; }
.legal-jump { margin-top: 20px; }
.legal .legal-box { padding: clamp(20px, 4vw, 32px); background: var(--panel); border: 1px solid var(--neon-dim); border-radius: 8px; }

.dock { display: none; }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 1080px) {
  .top nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-top: 104px; }
  .run { max-width: 560px; }
  .hours, .faq { grid-template-columns: minmax(0, 1fr); }
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 48px; }
  .flow::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: var(--neon-dim); }
  .flow li { padding: 0 0 28px 36px; }
  .flow p { max-width: 44ch; }
  .process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(n) { margin-top: 0; }
  .faq h2 { position: static; }
  .seg-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seg-body .link { grid-column: 1 / -1; justify-self: start; }
  .close { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 1rem; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top { height: 64px; }
  .top-cta { display: none; }
  .hero { padding-top: 92px; padding-bottom: 32px; gap: 40px; }
  h1 { font-size: clamp(2.5rem, 11.4vw, 3.6rem); }
  .actions .btn { width: 100%; }
  .actions .link { margin-inline: auto; }
  .work-head, .demo-head { grid-template-columns: minmax(0, 1fr); }
  .hours-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours-form label:last-child { grid-column: 1 / -1; }
  .day { height: 56px; gap: 1px; }
  .pains { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo { grid-template-columns: minmax(0, 1fr); margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
  .phone { height: 560px; border-right: 0; border-bottom: 1px solid var(--line); }
  .phone { border-bottom: 0; }
  .backstage { display: none; }
  .thread .w { display: block; padding-left: 16px; animation: pop .24s var(--ease); }
  .thread .w::before { left: 2px; }
  .seg-body { grid-template-columns: minmax(0, 1fr); }
  .process ol { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .process li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .process li::before { grid-row: 1 / 3; font-size: 2.75rem; margin: 0; }
  .process p { grid-column: 2; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, tbody th, tbody td { display: block; width: 100% !important; }
  tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  tbody th, tbody td { padding: 0; border: 0; }
  tbody th { margin-bottom: 8px; font-size: 1.15rem; }
  tbody td:nth-child(2)::before { content: "Chatbot pronto: "; font-weight: 600; }
  tbody td:nth-child(3) { margin-top: 4px; }
  tbody td:nth-child(3)::before { content: "Nobre Tech: "; color: var(--neon); font-weight: 600; }
  .faq details p { padding-right: 0; }
  .dock {
    position: fixed; z-index: 30; left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    background: var(--neon); color: #000; font-weight: 700; text-decoration: none; border-radius: 8px;
    transform: translateY(0); transition: transform .24s var(--ease), visibility .24s;
  }
  .js .dock:not(.is-on) { transform: translateY(calc(100% + 24px)); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .run.is-armed > * { opacity: 1; transform: none; }
}
