/*
Theme Name: Contlink
Theme URI: https://contlink.com.br/
Author: Samuel Informática
Description: Tema do site do Contlink (atendimento pelo WhatsApp para escritórios de contabilidade). Página inicial de vendas, blog e páginas no mesmo visual. O WhatsApp comercial é alterado em Aparência → Personalizar → Contlink.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietária
Text Domain: contlink
*/
html{-webkit-text-size-adjust:100%} body{margin:0} img{max-width:100%} .nav-login{border:1px solid var(--line);border-radius:9px;padding:7px 14px;color:var(--ink)!important;background:var(--surface)} footer a{color:var(--muted)}

  :root {
    --bg: #f3f6f5;
    --surface: #ffffff;
    --surface-2: #e8f0ed;
    --ink: #13201d;
    --muted: #55655f;
    --line: #d6e0dc;
    --green: #0b7a62;
    --green-strong: #075c4a;
    --mint: #d4eee4;
    --amber: #b77a0c;
    --amber-soft: #fbefd6;
    --red: #b8433a;
    --on-green: #ffffff;
    --shadow: 0 1px 2px rgba(19, 32, 29, .06), 0 12px 32px -12px rgba(19, 32, 29, .18);
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #0e1614; --surface: #15201d; --surface-2: #1b2a26; --ink: #e5eeea; --muted: #9db0a9;
      --line: #27403a; --green: #3cc39a; --green-strong: #62d8b0; --mint: #173a31; --amber: #e5ad4a;
      --amber-soft: #3a2d12; --red: #ec7b70; --on-green: #06231b;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0e1614; --surface: #15201d; --surface-2: #1b2a26; --ink: #e5eeea; --muted: #9db0a9;
    --line: #27403a; --green: #3cc39a; --green-strong: #62d8b0; --mint: #173a31; --amber: #e5ad4a;
    --amber-soft: #3a2d12; --red: #ec7b70; --on-green: #06231b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
  }

  * { box-sizing: border-box; }
  body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
  .wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
  h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
  p { margin: 0; }
  .eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  a { color: var(--green-strong); }
  :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

  /* Topo */
  .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
  .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); display: grid; place-items: center; }
  .mark svg { display: block; }
  .top nav { display: flex; gap: 22px; font-size: 14.5px; }
  .top nav a { color: var(--muted); text-decoration: none; }
  .top nav a:hover { color: var(--ink); }

  /* Hero */
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 36px 72px; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; font-weight: 800; }
  .hero h1 em { font-style: normal; color: var(--green); }
  .lead { font-size: 18.5px; color: var(--muted); margin-top: 20px; max-width: 34em; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15.5px var(--body); padding: 13px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
  .btn-primary { background: var(--green); color: var(--on-green); }
  .btn-primary:hover { background: var(--green-strong); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
  .facts span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 7px; }

  /* Ficha de exemplo (hero) */
  .ficha { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
  .ficha-head { padding: 18px 20px 0; }
  .ficha-head .name { font-family: var(--display); font-weight: 700; font-size: 19px; }
  .ficha-head .doc { font-family: var(--mono); font-size: 13px; color: var(--muted); }
  .tag-ex { float: right; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; border-radius: 20px; }
  .tabs { display: flex; gap: 18px; margin-top: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; overflow-x: auto; }
  .tabs span { padding-bottom: 9px; color: var(--muted); white-space: nowrap; }
  .tabs .on { color: var(--green); border-bottom: 2px solid var(--green); font-weight: 600; }
  .ficha-body { padding: 16px 20px 20px; display: grid; gap: 14px; }
  .row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
  .row .k { flex: 1; min-width: 0; }
  .row .k small { display: block; color: var(--muted); font-size: 12px; }
  .chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
  .chip.ok { background: var(--mint); color: var(--green-strong); }
  .chip.warn { background: var(--amber-soft); color: var(--amber); }
  .chave { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .bubble { background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: 13.5px; max-width: 92%; }
  .bubble.me { background: var(--mint); border-radius: 12px 12px 4px 12px; margin-left: auto; }
  .bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
  .mini-chart { border-top: 1px solid var(--line); padding-top: 12px; }
  .mini-chart .lbl { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
  .mini-chart svg { width: 100%; height: auto; display: block; margin-top: 6px; }

  /* Seções */
  section { padding-block: 64px; }
  .sec-head { display: grid; gap: 12px; max-width: 46em; margin-bottom: 36px; }
  .sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; }
  .sec-head p { color: var(--muted); font-size: 17px; }

  /* Um sistema no lugar de quatro */
  .swap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .swap div { background: var(--surface); padding: 20px; display: grid; gap: 6px; align-content: start; }
  .swap .old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); }
  .swap .new { font-weight: 600; }
  .swap-note { margin-top: 16px; font-size: 15px; color: var(--muted); }

  /* Módulos */
  .mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
  .mod { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
  .mod h3 { font-size: 21px; font-weight: 700; }
  .mod p { color: var(--muted); font-size: 15px; }
  .mod ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14.5px; }
  .mod li { padding-left: 16px; position: relative; }
  .mod li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }

  /* Rotina */
  .day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; }
  .step .hora { font-family: var(--mono); font-size: 13px; color: var(--green); font-weight: 500; }
  .step h3 { font-size: 17px; font-weight: 700; }
  .step p { font-size: 14.5px; color: var(--muted); }

  /* Planos */
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
  .plan.hl { border: 2px solid var(--green); box-shadow: var(--shadow); }
  .plan .badge { align-self: flex-start; font-size: 12px; font-weight: 600; background: var(--green); color: var(--on-green); padding: 3px 10px; border-radius: 20px; }
  .plan h3 { font-size: 22px; font-weight: 800; }
  .plan .for { color: var(--muted); font-size: 14.5px; }
  .price { display: flex; align-items: baseline; gap: 6px; }
  .price b { font-family: var(--display); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .price span { color: var(--muted); font-size: 14px; }
  .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; flex: 1; }
  .plan li { display: flex; gap: 9px; }
  .plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
  .plan li.plus { font-weight: 600; }
  .extras { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .extras div { background: var(--surface); padding: 14px 18px; font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px; }
  .extras b { font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* Perguntas */
  .faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .faq h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
  .faq p { color: var(--muted); font-size: 15px; }

  /* Chamada final */
  .cta { background: var(--green); color: var(--on-green); border-radius: 20px; padding: 44px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
  .cta h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; font-weight: 800; }
  .cta p { opacity: .9; margin-top: 10px; }
  .cta .box { background: rgba(255,255,255,.12); border-radius: 14px; padding: 20px; display: grid; gap: 8px; font-size: 15px; }
  :root[data-theme="dark"] .cta .box { background: rgba(0,0,0,.14); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta .box { background: rgba(0,0,0,.14); } }
  .cta .box b { font-family: var(--display); font-size: 18px; }

  footer { padding-block: 40px 56px; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

  @media (max-width: 920px) {
    .hero, .cta { grid-template-columns: 1fr; }
    .swap, .day { grid-template-columns: 1fr 1fr; }
    .mods, .plans { grid-template-columns: 1fr 1fr; }
    .extras { grid-template-columns: 1fr; }
    .top nav a:not(.nav-login) { display: none; }
  }
  @media (max-width: 600px) {
    .swap, .day, .mods, .plans, .faq { grid-template-columns: 1fr; }
    .hero { padding-block: 16px 48px; }
    section { padding-block: 48px; }
    .cta { padding: 30px 22px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .btn { transition: background .15s ease, transform .15s ease; }
    .btn:hover { transform: translateY(-1px); }
  }


  /* Quadro Kanban de exemplo (hero) */
  .board { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 12px; }
  .board-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
  .board-top b { font-family: var(--display); font-size: 16px; color: var(--ink); }
  .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .col { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
  .col h4 { margin: 0; font: 600 12.5px var(--body); display: flex; justify-content: space-between; align-items: center; }
  .col h4 i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
  .col .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 9px; font-size: 12.5px; display: grid; gap: 3px; }
  .card b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card span { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .card .meta { display: flex; justify-content: space-between; gap: 6px; }
  .sector { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--mint); color: var(--green-strong); }
  .wait { font-family: var(--mono); font-size: 10.5px; color: var(--amber); }
  .card.late { border-color: var(--amber); }
  .soon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .soon div { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; align-content: start; background: var(--surface); }
  .soon b { font-size: 15px; }
  .soon span { font-size: 13.5px; color: var(--muted); }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
  .steps .step::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--green); line-height: 1; }
  @media (max-width: 920px) { .soon { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .soon, .steps { grid-template-columns: 1fr; } .cols { grid-template-columns: 1fr; } }

/* ---------- Páginas e blog (WordPress) ---------- */
.site-main { padding-block: 40px 64px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px clamp(18px, 4vw, 44px); max-width: 820px; margin: 0 auto 24px; }
.entry h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.entry .meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-family: var(--display); font-size: 24px; margin: 32px 0 8px; color: var(--green-strong); }
.entry-content h3 { font-size: 19px; margin: 24px 0 6px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 14px; }
.entry-content img { height: auto; border-radius: 10px; }
.entry-content a { color: var(--green-strong); }
.post-list { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.post-card h2 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); margin: 0; }
.pagination { max-width: 820px; margin: 24px auto 0; display: flex; justify-content: space-between; }
.top .brand { text-decoration: none; color: var(--ink); }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
