/* Mezura — site institucional. Mesma linguagem visual da app: Outfit, verde-lima, pílulas, rabiscos. */
:root {
  --lime: #D4F36B;
  --lime-soft: #EEF9C8;
  --lime-line: #F2FAD4;
  --lime-dark: #B9DD3C;
  --ink: #141414;
  --bg: #F1F1EF;
  --card: #FFFFFF;
  --line: #E6E6E3;
  --muted: #5F5F5B;
  --soft: #8A8A85;
  --radius: 32px;
  --shadow: 0 8px 30px -12px rgb(0 0 0 / .12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0B; --card: #161616; --line: #262626; --ink: #F5F5F3; --muted: #B4B4AF; --soft: #8A8A85;
    --shadow: 0 8px 30px -12px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0B; --card: #161616; --line: #262626; --ink: #F5F5F3; --muted: #B4B4AF; --soft: #8A8A85;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
svg { display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 99px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* Botões em pílula */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; transition: transform .15s ease, opacity .15s ease, background .15s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-dark { background: #141414; color: #fff; }
.btn-dark:hover { opacity: .88; }
.btn-lime { background: var(--lime); color: #141414; }
.btn-lime:hover { background: #E0F98C; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--line); }
.btn-glass { background: rgb(255 255 255 / .55); color: #141414; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / .7); }
.btn-glass:hover { background: rgb(255 255 255 / .8); }

.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; max-width: 16ch; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ── Topo ── */
.top { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.top-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 10px 0 24px; border-radius: 999px;
  background: rgb(255 255 255 / .62); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .7); box-shadow: 0 10px 40px -20px rgb(20 20 20 / .25); color: #141414;
  max-width: 1120px;
}
.top .logo { height: 20px; width: auto; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; opacity: .75; }
.links a:hover { opacity: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 13px; font-weight: 600; background: rgb(255 255 255 / .7); }
.lang:hover { background: #fff; }
@media (max-width: 860px) { .links { display: none; } .top-in { padding-left: 20px; } }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; background: var(--lime); color: #141414; margin-top: -88px; padding: 160px 0 110px; }
.squiggles { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--lime-line); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: rgb(20 20 20 / .7); }
.hero h1 { font-size: clamp(48px, 8.4vw, 104px); line-height: .95; letter-spacing: -.045em; font-weight: 600; }
.hero h1 span { display: block; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: rgb(20 20 20 / .78); margin-top: 28px; max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.note { margin-top: 16px; font-size: 14px; color: rgb(20 20 20 / .6); }
.hero-art { position: relative; display: flex; justify-content: center; min-height: 600px; }
@media (max-width: 960px) {
  .hero { padding: 132px 0 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { min-height: 0; }
}

/* Telemóvel desenhado em HTML */
.phone {
  width: 300px; border-radius: 48px; padding: 10px; background: #141414;
  box-shadow: 0 40px 80px -30px rgb(20 20 20 / .55), 0 0 0 1px rgb(255 255 255 / .1) inset;
  transform: rotate(-3deg);
}
.phone-screen { position: relative; border-radius: 40px; background: #F1F1EF; padding: 22px 16px 88px; overflow: hidden; color: #141414; font-size: 13px; }
.m-top { display: flex; justify-content: space-between; align-items: center; }
.m-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #141414; flex-shrink: 0; }
.m-icons { display: flex; gap: 6px; }
.m-icons i { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: block; }
.m-hello { margin-top: 16px; color: #8A8A85; font-size: 13px; }
.m-headline { font-size: 22px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.m-pills { display: flex; gap: 6px; margin-top: 14px; }
.m-pills span { padding: 7px 14px; border-radius: 99px; background: #fff; font-weight: 500; font-size: 12px; }
.m-pills .on { background: #141414; color: #fff; }
.m-inbox { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: var(--lime); border-radius: 18px; padding: 9px 10px; font-size: 12px; font-weight: 500; }
.m-inbox span:nth-child(2) { flex: 1; }
.m-dot { width: 22px; height: 22px; border-radius: 50%; background: #141414; color: var(--lime); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.m-inbox em { font-style: normal; background: #141414; color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 11px; }
.m-tabs { display: flex; background: #E6E6E3; border-radius: 99px; padding: 3px; margin-top: 12px; }
.m-tabs span { flex: 1; text-align: center; padding: 6px; border-radius: 99px; font-size: 12px; font-weight: 500; color: #5F5F5B; }
.m-tabs .on { background: #fff; color: #141414; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.m-card { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.m-card b { font-weight: 600; font-size: 13px; margin-top: 8px; }
.m-card small { color: #8A8A85; font-size: 12px; }
.m-badge { width: 30px; height: 30px; border-radius: 50%; background: #F1F1EF; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #141414; flex-shrink: 0; }
.m-nav { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 54px; border-radius: 99px; background: #141414; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; }
.m-nav span { width: 34px; height: 34px; display: grid; place-items: center; color: rgb(255 255 255 / .55); }
.m-nav span svg { width: 18px; height: 18px; }
.m-nav .on { color: #141414; background: #fff; border-radius: 99px; width: 54px; }
.m-nav .plus { background: var(--lime); color: #141414; border-radius: 50%; width: 42px; height: 42px; }

.guide-card {
  position: absolute; right: 0; bottom: 30px; width: 260px; padding: 16px; border-radius: 28px; color: #141414;
  background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgb(255 255 255 / .8); box-shadow: 0 30px 60px -25px rgb(20 20 20 / .35); transform: rotate(3deg);
}
.guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.guide-head b { font-weight: 600; }
.guide-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: rgb(255 255 255 / .75); margin-top: 6px; font-size: 13px; }
.guide-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.guide-row b { font-weight: 600; }
.guide-row small { color: #8A8A85; font-size: 11px; }
.guide-row em { font-style: normal; font-weight: 600; background: #141414; color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 12px; }
@media (max-width: 960px) { .guide-card { right: 50%; margin-right: -230px; bottom: -20px; } }
@media (max-width: 520px) {
  .phone { width: 270px; }
  .guide-card { width: 220px; margin-right: -180px; bottom: -36px; }
}

/* ── Problema ── */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.pcard { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.pcard .num { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: var(--lime); color: #141414; }
.pcard h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin-top: 20px; }
.pcard p { color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } }

/* ── Como funciona ── */
.how { background: var(--card); border-radius: 48px; margin: 0 12px; }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step-n { position: absolute; top: -22px; left: 0; width: 44px; height: 44px; border-radius: 50%; background: #141414; color: var(--lime); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.steps h3 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-top: 16px; }
.steps p { color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 48px; } .how { border-radius: 36px; margin: 0 8px; } }

/* ── Funções ── */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.fcard { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease; }
.fcard:hover { transform: translateY(-3px); }
.ficon { width: 52px; height: 52px; border-radius: 50%; background: var(--lime-soft); color: #141414; display: grid; place-items: center; }
.ficon svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 20px; font-weight: 600; margin-top: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fcard p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #141414; color: var(--lime); }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }

/* ── Privacidade ── */
.privacy { padding-top: 0; }
.privacy-in { background: #141414; color: #fff; border-radius: 48px; padding: 56px; display: flex; gap: 32px; align-items: flex-start; }
.privacy-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: var(--lime); color: #141414; display: grid; place-items: center; }
.privacy-icon svg { width: 28px; height: 28px; }
.privacy p { color: rgb(255 255 255 / .72); margin-top: 16px; max-width: 56ch; font-size: 18px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--lime); font-weight: 600; text-decoration: none; }
.textlink svg { width: 18px; height: 18px; transition: transform .15s; }
.textlink:hover svg { transform: translateX(3px); }
@media (max-width: 720px) { .privacy-in { flex-direction: column; padding: 36px 28px; border-radius: 36px; } }

/* ── Preços ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 900px; }
.plan { position: relative; overflow: hidden; background: var(--card); border-radius: 36px; padding: 36px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; font-weight: 600; }
.price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.price span { color: var(--soft); }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--lime-soft); color: #141414; box-sizing: content-box; }
.plan-premium { background: #141414; color: #fff; }
.plan-premium .price span, .plan-premium .alt { color: rgb(255 255 255 / .6); }
.plan-premium li svg { background: var(--lime); }
.plan-premium > *:not(.plan-sq) { position: relative; }
.plan-sq { color: rgb(255 255 255 / .04); }
.alt { margin-top: 6px; font-size: 15px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--lime); color: #141414; margin-bottom: 16px; }
.fine { color: var(--soft); font-size: 14px; margin-top: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan-premium { order: -1; } }

/* ── Perguntas ── */
.faq-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.qs { display: grid; gap: 10px; }
details { background: var(--card); border-radius: 24px; padding: 0 24px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
.pm { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: transform .2s ease, background .2s; }
.pm svg { width: 16px; height: 16px; }
details[open] .pm { transform: rotate(45deg); background: var(--lime); color: #141414; }
details p { color: var(--muted); padding-bottom: 22px; margin-top: -6px; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; gap: 32px; } }

/* ── Chamada final ── */
.final { position: relative; overflow: hidden; background: var(--lime); color: #141414; margin: 0 12px; border-radius: 48px; text-align: center; padding: 120px 0; }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -.04em; font-weight: 600; max-width: 14ch; }
.final p { margin: 20px 0 36px; font-size: 19px; color: rgb(20 20 20 / .7); }
@media (max-width: 720px) { .final { margin: 0 8px; border-radius: 36px; padding: 80px 0; } }

/* ── Rodapé ── */
.foot { padding: 64px 0 48px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-logo { height: 22px; width: auto; }
.foot-in p { color: var(--muted); margin-top: 12px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 500; }
.foot-links a { text-decoration: none; opacity: .75; }
.foot-links a:hover { opacity: 1; }
.foot-fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: var(--soft); }

/* Modo escuro: os blocos pretos passam a cartões com contorno, os números a verde-lima */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .privacy-in,
  :root:not([data-theme="light"]) .plan-premium { background: var(--card); box-shadow: inset 0 0 0 1.5px rgb(212 243 107 / .35); }
  :root:not([data-theme="light"]) .step-n,
  :root:not([data-theme="light"]) .tag { background: var(--lime); color: #141414; }
}
:root[data-theme="dark"] .privacy-in, :root[data-theme="dark"] .plan-premium { background: var(--card); box-shadow: inset 0 0 0 1.5px rgb(212 243 107 / .35); }
:root[data-theme="dark"] .step-n, :root[data-theme="dark"] .tag { background: var(--lime); color: #141414; }

/* Preços: só 2 colunas → secção centrada */
.pricing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing .h2 { max-width: 20ch; }
.pricing .plans { width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
