/* Linguagem visual: branco suave, azul vivo, vidro fosco (estilo keynote).
   Paleta: page #FDFDFB · haze #B7CFEB · ice #E6F0FA · céu #294376→#769CC2 · navy #1E2F52
   acentos #2F6BFF / #3CC8F0 / menta #4ED6A0. Sem roxo, magenta ou laranja. */
:root {
  --page: #FDFDFB;
  --haze: #B7CFEB;
  --ice: #E6F0FA;
  --floor: #DBEEFD;
  --deep: #294376;
  --sky: #769CC2;
  --navy: #1E2F52;
  --blue: #2F6BFF;
  --cyan: #3CC8F0;
  --mint: #4ED6A0;
  --capsule: #2F2E2F;

  --bg: var(--page);
  --ink: #0F1B33;
  --muted: #6B778C;
  --faint: #BCBCBA;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --rim: rgba(255, 255, 255, 0.95);
  --edge-soft: rgba(30, 47, 82, 0.08);
  --shadow: 0 24px 60px -28px rgba(41, 67, 118, 0.35), 0 2px 6px -2px rgba(41, 67, 118, 0.08);
  --radius: 32px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* saída exponencial */
  --ease-in: cubic-bezier(.7, 0, .84, 0);    /* aceleração */
}
:root[data-theme="dark"] {
  --bg: #0D1628;
  --ink: #EEF3FC;
  --muted: #95A3BD;
  --faint: #5D6B85;
  --glass: rgba(118, 156, 194, 0.10);
  --glass-strong: rgba(118, 156, 194, 0.18);
  --rim: rgba(255, 255, 255, 0.28);
  --edge-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --floor: #1A2D52;
  --haze: #294376;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Névoa azul + brilho de chão ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora::after { /* brilho de chão */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -30vh; height: 70vh;
  background: radial-gradient(ellipse at 50% 100%, var(--floor), transparent 70%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 30s ease-in-out infinite alternate;
}
.b1 { background: var(--haze); width: 60vmax; height: 60vmax; top: -30vmax; left: -15vmax; animation: haze-in 2.4s var(--ease-out) both, drift 30s 2.4s ease-in-out infinite alternate; }
.b2 { background: var(--ice); width: 50vmax; height: 50vmax; top: 10%; right: -22vmax; animation-duration: 36s; animation-delay: -8s; }
.b3 { background: var(--cyan); width: 26vmax; height: 26vmax; top: 48%; left: -8vmax; opacity: .16; animation-duration: 28s; }
.b4 { background: var(--blue); width: 22vmax; height: 22vmax; top: 70%; right: 6vmax; opacity: .10; animation-duration: 24s; }
:root[data-theme="dark"] .b3, :root[data-theme="dark"] .b4 { opacity: .22; }
@keyframes haze-in { from { opacity: 1; transform: scale(1.6); } }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5vw, 4vh) scale(1.1); }
}

