/* PetMiau: tokens, cabeçalho, rodapé e componentes comuns do site.
   Cores e tipos do Brand Book (petmiau-brandbook/src/00-head.html), com tema escuro que segue o do aparelho.
   Os nomes dos tokens são os mesmos das páginas antigas (tutores.html), para as duas conviverem. */
:root {
  --bg: #F7FAFA;
  --surface: #FFFFFF;
  --ink: #0E2A35;
  --text: #1C3843;
  --muted: #516B75;
  --faint: #5E7983;
  --line: #D5E3E6;
  --brand: #0E7490;
  --brand-strong: #155E75;
  --brand-deep: #175C76;
  --brand-tint: #CFFAFE;
  --accent: #C2410C;
  --orange: #F97316;
  --on-brand: #FFFFFF;
  --on-brand-soft: #CFFAFE;
  --band: #0F3A4A;
  --band-line: #0F3A4A;
  --on-band: #FFFFFF;
  --on-band-muted: #A9CBD3;
  --on-band-accent: #06B6D4;
  --mint: #ECFDF5;
  --mint-line: #CDEBDD;
  --wm-pet: #175C76;
  --m-agenda: #0891B2;
  --m-taxi: #EA580C;
  --m-finance: #059669;
  --m-tutor: #175C76;
  --ok-bg: #DCFCE7;
  --ok-fg: #166534;
  --soon-bg: #FEF3C7;
  --soon-fg: #92400E;
  --phone: #0B1B22;
  --phone-ring: #2B4450;
  --shadow: rgba(8, 40, 52, 0.2);
  /* Linha do tempo da agenda e bolha de WhatsApp (página do PetAgenda PRO) */
  --slot-g: #175C76;
  --slot-m: #0E7490;
  --slot-p: #A5F3FC;
  --slot-ink: #FFFFFF;
  --slot-ink-light: #164E63;
  --free: #FFFFFF;
  --wa-bubble: #D9FDD3;
  --wa-ink: #111B21;
  --wa-meta: #667781;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: 20px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B181D;
    --surface: #12232A;
    --ink: #EEF6F8;
    --text: #DCE8EB;
    --muted: #A3B8BF;
    --faint: #8CA3AB;
    --line: #22363D;
    --brand: #22D3EE;
    --brand-strong: #67E8F9;
    --brand-deep: #A5F3FC;
    --brand-tint: #0F3440;
    --accent: #FB923C;
    --orange: #FB923C;
    --on-brand: #04222A;
    --on-brand-soft: #0B3440;
    --band: #102C37;
    --band-line: #1E4452;
    --on-band: #FFFFFF;
    --on-band-muted: #A9CBD3;
    --on-band-accent: #22D3EE;
    --mint: #0D2420;
    --mint-line: #1C4038;
    --wm-pet: #FFFFFF;
    --ok-bg: #12301F;
    --ok-fg: #86EFAC;
    --soon-bg: #3A2A0E;
    --soon-fg: #FCD34D;
    --phone: #050809;
    --phone-ring: #22363D;
    --shadow: rgba(0, 0, 0, 0.5);
    --slot-g: #22D3EE;
    --slot-m: #0EA5C4;
    --slot-p: #0E6F80;
    --slot-ink: #04222A;
    --slot-ink-light: #E6FBFF;
    --free: #12232A;
    --wa-bubble: #005C4B;
    --wa-ink: #E9EDEF;
    --wa-meta: #A8C4BD;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B181D;
  --surface: #12232A;
  --ink: #EEF6F8;
  --text: #DCE8EB;
  --muted: #A3B8BF;
  --faint: #8CA3AB;
  --line: #22363D;
  --brand: #22D3EE;
  --brand-strong: #67E8F9;
  --brand-deep: #A5F3FC;
  --brand-tint: #0F3440;
  --accent: #FB923C;
  --orange: #FB923C;
  --on-brand: #04222A;
  --on-brand-soft: #0B3440;
  --band: #102C37;
  --band-line: #1E4452;
  --on-band: #FFFFFF;
  --on-band-muted: #A9CBD3;
  --on-band-accent: #22D3EE;
  --mint: #0D2420;
  --mint-line: #1C4038;
  --wm-pet: #FFFFFF;
  --ok-bg: #12301F;
  --ok-fg: #86EFAC;
  --soon-bg: #3A2A0E;
  --soon-fg: #FCD34D;
  --phone: #050809;
  --phone-ring: #22363D;
  --shadow: rgba(0, 0, 0, 0.5);
  --slot-g: #22D3EE;
  --slot-m: #0EA5C4;
  --slot-p: #0E6F80;
  --slot-ink: #04222A;
  --slot-ink-light: #E6FBFF;
  --free: #12232A;
  --wa-bubble: #005C4B;
  --wa-ink: #E9EDEF;
  --wa-meta: #A8C4BD;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--brand-deep); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.pm-wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Marca ---------- */
.wm { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.wm b { font-weight: 800; color: var(--wm-pet); }
.wm i { font-style: normal; color: var(--orange); }
.on-band .wm b, .wm.claro b { color: #FFFFFF; }
.lock { display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; }
.lock svg { width: 1.45em; height: 1.45em; flex: none; }

/* ---------- Tipografia ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.pm-h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 0.96; letter-spacing: -0.04em; font-weight: 800; }
.pm-h1 em, .pm-h2 em { font-style: normal; color: var(--accent); }
.pm-h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800; }
.pm-h3 { font-size: 21px; line-height: 1.18; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 58ch; }
.small { font-size: 14px; color: var(--muted); }
.fonte { font-size: 13px; line-height: 1.5; color: var(--faint); max-width: 110ch; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 13px 22px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn .ic, .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--brand-deep); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.on-band .btn-primary { background: #FFFFFF; color: #0F3A4A; }
.on-band .btn-primary:hover { background: #CFFAFE; }
.on-band .btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.on-band .btn-ghost:hover { border-color: #FFFFFF; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.pm-top { position: relative; z-index: 20; }
.pm-top-in { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.pm-top .lock { font-size: 26px; color: inherit; }
.pm-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pm-nav a { font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.pm-nav a:hover { color: var(--brand); background: var(--brand-tint); }
.pm-nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-tint); }
.pm-top-acts { display: flex; align-items: center; gap: 8px; }
.pm-menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.pm-menu .ic-x { display: none; }
@media (max-width: 1000px) {
  .pm-menu { display: inline-flex; }
  .pm-nav, .pm-top-acts { display: none; }
  .pm-top.aberto .pm-menu .ic-x { display: block; }
  .pm-top.aberto .pm-menu .ic-m { display: none; }
  .pm-top.aberto .pm-nav { display: flex; }
  .pm-top.aberto .pm-top-acts { display: flex; }
  .pm-top.aberto .pm-top-in { flex-wrap: wrap; }
  .pm-top.aberto .pm-nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px var(--shadow); }
  .pm-top.aberto .pm-nav a { padding: 12px 14px; font-size: 17px; }
  .pm-top.aberto .pm-top-acts { order: 4; flex-basis: 100%; }
  .pm-top.aberto .pm-top-acts .btn { flex: 1; }
}

/* ---------- Seções ---------- */
.pm-sec { padding-block: 72px; }
.pm-sec.tight { padding-block: 48px; }
.pm-band { background: var(--surface); border-block: 1px solid var(--line); }
.pm-band.mint { background: var(--mint); border-color: var(--mint-line); }
.pm-band.dark { background: var(--band); border-color: var(--band-line); color: var(--on-band-muted); }
.on-band h1, .on-band h2, .on-band h3, .on-band .pm-h3 { color: var(--on-band); }
.on-band .eyebrow { color: var(--on-band-accent); }
.on-band .lead, .on-band .small { color: var(--on-band-muted); }
.on-band .pm-h1 em, .on-band .pm-h2 em { color: var(--orange); }
.pm-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 36px; }
.pm-head.center { margin-inline: auto; text-align: center; align-items: center; }
.pm-head .lead { font-size: 18px; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* Selo de status */
.st { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; font: 600 12px/1.2 var(--mono); letter-spacing: 0.03em; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--ok-bg); color: var(--ok-fg); }
.st.soon { background: var(--soon-bg); color: var(--soon-fg); }
.st.plano { background: var(--brand-tint); color: var(--brand-deep); }

/* Ícone de módulo */
.tile { width: 48px; height: 48px; border-radius: 14px; background: var(--m, var(--brand)); color: #FFFFFF; display: grid; place-items: center; flex: none; }
.tile .ic { width: 26px; height: 26px; }
.tile.g { width: 68px; height: 68px; border-radius: 19px; }
.tile.g .ic { width: 36px; height: 36px; }
.tile.p { width: 32px; height: 32px; border-radius: 10px; }
.tile.p .ic { width: 18px; height: 18px; }

/* Medalha de coleira: numera etapas */
.medal { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #FFFFFF; display: grid; place-items: center; font: 600 14px/1 var(--mono); margin-top: 9px; flex: none; }
.medal::before { content: ""; position: absolute; top: -10px; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); border: 2px solid var(--faint); border-radius: 50%; }

/* Lista com check na cor do módulo */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--m, var(--brand)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks b, .checks strong { color: var(--ink); }

/* Lista com ícone (herdada do site do PetAgenda) */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.facts svg { width: 24px; height: 24px; stroke: var(--m, var(--brand)); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.facts strong { color: var(--ink); }

/* Celular com tela real */
.pm-phone { width: 100%; max-width: 280px; aspect-ratio: 624 / 1350; border-radius: 36px; background: var(--phone); padding: 8px; box-shadow: 0 30px 50px -24px var(--shadow), inset 0 0 0 1.5px var(--phone-ring); flex: none; }
.pm-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 29px; background: #F0F4F7; }
.pm-phone.curto { aspect-ratio: 624 / 752; }
.fig { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.fig figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: center; }
.phones-row { display: flex; justify-content: center; align-items: flex-end; gap: 22px; }
.phones-row .pm-phone { max-width: 240px; }
@media (max-width: 640px) {
  .phones-row { gap: 12px; }
  .phones-row .fig:nth-child(3) { display: none; }
}

/* ---------- Página de produto ---------- */
.migalha { font-size: 14px; color: var(--faint); padding-top: 6px; }
.migalha a { color: var(--muted); text-decoration: none; }
.migalha a:hover { color: var(--brand); }
.ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 28px 64px; }
.ph-info { display: flex; flex-direction: column; gap: 22px; }
.ph-id { display: flex; align-items: center; gap: 18px; }
.ph-id h1 { font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); }
.ph-id h1 small { font-size: 0.4em; color: var(--m); letter-spacing: 0.04em; vertical-align: 1em; margin-left: 6px; }
.sts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.promessa { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--brand-deep); text-wrap: balance; }
.ph-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.ph-meta > div { display: flex; flex-direction: column; gap: 8px; }
.ph-meta p { font-size: 15px; color: var(--muted); }
.ph-vis { border-radius: 32px; padding: 40px 20px; background: color-mix(in srgb, var(--m) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--m) 18%, var(--line)); }
.ph-vis .phones-row .pm-phone { max-width: 172px; }
.ph-vis .phones-row .fig:nth-child(2) .pm-phone { max-width: 214px; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.integra { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.chip .tile { width: 26px; height: 26px; border-radius: 50%; }
.chip .tile .ic { width: 15px; height: 15px; stroke-width: 2.4; }
a.chip:hover { border-color: var(--m); }
@media (max-width: 960px) { .ph { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ph-meta { grid-template-columns: minmax(0, 1fr); } .ph-vis { padding: 28px 12px; } }

/* Seção de recurso: texto e telas */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.feat .pm-phone { justify-self: center; }
.shots2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; justify-items: center; }
@media (max-width: 860px) { .feat { grid-template-columns: minmax(0, 1fr); } }

/* Etapas numeradas com a medalha */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps li .medal { margin-top: 6px; }
.steps h3 { font-size: 21px; line-height: 1.18; margin-bottom: 4px; color: var(--ink); }
.steps p { color: var(--muted); }

/* Faixa "Em breve" */
.soon-band { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 22px; border: 1.5px dashed var(--line); background: transparent; }
.soon-band .ic { color: var(--brand); width: 28px; height: 28px; }
.soon-band p { color: var(--muted); }
.soon-band strong { color: var(--ink); }

/* Chamada final */
.cta { background: var(--band); border: 1px solid var(--band-line); color: var(--on-band-muted); border-radius: 30px; padding: 48px 44px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: var(--on-band); }
.cta-mk { position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; opacity: 0.12; pointer-events: none; }
.cta > :not(.cta-mk) { position: relative; }
.cta ol { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.cta-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.price { font-size: 16px; }
.price strong { font-family: var(--display); font-size: 32px; color: var(--on-band); }
.contacts { font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.contacts a { color: inherit; }
.visits { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; opacity: 0.85; }
.visits[hidden] { display: none; }
.visits svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 34px 24px; } }

/* ---------- Rodapé ---------- */
.pm-foot { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 48px 36px; font-size: 15px; color: var(--muted); }
.pm-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.pm-foot .lock { font-size: 24px; }
.pm-foot-marca p { margin-top: 14px; max-width: 32ch; }
.pm-foot h2 { font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.pm-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-foot a { color: var(--text); text-decoration: none; }
.pm-foot a:hover { color: var(--brand); text-decoration: underline; }
.pm-foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .pm-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-foot-marca { grid-column: 1 / -1; } }
@media (max-width: 420px) { .pm-foot-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 480px) {
  .pm-sec { padding-block: 56px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}
