/* UniSoft Agendas — landing page
   Paleta tirada do logo (azul e marinho), com âmbar só para o botão principal. */

/* Fontes hospedadas no próprio site (licença SIL OFL) */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2"); }

:root {
  --navy: #0b2b54;
  --navy-soft: #3d5a82;
  --blue: #1b6fc2;
  --ice: #eef4fb;
  --ice-2: #dce9f8;
  --line: #d3e0f0;
  --white: #ffffff;
  --amber: #ffb62e;
  --amber-hover: #ffc552;
  --sage: #e3f4ea;
  --sage-ink: #146c43;
  --alert-bg: #fdebe8;
  --alert-ink: #a3281b;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; color: var(--white); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- Tipografia ---------- */

.h-display {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h1 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.05rem); }
.h2 { font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.45rem); }
.lead { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem); color: var(--navy-soft); max-width: 36em; }
.muted { color: var(--navy-soft); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: 0 10px 22px -12px rgba(214, 132, 0, .9); }
.btn--primary:hover { background: var(--amber-hover); color: var(--navy); }
.btn--primary:active { transform: translateY(1px); }
.btn--line { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn--line:hover { border-color: var(--blue); color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .96rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-wa {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--sage-ink); text-decoration: none;
  min-height: 44px;
}
.link-wa:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Cabeçalho ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.top-logo img { height: 36px; width: auto; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 0; }
.top-nav a:hover { color: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-login { font-weight: 600; text-decoration: none; color: var(--navy-soft); font-size: .98rem; }
.top-login:hover { color: var(--navy); }

@media (max-width: 860px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .top-login { display: none; }
}

/* ---------- Seções ---------- */

.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec--ice { background: var(--ice); }
.sec--tight-top { padding-top: 0; }
.sec-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; color: var(--navy-soft); }
.sec-head--center { margin-inline: auto; text-align: center; }

/* ---------- Hero ---------- */

.hero { background: var(--ice); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 56px; }
}
.hero-copy .lead { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }
.hero-note { margin: 14px 0 0; font-size: .95rem; color: var(--navy-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-bottom: 8px; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  width: min(92%, 470px); aspect-ratio: 1;
  left: 50%; top: 52%; translate: -50% -50%;
  border-radius: 50%; background: var(--ice-2);
}
.phone { position: relative; z-index: 1; margin: 0; width: min(46%, 250px); }
.phone img { width: 100%; filter: drop-shadow(0 26px 28px rgba(11, 43, 84, .22)); }
.phone figcaption {
  margin-top: 14px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--navy-soft); line-height: 1.35;
}
.phone--wa { margin-top: 44px; margin-left: -4%; }

