/* ISAB Studio: folha de estilos */
:root{--ink:#0d1020;--muted:#667085;--line:#e5e9f0;--brand:#0366fb;--brand-dark:#0252cc;--brand-mid:#08b1fb;--brand-cyan:#42d4fb;
--brand-grad:linear-gradient(135deg,#42d4fb 0%,#08b1fb 45%,#0366fb 100%);--paper:#fff;--soft:#f5f8fc;--navy:#0d1020;--ico-gray:#8a94a6;
--sk-base:#e5e7eb;--sk-hi:#f3f4f6;--max:1160px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.5}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img{max-width:100%}
h1,h2,h3,p{margin:0}
.hidden{display:none!important}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:6px}
.muted{color:#7a8699;font-size:13px}
.text-link{color:var(--brand);text-decoration:underline;text-underline-offset:3px}

/* ===== Ícones: mesmo estilo em todo o site (traço 1.75, pontas arredondadas) ===== */
.icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ico-black{color:var(--ink)}.ico-gray{color:var(--ico-gray)}

/* ===== Botões em pílula: sm / médio / lg · primary / dark / secondary / ghost ===== */
.button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 26px;border-radius:999px;font-family:'DM Sans',Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;line-height:1;cursor:pointer;border:0;text-decoration:none;white-space:nowrap;transition:background .2s,transform .2s,box-shadow .2s,color .2s}
.button:hover{transform:translateY(-1px)}
.button .icon{width:18px;height:18px}
.button-sm{min-height:36px;padding:0 16px;gap:7px;font-size:13px}
.button-sm .icon{width:16px;height:16px}
.button-lg{min-height:56px;padding:0 38px;gap:12px;font-size:17px}
.button-lg .icon{width:21px;height:21px}
.button-block{display:flex;width:100%}
.button-primary{background:var(--brand);color:#fff}
.button-primary:hover{background:var(--brand-dark);box-shadow:0 8px 18px #0366fb33}
.button-dark{background:var(--ink);color:#fff}
.button-dark:hover{background:#1d2347}
.button-secondary{background:#eef0f4;color:var(--ink)}
.button-secondary:hover{background:#e1e5ec}
.button-ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px #d5dae3}
.button-ghost:hover{background:#f5f7fa}
.button-ghost .icon{color:var(--ico-gray)}
.button[disabled],.button:disabled{opacity:.6;cursor:not-allowed;transform:none;box-shadow:none}
.loading-dots{display:none;align-items:center;gap:4px}
.loading-dots span{width:5px;height:5px;border-radius:50%;background:#fff;animation:dotPulse 1s ease-in-out infinite}
.loading-dots span:nth-child(2){animation-delay:.16s}.loading-dots span:nth-child(3){animation-delay:.32s}
.loading-button.is-loading .loading-dots{display:inline-flex}
.loading-button.is-loading .button-label,.loading-button.is-loading>svg{display:none}
.loading-button.is-loading{min-width:150px}
@keyframes dotPulse{0%,80%,100%{opacity:.35;transform:scale(.7)}40%{opacity:1;transform:scale(1)}}
@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ===== Cabeçalho ===== */
.site-header{height:76px;padding:0 max(24px,calc((100vw - var(--max))/2));display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94);position:sticky;top:0;z-index:30;backdrop-filter:blur(12px)}
.brand{display:inline-flex;align-items:center;gap:10px;font-family:Manrope,Arial,sans-serif;font-size:17px;font-weight:700;white-space:nowrap}
.brand b{font-weight:500}
.brand-mark{width:36px;height:36px;display:block;flex:none}
.brand-mark img{width:100%;height:100%;display:block}
.main-nav{display:flex;align-items:center;gap:30px;margin:0 auto;font-size:14px;font-weight:500;color:#566075}
.main-nav a{padding:10px 0;transition:color .2s}
.main-nav a:hover,.main-nav a.active{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:10px}
.menu-toggle{display:none}
.icon-button{border:0;background:none;padding:8px;color:var(--ink);cursor:pointer}
.icon-button .icon{width:24px;height:24px}
.lang{position:relative}
.lang-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:172px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 34px #0d102018;z-index:40}
.lang-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;background:none;padding:10px 12px;border-radius:10px;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.lang-item:hover,.lang-item:focus-visible{background:#f1f4f9}
.lang-item[aria-checked="true"]{font-weight:700}
.lang-item .icon{width:16px;height:16px}

/* ===== Cabeçalhos de página (centrados) ===== */
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#5b6b82;margin-bottom:18px}
.hero h1,.page-head h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(38px,6vw,68px);line-height:1.06;letter-spacing:-.045em;font-weight:700;margin:0 auto 20px;max-width:900px}
.accent-text{color:var(--brand);background:var(--brand-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.intro,.lead{font-size:17px;line-height:1.7;color:var(--muted);max-width:640px;margin:0 auto}
.hero{padding:96px 24px 76px;text-align:center;background:radial-gradient(70% 70% at 50% 0,#e9f6ff 0,#fff 74%)}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:36px}
.page-head{text-align:center;margin-bottom:46px}

/* ===== Serviços (quadrados) ===== */
.services{max-width:var(--max);margin:0 auto;padding:34px 24px 96px}
.section-head{text-align:center;margin-bottom:40px}
.section-head h2{font-family:Manrope,Arial,sans-serif;font-size:clamp(28px,3.4vw,40px);font-weight:800;letter-spacing:-.03em;margin-bottom:12px}
.section-head p{color:var(--muted);font-size:16px;max-width:560px;margin:0 auto}
.section-head-sm{margin:38px 0 22px}
.section-head-sm h2{font-size:26px;margin-bottom:6px}
.services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:1040px;margin:0 auto}
.service{aspect-ratio:1/1;border:1px solid var(--line);border-radius:26px;padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;background:#fff;transition:border-color .2s,transform .2s,box-shadow .2s;animation:appear .4s ease both}
.service:hover{transform:translateY(-3px);border-color:#c9d3e3;box-shadow:0 16px 36px #0d10200f}
.service-icon{width:44px;height:44px;color:var(--ink);stroke-width:1.6;margin-bottom:6px}
.service h3{font-family:Manrope,Arial,sans-serif;font-size:20px;letter-spacing:-.02em}
.service p{font-size:14px;line-height:1.65;color:var(--muted);max-width:270px}

/* ===== Chamadas (Devs e contacto) ===== */
.promo,.strip{max-width:920px;margin:0 auto 28px;padding:52px 32px;border-radius:30px;text-align:center}
.promo{border:1px solid var(--line)}
.strip{background:linear-gradient(110deg,#dff4ff 0%,#f0f7ff 60%,#f7fbff 100%);margin-bottom:96px}
.promo h2,.strip h2{font-family:Manrope,Arial,sans-serif;font-size:clamp(26px,3vw,36px);font-weight:800;letter-spacing:-.03em;margin-bottom:10px}
.promo p:not(.eyebrow),.strip p:not(.eyebrow){color:var(--muted);max-width:520px;margin:0 auto 28px;line-height:1.7}
.promo .eyebrow,.strip .eyebrow{margin-bottom:12px}

/* ===== Páginas interiores ===== */
.inner-page{max-width:760px;margin:0 auto;padding:84px 24px 100px;min-height:calc(100vh - 280px)}
.prose{text-align:center}
.prose h2{font-family:Manrope,Arial,sans-serif;font-size:22px;font-weight:800;letter-spacing:-.02em;margin:40px 0 10px}
.prose h2:first-child{margin-top:0}
.prose p{font-size:16px;line-height:1.85;color:var(--muted);max-width:640px;margin:0 auto}
.prose-left{text-align:left}.prose-left p{margin:0}
.page-cta{text-align:center;margin-top:46px}

/* ===== Formulários ===== */
.contact-form,.auth-card form,.submit-form{display:grid;gap:12px;text-align:left}
.contact-form{max-width:560px;margin:0 auto;gap:10px}
.contact-form label,.auth-card label,.submit-form label{font-size:13px;font-weight:600;display:grid;gap:6px}
.contact-form>label{margin-top:8px}
.contact-form input,.contact-form textarea,.contact-form select,.auth-card input,.submit-form input,.submit-form textarea,.devs-toolbar select{border:1px solid #dbe1ec;border-radius:12px;padding:13px 15px;background:#fff;color:var(--ink);font-size:14px;width:100%;min-width:0;outline:none;transition:border-color .2s,box-shadow .2s}
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus,.auth-card input:focus,.submit-form input:focus,.submit-form textarea:focus{border-color:#5fb0ff;box-shadow:0 0 0 3px #0366fb1a}
.contact-form textarea,.submit-form textarea{resize:vertical}
.contact-form .button{margin-top:12px}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.form-status,.status-message{font-size:14px;line-height:1.6;color:var(--muted);min-height:22px;text-align:center}
.form-status.is-ok{color:#16834a}.form-status.is-error{color:#b42318}
.form-consent{font-size:12px;line-height:1.6;color:#7a8699;text-align:center}

/* ===== Área Devs ===== */
.devs-page{max-width:var(--max);margin:0 auto;padding:76px 24px 96px}
.account-bar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;max-width:760px;margin:0 auto 28px;padding:14px 18px;background:var(--soft);border-radius:999px;font-size:14px}
.account-bar>.icon{color:var(--ico-gray)}
#wallet-balance{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px}
#wallet-balance .icon{width:17px;height:17px;color:var(--ico-gray)}
.panel{max-width:620px;margin:30px auto;padding:30px;border:1px solid var(--line);border-radius:26px}
.panel h2{font-family:Manrope,Arial,sans-serif;font-size:22px;font-weight:800;letter-spacing:-.02em;text-align:center;margin-bottom:8px}
.panel-intro{color:var(--muted);font-size:14px;line-height:1.7;text-align:center;margin-bottom:20px}
.auth-switch{border:0;background:none;color:var(--brand);cursor:pointer;font-weight:700;padding:12px 0 0;display:block;margin:0 auto}
.devs-toolbar{display:flex;gap:10px;flex-wrap:wrap;max-width:820px;margin:0 auto}
.search-wrap{flex:1;min-width:190px;height:46px;display:flex;align-items:center;gap:10px;border:1px solid #dbe1ec;border-radius:999px;padding:0 18px;transition:border-color .2s,box-shadow .2s}
.search-wrap:focus-within{border-color:#5fb0ff;box-shadow:0 0 0 3px #0366fb1a}
.search-wrap .icon{width:18px;height:18px;color:var(--ico-gray)}
.search-wrap input{border:0;outline:0;flex:1;min-width:0;background:transparent;font-size:14px;color:var(--ink)}
.search-wrap input::placeholder{color:#9aa4b4}
.devs-toolbar select{width:auto;min-width:160px;border-radius:999px;padding:0 18px;height:46px}
.devs-toolbar .button{min-height:46px}
.devs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,360px));justify-content:center;gap:20px}
.dev-app{border:1px solid var(--line);border-radius:22px;padding:24px;min-width:0;animation:appear .38s ease both}
.dev-app h3{font-family:Manrope,Arial,sans-serif;font-size:18px;margin-bottom:8px}
.dev-app p{font-size:14px;line-height:1.7;color:var(--muted)}
.dev-app-meta{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:16px 0;font-size:13px}
.dev-app-meta .muted{display:inline-flex;align-items:center;gap:6px}
.dev-app-meta .muted .icon{width:16px;height:16px;color:var(--ico-gray)}
.dev-app-actions{display:flex;gap:8px;flex-wrap:wrap}
.points-pill{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--ink);background:#eef0f4;border-radius:999px;padding:6px 12px;font-size:13px}
.points-pill .icon{width:14px;height:14px;color:var(--ink)}
.devs-empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:34px 10px;font-size:15px}
.task-line{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.7;color:var(--muted);margin:10px 0}
.task-line .icon{margin-top:3px}
.task-line strong{color:var(--ink)}
#task-details h3{font-family:Manrope,Arial,sans-serif;font-size:19px;margin-bottom:6px}
#task-details>p{font-size:14px;line-height:1.7;color:var(--muted)}
#task-details .button{margin-top:14px}
.task-skeleton{margin:14px 0}

/* ===== Rodapé (centrado) ===== */
.site-footer{border-top:1px solid var(--line);padding:40px 24px 36px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;color:#7a8699}
.footer-brand{font-size:15px;color:var(--ink)}
.footer-brand .brand-mark{width:30px;height:30px}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 26px;font-size:14px;color:#566075}
.footer-links a:hover{color:var(--brand)}
.footer-copy{font-size:12px}

/* ===== Splash de entrada ===== */
.splash{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#0d1020;pointer-events:none;opacity:1;visibility:visible;transition:opacity .4s ease,visibility .4s ease;animation:splashFailsafe .4s ease 3s forwards}
.splash img{width:min(52vw,200px);height:auto;display:block}
.splash.splash-hide{opacity:0;visibility:hidden}
.splash.splash-noimg::before{content:"";width:54px;height:54px;border-radius:50%;border:3px solid #1f2a55;border-top-color:#08b1fb;animation:splashSpin .9s linear infinite}
@keyframes splashSpin{to{transform:rotate(360deg)}}
@keyframes splashFailsafe{to{opacity:0;visibility:hidden}}

/* ===== Skeletons (cinzento) ===== */
@keyframes skShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.sk,.account-bar.is-loading #auth-state,.account-bar.is-loading #open-auth,.sk-inline{background:linear-gradient(90deg,var(--sk-base) 25%,var(--sk-hi) 50%,var(--sk-base) 75%);background-size:200% 100%;animation:skShimmer 1.4s ease-in-out infinite}
.sk{display:block;border-radius:8px}
.sk-line{height:12px;margin:0 0 10px}.sk-line.lg{height:17px}
.sk-pill{height:28px;width:86px;border-radius:999px}
.sk-btn{height:36px;border-radius:999px;margin-top:6px}
.sk-w-30{width:30%}.sk-w-40{width:40%}.sk-w-60{width:60%}.sk-w-70{width:70%}.sk-w-100{width:100%}
.skeleton-card{pointer-events:none;user-select:none}
.sk-inline{display:inline-block;width:110px;height:1em;border-radius:6px;vertical-align:middle}
.account-bar.is-loading #auth-state{display:inline-block;min-width:220px;border-radius:6px;color:transparent;user-select:none}
.account-bar.is-loading #open-auth{color:transparent;pointer-events:none;min-width:170px}
.account-bar.is-loading #sign-out{display:none}

/* ===== Ecrãs pequenos e médios ===== */
@media(max-width:900px){.services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
.site-header{height:68px;padding:0 20px;gap:12px}
.brand{font-size:15px}.brand-mark{width:33px;height:33px}
.header-actions{margin-left:auto}
.header-link{display:none}
.menu-toggle{display:inline-flex}
.main-nav{display:none;position:absolute;top:67px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 22px 18px;align-items:stretch;gap:0;flex-direction:column;margin:0;box-shadow:0 12px 22px #0d10200c}
.main-nav.open{display:flex}
.main-nav a{padding:14px 2px;border-bottom:1px solid #eef1f6;text-align:center}
.main-nav a:last-child{border-bottom:0}
.hero{padding:64px 20px 52px}
.intro,.lead{font-size:15px}
.services{padding:22px 20px 70px}
.promo,.strip{margin:0 20px 24px;padding:40px 22px;border-radius:24px}
.strip{margin-bottom:64px}
.inner-page{padding:56px 20px 76px}
.devs-page{padding:52px 20px 70px}
.account-bar{border-radius:24px}
.panel{padding:22px;border-radius:22px}
.devs-toolbar select{flex:1}
}
@media(max-width:560px){
.services-grid{grid-template-columns:1fr;max-width:320px}
.hero-actions .button{width:100%;max-width:340px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.splash{display:none}}

/* ===== Admin / Revisão de testes ===== */
.admin-list{display:flex;flex-direction:column;gap:16px;margin-top:8px}
.admin-item{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;justify-content:space-between;border:1px solid var(--line);border-radius:18px;padding:18px 20px;background:#fafbfc}
.admin-item-body{flex:1;min-width:200px}
.admin-item-body h3{font-family:Manrope,Arial,sans-serif;font-size:16px;font-weight:700;margin-bottom:6px}
.admin-item-body p{font-size:14px;line-height:1.6;color:var(--muted);margin:4px 0}
.admin-item-body .review-notes{white-space:pre-wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0;color:var(--text)}
.admin-item-body .small{font-size:12px}
.admin-item-actions{display:flex;flex-direction:column;gap:8px;min-width:140px}
.admin-item-actions .button{width:100%}
@media(max-width:560px){
  .admin-item{flex-direction:column}
  .admin-item-actions{width:100%;flex-direction:row}
  .admin-item-actions .button{flex:1}
}

/* ===== WhatsApp ===== */
.wa-fab{
  position:fixed;right:20px;bottom:22px;z-index:40;
  width:56px;height:56px;border-radius:50%;
  background:#25D366;color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,.4);
  transition:transform .2s,box-shadow .2s;
}
.wa-fab:hover{transform:scale(1.08);box-shadow:0 10px 28px rgba(37,211,102,.5);color:#fff}
.wa-fab:focus-visible{outline:3px solid #128C7E;outline-offset:3px}
.wa-footer-support{
  display:inline-flex;align-items:center;gap:6px;
  font-size:14px;font-weight:600;color:#25D366;
  margin:4px 0;
}
.wa-footer-support:hover{color:#128C7E}
.wa-group-btn{white-space:nowrap}
@media(max-width:560px){
  .wa-fab{right:16px;bottom:18px;width:52px;height:52px}
}

/* ===== Carteira ===== */
.wallet-tabs{display:flex;gap:8px;margin-bottom:18px;justify-content:center;flex-wrap:wrap}
.wallet-tab.active{box-shadow:0 0 0 2px var(--brand)}
.wallet-tab-content{margin-top:4px}
.order-list{list-style:none;padding:0;margin:8px 0 16px;display:grid;gap:8px}
.order-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;font-size:13px}
.badge{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:3px 8px;border-radius:999px}
.badge-pending{background:#fff3cd;color:#856404}
.badge-paid{background:#d4edda;color:#155724}
.badge-cancelled,.badge-rejected,.badge-expired{background:#f8d7da;color:#721c24}
.muted.small{font-size:12px}

/* ===== Auth Google ===== */
.auth-divider{
  display:flex;align-items:center;gap:12px;margin:16px 0 12px;
  color:var(--muted);font-size:13px;font-weight:600;
}
.auth-divider::before,.auth-divider::after{
  content:"";flex:1;height:1px;background:var(--line);
}
.auth-google{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:#fff !important;color:#1f1f1f !important;
  border:1px solid #747775 !important;
  box-shadow:none;
}
.auth-google:hover{
  background:#f8f9fa !important;border-color:#747775 !important;
}
.auth-google .google-icon{flex-shrink:0}
.auth-google .button-label{font-weight:600}

.devs-group-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media(max-width:760px){
  .devs-group-btns{width:100%;margin-top:8px}
  .devs-group-btns .button{flex:1;justify-content:center}
}
