@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* All brand colors live here. A color change should touch only this block
   (plus favicon.svg, apple-touch-icon.png and og.png). */
:root {
  --brand: #00a884;
  --brand-text: #007a61; /* readable on white and with white text on top */
  --brand-dark: #06392f;
  --tint: #e6f6f3;
  --paper: #fff;
  --ink: #1a1a1a;
  --soft: #4a4a4a;
  --line: #d9e3e0;
  --chat: #efeae2;
  --bubble: #d9fdd3;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--brand-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.1rem; line-height: 1.35; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.tint { background: var(--tint); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 2; background: var(--paper); padding: 8px 12px; }

/* Header */
.top-bar { position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; gap: 12px 28px; max-width: 1160px; margin: 0 auto; padding: 12px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { color: var(--soft); text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: var(--brand-text); text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lede { margin-top: 24px; max-width: 34em; font-size: 1.2rem; color: var(--soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hint { margin-top: 18px; color: var(--soft); }
.hint + .hint { margin-top: 4px; }
.btn { display: inline-block; padding: 13px 22px; border: 2px solid var(--brand-text); border-radius: 10px; background: var(--brand-text); color: #fff; font-weight: 600; line-height: 1.3; text-decoration: none; }
.btn-small { padding: 8px 16px; white-space: nowrap; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-line { background: transparent; color: var(--brand-text); }
.btn-line:hover { background: var(--tint); border-color: var(--brand-text); }

/* Demo */
.demo { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--chat); }
#demo-chat { height: 236px; overflow-y: auto; }
#demo-chat:focus-visible { outline-offset: -3px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.out { align-self: flex-end; background: var(--bubble); border-top-right-radius: 0; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 12px; background: #f0f2f5; }
.composer textarea { flex: 1; min-width: 0; max-height: 108px; padding: 9px 14px; border: 1px solid #8a9794; border-radius: 10px; background: #fff; color: var(--ink); font: 1rem/1.5 var(--body); resize: none; }
.composer button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand-text); color: #fff; cursor: pointer; }
.composer button:hover { background: var(--brand-dark); }
.controls { display: grid; grid-template-columns: 1fr 1.35fr; gap: 14px 16px; padding: 16px 20px 18px; }
.check { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 0.94rem; color: var(--soft); }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #8a9794; border-radius: 8px; background: #fff; color: var(--ink); font: 1rem var(--body); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand-text); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; color: var(--brand-text); font: 2.6rem/1 var(--display); }
.steps p, .options p, .where { margin-top: 6px; color: var(--soft); }
.options-title { margin-top: 64px; font: 400 1.9rem/1.1 var(--display); }
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; padding: 0; list-style: none; }
.options .chat { justify-content: center; height: 176px; padding: 14px; border-radius: 12px; }
.options .msg { max-width: 100%; font-size: 0.94rem; }
.options h4 { margin: 14px 0 0; font-size: 1rem; line-height: 1.35; }
.options p:not(.msg) { font-size: 0.94rem; }
.options .msg { margin: 0; color: var(--ink); }
.where { margin-top: 32px; max-width: 46em; }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.team .chat { padding: 32px 24px; border-radius: 16px; }
.team h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* Reviews */
.quotes-section { padding-top: 0; }
.quotes { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr; gap: 48px; margin-top: 32px; padding: 0; list-style: none; }
.quotes blockquote { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.quotes p { margin-top: 10px; color: var(--soft); }

/* Help */
#ajuda, .rule { border-top: 1px solid var(--line); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 72px; align-items: start; margin-top: 40px; }
.cases h3 { margin-bottom: 16px; }
.tip { margin-bottom: 16px; color: var(--soft); }
kbd, code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--tint); color: var(--ink); font: 0.88em ui-monospace, Menlo, Consolas, monospace; }
code { overflow-wrap: anywhere; }
.cases details { border-bottom: 1px solid var(--line); }
.cases :not(details) + details { border-top: 1px solid var(--line); }
.cases summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; font-size: 1.06rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.cases summary::-webkit-details-marker { display: none; }
.cases summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--brand-text); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.cases [open] summary::after { transform: translateY(2px) rotate(225deg); }
.cases summary:hover { color: var(--brand-text); }
.answer { display: grid; gap: 14px; justify-items: start; padding: 0 24px 24px 0; color: var(--soft); }
.answer ol, .answer ul { display: grid; gap: 8px; padding-left: 1.3em; }
.answer strong { color: var(--ink); }
.answer > a { font-weight: 600; }

/* Features */
.features { display: grid; gap: 22px; margin-top: 28px; }
.features dt { font-size: 1.1rem; font-weight: 600; }
.features dd { margin-top: 4px; color: var(--soft); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 6px; background: var(--tint); color: var(--brand-text); font-size: 0.85rem; white-space: nowrap; }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.privacy > div { border-top: 3px solid var(--line); padding-top: 18px; }
.privacy > div:first-child { border-color: var(--brand); }
.privacy ul { display: grid; gap: 10px; margin-top: 14px; padding: 0; list-style: none; color: var(--soft); }
.legal { margin-top: 40px; }

/* Legal pages */
.doc { padding-top: 40px; padding-bottom: 96px; }
.doc > * { max-width: 44rem; }
.doc h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.doc h2 { margin-top: 56px; font-size: 1.9rem; }
.doc h3 { margin-top: 28px; }
.doc p, .doc ul { margin-top: 16px; }
.doc ul { display: grid; gap: 10px; padding-left: 1.2em; }
.updated { color: var(--soft); }

/* Contact and footer */
.contact { padding: 88px 0; background: var(--brand-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; align-items: center; }
.contact p { margin-top: 18px; max-width: 30em; color: #cfe6e0; }
.channels { display: grid; gap: 24px; padding: 0; list-style: none; }
.channels span { display: block; color: #cfe6e0; }
.channels a { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 600; overflow-wrap: anywhere; }
.foot { padding: 36px 0 44px; font-size: 0.94rem; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.foot a + a { margin-left: 20px; }
.notice { flex-basis: 100%; }

@media (max-width: 1000px) {
  .options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap, .top { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 28px 0 56px; }
  .hero-grid, .steps, .team, .quotes, .cases-grid, .privacy, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .team { gap: 40px; }
  .steps, .quotes, .privacy { gap: 28px; margin-top: 32px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .answer { padding-right: 0; }
  .contact { padding: 64px 0; }
}
@media (max-width: 460px) {
  .top { gap: 8px; }
  .brand { gap: 8px; white-space: nowrap; }
  .btn-small { padding: 8px 12px; font-size: 0.94rem; }
  .controls, .options { grid-template-columns: minmax(0, 1fr); }
  .options .chat { height: auto; padding: 20px 14px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
