/* ia.aplopes.com · identidade do aplopes.com: grafite, linhas finas com pontos nas interseções,
   Articulat CF (só peso 400) e Geist Mono nos rótulos. Âmbar só em detalhes e no passo final. */

@font-face { font-family: "Articulat CF"; src: url(/static/fonts/ArticulatCF-Normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/static/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap;
  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: "Geist Mono"; src: url(/static/fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --background: #141618; --foreground: #f5f6f7; --card: #1b1e21; --secondary: #2a2e32;
  --muted: #939ca2; --soft: #c4ccd1; --dim: #5a636a; --deep: #0d0e10;
  --line: #e4e9ed24; --line-2: #e4e9ed3d; --grid-line: #e4e9ed0d;
  --brand: #eea522; --brand-2: #f5b235; --danger: #ff8a80;
  --radius: .25rem; --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Articulat CF", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --top: 72px;
  color-scheme: dark;
}
@media (min-width: 64rem) { :root { --top: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; font-feature-settings: "ss01", "cv11"; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.5 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
b, strong { font-weight: 400; color: var(--foreground); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
::selection { background: var(--brand); color: var(--deep); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: .5rem; top: -4rem; z-index: 99; background: var(--foreground); color: var(--background); padding: .6rem 1rem; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: .5rem; }

/* ── tipografia ── */
.t-h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.t-h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; outline: none; }
.t-lead { color: var(--soft); font-size: 1.075rem; line-height: 1.55; max-width: 34rem; }
.t-mono { font-family: var(--mono); letter-spacing: 0; }
.label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
.legal { color: var(--dim); font-size: .8rem; line-height: 1.5; margin-top: 1rem; }
.legal a, .hint a { color: var(--soft); text-underline-offset: 3px; }
.legal a:hover, .hint a:hover { color: var(--foreground); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .68rem; color: var(--muted); white-space: nowrap; vertical-align: middle; }

/* ── container com linhas ── */
.site { position: relative; margin-inline: .75rem; }
@media (min-width: 40rem) { .site { margin-inline: 1.5rem; } }
@media (min-width: 64rem) { .site--lines { border-inline: 1px solid var(--line); } }
@media (min-width: 90rem) { .site { max-width: 84rem; margin-inline: auto; } }
.x-dot { position: absolute; top: 100%; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); translate: -50% -50%; z-index: 2; display: none; }
@media (min-width: 64rem) { .x-dot { display: block; } }
.grid-bg { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px; }

/* ── topo ── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--line); background: rgb(20 22 24 / .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.top__row { height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 64rem) { .top__row { padding-inline: 2.25rem; } }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__logo { width: 32px; height: 32px; overflow: visible; }
@media (min-width: 64rem) { .brand__logo { width: 36px; height: 36px; } }
.brand__name { font-size: 1.3rem; letter-spacing: -.02em; -webkit-text-stroke: .4px currentColor; white-space: nowrap; }
@media (min-width: 64rem) { .brand__name { font-size: 1.5rem; } }
main { padding-top: var(--top); }

/* ── botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.35rem;
  border-radius: var(--radius); border: 1px solid transparent; background: transparent; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease), transform .15s var(--ease); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn--sm { min-height: 44px; padding: 0 1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--foreground); color: var(--background); }
.btn--primary:hover:not(:disabled) { background: #fff; }
.btn--line { border-color: var(--line-2); color: var(--foreground); }
.btn--line:hover { background: var(--secondary); }
.btn--ghost { color: var(--muted); padding-inline: .5rem; }
.btn--ghost:hover { color: var(--foreground); }
.btn--brand { background: var(--brand); color: var(--deep); }
.btn--brand:hover:not(:disabled) { background: var(--brand-2); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ── herói: argumento + formulário ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem 0 3.5rem; }
.hero > * { min-width: 0; }   /* a faixa de segmentos do celular não pode alargar a página */
@media (min-width: 40rem) { .hero { padding: 3.5rem 0 4.5rem; } }
@media (min-width: 64rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); grid-template-rows: auto 1fr; column-gap: 0; row-gap: 3rem;
    padding: 0; min-height: calc(100vh - var(--top) - 72px); }
  .pitch { grid-column: 1; grid-row: 1; padding: 4.5rem 3.5rem 0 3.5rem; }
  .how { grid-column: 1; grid-row: 2; padding: 0 3.5rem 4.5rem; align-self: end; }
  .card { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); padding: 3.25rem 2.5rem 3rem; align-self: stretch; background: rgb(13 14 16 / .55); }
}
@media (min-width: 80rem) { .hero { grid-template-columns: minmax(0, 1fr) 33rem; } .card { padding-inline: 3rem; } }

