/* Espace Membres · Protocole Prostate (MVP FR, 22-out) — telemóvel primeiro, letra grande (público 50+) */
:root {
  --g900: #0f3a1f;
  --g700: #1f7a3d;
  --g500: #22a04b;
  --g100: #e8f5ec;
  --bg: #f4f7f5;
  --card: #ffffff;
  --ink: #15241b;
  --muted: #56665c;
  --line: #dfe8e2;
  --amber-bg: #fff7e6;
  --amber: #8a5a00;
  --red-bg: #fdecec;
  --red: #b42318;
  --wa: #1fa855;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--g700); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
strong { font-weight: 700; }

/* barra de topo */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px; }
.topbar .brand img { width: 40px; height: 40px; }
.topbar .brand small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.topbar .back { margin-left: auto; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
.narrow { max-width: 780px; margin: 0 auto; }

/* área: cartões dos programas */
.hub-title { font-size: 28px; font-weight: 800; margin: 6px 0 4px; }
.hub-sub { color: var(--muted); margin: 0 0 20px; font-size: 17px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 26px -18px rgba(15, 58, 31, .35); }
.pcard .cover { position: relative; aspect-ratio: 16 / 10; background: var(--g100); }
.pcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard .tag { position: absolute; left: 12px; top: 12px; background: var(--g900); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard h2 { font-size: 22px; font-weight: 800; }
.pcard p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pcard .btn { margin-top: auto; }

.prog { font-size: 14px; color: var(--muted); font-weight: 600; }
.bar { height: 8px; background: #e7eee9; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--g700), var(--g500)); border-radius: 999px; transition: width .3s; }

.btn { display: block; text-align: center; background: linear-gradient(180deg, #22c55e, #159947); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; padding: 15px 16px; border-radius: 12px; border: 0; cursor: pointer; font-family: inherit; width: 100%; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--g700); border: 2px solid var(--g700); }

/* WhatsApp */
.wa { display: flex; flex-direction: column; gap: 12px; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 24px; }
.wa p { margin: 0; font-size: 16px; color: var(--muted); }
.wa strong { color: var(--ink); }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; padding: 14px 16px; border-radius: 12px; }
.btn-wa svg { width: 24px; height: 24px; flex: none; }
@media (min-width: 720px) { .wa { flex-direction: row; align-items: center; justify-content: space-between; } .btn-wa { flex: none; padding: 14px 22px; } }

/* cabeçalho dos módulos */
.hero { background: linear-gradient(135deg, var(--g900), var(--g700)); color: #fff; }
.hero .in { max-width: 1120px; margin: 0 auto; padding: 22px 16px 26px; display: grid; gap: 18px; align-items: center; }
.hero img { width: 100%; height: auto; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }
.hero .kick { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { font-size: 34px; font-weight: 800; margin: 10px 0 6px; }
.hero p { margin: 0; font-size: 18px; color: rgba(255, 255, 255, .88); }
.hero .prog { color: rgba(255, 255, 255, .85); margin-top: 16px; }
.hero .bar { background: rgba(255, 255, 255, .2); }
.hero .bar i { background: #8ef0ad; }
@media (max-width: 859px) { .hero img { aspect-ratio: 16 / 9; max-width: none; } }
@media (max-width: 480px) { .topbar .in:has(.back) .brand small { display: none; } }
@media (min-width: 860px) {
  .hero .in { grid-template-columns: 1.15fr .85fr; padding: 40px 16px; gap: 40px; }
  .hero h1 { font-size: 46px; }
  .hero img { justify-self: end; }
}

/* navegação por secções */
.secnav { position: sticky; top: 60px; z-index: 15; background: rgba(244, 247, 245, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.secnav .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.secnav .in::-webkit-scrollbar { display: none; }
.secnav a { flex: none; text-decoration: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.secnav a:hover { border-color: var(--g700); color: var(--g700); }
@media (min-width: 860px) { .secnav .in { justify-content: center; } }

/* secções */
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 0 0 18px; scroll-margin-top: 130px; }
@media (min-width: 720px) { .sec { padding: 30px 32px; } }
.sec h2 { font-size: 25px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec h2 .n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--g100); color: var(--g700); font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.sec h3 { font-size: 20px; font-weight: 800; margin: 22px 0 8px; }
.sec p { margin: 0 0 12px; }
.sec ul, .sec ol { margin: 0 0 12px; padding-left: 0; list-style: none; }
.ticks li { position: relative; padding: 0 0 0 30px; margin: 0 0 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--g500); font-weight: 900; }
.dots li { position: relative; padding: 0 0 0 24px; margin: 0 0 8px; }
.dots li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--g500); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 0 46px; margin: 0 0 14px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--g700); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.recipe { background: var(--g100); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; }
.recipe h3 { margin-top: 0; }
.recipe .qty { font-weight: 800; color: var(--g900); }

.box { border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: 17px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.tip { background: #eef8f1; border-left: 5px solid var(--g500); }
.warn { background: var(--amber-bg); border-left: 5px solid #e3a008; color: #4a3500; }
.alert { background: var(--red-bg); border-left: 5px solid var(--red); color: #5c1610; }

.two { display: grid; gap: 14px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.col { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.col h3 { margin-top: 0; }
.col.yes h3 { color: var(--g700); }
.col.no h3 { color: var(--red); }
.col.no li::before { content: "✕"; color: var(--red); }

/* calendário de dias */
.days { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .days { grid-template-columns: 1fr 1fr; } }
.day { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: #fff; transition: background .2s, border-color .2s; }
.day input { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 2px 0 0; border: 2px solid #b9c8be; border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.day input::after { content: "✓"; color: #fff; font-weight: 900; font-size: 18px; transform: scale(0); transition: transform .15s; }
.day input:checked { background: var(--g500); border-color: var(--g500); }
.day input:checked::after { transform: scale(1); }
.day b { display: block; font-size: 15px; color: var(--g700); text-transform: uppercase; letter-spacing: .04em; }
.day span { display: block; font-size: 16px; line-height: 1.45; }
.day:has(input:checked) { background: #f0faf3; border-color: #9fd9b1; }
.grid30 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (min-width: 600px) { .grid30 { grid-template-columns: repeat(10, 1fr); } }
.grid30 label { position: relative; display: block; cursor: pointer; }
.grid30 input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.grid30 span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border: 1.5px solid #c9d6cd; border-radius: 10px; font-weight: 700; font-size: 16px; background: #fff; }
.grid30 input:checked + span { background: var(--g500); border-color: var(--g500); color: #fff; }
.grid30 input:focus-visible + span { outline: 3px solid #8ad6a3; }

table.plan { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 12px; }
table.plan th, table.plan td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plan th { background: var(--g100); color: var(--g900); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 10px; background: #fff; }
summary { cursor: pointer; font-weight: 700; padding: 14px 24px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 24px; color: var(--g700); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: #33433a; }

/* pontuação de sintomas */
.q { border-bottom: 1px solid var(--line); padding: 12px 0; }
.q label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 17px; }
.q select { width: 100%; font-size: 17px; padding: 11px 12px; border: 1.5px solid #c9d6cd; border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink); }
.score-out { display: none; margin: 16px 0 0; }
.score-out.on { display: block; }
.score-big { font-size: 40px; font-weight: 800; color: var(--g700); line-height: 1; }
.hist { margin: 14px 0 0; }
.hist li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 8px 0; font-size: 16px; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; cursor: pointer; padding: 6px 0; font-family: inherit; }

.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 16px 40px; }
