:root { --bg:#fbfaf7; --ink:#1c1b19; --muted:#6b675f; --line:#e4e0d6; --card:#ffffff; --accent:#6e5ae6; --accent-ink:#ffffff; --accent-soft:#eeebfc; --danger:#b3392a; --radius:14px; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--ink); line-height:1.55; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.nav { display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.brand { font-weight:800; font-size:1.15rem; letter-spacing:-0.01em; color:var(--ink); text-decoration:none; }
.brand b { color: var(--accent); }
.brand { display:inline-flex; align-items:center; gap:10px; }
.brand img { display:block; height:46px; width:auto; }
.btn { display:inline-block; border:0; cursor:pointer; font:inherit; font-weight:700; padding:12px 22px; border-radius:999px; background:var(--accent); color:var(--accent-ink); text-decoration:none; }
.btn.ghost { background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn.small { padding:7px 14px; font-size:.85rem; }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.hero { padding: 56px 0 40px; text-align:center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height:1.1; letter-spacing:-0.02em; margin:0 0 16px; }
.hero p { font-size:1.15rem; color:var(--muted); max-width:640px; margin:0 auto 26px; }
.pill { display:inline-block; background:var(--accent-soft); color:var(--accent); font-weight:700; font-size:.8rem; padding:5px 12px; border-radius:999px; margin-bottom:16px; }
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 24px 0 40px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.card h3 { margin:0 0 6px; font-size:1.05rem; }
.card p { margin:0; color:var(--muted); font-size:.95rem; }
.ico { font-size:1.6rem; margin-bottom:8px; }
.section-title { text-align:center; font-size:1.7rem; letter-spacing:-0.01em; margin:48px 0 6px; }
.section-sub { text-align:center; color:var(--muted); margin:0 0 8px; }
.chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin:20px 0 40px; }
.chips span { background:var(--card); border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-weight:600; font-size:.92rem; }
.cta { text-align:center; background:var(--accent); color:var(--accent-ink); border-radius:24px; padding:40px 20px; margin:30px 0 50px; }
.cta h2 { margin:0 0 8px; } .cta p { margin:0 0 20px; opacity:.9; }
.cta .btn { background:#fff; color:var(--accent); }
footer { border-top:1px solid var(--line); padding:24px 0 40px; color:var(--muted); font-size:.9rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
form.box { max-width:520px; margin:20px auto 60px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
label { display:block; font-weight:600; margin:14px 0 6px; font-size:.92rem; }
input, select { width:100%; font:inherit; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); }
input:focus, select:focus { outline:2px solid var(--accent); outline-offset:1px; }
.hint { color:var(--muted); font-size:.85rem; margin:5px 0 0; }
.slug-row { display:flex; align-items:center; gap:6px; } .slug-row input { flex:1; } .slug-row span { color:var(--muted); font-size:.9rem; white-space:nowrap; }
.msg { padding:12px 14px; border-radius:10px; margin:14px 0; font-size:.95rem; }
.msg.error { background:#fbe9e6; color:#7d2217; } .msg.ok { background:var(--accent-soft); color:#0b4f49; }
.ok-text { color:#1a7f37; } .bad-text { color:var(--danger); }
table { width:100%; border-collapse:collapse; font-size:.92rem; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { color:var(--muted); font-weight:600; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.tag { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.78rem; font-weight:700; background:var(--accent-soft); color:var(--accent); }
.tag.off { background:#f1ece0; color:#7a7468; } .tag.bad { background:#fbe9e6; color:#7d2217; }
.row-actions { display:flex; gap:8px; flex-wrap:wrap; }
.stats { display:grid; gap:12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin:18px 0; }
.stat { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; } .stat b { display:block; font-size:1.6rem; } .stat span { color:var(--muted); font-size:.85rem; }
.scroll-x { overflow-x:auto; }

/* ---------- página inicial (estilo "hero" com agenda em destaque) ---------- */
body.lp { background:#fbfaf7; }
.lp-top { background:linear-gradient(180deg,#5a47d8 0%,#4a3bb8 100%); padding:20px 20px 0; }
.lp-nav { max-width:1160px; margin:0 auto; background:#fff; border-radius:999px; padding:10px 14px 10px 26px; display:flex; align-items:center; gap:26px; box-shadow:0 6px 24px rgba(30,20,100,.18); }
.lp-nav .brand img { height:36px; }
.lp-links { display:flex; gap:22px; flex:1; }
.lp-links a { color:#4a3bb8; font-weight:600; text-decoration:none; font-size:.98rem; }
.lp-links a:hover { text-decoration:underline; }
.lp-nav-right { display:flex; align-items:center; gap:10px; }
.lp-enter { display:inline-block; padding:10px 20px; border-radius:999px; background:#eeebfc; color:#4a3bb8; font-weight:700; text-decoration:none; }
.lp-enter:hover { background:#e2ddfa; }
.lp-nav .btn.small { padding:11px 20px; font-size:.95rem; }
.lp-hero { max-width:1160px; margin:0 auto; display:grid; grid-template-columns:1.05fr 1fr; gap:40px; align-items:center; padding:64px 0 80px; color:#fff; }
.lp-badge { display:inline-block; background:#3fd3b0; color:#06403a; font-weight:800; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; padding:7px 14px; border-radius:8px; margin-bottom:22px; }
.lp-hero h1 { font-size:clamp(2.2rem,5vw,3.7rem); line-height:1.04; letter-spacing:-.03em; margin:0 0 20px; font-weight:800; }
.lp-hero p.lead { font-size:1.2rem; line-height:1.5; color:#e6e2fb; margin:0 0 28px; max-width:520px; }
.lp-cta { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:22px; }
.lp-hero .btn { background:#fff; color:#4a3bb8; padding:15px 28px; font-size:1.05rem; }
.lp-hero .btn.outline { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.7); }
.lp-hero .btn.outline:hover { background:rgba(255,255,255,.1); }
.lp-soon { display:inline-block; background:rgba(255,255,255,.16); color:#fff; font-weight:700; padding:14px 26px; border-radius:999px; border:1px solid rgba(255,255,255,.35); }
.lp-points { list-style:none; margin:0; padding:0; color:#e6e2fb; display:grid; gap:7px; font-size:1rem; }
.lp-points li::before { content:"✓"; color:#3fd3b0; font-weight:800; margin-right:9px; }

/* maqueta da agenda */
.lp-mock { position:relative; background:#3d2fa0; border-radius:26px; padding:26px 0 0 26px; box-shadow:0 30px 60px rgba(20,10,80,.35); overflow:hidden; height:430px; }
.lp-app { background:#fff; border-radius:14px 0 0 0; height:100%; color:#2b2740; font-size:11px; overflow:hidden; }
.lp-app-nav { background:#5a47d8; color:#e9e5ff; display:flex; gap:16px; padding:10px 14px; font-weight:600; align-items:center; }
.lp-app-nav b { color:#fff; margin-right:6px; }
.lp-days { display:flex; gap:14px; padding:10px 14px; border-bottom:1px solid #ece9f7; color:#8a85a6; font-weight:700; font-size:10px; }
.lp-days .on { color:#5a47d8; border-bottom:2px solid #5a47d8; padding-bottom:5px; }
.lp-cols { display:grid; grid-template-columns:34px 1fr 1fr 1fr; }
.lp-hours { display:grid; grid-auto-rows:42px; color:#aaa6c2; padding:34px 0 0 8px; font-size:9.5px; }
.lp-col { position:relative; border-left:1px solid #ece9f7; height:340px; background:repeating-linear-gradient(#fff 0 41px,#f1eff9 41px 42px); }
.lp-col h6 { margin:0; padding:8px 8px; font-size:10.5px; font-weight:700; background:#fff; position:relative; z-index:1; height:34px; border-bottom:1px solid #ece9f7; }
.lp-ev { position:absolute; left:4px; right:4px; border-radius:6px; padding:4px 7px; font-size:9.5px; line-height:1.25; color:#241f3e; font-weight:600; border-left:4px solid; }
.lp-ev i { font-style:normal; font-weight:500; display:block; opacity:.8; }
.e1 { background:#dfe9ff; border-color:#0091ff; } .e2 { background:#d9f5e8; border-color:#30a46c; } .e3 { background:#fde3e4; border-color:#e5484d; }
.e4 { background:#e8e1fb; border-color:#6e56cf; } .e5 { background:#ffecd2; border-color:#f76b15; } .e6 { background:#fff3c4; border-color:#f5b301; }
.lp-phone { z-index:5; position:absolute; right:26px; top:70px; width:190px; background:#fff; border:7px solid #17142b; border-radius:26px; box-shadow:0 14px 34px rgba(0,0,0,.35); padding:0 0 12px; color:#2b2740; overflow:hidden; }
.lp-phone .ph-head { background:linear-gradient(135deg,#8c7bf0,#5a47d8); color:#fff; text-align:center; padding:26px 8px 20px; font-weight:800; font-size:13px; }
.lp-phone .ph-card { margin:-14px 10px 0; background:#fff; border-radius:10px; box-shadow:0 4px 14px rgba(40,30,100,.18); padding:9px 10px 4px; position:relative; }
.lp-phone .ph-card b { display:block; font-size:11.5px; } .lp-phone .ph-card small { color:#8a85a6; font-size:9px; }
.lp-phone .ph-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #f0eef8; font-size:10.5px; font-weight:600; }
.lp-phone .ph-row:first-of-type { margin-top:7px; }
.lp-phone .av { width:20px; height:20px; border-radius:50%; flex:none; }
.lp-phone .ph-row::after { content:"›"; margin-left:auto; color:#b3afcb; font-size:14px; }

.lp-section { max-width:1040px; margin:0 auto; padding:0 20px; }
body.lp .grid { margin-top:34px; }
.lp-feat-title { text-align:center; font-size:clamp(1.6rem,3.4vw,2.3rem); letter-spacing:-.02em; margin:64px 0 4px; }
@media (max-width:900px) {
  .lp-hero { grid-template-columns:1fr; padding:40px 0 56px; }
  .lp-links { display:none; }
  .lp-nav { padding-left:18px; justify-content:space-between; }
  .lp-mock { height:380px; }
  .lp-phone { width:150px; right:12px; top:60px; }
  .lp-cols { grid-template-columns:28px 1fr 1fr; } .lp-cols .lp-col:nth-child(4) { display:none; }
}
@media (max-width:520px) { .lp-enter { padding:9px 14px; } .lp-nav .btn.small { padding:10px 14px; } .lp-nav .brand img { height:30px; } .lp-hero .btn { padding:13px 22px; } }

/* seletor de idioma */
.lang { position:relative; display:inline-block; }
.lang-btn { display:inline-flex; align-items:center; gap:6px; background:transparent; border:0; cursor:pointer; font:inherit; font-weight:600; color:#4a3bb8; padding:8px 10px; border-radius:999px; }
.lang-btn:hover { background:#eeebfc; }
.lang-menu { position:absolute; right:0; top:calc(100% + 8px); z-index:50; list-style:none; margin:0; padding:6px; min-width:160px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 30px rgba(30,20,100,.18); }
.lang-menu[hidden] { display:none; }
.lang-menu button { width:100%; text-align:left; background:transparent; border:0; cursor:pointer; font:inherit; padding:10px 12px; border-radius:8px; color:var(--ink); }
.lang-menu button:hover { background:#f3f1fd; }
.nav-right { display:flex; align-items:center; gap:8px; }
.lp-top { overflow-x:clip; }
.lp-hero > * { min-width:0; }
.lp-nav { flex-wrap:nowrap; }
@media (max-width:640px) {
  .lp-nav .btn.small { display:none; }
  .lp-nav { padding:8px 10px 8px 16px; gap:8px; }
  .lp-hero h1 { font-size:2.1rem; }
  .lp-mock { padding:18px 0 0 18px; border-radius:20px; }
}

.google-btn { display:flex; align-items:center; justify-content:center; gap:10px; }

/* ecrã dividido (entrar / registo) */
body.split-page { background:#fbfaf7; }
.split { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); min-height:100vh; }
.split-hero { background:linear-gradient(160deg,#5a47d8 0%,#3d2fa0 100%); color:#fff; padding:48px 56px; display:flex; align-items:center; position:relative; overflow:hidden; }
.split-hero::after { content:""; position:absolute; inset:auto -120px -160px auto; width:420px; height:420px; border-radius:50%; background:rgba(255,255,255,.07); }
.split-hero-inner { position:relative; z-index:1; max-width:560px; }
.split-brand { display:inline-flex; background:#fff; border-radius:14px; padding:10px 16px; margin-bottom:38px; }
.split-brand img { display:block; height:34px; width:auto; }
.split-eyebrow { display:block; font-weight:800; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:#cfc8ff; margin-bottom:12px; }
.split-eyebrow.dark { color:var(--accent); }
.split-title { font-size:clamp(2.2rem,4.2vw,3.4rem); line-height:1.02; letter-spacing:-.02em; margin:0 0 18px; font-weight:800; }
.split-title em { font-style:normal; color:#3fd3b0; }
.split-lead { font-size:1.1rem; color:#e6e2fb; margin:0 0 30px; max-width:480px; }
.split-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.split-card { display:flex; gap:12px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16); border-radius:14px; padding:14px; }
.split-card b { display:block; font-size:.98rem; margin-bottom:3px; }
.split-card p { margin:0; font-size:.86rem; color:#ddd8fb; line-height:1.4; }
.split-ico { flex:none; width:36px; height:36px; border-radius:10px; background:rgba(255,255,255,.18); display:grid; place-items:center; font-size:1.1rem; }
.split-form { display:flex; flex-direction:column; padding:24px 40px 40px; background:#fbfaf7; }
.split-form-top { display:flex; justify-content:flex-end; align-items:center; gap:10px; }
.split-box { width:100%; max-width:440px; margin:auto; padding:20px 0; }
.split-box h1 { margin:0 0 6px; font-size:2rem; letter-spacing:-.02em; }
.split-box .btn { padding:14px 22px; }
.split-foot { margin-top:26px; padding-top:20px; border-top:1px solid var(--line); text-align:center; }
.split-foot .btn { width:100%; margin-top:6px; }
.login-or { display:flex; align-items:center; gap:12px; margin:16px 0 4px; color:var(--muted); font-size:.85rem; }
.login-or::before, .login-or::after { content:""; flex:1; height:1px; background:var(--line); }
@media (max-width:900px) {
  .split { grid-template-columns:1fr; min-height:0; }
  .split-hero { padding:28px 22px; }
  .split-cards, .split-lead { display:none; }
  .split-title { font-size:2rem; margin-bottom:0; }
  .split-brand { margin-bottom:22px; }
  .split-form { padding:18px 22px 36px; }
}

.lp-note { margin:0 0 22px; color:#e6e2fb; font-size:1rem; }
.lp-note a { color:#fff; font-weight:700; text-decoration:underline; text-underline-offset:3px; }

.split-alt { text-align:center; margin:18px 0 8px; font-size:.92rem; }
.split-alt a { color:var(--accent); font-weight:600; }
#loginForm input { margin-bottom:2px; }

/* páginas legais (termos e privacidade) */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 10px 0 4px; }
.legal h2 { font-size: 1.1rem; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-date { color: var(--muted); font-size: .9rem; margin-top: 0; }
.accept-row { display:flex; gap:10px; align-items:flex-start; margin-top:14px; font-size:.88rem; color:var(--muted); font-weight:400; }
.accept-row input { width:auto; margin-top:3px; }
.accept-row a { color:var(--accent); }

/* Preços (página inicial) */
.lp-plans { display:grid; gap:18px; grid-template-columns:repeat(auto-fit, minmax(240px, 310px)); justify-content:center; margin:26px 0 8px; }
.lp-plan { background:var(--card); border:2px solid var(--line); border-radius:var(--radius); padding:24px; display:flex; flex-direction:column; gap:6px; position:relative; }
.lp-plan.pop { border:2px solid var(--accent); }
.lp-plan h3 { margin:0; font-size:1.15rem; }
.lp-plan .amount { font-size:2.4rem; font-weight:800; letter-spacing:-0.02em; line-height:1.1; }
.lp-plan .amount span { font-size:1rem; font-weight:500; color:var(--muted); margin-left:2px; }
.lp-plan .alt { color:var(--muted); font-size:.9rem; margin-bottom:8px; }
.lp-plan ul { list-style:none; padding:0; margin:6px 0 16px; display:grid; gap:8px; font-size:.95rem; }
.lp-plan li::before { content:"✓ "; color:var(--accent); font-weight:800; }
.lp-plan .btn { margin-top:auto; text-align:center; }
.lp-plan-badge.off { background:var(--line); color:var(--muted); }
.lp-plan-badge { display:inline-block; align-self:flex-start; background:var(--accent-soft); color:var(--accent); font-weight:700; font-size:.78rem; padding:4px 10px; border-radius:999px; margin-bottom:4px; }
.lp-price-note { text-align:center; color:var(--muted); font-size:.88rem; margin:6px 0 0; }

.lp-plan .amount .from { display:block; font-size:.78rem; font-weight:600; color:var(--muted); letter-spacing:.02em; margin-bottom:4px; }

/* Mostrar/esconder palavra-passe + "manter sessão" */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; padding: 0; }
.pw-eye:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.pw-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.login-opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0 0; font-size: .92rem; }
.login-opts a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; }
.remember input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--accent); flex: none; }
.sms-over { color: #b3261e; }
.sms-cell { white-space: nowrap; }
