/* m3e-polish.css: Material 3 Expressive layer. Load AFTER showcase.css. Pure overrides, safe to delete. */
:root{
  --e1:0 1px 2px rgba(0,40,28,.14),0 2px 6px 2px rgba(0,40,28,.08);
  --e3:0 4px 8px 3px rgba(0,40,28,.1),0 1px 3px rgba(0,40,28,.16);
  --spf:cubic-bezier(.42,1.67,.21,.9);   /* expressive fast spatial spring */
  --sps:cubic-bezier(.38,1.21,.22,1);    /* expressive slow spatial spring */
}
/* nav jumps: land with each section's heading just under the floating bar (no dead space, no cut-off mockup) */
html{scroll-padding-top:0}
#modules{--pt:clamp(64px,9vw,112px)}#roles,#how{--pt:clamp(72px,10vw,120px)}#get{--pt:0}#privacy,#faq,#support{--pt:120px}
#modules,#roles,#how,#get,#privacy,#faq,#support{scroll-margin-top:calc(104px - var(--pt))}
/* Get the app: keep the full rounded card below the floating bar so it lands exactly like the design */
#get{scroll-margin-top:110px}
.sec-h{margin-bottom:28px}.x-eyebrow{margin-bottom:14px}
:focus-visible{outline:3px solid var(--x-a,var(--p));outline-offset:3px;border-radius:12px}

/* top app bar: floating, frosted, tonal */
header .w{background:color-mix(in srgb,var(--d) 88%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:var(--e3)}

/* buttons: shape morphs on hover and press, like M3E buttons */
.b{transition:border-radius .45s var(--spf),transform .35s var(--spf),box-shadow .3s,background-color .25s}
.b:hover{border-radius:18px;box-shadow:var(--e1)}
.b:active{border-radius:12px;transform:scale(.96)}

/* hero: bigger type contrast, expressive width axis */
.x-hero h1{font-variation-settings:"wdth" 120,"wght" 820;letter-spacing:-.04em;line-height:1.04}
.x-lead{font-size:1.25rem;line-height:1.55}
.x-eyebrow{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--p) 25%,transparent)}
.x-hero-d{border-radius:64px 28px 64px 28px;box-shadow:var(--e1)}

/* pillars: one tonal surface per module that morphs shape as you scroll */
.x-pil{background:linear-gradient(180deg,var(--s),color-mix(in srgb,var(--x-c) 22%,var(--s)));transition:background .8s var(--em)}
/* Each module is one viewport slot. The text card sits at the top of that
   slot, level with the sticky mockup, and the page snaps there before it continues. */
.x-pil .x-step{position:relative;min-height:100vh;margin:0;padding:0;border-radius:0;background:transparent;
  opacity:1;transform:none;display:flex;flex-direction:column;justify-content:flex-start}
.x-pil .x-step.on{background:transparent;box-shadow:none;border-radius:0;transform:none}
.x-pil .x-card{position:relative;width:100%;box-sizing:border-box;padding:28px 32px 28px 40px;border-radius:36px;background:transparent;
  display:flex;flex-direction:column;justify-content:center;
  opacity:.4;transform-origin:left center;
  transition:opacity .5s var(--em),background-color .5s var(--em),border-radius .6s var(--sps),box-shadow .4s}
.x-pil .x-step.on .x-card{opacity:1;border-radius:44px 20px 44px 20px;
  background:color-mix(in srgb,var(--x-c) 42%,#fff);box-shadow:var(--e1)}
.x-pil .x-card:before{content:"";position:absolute;left:14px;top:50%;width:6px;height:28px;border-radius:99px;
  background:var(--x-a);opacity:.35;transform:translateY(-50%);transition:height .6s var(--sps),opacity .4s}
.x-pil .x-step.on .x-card:before{height:calc(100% - 56px);opacity:1}
.x-step h3{font-variation-settings:"wdth" 120,"wght" 800;letter-spacing:-.03em;line-height:1.08}
.x-chip{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--x-on) 14%,transparent)}
/* check markers: squircle that rounds out when the step is active */
.x-step li:before{border-radius:9px;background:var(--x-c);transition:border-radius .5s var(--spf),transform .5s var(--spf)}
.x-step.on li:before{border-radius:50%}
.x-step li:hover:before{border-radius:6px;transform:rotate(-8deg) scale(1.1)}

/* stage: the stage panel changes shape per module */
.stage-panel{box-shadow:var(--e1);transition:background-color .6s var(--em),border-radius .9s var(--sps)}
.stage-panel[data-app=attendance]{border-radius:56px 28px 56px 28px}
.stage-panel[data-app=classroom]{border-radius:28px 56px 28px 56px}
.stage-panel[data-app=proctor]{border-radius:64px}

/* connected button group: floating, tonal, elevated */
.x-seg{background:color-mix(in srgb,var(--c) 85%,#fff);box-shadow:var(--e1)}
.x-seg button{height:52px;font-weight:650;border-radius:14px;transition:border-radius .5s var(--spf),background-color .25s,color .25s,transform .35s var(--spf)}
.x-seg button:first-child{border-radius:99px 14px 14px 99px}
.x-seg button:last-child{border-radius:14px 99px 99px 14px}
.x-seg button:hover{border-radius:22px}
.x-seg button[aria-selected=true]{border-radius:99px;background:var(--x-a,var(--p));box-shadow:var(--e1)}
.x-seg button[aria-selected=true]:hover{border-radius:22px}

/* desktop: text card sticks to the same top and height as the mockup */
@media (min-width:981px){
  .stage-col{top:var(--pair-top,108px)}
  .x-pil .x-card{position:sticky;top:var(--pair-top,108px);height:var(--panel-h,560px)}
}
/* mobile: stage stays pinned under the bar, steps compact */
@media (max-width:980px){
  .x-pil .x-step{min-height:0;margin:0 0 12px;padding:0}
  .x-pil .x-card{padding:20px 20px 20px 30px;border-radius:28px}
  .x-pil .x-step.on .x-card{border-radius:32px 16px 32px 16px}
  .stage-panel[data-app]{border-radius:32px}
}
@media (prefers-reduced-motion:reduce){
  .x-pil .x-step,.x-pil .x-card,.x-pil .x-card:before,.stage-panel,.x-seg button,.b{transition:none}
  .x-pil .x-step{min-height:0}
  .x-pil .x-card{transform:none;position:relative;height:auto}
}
