/* Kiki Estúdio · site institucional (v3)
   Leitura: estúdio pequeno de serviços digitais para profissionais liberais (psicólogas no começo da carreira).
   Referências da Lane: Pinkers (menu flutuante em pílula, cor só em pontos estratégicos, logo gigante no rodapé)
   e WizardZ (minimalista, ilustração de traço preto, destaque de texto).
   Dials: VARIANCE 7, MOTION 5, DENSITY 3. CSS nativo, sem biblioteca.
   Estrutura: seções em largura total, alternando fundo. O arredondado fica no menu, nos cartões, nos botões
   e numa curva só no topo de três seções (Como funciona, Contato, Rodapé).
   Cor: neutros + um acento coral, usado no destaque dos títulos, nas ilustrações e no bloco de contato.
   Tema: claro fixo (as ilustrações são traço preto sobre claro, como nas referências). */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-ext.woff2") format("woff2");
  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+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --soft: #efefec;
  --ink: #161716;
  --muted: #5a5e59;
  --accent: #eb4d3d;
  --on-ink: #f1f2ee;
  --on-ink-muted: #b0b5ad;
  --r-card: 24px;
  --r-curve: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 72px);
  --sec: clamp(64px, 10vw, 136px);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink);
  line-height: 1.55; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible { outline-color: var(--on-ink); }

/* ---------- Seções em largura total ---------- */
.sec { position: relative; padding: var(--sec) var(--pad); }
.sec > .wrap { max-width: 1320px; margin-inline: auto; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--ink); color: var(--on-ink); }
.sec.accent { background: var(--accent); color: var(--ink); }
/* curva no topo, no estilo Pinkers: a seção sobe e cobre o fim da anterior */
.sec.curve { border-radius: var(--r-curve) var(--r-curve) 0 0; margin-top: calc(-1 * var(--r-curve)); padding-top: calc(var(--sec) + var(--r-curve) * 0.5); z-index: 1; }

/* ---------- Menu flutuante ---------- */
.nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 40;
  width: min(1180px, calc(100% - 2 * clamp(12px, 3vw, 32px)));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--ink); border-radius: 999px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 8px 10px 8px 28px; height: 64px;
}
.nav-links { display: flex; gap: 26px; font-family: var(--mono); font-size: 0.8125rem; }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; font-size: 1.25rem; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.nav-cta { justify-self: end; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 0.875rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--accent); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.nav .btn { padding: 11px 22px; font-size: 0.8125rem; }
.accent .btn-dark:hover { background: var(--paper); color: var(--ink); }