/* ---------- Vidro fosco ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  box-shadow: inset 0 1.5px 0 var(--rim), inset 0 -18px 40px -30px rgba(219, 238, 253, .9), var(--shadow);
  isolation: isolate;
}
.glass::before { /* reflexo que segue o ponteiro */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), rgba(230, 240, 250, .9), transparent 50%);
  opacity: var(--glow, .5); transition: opacity .4s;
}
:root[data-theme="dark"] .glass::before { background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), rgba(118, 156, 194, .22), transparent 50%); }
@supports (backdrop-filter: url(#liquid)) {
  .liquid { backdrop-filter: url(#liquid) blur(18px) saturate(180%); }
}

/* ---------- Navegação ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; width: min(1080px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px; padding: 8px 8px 8px 10px;
  border-radius: 999px;
}
.brand { font-weight: 600; text-decoration: none; font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.mark { /* logótipo: raio que desce */
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  filter: drop-shadow(0 4px 8px rgba(47, 107, 255, .3));
}
.mark svg { width: 100%; height: 100%; }
.brand b, .lockup .name b, .wordmark b { font-weight: 800; }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; transition: background .3s, color .3s; }
.nav nav a:hover { color: var(--ink); background: var(--ice); }
:root[data-theme="dark"] .nav nav a:hover { background: var(--glass-strong); }
.theme-toggle { border: 0; background: var(--ice); color: var(--navy); width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; transition: transform .6s var(--ease-out); }
:root[data-theme="dark"] .theme-toggle { background: var(--glass-strong); color: var(--ink); }
.theme-toggle:hover { transform: rotate(180deg); }

main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 40px; text-align: center; }
.lockup { display: flex; width: fit-content; align-items: center; gap: 18px; margin: 0 auto 34px; }
.lockup .disc {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: var(--navy);
  background: #FBFCFE; border: 1px solid #E8E8EA;
  box-shadow: 0 0 0 10px rgba(213, 243, 255, .55), 0 0 0 22px rgba(247, 254, 255, .45), 0 14px 30px -14px rgba(41, 67, 118, .4);
}
.lockup .disc svg { width: 66%; height: 66%; }
.lockup .name { font-size: 2.1rem; font-weight: 500; letter-spacing: -.03em; }
.pill-dark { background: var(--capsule); color: #fff; font-weight: 500; font-size: .95rem; padding: 8px 16px; border-radius: 999px; }
.lockup .name, .lockup .pill-dark { animation: sharpen 1.1s var(--ease-out) both; }
.lockup .name { animation-delay: .08s; }
.lockup .pill-dark { animation-delay: .16s; --sx: 15px; }
.lockup .disc { animation: rise 1.2s var(--ease-out) both; }
@keyframes rise { from { transform: translateY(120px); filter: blur(10px); } }
@keyframes sharpen { from { opacity: 0; transform: translateX(var(--sx, 0)); filter: blur(12px); } }

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; font-weight: 700; }
.shine {
  background: linear-gradient(100deg, var(--deep) 0%, var(--blue) 30%, var(--cyan) 55%, var(--mint) 75%, var(--blue) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
:root[data-theme="dark"] .shine { background-image: linear-gradient(100deg, var(--sky) 0%, var(--blue) 30%, var(--cyan) 55%, var(--mint) 75%, var(--sky) 100%); }
@keyframes shine { to { background-position: -220% 0; } }
.eyebrow { display: inline-block; color: var(--muted); font-size: .88rem; font-weight: 500; margin: 0 0 18px; }
.lead { max-width: 620px; margin: 0 auto 34px; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.lead .key { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 600; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); display: inline-flex; align-items: center; gap: 8px; border: 0; }
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(47, 107, 255, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { background: var(--glass-strong); border: 1px solid var(--edge-soft); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--rim); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.stat { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 2.3rem; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--navy); }
:root[data-theme="dark"] .stat strong { color: var(--ink); }
.stat span { color: var(--muted); font-weight: 500; font-size: .9rem; }

/* ---------- Secções ---------- */
.section { padding: 80px 0 10px; scroll-margin-top: 80px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Painel céu (simulador) ---------- */
.sky {
  position: relative; overflow: hidden; border-radius: 44px; padding: 56px 40px;
  background: linear-gradient(180deg, var(--deep), var(--sky));
  box-shadow: var(--shadow);
}
.sky-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky::before { /* brilho turquesa no canto */
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 200, 240, .45), transparent 65%);
}
/* ---------- Luzinho, o mascote contador ---------- */
.sim-wrap { position: relative; display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 28px; align-items: center; justify-content: center; }
.luzinho { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; z-index: 1; }
.luzinho-svg { width: 150px; height: auto; overflow: visible; }
.lz-body { animation: lz-bob 3.2s ease-in-out infinite; transform-origin: 60px 120px; }
.lz-shadow { animation: lz-shadow 3.2s ease-in-out infinite; transform-origin: 60px 126px; }
@keyframes lz-bob { 50% { transform: translateY(-5px); } }
@keyframes lz-shadow { 50% { transform: scaleX(.85); opacity: .2; } }
.lz-eyes { animation: lz-blink 4.6s infinite; transform-origin: 60px 50px; }
@keyframes lz-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.lz-needle { transform-origin: 60px 72px; transform: rotate(var(--needle, 0deg)); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1); }
.lz-mouth { transition: d .6s var(--ease-out); }
.luzinho.cheer .lz-body { animation: lz-hop .6s var(--ease-out); }
@keyframes lz-hop { 40% { transform: translateY(-14px) rotate(-4deg); } }
.lz-bubble {
  position: relative; background: rgba(253, 253, 251, .95); color: var(--ink); border-radius: 22px; padding: 12px 16px;
  font-size: .86rem; line-height: 1.45; text-align: center; box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(14, 25, 52, .7);
}
.lz-bubble::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.lz-bubble b { display: block; color: var(--blue); font-weight: 700; }
.lz-bubble span { font-weight: 500; }
.lz-bubble strong { color: #1FA978; font-weight: 700; }
.sim { padding: 28px; border-radius: 40px; max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(230,240,250,.18));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -24px 50px -30px rgba(255,255,255,.5), 0 30px 60px -30px rgba(14, 25, 52, .6);
  color: #fff;
}
.sim.glass::before { background: radial-gradient(380px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.22), transparent 50%); }
.sim-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 500; }
.sim-row output { font-size: 2.1rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sim-row output::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 4px; vertical-align: -.08em; background: #fff; } /* cursor de texto, sempre ligado */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, #fff 0 var(--fill, 27%), rgba(255,255,255,.22) var(--fill, 27%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(14, 25, 52, .4); cursor: grab; transition: transform .4s var(--ease-out); }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; }
.presets, .filters, .sort { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.filters > span { opacity: .8; font-weight: 500; font-size: .9rem; margin-right: 4px; }
.presets button, .chip {
  border: 1px solid var(--edge-soft); background: var(--glass); padding: 8px 14px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.presets button:hover, .chip:hover { background: var(--ice); }
.presets button.active, .chip.active { background: var(--navy); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .presets button.active, :root[data-theme="dark"] .chip.active { background: var(--ink); color: var(--bg); }
.sim .presets button, .sim .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.sim .presets button:hover, .sim .chip:hover { background: rgba(255,255,255,.26); }
.sim .presets button.active, .sim .chip.active { background: #fff; color: var(--navy); }
.best {
  margin-top: 24px; padding: 16px 18px; border-radius: 26px; color: var(--ink);
  background: rgba(253, 253, 251, .92);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(14, 25, 52, .6);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.best .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
.best .name { font-size: 1.25rem; font-weight: 700; }
.best .price { margin-left: auto; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }

/* ---------- Cartões ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.card { padding: 0; overflow: hidden; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); view-transition-name: var(--vt); }
.card:hover { transform: translateY(-3px); --glow: 1; }
.card.hidden { display: none; }
.card-main { display: grid; grid-template-columns: 46px 1.6fr 1fr 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; }
.rank { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; background: var(--ice); color: var(--navy); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .rank { background: var(--glass-strong); color: var(--ink); }
.card.top .rank { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { /* squircle navy com marca branca */
  width: 44px; height: 44px; border-radius: 28%; flex: none; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: .9rem;
  background: linear-gradient(160deg, var(--c), var(--c2, var(--navy)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -8px rgba(30, 47, 82, .6);
}
.logo.light { color: var(--navy); border: 1px solid #E3E8EF; }
.who h3 { margin: 0; font-size: 1.06rem; font-weight: 600; }
.who p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric small { display: block; color: var(--muted); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.metric b { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metric .delta { font-size: .78rem; color: var(--muted); font-weight: 500; }
.metric .delta.zero { color: #1FA978; font-weight: 600; }
.bar { height: 4px; border-radius: 9px; background: var(--edge-soft); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--blue), var(--cyan), var(--mint)); border-radius: 9px; transition: width .9s var(--ease-out); }
.call {
  text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; padding: 10px 18px; border-radius: 20px;
  background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(47, 107, 255, .8), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .5s var(--ease-out), background .3s;
}
.call:hover { transform: scale(1.05); background: #2560F0; }
.call span { font-size: .72rem; font-weight: 500; opacity: .85; }
.call .num { font-size: 1rem; font-weight: 600; opacity: 1; font-variant-numeric: tabular-nums; }
.details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.card.open .details { grid-template-rows: 1fr; }
.details > div { overflow: hidden; }
.details-inner { padding: 0 20px 20px 82px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.details h4 { margin: 0 0 8px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.details ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.details li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy); }
:root[data-theme="dark"] .tag { background: var(--glass-strong); color: var(--ink); }
.src { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.src .ok { color: #1FA978; font-weight: 600; }

/* ---------- Área de cliente: ligação, favoritos, pedido de contacto ---------- */
.account-link { text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--navy); color: #fff; transition: transform .5s var(--ease-out), background .3s; }
.account-link:hover { transform: translateY(-2px); }
.account-link.signed { background: var(--ice); color: var(--navy); }
:root[data-theme="dark"] .account-link { background: var(--ink); color: var(--bg); }
:root[data-theme="dark"] .account-link.signed { background: var(--glass-strong); color: var(--ink); }
.fav { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge-soft); background: var(--glass);
  color: var(--faint); font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: color .3s, background .3s, transform .5s var(--ease-out); }
.fav:hover { color: var(--blue); transform: scale(1.1); }
.fav.on { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border-color: transparent; }
.fav.pulse { animation: favpop .5s var(--ease-out); }
@keyframes favpop { 40% { transform: scale(1.3); } }
.callback { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.callback:hover { text-decoration: underline; }

/* ---------- Página /conta ---------- */
.account { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.acc-loading { text-align: center; color: var(--muted); padding: 80px 0; }
.auth { max-width: 460px; margin: 30px auto 0; padding: 34px 30px 26px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1, .dash-head h1 { margin: 12px 0 6px; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.04em; font-weight: 700; }
.mark.big { width: 56px; height: 56px; margin: 0 auto; }
.lead-sm { color: var(--muted); margin: 0; line-height: 1.5; }
.eyebrow-sm { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--ice); margin-bottom: 20px; }
:root[data-theme="dark"] .seg { background: var(--glass-strong); }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background .35s var(--ease-out), color .35s; }
.seg button.active { background: var(--bg); color: var(--ink); box-shadow: 0 4px 14px -6px rgba(30, 47, 82, .35); }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.field output { color: var(--ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.field input:not([type="range"]), .field select, .field textarea {
  font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--edge-soft); background: var(--glass-strong);
  box-shadow: inset 0 1px 2px rgba(30, 47, 82, .06); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, .15); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
:root[data-theme="dark"] .field select option { background: #0D1628; }
.range-dark { background: linear-gradient(90deg, var(--blue) 0 var(--fill, 27%), var(--edge-soft) var(--fill, 27%) 100%) !important; margin: 8px 0 2px; }
.range-dark::-webkit-slider-thumb { border-color: var(--bg) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); line-height: 1.45; margin: 4px 0 14px; }
.check input { margin-top: 3px; accent-color: var(--blue); }
.msg { min-height: 1.2em; margin: 0 0 12px; font-size: .88rem; font-weight: 500; }
.msg.err { color: #D23B3B; }
.msg.ok { color: #1FA978; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; pointer-events: none; }
.linkish { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: .88rem; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 26px; }
.dash-head .btn.ghost { color: var(--ink); }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.panel { padding: 26px; }
.panel h2 { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: -.02em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verdict { padding: 14px 16px; border-radius: 18px; background: var(--ice); color: var(--navy); line-height: 1.5; font-size: .93rem; margin-bottom: 14px; }
:root[data-theme="dark"] .verdict { background: var(--glass-strong); color: var(--ink); }
.verdict strong { color: #1FA978; }
.verdict a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.hint { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: -6px 0 14px; }
.empty { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.empty a { color: var(--blue); font-weight: 600; }
.fav-list, .req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fav-list li, .req-list li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--edge-soft); }
.fav-list li > div, .req-list li > div { min-width: 0; flex: 1; }
.fav-list b, .req-list b { display: block; font-weight: 600; }
.fav-list small, .req-list small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-list .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fav-list .price small { display: inline; font-weight: 500; }
.fav-list .fav { margin-left: 0; }
.call.mini { flex-direction: row; padding: 8px 12px; border-radius: 14px; font-size: .82rem; }
.req-list { margin-top: 18px; }
.status { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy); white-space: nowrap; }
.status.s-em_contacto { background: rgba(60, 200, 240, .18); color: #127A99; }
.status.s-concluido { background: rgba(78, 214, 160, .2); color: #1A8A60; }
.suffix { display: flex; align-items: center; gap: 10px; }
.suffix input { max-width: 140px; }
.suffix i { font-style: normal; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 18px; cursor: pointer; line-height: 1.4; }
.switch input { position: absolute; opacity: 0; }
.switch span { flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--edge-soft); position: relative; transition: background .35s var(--ease-out); box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .45s var(--ease-out); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(47, 107, 255, .4); outline-offset: 2px; }
#favoritos, #alertas { grid-column: 2; }
#perfil { grid-row: span 2; }
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  #favoritos, #alertas { grid-column: auto; }
  #perfil { grid-row: auto; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .fav-list li { flex-wrap: wrap; }
  .panel { padding: 22px 18px; }
}

/* ---------- Passos & FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 24px; }
.step b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 28%; margin-bottom: 14px; color: #fff; font-weight: 600;
  background: linear-gradient(160deg, var(--deep), var(--navy)); }
.step:nth-child(2) b { background: var(--blue); }
.step:nth-child(3) b { background: var(--cyan); }
.step:nth-child(4) b { background: var(--mint); }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .93rem; }
.step a { color: var(--blue); font-weight: 600; text-decoration: none; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details.glass { padding: 18px 22px; border-radius: 24px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--blue); transition: transform .5s var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); line-height: 1.55; margin: 12px 0 0; }
details p b { color: var(--ink); font-weight: 600; }

/* ---------- Cartão final (rodapé) ---------- */
.endcard {
  margin-top: 100px; padding: 110px 24px 40px; text-align: center; color: #9A9AA0;
  background: radial-gradient(ellipse 60% 55% at 50% 38%, #272729, #020204 75%);
}
.wordmark {
  font-weight: 600; font-size: clamp(3rem, 12vw, 8rem); letter-spacing: -.05em; color: #F3F3F5; margin: 0 0 70px;
  text-shadow: 0 0 6px rgba(243, 243, 245, .55), 0 0 60px rgba(118, 156, 194, .35), 0 0 140px rgba(118, 156, 194, .25);
}
.wordmark.reveal { transform: scale(1.35); filter: blur(10px); transition-duration: 1.4s; }
.wordmark.reveal.in { transform: none; filter: none; }
.endcard .notes { max-width: 820px; margin: 0 auto; font-size: .86rem; line-height: 1.65; }
.endcard strong { color: #F3F3F5; font-weight: 600; }
.muted { opacity: .7; margin-bottom: 0; }

.fab { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; z-index: 60;
  background: var(--blue); color: #fff; box-shadow: 0 14px 30px -10px rgba(47, 107, 255, .8), inset 0 1px 0 rgba(255,255,255,.4);
  transform: scale(0); filter: blur(6px); transition: transform .6s var(--ease-out), filter .6s var(--ease-out); }
.fab svg { width: 24px; height: 24px; }
.fab.show { transform: scale(1); filter: none; }

/* ---------- Motion: entra já em movimento, desfoque segue a velocidade ---------- */
.reveal { opacity: 0; transform: translateY(48px); filter: blur(10px); transition: opacity .5s ease-out, transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.card.enter { animation: pop .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(60px) scale(1.04); filter: blur(8px); } }
.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { from { transform: scale(1.04); filter: blur(2px); } }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .wordmark.reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav nav { display: none; }
  .account-link { margin-left: auto; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .sky { padding: 28px 14px; border-radius: 34px; }
  .sim-wrap { grid-template-columns: 1fr; gap: 14px; }
  .luzinho { flex-direction: row; align-items: center; gap: 12px; }
  .luzinho-svg { width: 84px; flex: none; }
  .lz-bubble { text-align: left; }
  .lz-bubble::before { top: 50%; left: -6px; margin: -7px 0 0; }
  .sim { padding: 22px; border-radius: 30px; }
  .card-main { grid-template-columns: 40px 1fr auto; grid-template-areas: "rank who who" "m1 m1 m2" "call call call"; row-gap: 14px; }
  .card-main .rank { grid-area: rank; }
  .card-main .who { grid-area: who; }
  .card-main .m-month { grid-area: m1; }
  .card-main .m-kwh { grid-area: m2; text-align: right; }
  .card-main .call { grid-area: call; flex-direction: row; justify-content: center; gap: 10px; }
  .details-inner { padding: 0 20px 20px; grid-template-columns: 1fr; }
  .best .price { margin-left: 0; }
  .lockup { gap: 12px; }
  .lockup .disc { width: 56px; height: 56px; }
  .lockup .name { font-size: 1.6rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .lockup .pill-dark { font-size: .8rem; padding: 6px 12px; }
}