/* Único momento de movimento: o aviso do WhatsApp chega depois da página do cliente */
@media (prefers-reduced-motion: no-preference) {
  .phone--client { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .phone--wa { animation: arrive .8s cubic-bezier(.2, .7, .2, 1) .9s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes arrive { from { opacity: 0; transform: translateX(34px); } }
}

/* ---------- Faixa de confiança ---------- */

.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; gap: 14px 28px; padding-block: 22px; grid-template-columns: repeat(2, 1fr); }
.fact { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.fact .ico { color: var(--blue); width: 1.6em; height: 1.6em; }
@media (min-width: 900px) { .facts-in { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Antes e depois ---------- */

.shift { display: grid; gap: 22px; }
.shift-head { display: none; }
.shift-row { display: grid; gap: 10px; }
.shift-before, .shift-after { padding: 20px 22px; border-radius: var(--r-md); }
.shift-before { background: var(--ice); color: var(--navy-soft); }
.shift-after { background: var(--ice-2); color: var(--navy); font-weight: 600; }
.shift-tag { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 4px; color: var(--blue); }
.shift-before .shift-tag { color: var(--navy-soft); }
.shift p { margin: 0; }
@media (min-width: 820px) {
  .shift { gap: 12px; }
  .shift-head, .shift-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shift-head { display: grid; padding-inline: 22px; font-weight: 700; }
  .shift-head span:first-child { color: var(--navy-soft); }
  .shift-head span:last-child { color: var(--blue); }
  .shift-tag { display: none; }
  .shift-row { align-items: stretch; }
}

/* ---------- Passos ---------- */

.steps { display: grid; gap: 28px; counter-reset: passo; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-size: 1.3rem;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; color: var(--navy-soft); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { padding: 62px 0 0; }
  .step::after {
    content: ""; position: absolute; top: 23px; left: 56px; right: -30px; height: 2px; background: var(--line);
  }
  .step:last-child::after { display: none; }
}
.steps-cta { margin-top: 40px; }

/* ---------- Galeria de telas ---------- */

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 22px; overflow-x: auto; padding: 4px 2px 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shot { margin: 0; scroll-snap-align: center; }
.shot img { width: 100%; max-width: 260px; margin-inline: auto; filter: drop-shadow(0 18px 20px rgba(11, 43, 84, .16)); }
.shot figcaption { margin-top: 12px; font-size: .93rem; color: var(--navy-soft); line-height: 1.4; text-align: center; max-width: 24ch; margin-inline: auto; }
@media (max-width: 899px) { .shots { grid-auto-columns: 62%; } }
@media (max-width: 520px) { .shots { grid-auto-columns: 74%; } }

/* ---------- Recursos (sanfonas) ---------- */

.feat-grid { display: grid; gap: 14px; }
@media (min-width: 820px) { .feat-grid { grid-template-columns: 1fr 1fr; gap: 16px 22px; align-items: start; } }

details.acc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
details.acc[open] { border-color: var(--blue); }
details.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; font-weight: 700; min-height: 60px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--blue);
}
details.acc[open] summary::after { content: "\2212"; }
details.acc summary .ico { color: var(--blue); width: 1.5em; height: 1.5em; }
.acc-body { padding: 0 22px 20px; color: var(--navy-soft); }
.acc-body li { position: relative; padding-left: 26px; margin-top: 8px; }
.acc-body li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--sage-ink); border-bottom: 2.5px solid var(--sage-ink); rotate: -45deg; translate: 0 -30%;
}
.feat-note { margin-top: 22px; font-size: .95rem; color: var(--navy-soft); }

/* ---------- Segmentos ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .96rem; }

/* ---------- Depoimentos ---------- */

.quotes { display: grid; gap: 34px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; }
.quote--main blockquote p { font-family: var(--font-display); font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.9rem); line-height: 1.3; }
.quote:not(.quote--main) blockquote p { font-size: 1.05rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .94rem; line-height: 1.35; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ice-2); color: var(--navy);
  font-weight: 700; font-size: .95rem;
}
.quote-who strong { display: block; }
.quote-who span { color: var(--navy-soft); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
  .quote-side { display: grid; gap: 34px; padding-left: 36px; border-left: 1px solid var(--line); }
}

/* ---------- Planos ---------- */

.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ice-2); gap: 4px; margin-top: 22px; }
.billing button {
  border: 0; background: transparent; cursor: pointer; font-weight: 700;
  min-height: 44px; padding: 0 22px; border-radius: 999px; color: var(--navy-soft);
}
.billing button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(11, 43, 84, .14); }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 34px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px 26px;
}
.plan--featured { border: 2px solid var(--blue); }
.plan-flag {
  position: absolute; top: -14px; left: 26px; margin: 0;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: .85rem;
  padding: 4px 14px; border-radius: 999px;
}
.plan h3 { font-family: var(--font-display); font-size: 1.5rem; }
.plan-desc { margin: 8px 0 0; color: var(--navy-soft); font-size: .96rem; }
.plan-price { margin: 20px 0 0; line-height: 1.1; }
.plan-price strong { font-family: var(--font-display); font-weight: 400; font-size: 2.5rem; letter-spacing: -.02em; }
.plan-price span { color: var(--navy-soft); font-size: .96rem; margin-left: 4px; }
.plan-sub { margin: 6px 0 0; min-height: 1.5em; font-size: .92rem; color: var(--sage-ink); font-weight: 600; }
.plan-list { margin: 18px 0 20px; display: grid; gap: 8px; font-size: .97rem; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--sage-ink); border-bottom: 2.5px solid var(--sage-ink); rotate: -45deg; translate: 0 -30%;
}
.plan-more { margin-bottom: 22px; font-size: .94rem; }
.plan-more summary { cursor: pointer; font-weight: 600; color: var(--blue); min-height: 32px; }
.plan-more ul { margin-top: 8px; display: grid; gap: 6px; color: var(--navy-soft); }
.plan .btn { margin-top: auto; }