/* ---------- Destaque de palavra: faixa de marca-texto na metade de baixo da linha ---------- */
.mark {
  background-image: linear-gradient(to bottom, transparent 58%, var(--accent) 58%, var(--accent) 93%, transparent 93%);
  background-repeat: no-repeat; background-size: 100% 100%;
  padding-inline: 0.06em; margin-inline: -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Hero ---------- */
.hero { padding-top: 132px; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 72px); align-items: center; min-height: min(640px, calc(100svh - 240px)); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; }
.hero-sub { margin-top: 26px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art img { width: 100%; max-width: 540px; margin-inline: auto; }

/* ---------- Títulos ---------- */
.title { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; max-width: 16ch; }
.lead { margin-top: 18px; color: var(--muted); max-width: 54ch; }
.dark .lead { color: var(--on-ink-muted); }

/* ---------- Serviços ---------- */
.cards { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.card {
  position: relative; border: 1.5px solid var(--ink); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 40px); background: var(--paper); color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: center; min-height: 250px;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card:hover .card-art img { transform: rotate(4deg) scale(1.04); }
.card.wide { grid-column: 1 / -1; padding-block: clamp(16px, 2vw, 28px); }
.card.black { background: var(--ink); color: var(--on-ink); }
.card h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
.card p { margin-top: 16px; max-width: 42ch; color: var(--muted); font-size: 1rem; }
.card.black p { color: var(--on-ink-muted); }
.card-art img { width: 100%; max-width: 280px; margin-inline: auto; transition: transform 0.6s var(--ease); }
.card.wide .card-art img { max-width: 340px; }
.tags { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 0.75rem; padding: 6px 14px; border: 1.5px solid currentColor; border-radius: 999px; }

/* ---------- Para quem ---------- */
.banner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.banner .title { max-width: 14ch; }
.banner p { margin-top: 18px; color: var(--muted); max-width: 54ch; }
.banner p strong { color: var(--ink); font-weight: 600; }
.banner .btn { margin-top: 30px; }
.banner img { width: 100%; max-width: 360px; margin-inline: auto; }

/* ---------- Como funciona: linhas editoriais (a ordem é a leitura de cima para baixo) ---------- */
.steps { margin-top: clamp(32px, 5vw, 64px); border-bottom: 1px solid #3a3d39; }
.step {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(16px, 4vw, 64px); align-items: end;
  padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid #3a3d39;
}
.step-word {
  font-size: clamp(3.4rem, 11vw, 9.5rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.9;
  color: var(--on-ink); transition: color 0.4s var(--ease);
}
.step:hover .step-word { color: var(--accent); }
.step p { color: var(--on-ink-muted); max-width: 40ch; }
.step .gets { margin-top: 18px; padding-top: 14px; border-top: 1px solid #3a3d39; font-family: var(--mono); font-size: 0.8125rem; color: var(--on-ink-muted); }
.step .gets strong { display: block; font-weight: 500; color: var(--on-ink); margin-top: 4px; font-size: 0.9375rem; font-family: "Geist", sans-serif; }

/* ---------- Sobre ---------- */
.about-text { font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.035em; font-weight: 600; max-width: 26ch; text-wrap: pretty; }
.about-text span { color: var(--muted); font-weight: 500; }
.about-note { margin-top: 32px; max-width: 54ch; color: var(--muted); }
.about .tags { margin-top: 28px; }
.about-inner { padding-left: clamp(0px, 10vw, 160px); }

/* ---------- Contato ---------- */
.contact h2 { font-size: clamp(2.3rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 650; max-width: 13ch; text-wrap: balance; }
.contact p { margin-top: 20px; max-width: 46ch; font-size: 1.125rem; }
.contact-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rodapé ---------- */
.foot { padding-bottom: 0; overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 64px; font-size: 0.9375rem; }
.foot-top strong { font-weight: 600; }
.foot-top p { color: var(--on-ink-muted); margin-top: 8px; max-width: 36ch; }
.foot-links { list-style: none; padding: 0; display: grid; gap: 10px; font-family: var(--mono); font-size: 0.8125rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.giant { margin-top: clamp(24px, 5vw, 72px); font-size: min(41vw, 560px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.86; text-align: center; color: var(--on-ink); white-space: nowrap; user-select: none; padding-top: 0.02em; margin-bottom: -0.17em; }

/* ---------- Páginas de texto ---------- */
.doc { padding-top: 132px; }
.doc-inner { max-width: 760px; margin-inline: auto; }
.doc-inner h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.04; font-weight: 650; }
.doc-inner h2 { margin-top: 44px; font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 650; }
.doc-inner p, .doc-inner li { margin-top: 12px; color: var(--muted); max-width: 66ch; }
.doc-inner ul { padding-left: 1.2em; }
.doc-inner a { color: var(--ink); }
.doc-inner .updated { margin-top: 14px; font-family: var(--mono); font-size: 0.8125rem; }

/* ---------- Movimento (respeita prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(24px); animation: rise 0.9s var(--ease) forwards; }
  .rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.18s; } .rise.d3 { animation-delay: 0.3s; } .rise.d4 { animation-delay: 0.4s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.in.s1 { transition-delay: 0.08s; } .reveal.in.s2 { transition-delay: 0.16s; }

  /* o destaque se desenha na palavra: dá peso à ideia principal do título */
  .mark { background-size: 0% 100%; }
  .rise .mark, .reveal.in .mark { animation: paint 0.9s var(--ease) 0.4s forwards; }
  @keyframes paint { to { background-size: 100% 100%; } }

  /* na seção de passos, a palavra aparece vazada e se preenche ao entrar na tela */
  .step-word { color: transparent; -webkit-text-stroke: 1.5px var(--on-ink); }
  .step.in .step-word { color: var(--on-ink); transition-duration: 0.9s; }
  .step.in:hover .step-word { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

  .giant.reveal { transform: translateY(38%); transition-duration: 1.1s; }
  .giant.reveal.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Celular e tablet: coluna única, alturas enxutas ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding-left: 20px; top: 14px; height: 58px; }
  .nav-links { display: none; }
  .hero { padding-top: 96px; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-art img { max-width: 240px; margin-inline: 0 auto; }
  .hero-art { margin-top: 12px; }
  .cards { grid-template-columns: 1fr; margin-top: 32px; gap: 14px; }
  .card, .card.wide { grid-template-columns: 1fr 110px; align-items: start; min-height: 0; padding: 20px; gap: 12px; }
  .card.wide { grid-column: auto; }
  .card p { margin-top: 10px; }
  .tags { margin-top: 14px; }
  .card-art img, .card.wide .card-art img { max-width: 110px; margin-inline: 0; }
  .banner { grid-template-columns: 1fr; gap: 20px; }
  .banner img { max-width: 180px; margin-inline: 0; }
  .banner .btn { margin-top: 22px; }
  .step { grid-template-columns: 1fr; gap: 14px; align-items: start; padding-block: 28px; }
  .step-word { font-size: clamp(3rem, 15vw, 4.5rem); }
  .about-inner { padding-left: 0; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { white-space: normal; text-align: center; }
  .sec.curve { --r-curve: 28px; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.05rem; }
  .nav .btn { padding: 9px 14px; font-size: 0.75rem; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .card, .card.wide { grid-template-columns: 1fr 84px; }
  .card-art img, .card.wide .card-art img { max-width: 84px; }
}
