/* Shared by the home, Learn, Privacy and Support. Tokens mirror the app's Espelho theme. */
:root {
  --canvas: #F3F5FB;
  --card: #FFFFFF;
  --ink: #0B1330;
  --ink-2: #38415F;
  --muted: #5C6785;
  --hairline: #E6E9F3;
  --accent: #2F5BFF;
  --accent-soft: #E6EBFF;
  --buy: #07875A;
  --sell: #D3343F;
  --navy: #10183A;
  --navy-raised: #1C2757;
  --on-navy-muted: #AEB9D9;
  --navy-line: #7E98FF;
  --navy-up: #5BE3AE;
  --navy-down: #FF8A92;
  --pad: clamp(20px, 4vw, 56px);
  --gap: 14px;
  --radius: 30px;
  --header: 69px;
  --title: clamp(38px, 4.2vw, 60px);
  --title-sm: clamp(30px, 3vw, 42px);
  --result: clamp(60px, 5.8vw, 82px);
}
html { scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .84; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; padding: 10px 14px; background: var(--card); border-radius: 10px; }

.wrap { max-width: 1344px; margin: 0 auto; padding-inline: var(--pad); }
.title { font-size: var(--title); line-height: 1; letter-spacing: -.025em; font-weight: 800; }
.title-sm { font-size: var(--title-sm); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.lede { margin-top: 12px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.35; color: var(--muted); }
.buy { color: var(--buy); }
.sell { color: var(--sell); }
.muted { color: var(--muted); }
.link { color: var(--accent); text-decoration: underline; }

/* Header: stays on screen while the page scrolls */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 251, .88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 36px; font-size: 16px; font-weight: 500; color: var(--muted); }
.nav__links a[aria-current] { color: var(--ink); }
.pill { display: flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 600; white-space: nowrap; }

/* The app's mark: a line and its reflection */
.m-line { fill: none; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.m-reflect { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-opacity: .34; stroke-linejoin: round; stroke-linecap: round; }

/* Blocks */
.split { display: flex; flex-wrap: wrap; gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.panel { min-width: 0; border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.panel--white { background: var(--card); }
.panel--navy { background: var(--navy); color: #FFFFFF; }
.panel--soft { background: var(--accent-soft); padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; gap: 24px; }
.panel--tint { background: var(--accent-soft); }
.w7 { flex: 7 1 520px; }
.w5 { flex: 5 1 400px; }
.chip { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; font-size: 17px; font-weight: 600; text-align: center; }
.btn--line { border: 1.5px solid rgba(11, 19, 48, .18); }
.btn--solid { background: var(--accent); color: #FFFFFF; }

/* FAQ */
.faq { min-width: 0; background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 36px); }
.faq__list { margin-top: 10px; overflow: hidden; }
.faq__item { margin-top: -1px; border-top: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 10px; box-sizing: border-box; font-size: clamp(18px, 1.5vw, 20px); font-weight: 700; line-height: 1.2; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; color: var(--accent); transition: transform .2s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__item p { padding: 0 34px 18px 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 50em; }

/* Closing call to action */
.final { --line: var(--navy-line); background: var(--navy); color: #FFFFFF; border-radius: var(--radius); overflow: hidden; padding-top: clamp(28px, 4vw, 56px); }
.final__row { padding-inline: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px; }
.final__copy { flex: 999 1 480px; min-width: 0; }
.final h2 { font-size: clamp(40px, 4.8vw, 70px); line-height: 1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.final p { margin-top: 14px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.35; color: var(--on-navy-muted); }
.final svg { width: 100%; height: clamp(110px, 13vw, 190px); margin-top: clamp(12px, 2vw, 24px); }
.final path { vector-effect: non-scaling-stroke; }

/* Footer */
.footer { padding-block: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; font-weight: 500; color: var(--ink); }
.footer p { flex: 1 1 480px; max-width: 62em; font-size: 14px; line-height: 1.45; }

/* Learn, Privacy and Support */
.page { padding-top: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.page-title { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.crumb { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.page-lede { margin-top: 16px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; color: var(--muted); max-width: 40em; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: var(--gap); }
.guide { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.guide h2, .guide__title { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.12; letter-spacing: -.01em; font-weight: 700; }
.guide p { font-size: 17px; line-height: 1.4; color: var(--muted); }
.contact { display: flex; flex-direction: column; gap: 16px; }
.contact p { font-size: 18px; line-height: 1.4; color: var(--on-navy-muted); }
.contact .btn { gap: 10px; padding-inline: 20px; }
.new-here h2 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.12; font-weight: 700; }
.new-here p { margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.policy-layout { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
.toc { flex: 0 0 270px; position: sticky; top: calc(var(--header) + 24px); }
.toc h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.toc ol { margin-top: 10px; display: flex; flex-direction: column; gap: 9px; font-size: 16px; line-height: 1.25; font-weight: 500; }
.policy { flex: 1 1 auto; }
.policy h2 { margin: clamp(28px, 3vw, 40px) 0 12px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.015em; font-weight: 800; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin-bottom: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.policy ul { margin-bottom: 14px; padding-left: 1.3em; list-style: disc; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); }
.policy a { color: var(--accent); text-decoration: underline; }
.policy h3 { margin: 22px 0 8px; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.15; font-weight: 700; }
.policy ol { margin-bottom: 14px; padding-left: 1.3em; list-style: decimal; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.policy > :last-child { margin-bottom: 0; }

/* Guides */
.page-meta { margin-top: 12px; font-size: 15px; color: var(--muted); }
.guides--fit { margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.callout { margin: 22px 0; padding: 18px 22px; background: var(--accent-soft); border-radius: 20px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.callout > strong:first-child { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 700; }
.table-wrap { margin: 20px 0; overflow-x: auto; }
.policy table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.policy th, .policy td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.policy th { background: var(--navy); color: #FFFFFF; font-weight: 600; }
.policy tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) { .toc { display: none; } }
/* On a phone the menu keeps only Learn and the download button */
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav__links a:not([href="learn.html"]) { display: none; }
}
@media (max-width: 359px) { .nav__links { display: none; } }
@media (prefers-reduced-motion: reduce) { .faq__plus { transition: none; } }