.estimator { margin-top: 40px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); background: var(--ice); }
.estimator h3 { font-family: var(--font-display); font-size: 1.45rem; }
.estimator-grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 900px) { .estimator-grid { grid-template-columns: 1fr 1.3fr 1fr; align-items: end; gap: 34px; } }
.field-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.select, .input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--white); font-size: 1rem;
}
.select:focus, .input:focus { outline: 3px solid rgba(27, 111, 194, .35); border-color: var(--blue); }
.range { width: 100%; accent-color: var(--blue); height: 32px; }
.estimator-qty { font-weight: 700; }
.estimator-result { background: var(--white); border-radius: var(--r-md); padding: 16px 20px; }
.estimator-total { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.estimator-total small { font-family: var(--font-body); font-size: .95rem; color: var(--navy-soft); }
.estimator-detail { margin: 6px 0 0; font-size: .9rem; color: var(--navy-soft); }
.plans-empty { margin-top: 28px; padding: 24px; border-radius: var(--r-md); background: var(--ice); }

/* ---------- Chamada final ---------- */

.final { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 96px); }
.final-in { display: grid; gap: 28px; }
.final .lead { color: #c4d6ee; margin-top: 14px; }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.final .link-wa { color: #9fe3bd; }
.final .link-wa:hover { color: var(--white); }
@media (min-width: 900px) { .final-in { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; } .final-cta { justify-content: flex-end; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }

/* ---------- Rodapé ---------- */

.foot { background: var(--ice); padding-block: 48px 40px; font-size: .96rem; }
.foot-grid { display: grid; gap: 30px; }
.foot img { height: 34px; width: auto; margin-bottom: 14px; }
.foot h3 { font-size: .98rem; font-weight: 700; margin-bottom: 10px; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--navy); }
.foot a:hover { color: var(--blue); }
.foot-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--navy-soft); font-size: .9rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }

/* ---------- Barra fixa (celular) e WhatsApp flutuante ---------- */

.bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: none; gap: 10px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s;
}
.bar.is-on { transform: none; }
.bar .btn--primary { flex: 1; min-height: 48px; }
.bar-wa {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage); color: var(--sage-ink); text-decoration: none;
}
.bar-wa .ico { width: 26px; height: 26px; }
@media (max-width: 760px) {
  .bar { display: flex; }
  body { padding-bottom: var(--bar-h); }
}

.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--sage-ink); color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(11, 43, 84, .6);
}
.fab-wa:hover { color: var(--white); background: #0f573a; }
.fab-wa .ico { width: 30px; height: 30px; }
@media (min-width: 761px) { .fab-wa { display: grid; } }

/* ---------- Cookies ---------- */

.cookie {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 400px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(11, 43, 84, .45);
  font-size: .9rem; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
@media (max-width: 760px) {
  .cookie { left: 10px; right: 10px; max-width: none; bottom: calc(var(--bar-h) + 10px + env(safe-area-inset-bottom)); }
}

/* ---------- Cadastro (dialog) ---------- */

dialog.signup {
  width: min(100% - 24px, 520px); max-height: min(94vh, 780px); overflow: auto;
  padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--navy);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
dialog.signup::backdrop { background: rgba(11, 43, 84, .6); }
.signup-in { padding: 30px clamp(20px, 5vw, 34px) 28px; }
.signup-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ice); cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--navy);
}
.signup-close:hover { background: var(--ice-2); }
.signup h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; padding-right: 40px; }
.signup-sub { margin: 8px 0 0; color: var(--navy-soft); font-size: .97rem; }
.signup-plan { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: var(--ice); font-size: .9rem; font-weight: 600; }
.signup-plan:empty { display: none; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-msg--ok { background: var(--sage); color: var(--sage-ink); }
.form-msg--err { background: var(--alert-bg); color: var(--alert-ink); }
.form-msg[hidden] { display: none; }
.field { margin-top: 18px; }
.field .hint { margin: 6px 0 0; font-size: .88rem; color: var(--navy-soft); }
.field .err { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--alert-ink); }
.field .err:empty { display: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--alert-ink); }
.signup .btn { margin-top: 24px; }
.signup-legal { margin: 14px 0 0; font-size: .85rem; color: var(--navy-soft); text-align: center; }
.signup-how { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--sage); color: var(--sage-ink); font-size: .93rem; line-height: 1.45; }
.signup-how p { margin: 0; }
