/* SOLOSAIN · biolink — polimento 2026-11-18 (cores originais mantidas) */
:root{
  color-scheme:dark;
  --base:#081625;
  --panel:#15304a;
  --accent:#f3c36d;
  --paper:#fff9ee;
  --muted:#b9cad9;
  --surface:#10283f;
  --surface-2:#0c2034;
  --line:#ffffff17;
  --line-strong:#ffffff2b;
  --ink:#081625;
  --focus:#8fd1ff;
  --radius:18px;
  --gutter:16px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;min-height:100svh;color:var(--paper);
  background:radial-gradient(900px 520px at 50% -8%,#12304b 0%,transparent 62%),var(--base);
  font:500 16px/1.5 Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
}
h1,h2,p{margin:0}
ul{margin:0;padding:0;list-style:none}
img,svg{display:block}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.page{max-width:480px;margin:0 auto}

/* ---------- Topo ---------- */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;justify-content:space-between;
  min-height:348px;padding:22px 20px 78px;background:var(--panel);
}
.hero__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:68% 58%}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    linear-gradient(180deg,#081625c4 0%,#08162500 32%,#0816252e 56%,var(--base) 100%),
    linear-gradient(90deg,#081625b0 0%,#08162500 72%);
}
.hero__id{display:flex;align-items:center;gap:12px}
.hero__logo{width:44px;height:44px;border-radius:12px;border:1px solid #ffffff2e;background:#071631;box-shadow:0 6px 18px #0816258c}
.hero__brand{font-weight:800;font-size:.95rem;letter-spacing:.16em;line-height:1.1}
.hero__city{display:flex;align-items:center;gap:5px;margin-top:4px;color:#f3d6a3;font-size:.75rem;font-weight:700;letter-spacing:.01em}
.hero__city svg{width:13px;height:13px;flex:none}
.hero__title{
  padding-top:64px;
  font:700 clamp(2rem,10.2vw,3.55rem)/.92 "Barlow Condensed","Arial Narrow",sans-serif;
  letter-spacing:-.01em;text-wrap:balance;text-shadow:0 2px 24px #081625;
}
.hero__title span{display:block;color:var(--accent);margin-top:.06em}

/* ---------- Links ---------- */
.links{position:relative;z-index:1;margin-top:-44px;padding-inline:var(--gutter)}
.links ul{display:grid;gap:10px}
.link{
  display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:center;gap:14px;
  min-height:76px;padding:14px;border-radius:var(--radius);
  color:var(--paper);text-decoration:none;
  background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);
  border:1px solid var(--line);
  transition:transform .18s ease,border-color .18s ease,background-color .18s ease;
}
.link__icon{
  display:grid;place-items:center;width:48px;height:48px;border-radius:14px;
  color:var(--accent);background:#ffffff0a;border:1px solid var(--line);
}
.link__icon svg{width:24px;height:24px}
.link__text{min-width:0}
.link__text strong{display:block;font-size:1rem;font-weight:800;line-height:1.2;letter-spacing:.005em}
.link__text span{display:block;margin-top:3px;font-size:.85rem;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link__go{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line-strong);color:var(--paper)}
.link__go svg{width:16px;height:16px}

.link--primary{
  color:var(--ink);background:var(--accent);border-color:#ffe2a8;
}
.link--primary .link__icon{color:var(--ink);background:#0816250f;border-color:#08162524}
.link--primary .link__text span{color:#2a3a4c}
.link--primary .link__go{background:var(--ink);border-color:var(--ink);color:var(--accent)}

@media (hover:hover){
  .link:hover{transform:translateY(-2px);border-color:#f3c36d73}
  .link--primary:hover{border-color:#fff0cf}
}
.link:active{transform:translateY(0) scale(.99)}
.link:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* ---------- Diagrama ---------- */
.circuit[hidden]{display:none}
.circuit{
  margin:28px var(--gutter) 0;padding:18px 16px 16px;border-radius:22px;
  background:linear-gradient(180deg,#0f2539 0%,#0a1c2d 100%);
  border:1px solid var(--line);box-shadow:inset 0 1px 0 #ffffff0d;
}
.circuit__head h2{font:700 clamp(1.75rem,7.4vw,2.05rem)/1.04 "Barlow Condensed","Arial Narrow",sans-serif;color:var(--paper);letter-spacing:-.005em}
.circuit__head p{margin-top:4px;font-size:.82rem;color:var(--muted)}
.circuit__model{
  position:relative;isolation:isolate;overflow:hidden;margin:14px 0 12px;aspect-ratio:540/318;
  border-radius:14px;border:1px solid #ffffff10;
  background:radial-gradient(ellipse at 50% 65%,#1d465e,#0e2435 74%);
}
.circuit__model::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(transparent 23px,#a3c6e21a 24px),linear-gradient(90deg,transparent 23px,#a3c6e21a 24px);
  background-size:24px 24px;
}
.circuit__model img,.circuit__model canvas{position:absolute;inset:0;width:100%;height:100%}
.circuit__model img{object-fit:contain}
.circuit__model canvas{pointer-events:none}

.circuit__steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;
  border-radius:14px;background:#06121f;border:1px solid var(--line);
}
.circuit__steps button{
  display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 4px;
  border:0;border-radius:10px;background:transparent;color:#c9d7e4;
  font:700 .86rem Manrope,system-ui,sans-serif;cursor:pointer;
  transition:background-color .18s ease,color .18s ease;
}
.circuit__steps button span{font-size:.66rem;letter-spacing:.06em;opacity:.55;font-variant-numeric:tabular-nums}
.circuit__steps button[aria-pressed="true"]{background:var(--accent);color:var(--ink)}
.circuit__steps button[aria-pressed="true"] span{opacity:.7}
@media (hover:hover){.circuit__steps button[aria-pressed="false"]:hover{background:#ffffff0d;color:var(--paper)}}
.circuit__steps button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.circuit__desc{margin:12px 2px 0;min-height:2.9em;font-size:.86rem;line-height:1.45;color:#d2dfeb}

.caption{margin:12px var(--gutter) 0;text-align:center;font-size:.72rem;color:#8fa5b8}

/* ---------- Rodapé · crédito Walk ----------
   Wordmark v4 claro (papel #f4f0e8) direto sobre o fundo escuro, por escolha do Hare (18/11/2026).
   Arquivo oficial, sem recolorir e sem efeito no logo. */
.credit{
  display:flex;justify-content:center;
  margin:32px var(--gutter) 0;padding:18px 0 calc(28px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
}
.credit a{
  display:inline-flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;
  color:#9fb3c6;text-decoration:none;font-size:.75rem;font-weight:600;letter-spacing:.02em;
}
.credit a span{transition:color .18s ease}
.credit img{display:block;width:auto;height:20px}
@media (hover:hover){.credit a:hover span{color:var(--paper)}}
.credit a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ---------- Telas ---------- */
@media (min-width:520px){
  .page{padding-top:24px}
  .hero{border-radius:26px;min-height:380px}
  .hero__title{font-size:3.6rem}
}
@media (max-width:359px){
  :root{--gutter:12px}
  .link{grid-template-columns:44px minmax(0,1fr) 32px;gap:12px;padding:12px}
  .link__icon{width:44px;height:44px}
  .link__go{width:32px;height:32px}
  .hero__title{font-size:2rem}
}

/* ---------- Entrada ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero__title,.links li,.circuit{animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
  .links li:nth-child(1){animation-delay:.08s}
  .links li:nth-child(2){animation-delay:.14s}
  .links li:nth-child(3){animation-delay:.2s}
  .circuit{animation-delay:.26s}
}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .link,.circuit__steps button,.credit a span{transition:none}
}