.pitch .label { margin-bottom: 1.25rem; }
.pitch .t-lead { margin-top: 1.35rem; }
/* prova: +150 empresas e, ao lado, a nuvem de segmentos (como em aplopes.com/ia-business) */
.pitch { container-type: inline-size; }
.proof > * { min-width: 0; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 46rem; }
.stat { display: flex; align-items: baseline; gap: .9rem; }
.stat__num { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: var(--brand); }
.stat__txt { color: var(--soft); max-width: 22ch; line-height: 1.35; }
.mkts__label { margin-bottom: .65rem; }
.mkts__view { overflow: hidden; }
.mkts__list { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .98rem; line-height: 1.4; letter-spacing: -.005em; color: var(--dim); }
.mkts__list li { transition: color .9s var(--ease); }
.mkts__list li.is-lit { color: var(--foreground); }
.mkts__dup { display: none; }
@container (min-width: 36rem) {
  .proof { grid-template-columns: 12rem minmax(0, 1fr); gap: 0; }
  .stat { flex-direction: column; align-items: flex-start; gap: .7rem; padding-right: 1.5rem; }
  .stat__num { font-size: 3.1rem; }
  .mkts { border-left: 1px solid var(--line); padding-left: 1.75rem; }
}
@keyframes corre { to { transform: translateX(-50%); } }

@media (max-width: 39.99rem) {   /* no celular o formulário precisa aparecer logo (link da bio) */
  .hero { padding-top: 1.6rem; gap: 1.6rem; }
  .pitch .label { margin-bottom: .8rem; }
  .t-h1 { font-size: 2rem; }
  .pitch .t-lead { margin-top: .9rem; font-size: .98rem; line-height: 1.5; }
  .proof { margin-top: 1.1rem; padding-top: 1rem; gap: .9rem; }
  .stat { gap: .75rem; }
  .stat__num { font-size: 2rem; }
  .stat__txt { font-size: .92rem; }
  /* segmentos numa linha só, correndo devagar, para o formulário continuar na primeira tela */
  .mkts__label { margin-bottom: .45rem; }
  .mkts__view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .mkts__track { display: flex; width: max-content; animation: corre 75s linear infinite; }
  .mkts__list { flex-wrap: nowrap; white-space: nowrap; padding-right: 1rem; font-size: .9rem; color: var(--muted); }
  .mkts__dup { display: flex; }
  .top__cta { padding-inline: .8rem; font-size: .82rem; }
  .brand__name { font-size: 1.15rem; }
}

.how .label { margin-bottom: 1rem; }
.how__list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .how__list { grid-template-columns: repeat(3, 1fr); } }
.how__list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .how__list li { flex-direction: column; gap: .75rem; padding: 1.25rem 1.25rem 1.5rem 0; border-bottom: 0; }
  .how__list li + li { border-left: 1px solid var(--line); padding-left: 1.25rem; } }
.how__n { font-size: .75rem; color: var(--dim); padding-top: .2rem; }
.how h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.how p { color: var(--muted); font-size: .92rem; margin-top: .35rem; line-height: 1.5; }

/* ── cartão do formulário ── */
.card { position: relative; scroll-margin-top: calc(var(--top) + .75rem); }
@media (max-width: 63.99rem) { .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.15rem 1.6rem; background: rgb(13 14 16 / .6); } }
@media (min-width: 40rem) and (max-width: 63.99rem) { .card { padding: 2rem 1.75rem; } }
.progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.progress__num { font-size: .75rem; color: var(--dim); white-space: nowrap; }
.progress__num b { color: var(--foreground); }
.progress__bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress__bar i { height: 3px; border-radius: 2px; background: var(--secondary); transition: background-color .4s var(--ease); }
.progress__bar i.is-done { background: var(--soft); }
.progress__bar i.is-now { background: var(--brand); }

