:root{
  --bg:#F6F7FB;
  --surface:#E5E7F8;
  --ink:#171A33;
  --accent:#3F4AC8;
  --accent-soft:#9AA2F2;
  --success:#14A08D;
  --muted:#575D80;
  --hairline:#D5D9EE;
  --font-display:'Newsreader',Georgia,'Times New Roman',serif;
  --font-ui:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --r-sm:6px;
  --r-md:12px;
  --r-pill:999px;
  --pad-x:clamp(24px,5.4vw,84px);
  --pad-y:clamp(28px,4.4vh,56px);
}

*,*::before,*::after{box-sizing:border-box}
:where(html,body,h1,h2,p,figure,ul,ol,dl,blockquote){margin:0;padding:0}
:where(ul,ol){list-style:none}
:where(a){color:inherit;text-decoration:none}
:where(img,svg){display:block;max-width:100%}

html{-webkit-text-size-adjust:100%}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-ui);
  font-weight:400;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

::selection{background:var(--accent);color:#fff}

:where(a,button):focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:var(--r-sm);
}

.skip{
  position:absolute;left:-9999px;top:0;
  background:var(--ink);color:#fff;
  padding:12px 18px;border-radius:0 0 var(--r-md) 0;
  font-size:.875rem;font-weight:600;z-index:99;
}
.skip:focus{left:0}

/* ---------- shell ---------- */

.shell{
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);
  min-height:100vh;
  min-height:100svh;
}

.shell__content{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:clamp(36px,5vh,64px);
  padding:var(--pad-y) clamp(28px,4vw,64px) var(--pad-y) var(--pad-x);
}

.wrap{width:100%;max-width:34rem}

/* ---------- brand ---------- */

.brand{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.25rem,1.9vw,1.5rem);
  line-height:1;
  letter-spacing:-.015em;
  color:var(--ink);
}
.brand b{font-weight:600;color:var(--accent)}

/* ---------- hero ---------- */

.status{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--surface);
  color:var(--ink);
  border-radius:var(--r-pill);
  padding:7px 15px 7px 12px;
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.status i{
  width:7px;height:7px;border-radius:var(--r-pill);
  background:var(--success);
  flex:none;
}

.title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.75rem,6.4vw,4.75rem);
  line-height:1.04;
  letter-spacing:-.022em;
  margin-top:clamp(22px,3vh,32px);
}
.title em{font-style:normal;color:var(--accent)}

.lede{
  margin-top:clamp(18px,2.4vh,26px);
  max-width:32rem;
  font-size:clamp(1rem,1.15vw,1.125rem);
  line-height:1.62;
  color:var(--muted);
}

/* ---------- actions ---------- */

.actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:clamp(26px,3.4vh,38px);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border-radius:var(--r-pill);
  padding:13px 24px;
  font-family:var(--font-ui);
  font-size:.9375rem;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .12s ease;
}
.btn:active{transform:translateY(1px)}

.btn--primary{background:var(--accent);color:#fff}
.btn--primary:hover{background:#333CAB}
.btn--primary svg{width:15px;height:15px;flex:none}

.btn--ghost{
  background:transparent;
  color:var(--ink);
  border:1px solid var(--hairline);
}
.btn--ghost:hover{background:var(--surface);border-color:#C3C9E8}

.note{
  margin-top:clamp(16px,2.2vh,22px);
  max-width:30rem;
  font-size:.8125rem;
  line-height:1.6;
  color:var(--muted);
}

/* ---------- foot ---------- */

.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 20px;
  padding-top:clamp(20px,2.6vh,28px);
  border-top:1px solid var(--hairline);
  font-size:.8125rem;
  color:var(--muted);
}
.foot a{border-bottom:1px solid transparent;transition:color .18s ease,border-color .18s ease}
.foot a:hover{color:var(--accent);border-color:var(--accent)}

/* ---------- panel ---------- */

.panel{
  position:relative;
  overflow:hidden;
  background:var(--ink);
}
.panel svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* ---------- motion (dial 0.15: solo un ingresso, niente altro) ---------- */

@media (prefers-reduced-motion:no-preference){
  .rise{animation:rise .6s cubic-bezier(.22,.61,.36,1) both}
  .rise-2{animation-delay:.06s}
  .rise-3{animation-delay:.12s}
  .rise-4{animation-delay:.18s}
}
@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* ---------- responsive ---------- */

@media (max-width:1080px){
  .shell{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
}

@media (max-width:860px){
  .shell{
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    min-height:auto;
  }
  .shell__content{
    order:1;
    min-height:auto;
    padding-bottom:clamp(40px,6vh,64px);
    gap:clamp(32px,5vh,48px);
  }
  .panel{order:2;min-height:min(46vh,320px)}
  .wrap{max-width:none}
  .lede,.note{max-width:36rem}
}

@media (max-width:420px){
  .actions{gap:10px}
  .btn{padding:13px 20px;font-size:.875rem}
}
