/* Shared stylesheet for the static guide pages.
   Decisão Ordenada digital identity: red #e42528, ink #111111, paper #fcfbf7, Outfit. */
:root {
  --paper: #fcfbf7;
  --ink: #111111;
  --ink-soft: #3d3c38;
  --ink-mute: #6b6963;
  --red: #e42528;
  --red-deep: #cf1f23;
  --tint: #fbe9e8;
  --line: #e3e1da;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
a { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; border-radius: 20px; display: block; }
strong { font-weight: 600; color: var(--ink); }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(252, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { white-space: nowrap; font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.nav-brand::before {
  content: ""; display: inline-block; width: 1.9em; height: 1.3em; margin-right: 0.55em; vertical-align: -0.3em;
  background: url(/logo-da.webp) center / contain no-repeat;
}
.nav-cta {
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 0.6rem 1.15rem; border-radius: 999px; font-size: 0.95rem; font-weight: 600; white-space: nowrap;
}
.nav-cta:hover { background: #2b2b2b; color: #fff; }

/* Reading column */
.wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.crumbs { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-mute); }
.badge { display: none; }
.updated { font-size: 0.9rem; color: var(--ink-mute); margin-bottom: 1rem; }

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
h1 span { color: var(--red); font-weight: 700; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 2.25rem; max-width: 40ch; }
h2 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 3.25rem 0 1rem;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 2rem 0 0.6rem; }
p, li { color: var(--ink-soft); }
p { margin-bottom: 1.05rem; }
ul, ol { padding-left: 1.3rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
ul li::marker { color: var(--red); }
ol li::marker { color: var(--red-deep); font-weight: 600; }

/* Calls to action */
.cta-block { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 3rem; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(228, 37, 40, 0.55); }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-secondary { color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* Fact cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 1.5rem 0 2.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem 1.25rem; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card p { margin: 0; font-size: 1rem; }
.card-label { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 0.3rem; }
.card-value { font-size: 1.7rem; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 2rem; font-size: 0.98rem; display: block; overflow-x: auto; }
th { background: var(--ink); color: #fff; font-weight: 600; text-align: left; padding: 0.7rem 0.9rem; white-space: nowrap; }
td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
tr:nth-child(even) td { background: #fff; }

/* Callouts */
.example, .highlight { background: var(--tint); border-radius: 20px; padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.example p:last-child, .highlight p:last-child { margin-bottom: 0; }
.highlight strong { color: var(--red-deep); }

/* Reviews */
.reviews { display: grid; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.4rem; }
.review-text { color: var(--ink); font-size: 1.05rem; margin-bottom: 0.6rem; }
.review-author { font-weight: 600; font-size: 0.95rem; }
.review-type { font-size: 0.88rem; color: var(--red-deep); }

/* FAQ */
.faq { margin: 1rem 0 2rem; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-q { font-weight: 600; color: var(--ink); font-size: 1.1rem; margin-bottom: 0.4rem; }
.faq-a { color: var(--ink-soft); }

/* Related guides */
.related { margin-top: 3.5rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.related a { display: inline-block; margin: 0.25rem 0; }

/* Author box (static) */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.15rem 1.25rem; margin: 2rem 0; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box p { font-size: 0.98rem; margin: 0; }
.author-box .a-line { color: var(--ink-mute); font-size: 0.9rem; margin-top: 0.3rem; }
.author-box .a-quote { color: var(--ink-soft); margin-top: 0.6rem; }
.author-box .a-qa { color: var(--red-deep); font-size: 0.85rem; font-weight: 600; }
.author-box .a-fb { margin-top: 0.5rem; font-size: 0.92rem; }

/* Mini simulator (simulador-vs-proposta-real) */
.sim { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; margin: 2rem 0; }
.sim h2 { margin-top: 0; }
.sim-row { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.sim-row label { font-size: 0.95rem; color: var(--ink-soft); display: flex; justify-content: space-between; }
.sim-row b { color: var(--ink); }
.sim-row input { width: 100%; accent-color: var(--red); }
.sim-out { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sim-out span { font-size: 2.4rem; font-weight: 200; letter-spacing: -0.03em; color: var(--ink); }
.sim-out small { display: block; color: var(--ink-mute); }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); text-align: center; font-size: 0.9rem; padding: 2.5rem 1.25rem 6rem; }
.footer a { color: #f26a6c; }
.footer p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0.4rem; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .cta-block a { flex: 1 1 100%; }
  .nav-cta { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

a.card { display: block; text-decoration: none; color: inherit; transition: border-color .2s ease; }
a.card:hover { border-color: var(--ink); color: inherit; }
a.card h3 { color: var(--ink); }

/* ===== 2026-11 guide UI: header like the main site ===== */
.gnav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.75rem; padding: .7rem clamp(1.25rem, 4vw, 2.5rem); background: rgba(252, 251, 247, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gnav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.gnav-brand img { width: 46px; height: auto; border-radius: 0; }
.gnav-brand b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.gnav-brand small { display: block; font-size: .74rem; color: var(--ink-mute); line-height: 1.25; }
.gnav-links { display: flex; gap: 1.5rem; }
.gnav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .2s; }
.gnav-links a:hover { color: var(--red); }
.gnav-cta { background: var(--ink); color: #fff; text-decoration: none; padding: .62rem 1.2rem; border-radius: 999px; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.gnav-cta:hover { background: #2b2b2b; color: #fff; }
.gnav-menu { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 0 9px; }
.gnav-menu span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.gnav.open .gnav-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnav.open .gnav-menu span:nth-child(2) { opacity: 0; }
.gnav.open .gnav-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1023px) {
  .gnav { gap: .75rem; }
  .gnav-menu { display: inline-flex; }
  .gnav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .25rem clamp(1.25rem, 4vw, 2.5rem) 1rem; box-shadow: 0 18px 30px -24px rgba(17,17,17,.35); }
  .gnav.open .gnav-links { display: flex; }
  .gnav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
}
@media (max-width: 560px) { .gnav-cta { display: none; } }

/* WhatsApp button in the WhatsApp colours */
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: #25D366; color: #fff; text-decoration: none; padding: .9rem 1.5rem; border-radius: 999px; font-weight: 600; transition: background .2s, transform .2s; }
.btn-wa:hover { background: #1fb457; color: #fff; }
.btn-wa:active { transform: translateY(1px); }
.btn-wa svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* Author box: portrait inside the brand rings */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1.35rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.4rem 1.6rem; margin: 2rem 0; box-shadow: 0 22px 44px -34px rgba(17,17,17,.4); position: relative; overflow: hidden; }
.author-box::after { content: ""; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%; border: 16px solid rgba(228,37,40,.07); pointer-events: none; }
.author-box > div { position: relative; z-index: 1; }
.author-box p { margin: 0; }
.author-box p:first-child { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.author-box p:first-child strong { display: block; font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.015em; margin-bottom: .2rem; }
.author-box .a-line { margin-top: .6rem; font-size: .98rem; color: var(--ink); }
.author-box .a-quote { margin-top: .7rem; font-style: italic; color: var(--ink-soft); }
.author-box .a-qa { margin-top: .25rem; font-size: .85rem; font-weight: 600; color: var(--red-deep, #cf1f23); }
.author-box .a-fb { margin-top: .8rem; }
.author-box .a-fb a, .gb-author .gb-a-fb a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 2px; }
.ab-stars { color: var(--red); letter-spacing: .08em; font-size: .95em; }
.ab-photo { position: relative; display: block; width: 108px; height: 108px; flex: none; }
.ab-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-photo img { position: absolute; inset: 9%; width: 82%; height: 82%; max-width: none; border-radius: 50%; object-fit: cover; margin: 0; }
@media (max-width: 560px) { .author-box { gap: 1rem; padding: 1.2rem; } .ab-photo { width: 84px; height: 84px; } }

/* Brand rings: spin around the centre of their viewBox */
.gb-r { transform-box: view-box; transform-origin: 50% 50%; animation: gb-spin var(--s, 30s) linear infinite; }
.gb-r.rev { animation-direction: reverse; }
@keyframes gb-spin { to { transform: rotate(360deg); } }

/* Side margins: large rings that drift in and turn slowly, only where there is room beside the column */
.wrap { position: relative; z-index: 1; }
.gb-deco { position: fixed; width: min(34vw, 470px); aspect-ratio: 1; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s cubic-bezier(.16,1,.3,1), transform 1.8s cubic-bezier(.16,1,.3,1); }
.gb-deco svg { width: 100%; height: 100%; overflow: visible; }
.gb-deco-l { left: calc(min(34vw, 470px) / -2); bottom: -8vh; transform: translate(-40px, 30px) rotate(-25deg); }
.gb-deco-r { right: calc(min(34vw, 470px) / -2); top: 16vh; transform: translate(40px, -30px) rotate(25deg); }
.gb-deco.in { opacity: 1; transform: none; }
@media (max-width: 1179px) { .gb-deco { display: none; } }
@media (prefers-reduced-motion: reduce) { .gb-r { animation: none; } .gb-deco { transition: none; } }

/* ===== 2026-11 refinements ===== */
.author-box { align-items: start; }
.ab-photo { margin-top: 5px; } /* ring top level with the cap height of the name */
.footer strong { color: #fff; font-weight: 600; }
.footer p { margin: 0 0 .35rem; }
/* Side rings as on the main site: thick solid red and ink rings cropped by the edges, drawn in on load. */
.gb-deco { width: min(36vw, 520px); }
.gb-deco-l { left: calc(min(36vw, 520px) * -.42); bottom: -14vh; transform: translateY(30px); }
.gb-deco-r { right: calc(min(36vw, 520px) * -.5); top: 12vh; transform: translateY(-30px); }
.gb-deco circle { transition: stroke-dashoffset 2.2s cubic-bezier(.16,1,.3,1); }
.gb-deco.in circle { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) { .gb-deco circle { transition: none; stroke-dashoffset: 0 !important; } }
