/* ===========================================================
   MeuDinheiroControlado / MyMoneyUnderControl — shared styles
   Used by: /index.html, /en/*.html, /pt-BR/*.html
   =========================================================== */

:root {
  --bg: #0e0c09;
  --bg-soft: #17130d;
  --panel: #1c1710;
  --panel-line: #332a19;
  --gold: #f6b60b;
  --gold-deep: #c98a06;
  --gold-pale: #fce38a;
  --cream: #f5efe2;
  --muted: #b9af9b;
  --green: #3fc17b;
  --red: #e85d6e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: #fff;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.accent {
  color: var(--gold);
}

.index-header {
  align-items: center;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.lang-logo {
  border-radius: 60px;
}

.glow-bg {
  position: relative;
  background:
    radial-gradient(
      600px 400px at 8% -10%,
      rgba(246, 182, 11, 0.18),
      transparent 60%
    ),
    radial-gradient(
      500px 380px at 95% 110%,
      rgba(246, 182, 11, 0.12),
      transparent 60%
    ),
    var(--bg);
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(14, 12, 9, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  color: #fff;
}
.brand-text span {
  color: var(--gold);
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  color: #241b02;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--gold-deep);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--gold-deep);
}
.nav-cta.ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  border: 1px solid var(--panel-line);
}
.nav-cta.ghost:hover {
  transform: none;
  border-color: var(--gold-deep);
}
.nav-lang {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 6px 4px;
}
.nav-lang:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}
.hero-top {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 30px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-top h1 {
  font-size: 1.85rem;
  line-height: 1.3;
  color: #fff;
}
.hero-top h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-art {
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px var(--panel-line);
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  color: #241b02;
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--gold-deep);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--gold-deep);
}
.btn-primary svg {
  width: 20px;
  height: 20px;
}
.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 0 0 72px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-grid > div {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 22px 20px;
}
.trust-grid strong {
  display: block;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.trust-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Section shell ---------- */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 52ch;
  margin-bottom: 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  color: #fff;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Feature grid ---------- */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fcard {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: left;
}
.fcard .ficon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  border: 1.5px solid var(--gold-deep);
  background: rgba(246, 182, 11, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.fcard .ficon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}
.fcard h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #fff;
}
.fcard p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Callout ---------- */
.callout {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.callout .badge-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.callout .badge-circle svg {
  width: 26px;
  height: 26px;
  stroke: #241b02;
}
.callout h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}
.callout p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- Steps ("how it works") ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 26px 22px;
}
.step span {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Privacy promise band ---------- */
.privacy-promise {
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.promise-grid h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-top: 12px;
}
.promise-grid p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Screenshot gallery ---------- */
.shot-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.shot-scroll::-webkit-scrollbar {
  height: 8px;
}
.shot-scroll::-webkit-scrollbar-thumb {
  background: var(--panel-line);
  border-radius: 8px;
}
.shot-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
.shot-frame {
  border-radius: 22px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  padding: 6px;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.7);
}
.shot-frame img {
  width: 100%;
  border-radius: 16px;
  display: block;
}
.shot-label {
  margin-top: 14px;
  font-weight: 600;
  color: #fff;
  font-size: 0.98rem;
}
.shot-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.theme-compare {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.theme-compare .copy h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}
.theme-compare .copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40ch;
}
.theme-pair {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.theme-pair .shot-frame {
  padding: 5px;
}
.theme-pair .shot-card {
  width: 170px;
}

/* ---------- Privacy accordion (short summary on index) ---------- */
.policy {
  background: var(--panel);
  border-radius: 22px;
  border: 1px solid var(--panel-line);
  padding: 8px;
}
details {
  border-bottom: 1px solid var(--panel-line);
}
details:last-child {
  border-bottom: none;
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
}
summary::-webkit-details-marker {
  display: none;
}
summary .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  width: 26px;
  flex-shrink: 0;
}
summary .chev {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: var(--muted);
}
details[open] summary .chev {
  transform: rotate(180deg);
}
.policy-body {
  padding: 0 20px 24px 64px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.policy-body a {
  color: var(--gold);
  text-decoration: underline;
}

/* ---------- Download / footer ---------- */
.download {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 26px;
  padding: 60px 32px;
}
.download-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 18px;
}
.download h2 {
  font-size: 2rem;
  max-width: 22ch;
  margin: 0 auto;
  color: #fff;
}
.download p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
}
.download .btn-primary {
  margin-top: 26px;
}

footer {
  padding: 44px 0 40px;
  border-top: 1px solid var(--panel-line);
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.footer-brand-name {
  font-weight: 600;
  color: #fff;
}
.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-links a {
  text-decoration: underline;
}
.foot-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 18px;
}

/* ===========================================================
   Legal document pages (privacy / terms / data-deletion)
   =========================================================== */
.legal-hero {
  padding: 52px 0 8px;
  text-align: center;
}
.legal-hero .kicker {
  justify-content: center;
}
.legal-hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  color: #fff;
}
.legal-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-section {
  padding: 36px 0 88px;
}
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-card {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 24px;
  padding: 44px 40px;
}
.legal-card > p:first-child {
  margin-top: 0;
}
.legal-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 18px;
}
.legal-card p strong {
  color: var(--cream);
}
.legal-card h2 {
  font-size: 1.3rem;
  color: #fff;
  margin: 40px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-line);
}
.legal-card > h2:first-child,
.legal-card > *:first-child h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-card h3 {
  font-size: 1.05rem;
  color: var(--gold-pale);
  margin: 22px 0 10px;
}
.legal-card ul,
.legal-card ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-card li {
  margin-bottom: 6px;
}
.legal-card li::marker {
  color: var(--gold);
}
.legal-card a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-card a:hover {
  color: var(--gold-pale);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.legal-back:hover {
  color: var(--gold);
}
.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-contact {
  margin-top: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 22px 24px;
}
.legal-contact p {
  margin: 0;
  color: var(--cream);
}
.legal-contact a {
  color: var(--gold);
}

@media (max-width: 900px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .callout {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .theme-compare {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .theme-compare .copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .promise-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promise-grid p {
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 560px) {
  .hero-top h1 {
    font-size: 1.5rem;
  }
  .grid4 {
    grid-template-columns: 1fr;
  }
  .policy-body {
    padding-left: 20px;
  }
  .shot-card {
    width: 170px;
  }
  .theme-pair .shot-card {
    width: 130px;
  }
  .legal-card {
    padding: 32px 22px;
  }
  .legal-hero h1 {
    font-size: 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