.step { animation: entra .45s var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
.step > .hint { margin-bottom: 1.5rem; }

.field { display: block; margin-bottom: 1.1rem; }
.field > label, .field > legend { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
fieldset.field > legend { float: left; width: 100%; }
fieldset.field > legend + * { clear: both; }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; height: 50px; padding: 0 .95rem; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 1rem; transition: border-color .2s var(--ease), background-color .2s var(--ease); appearance: none; -webkit-appearance: none; }
input::placeholder { color: var(--dim); }
input:hover, select:hover { border-color: #e4e9ed59; }
input:focus, select:focus { outline: none; border-color: var(--foreground); background: #1f2226; }
select { padding-right: 2.5rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23939ca2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; }
select:invalid, select.is-empty { color: var(--dim); }
select option { color: var(--foreground); background: var(--card); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field__err { color: var(--danger); font-size: .82rem; margin-top: .4rem; min-height: 0; }
.field__err:empty { display: none; }
.row2 { display: grid; gap: 0 .9rem; }
@media (min-width: 30rem) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; }
.actions .btn--primary, .actions .btn--brand { flex: 1; max-width: 18rem; margin-left: auto; }

/* opções com caixa (múltipla escolha) */
.opts { display: grid; gap: .5rem; }
@media (min-width: 30rem) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); min-height: 44px; }
.opt:hover { border-color: #e4e9ed59; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--dim); border-radius: 3px; display: grid; place-items: center; transition: all .2s var(--ease); }
.opt__box::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--deep); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.opt__txt { display: grid; gap: .15rem; font-size: .95rem; line-height: 1.3; }
.opt__txt small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.opt:has(input:checked) { border-color: var(--foreground); background: #212428; }
.opt input:checked + .opt__box { background: var(--brand); border-color: var(--brand); }
.opt input:checked + .opt__box::after { opacity: 1; }
.opt:has(input:focus-visible) { outline: 2px solid var(--foreground); outline-offset: 2px; }

/* escolha única em pílulas */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); font-size: .9rem; color: var(--soft); transition: all .2s var(--ease); }
.chip:hover span { border-color: #e4e9ed59; color: var(--foreground); }
.chip input:checked + span { border-color: var(--foreground); color: var(--foreground); background: #212428; box-shadow: inset 0 -2px 0 var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--foreground); outline-offset: 2px; }

/* ── agenda ── */
.cal { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); padding: .85rem .75rem 1rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.cal__mes { font-size: 1rem; text-transform: capitalize; }
.cal__nav { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--soft); }
.cal__nav:hover:not(:disabled) { background: var(--secondary); color: var(--foreground); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__wd { font-family: var(--mono); font-size: .68rem; color: var(--dim); padding: .35rem 0; }
.cal__d { height: 42px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; font-size: .95rem; color: var(--dim); cursor: default; }
.cal__d.is-on { color: var(--foreground); cursor: pointer; }
.cal__d.is-on:hover { background: var(--secondary); }
.cal__d.is-today { text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 4px; }
.cal__d[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: rgb(238 165 34 / .08); }
.slots { margin-top: 1.25rem; }
.slots__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; color: var(--soft); margin-bottom: .7rem; }
.slots__title > span:first-child::first-letter { text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .45rem; }
.slot { height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--card); font-family: var(--mono); font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); }
.slot:hover { border-color: var(--foreground); }
.slot[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: rgb(238 165 34 / .08); }
.slots__vazio { color: var(--muted); font-size: .9rem; grid-column: 1 / -1; padding: .5rem 0; }

/* ── confirmação ── */
.ok { padding: 3.5rem 0 4.5rem; max-width: 44rem; }
@media (min-width: 64rem) { .ok { padding: 5.5rem 3.5rem 6rem; } }
.ok .label { margin-bottom: 1.25rem; }
.ok .t-h1 { max-width: 18ch; }
.ok .t-lead { margin-top: 1.5rem; }
.ok__when { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.2; margin-top: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.ok__when::first-letter { text-transform: uppercase; }
.ok__next { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.ok__next li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.ok__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 30rem) { .ok__actions .btn { width: 100%; } }

/* ── rodapé ── */
.foot { border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1.4rem 0; font-size: .8rem; color: var(--dim); }
@media (min-width: 64rem) { .foot__row { padding-inline: 2.25rem; } }
.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--foreground); }

/* ── painel ── */
.adm { padding: 2rem 0 4rem; }
@media (min-width: 64rem) { .adm { padding: 2.5rem 2.25rem 4rem; } }
.adm h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.adm__bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 1.5rem; color: var(--muted); font-size: .9rem; }
.adm__aviso { border: 1px solid var(--line-2); border-left: 3px solid var(--brand); padding: .65rem .9rem; margin-bottom: 1.25rem; border-radius: var(--radius); }
.adm__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.adm table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.adm th, .adm td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; background: var(--deep); position: sticky; top: 0; }
.adm td small { display: block; color: var(--muted); }
.adm .is-teste td { opacity: .5; }
.adm form.inline { display: inline; }
.adm .mini { min-height: 32px; padding: 0 .6rem; font-size: .78rem; }
.adm__bloq { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin: 2rem 0 1rem; }
.adm__bloq input, .adm__bloq select { height: 40px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mkts__track { width: auto; }
  .mkts__list { flex-wrap: wrap; white-space: normal; }
  .mkts__dup { display: none !important; }
  .mkts__view { -webkit-mask-image: none; mask-image: none; }
}
