/* ==========================================================================
   Ethio IQ — design system v2

   Replaces the dark, ambient first system. The brief is explicit: bright,
   warm, educational, and free of the patterns that read as machine made.
   So this system has rules rather than effects.

   What is deliberately absent, and why:
   - no glassmorphism, no floating blobs, no ambient particle field
   - no decorative gradients. Gradient is reserved for data, where the
     change in colour carries meaning
   - no glow. Elevation comes from a border and, rarely, one soft shadow
   - corners are 4 to 10px. Nothing is a pill except a genuine tag
   - one accent. Orange marks the single most important thing on a screen,
     and stops meaning anything if it marks four

   The three secondary colours exist only to label the three things this
   company actually does with data: signal, progress and intelligence. They
   are never used for decoration.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  /* Surface. Warm enough to feel human, cool enough to feel engineered. */
  --paper:      #FFFFFF;
  --canvas:     #FAFAF8;
  --canvas-2:   #F3F2EE;
  --canvas-3:   #EAE8E2;

  /* Ink */
  --ink:        #14161A;
  --ink-2:      #454A52;
  --ink-3:      #6E757F;
  --ink-4:      #9AA0A8;

  --line:       #E5E4DE;
  --line-2:     #D3D1C9;

  /* The one accent */
  --brand:      #EE6E2F;
  --brand-deep: #C4551C;
  --brand-tint: #FEF2EA;
  --brand-line: #F7CBAE;

  /* Data colours. Meaning, not decoration. */
  --signal:     #2563A8;   /* what the student puts in */
  --progress:   #17776E;   /* what changes over time */
  --intel:      #6B4E9E;   /* what the system infers */

  --ok:         #17764A;
  --warn:       #9A6B1E;
  --err:        #B3402C;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-eth:     "Noto Sans Ethiopic", "Inter", sans-serif;

  /* Type. A tight, deliberate scale rather than a huge hero and nothing else. */
  --t-display: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem);
  --t-h1:      clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  --t-h2:      clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  --t-h3:      clamp(1.1rem, 1.02rem + .45vw, 1.35rem);
  --t-lead:    clamp(1.04rem, .99rem + .34vw, 1.22rem);
  --t-body:    clamp(.95rem, .93rem + .14vw, 1.02rem);
  --t-sm:      .875rem;
  --t-xs:      .78rem;

  --gutter: clamp(1.15rem, .5rem + 2.6vw, 3.5rem);
  --maxw:   1180px;
  --measure: 66ch;
  --section: clamp(4rem, 2.6rem + 5.4vw, 7.5rem);

  --r-xs: 3px; --r: 6px; --r-lg: 10px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(20,22,26,.05);
  --sh-2: 0 4px 18px rgba(20,22,26,.07);
  --sh-3: 0 20px 52px rgba(20,22,26,.12);

  --e-out:  cubic-bezier(.2,.7,.3,1);
  --e-inout: cubic-bezier(.65,0,.35,1);
  --e-soft: cubic-bezier(.4,0,.2,1);
  --e-back: cubic-bezier(.3,1.4,.5,1);
  --d-1: .16s; --d-2: .3s; --d-3: .55s;

  --header-h: 68px;
  color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:clip; }
body{
  font-family:var(--font-body); font-size:var(--t-body); line-height:1.62;
  color:var(--ink); background:var(--canvas);
  -webkit-font-smoothing:antialiased; font-feature-settings:"kern","liga","calt";
}
img,svg,video,canvas{ display:block; max-width:100%; }
img{ height:auto; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ background:none; border:0; cursor:pointer; text-align:inherit; }
a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; padding:0; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; line-height:1.14; letter-spacing:-.021em; }
h1{ text-wrap:balance; }
p{ text-wrap:pretty; }
:focus-visible{ outline:2px solid var(--brand); outline-offset:3px; border-radius:var(--r-xs); }
::selection{ background:var(--brand-tint); }
.am{ font-family:var(--font-eth); }

/* ---------- 3. Layout ---------- */
.wrap{ width:min(100% - var(--gutter)*2, var(--maxw)); margin-inline:auto; }
.wrap-narrow{ width:min(100% - var(--gutter)*2, 780px); margin-inline:auto; }
.section{ padding-block:var(--section); position:relative; }
.section-sm{ padding-block:calc(var(--section) * .6); }
.section.alt{ background:var(--paper); border-block:1px solid var(--line); }
.grid{ display:grid; gap:clamp(1rem,.6rem + 1.3vw,1.7rem); }
.g-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:960px){ .g-4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .g-3{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .g-2,.g-3,.g-4{ grid-template-columns:1fr; } }
.flex{ display:flex; gap:1rem; }
.between{ justify-content:space-between; }
.center{ align-items:center; }
.wrapf{ flex-wrap:wrap; }
.measure{ max-width:var(--measure); }
.hide{ display:none !important; }
.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;
}
.skip{
  position:absolute; left:1rem; top:-100px; z-index:1000; background:var(--brand);
  color:#fff; padding:.7rem 1.2rem; border-radius:var(--r); font-weight:600;
  transition:top var(--d-2) var(--e-out);
}
.skip:focus{ top:1rem; }

/* ---------- 4. Header ---------- */
.hdr{
  position:sticky; top:0; z-index:200; background:rgba(250,250,248,.92);
  backdrop-filter:blur(12px); border-bottom:1px solid transparent;
  transition:border-color var(--d-2), background var(--d-2);
}
.hdr.stuck{ border-bottom-color:var(--line); background:rgba(250,250,248,.97); }
.hdr .bar{ display:flex; align-items:center; gap:1.4rem; height:var(--header-h); }
.hdr .logo{ display:flex; align-items:center; flex-shrink:0; }
.hdr .logo img{ height:26px; width:auto; }

.nav{ display:flex; align-items:center; gap:.1rem; margin-left:auto; }
.nav > li{ position:relative; }
.nav a,.nav > li > button{
  display:flex; align-items:center; gap:.34rem; padding:.5rem .72rem;
  border-radius:var(--r); font-size:.9rem; font-weight:500; color:var(--ink-2);
  transition:color var(--d-1), background var(--d-1);
}
.nav a:hover,.nav > li > button:hover{ color:var(--ink); background:var(--canvas-2); }
.nav a[aria-current="page"]{ color:var(--brand-deep); font-weight:600; }
.nav .caret{ width:9px; height:9px; transition:transform var(--d-2) var(--e-out); opacity:.6; }
.hdr .cta{ display:flex; align-items:center; gap:.5rem; flex-shrink:0; }
.burger{
  display:none; width:40px; height:40px; border-radius:var(--r);
  border:1px solid var(--line-2); flex-direction:column;
  align-items:center; justify-content:center; gap:4.5px;
}
.burger span{
  display:block; width:17px; height:1.5px; background:var(--ink); border-radius:2px;
  transition:transform var(--d-2) var(--e-out), opacity var(--d-1);
}
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

@media (max-width:1040px){
  .burger{ display:flex; }
  /* The panel fades and drops rather than sliding in from the right. A panel
     translated fully off the right edge is still part of the layout, and adds
     a whole viewport of horizontal scroll to every page. */
  /* Anchored to the header, not to the viewport. The header carries a
     backdrop filter, which makes it the containing block for any fixed
     child, so a fixed panel here is sized to the bar rather than the
     screen. Absolute against the header is what actually behaves. */
  .nav{
    position:absolute; top:100%; left:0; right:0; margin:0; flex-direction:column;
    align-items:stretch; gap:0; padding:1rem var(--gutter) 2.4rem;
    max-height:calc(100dvh - var(--header-h)); overflow-y:auto; overscroll-behavior:contain;
    box-shadow:0 18px 40px -24px rgba(24,22,20,.28);
    background:var(--canvas); border-top:1px solid var(--line);
    opacity:0; visibility:hidden; transform:translateY(-10px); pointer-events:none;
    transition:opacity var(--d-2) var(--e-out), transform var(--d-2) var(--e-out), visibility var(--d-2);
  }
  .nav.open{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
  /* Each item slides in behind the one above it once the panel opens. */
  .nav > li > a{
    width:100%; padding:1.05rem .2rem; font-size:1.1rem; font-weight:600;
    border-bottom:1px solid var(--line); border-radius:0;
    opacity:0; transform:translateY(-6px);
    transition:opacity var(--d-2) var(--e-out), transform var(--d-2) var(--e-out);
  }
  .nav.open > li > a{ opacity:1; transform:none; }
  .nav.open > li:nth-child(1) > a{ transition-delay:.04s; }
  .nav.open > li:nth-child(2) > a{ transition-delay:.08s; }
  .nav.open > li:nth-child(3) > a{ transition-delay:.12s; }
  .nav.open > li:nth-child(4) > a{ transition-delay:.16s; }
  .nav.open > li:nth-child(5) > a{ transition-delay:.20s; }
  .nav.open > li:nth-child(6) > a{ transition-delay:.24s; }
}

/* ---------- 5. Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.78rem 1.4rem; border-radius:var(--r); font-size:.93rem; font-weight:600;
  letter-spacing:-.005em; white-space:nowrap;
  transition:background var(--d-2) var(--e-out), color var(--d-2),
             border-color var(--d-2), transform var(--d-1), box-shadow var(--d-2);
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--brand); color:#fff; box-shadow:var(--sh-1); }
.btn-primary:hover{ background:var(--brand-deep); box-shadow:var(--sh-2); }
.btn-quiet{ border:1px solid var(--line-2); color:var(--ink-2); background:var(--paper); }
.btn-quiet:hover{ border-color:var(--ink-4); color:var(--ink); background:var(--canvas-2); }
.btn-text{ padding:.55rem .2rem; color:var(--brand-deep); font-weight:600; }
.btn-text:hover{ color:var(--brand); }
.btn-text .ar{ transition:transform var(--d-2) var(--e-out); }
.btn-text:hover .ar{ transform:translateX(3px); }
.btn-lg{ padding:.95rem 1.8rem; font-size:1rem; }
.btn-sm{ padding:.55rem 1rem; font-size:.85rem; }
.btn[disabled]{ opacity:.45; pointer-events:none; }
.btn-row{ display:flex; gap:.7rem; flex-wrap:wrap; }

/* ---------- 6. Type helpers ---------- */
.kicker{
  display:inline-flex; align-items:center; gap:.5rem; font-size:var(--t-xs);
  letter-spacing:.14em; text-transform:uppercase; font-weight:700;
  color:var(--brand-deep);
}
.kicker::before{ content:""; width:16px; height:1.5px; background:var(--brand); }
.lead{ font-size:var(--t-lead); color:var(--ink-2); }
.head{ max-width:640px; margin-bottom:clamp(2rem,1.3rem + 2.2vw,3.2rem); }
.head.mid{ margin-inline:auto; text-align:center; }
.head h2{ font-size:var(--t-h2); margin-block:.85rem .8rem; }
.head p{ color:var(--ink-3); font-size:var(--t-lead); }
.eyeline{ color:var(--brand-deep); }

/* ---------- 7. Cards ---------- */
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:clamp(1.25rem,1rem + .9vw,1.8rem);
  transition:border-color var(--d-2), box-shadow var(--d-2), transform var(--d-2) var(--e-out);
}
.card.hoverable:hover{ border-color:var(--line-2); box-shadow:var(--sh-2); transform:translateY(-2px); }
.card h3{ font-size:var(--t-h3); margin-bottom:.5rem; }
.card p{ color:var(--ink-2); font-size:.94rem; }
/* The icon chip is not exclusive to .card: it is used on glass faces and
   inside the flow too, so the sizing must not depend on the parent. */
.ic{
  width:38px; height:38px; border-radius:var(--r); display:grid;
  place-items:center; background:var(--canvas-2); color:var(--ink-3); flex-shrink:0;
}
.ic svg{ width:19px; height:19px; }
.card .ic{
  width:38px; height:38px; border-radius:var(--r); display:grid; place-items:center;
  margin-bottom:1rem; background:var(--canvas-2); color:var(--ink-2);
}
.card .ic svg{ width:19px; height:19px; }
.card.accent .ic{ background:var(--brand-tint); color:var(--brand-deep); }

/* A numbered list that reads as a system rather than a pile of boxes. */
.rows{ border-top:1px solid var(--line); }
.row-item{
  display:grid; grid-template-columns:auto 1fr auto; gap:1.4rem; align-items:start;
  padding:1.5rem 0; border-bottom:1px solid var(--line);
}
@media (max-width:640px){ .row-item{ grid-template-columns:auto 1fr; gap:1rem; } .row-item .rx{ display:none; } }
.row-item .rn{
  font-family:var(--font-mono); font-size:.76rem; color:var(--ink-4);
  padding-top:.3rem; letter-spacing:.06em;
}
.row-item h3{ font-size:var(--t-h3); margin-bottom:.35rem; }
.row-item p{ color:var(--ink-2); max-width:62ch; font-size:.95rem; }
.row-item .rx{ color:var(--ink-4); font-size:.8rem; white-space:nowrap; padding-top:.35rem; }

/* ---------- 8. Stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper); overflow:hidden; }
@media (max-width:760px){ .stats{ grid-template-columns:repeat(2,1fr); } }
.stat{ padding:clamp(1.2rem,1rem + .8vw,1.8rem); border-right:1px solid var(--line); }
.stat:last-child{ border-right:0; }
@media (max-width:760px){
  .stat:nth-child(2n){ border-right:0; }
  .stat:nth-child(-n+2){ border-bottom:1px solid var(--line); }
}
.stat .n{ font-family:var(--font-display); font-size:clamp(1.7rem,1.3rem + 1.6vw,2.4rem); font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.stat .l{ font-size:var(--t-sm); color:var(--ink-3); margin-top:.5rem; }

/* ---------- 9. Tags ---------- */
.tag{
  display:inline-flex; align-items:center; gap:.4rem; padding:.3rem .7rem;
  border-radius:var(--r-pill); background:var(--canvas-2); border:1px solid var(--line);
  font-size:var(--t-xs); color:var(--ink-2); font-weight:500;
}
.tag.on{ background:var(--brand-tint); border-color:var(--brand-line); color:var(--brand-deep); }
.tags{ display:flex; gap:.45rem; flex-wrap:wrap; }

/* ---------- 10. Forms ---------- */
.fld{ display:grid; gap:.4rem; }
.fld label{ font-size:var(--t-sm); font-weight:600; color:var(--ink-2); }
.fld .req{ color:var(--brand-deep); }
.fld .hint{ font-size:var(--t-xs); color:var(--ink-4); }
.fld input,.fld select,.fld textarea{
  width:100%; padding:.76rem .9rem; border-radius:var(--r); background:var(--paper);
  border:1px solid var(--line-2); color:var(--ink); font-size:.96rem;
  transition:border-color var(--d-2), box-shadow var(--d-2);
}
.fld textarea{ min-height:112px; resize:vertical; }
.fld input:focus,.fld select:focus,.fld textarea:focus{
  outline:none; border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-tint);
}
.fld input::placeholder,.fld textarea::placeholder{ color:var(--ink-4); }
.fld select{
  appearance:none; cursor:pointer; padding-right:2.4rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E757F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .95rem center;
}
.fld.bad input,.fld.bad select,.fld.bad textarea{ border-color:var(--err); box-shadow:0 0 0 3px #FAEAE6; }
.fld .err{ font-size:var(--t-xs); color:var(--err); display:none; }
.fld.bad .err{ display:block; }
.row2{ display:grid; gap:1rem; }
@media (min-width:640px){ .row2{ grid-template-columns:1fr 1fr; } .row3{ display:grid; gap:1rem; grid-template-columns:repeat(3,1fr); } }
@media (max-width:639px){ .row3{ display:grid; gap:1rem; } }

/* Choice tiles, used all through the tutoring request */
.choices{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:.6rem; }
.choice{
  display:flex; align-items:center; gap:.7rem; padding:.85rem 1rem;
  border:1px solid var(--line-2); border-radius:var(--r); background:var(--paper);
  font-size:.92rem; color:var(--ink-2); text-align:left;
  transition:border-color var(--d-1), background var(--d-1), color var(--d-1), transform var(--d-1) var(--e-out);
}
.choice:hover{ border-color:var(--ink-4); background:var(--canvas-2); transform:translateY(-1px); }
.choice .bx{
  width:16px; height:16px; border-radius:4px; border:1.5px solid var(--line-2);
  flex-shrink:0; position:relative; transition:border-color var(--d-1), background var(--d-1);
}
.choice.round .bx{ border-radius:50%; }
.choice .bx::after{
  content:""; position:absolute; inset:3px; border-radius:2px; background:#fff;
  transform:scale(0); transition:transform var(--d-2) var(--e-back);
}
.choice.round .bx::after{ border-radius:50%; }
.choice[aria-pressed="true"]{ border-color:var(--brand); background:var(--brand-tint); color:var(--ink); font-weight:500; }
.choice[aria-pressed="true"] .bx{ border-color:var(--brand); background:var(--brand); }
.choice[aria-pressed="true"] .bx::after{ transform:scale(1); }

/* ---------- 11. Steps bar ---------- */
.steps{ display:flex; align-items:center; gap:.5rem; margin-bottom:2rem; }
.steps .s{ flex:1; display:grid; gap:.45rem; min-width:0; }
.steps .s .t{ height:3px; border-radius:2px; background:var(--canvas-3); overflow:hidden; display:block; }
.steps .s .t i{ display:block; height:100%; width:0; background:var(--brand); border-radius:2px; transition:width var(--d-3) var(--e-out); }
.steps .s.done .t i,.steps .s.on .t i{ width:100%; }
.steps .s > span:last-child{
  display:block; font-size:.66rem; letter-spacing:.09em; text-transform:uppercase;
  font-weight:700; color:var(--ink-4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.steps .s.on > span:last-child{ color:var(--brand-deep); }
.steps .s.done > span:last-child{ color:var(--ink-3); }
@media (max-width:640px){ .steps .s > span:last-child{ display:none; } .steps .s .t{ height:4px; } }

/* ---------- 12. Footer ---------- */
.ftr{ background:var(--paper); border-top:1px solid var(--line); padding-block:clamp(2.6rem,2rem + 2.4vw,4rem) 1.6rem; }
.ftr-grid{ display:grid; grid-template-columns:1.6fr repeat(4,1fr); gap:clamp(1.4rem,1rem + 2vw,2.6rem); }
@media (max-width:960px){ .ftr-grid{ grid-template-columns:1fr 1fr 1fr; } .ftr-grid > :first-child{ grid-column:1 / -1; } }
@media (max-width:560px){ .ftr-grid{ grid-template-columns:1fr 1fr; } }
.ftr h4{ font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-4); margin-bottom:.9rem; font-weight:700; font-family:var(--font-body); }
.ftr li + li{ margin-top:.55rem; }
.ftr a{ font-size:.9rem; color:var(--ink-2); transition:color var(--d-1); }
.ftr a:hover{ color:var(--brand-deep); }
.ftr .about img{ height:26px; margin-bottom:1rem; }
.ftr .about p{ font-size:.9rem; color:var(--ink-3); max-width:34ch; }
.ftr .base{
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  margin-top:clamp(2rem,1.6rem + 2vw,3rem); padding-top:1.4rem;
  border-top:1px solid var(--line); font-size:var(--t-xs); color:var(--ink-4);
}
.ftr .base nav{ display:flex; gap:1.2rem; flex-wrap:wrap; }

/* ---------- 13. Motion ---------- */
[data-rise]{ opacity:0; transform:translateY(16px); transition:opacity .7s var(--e-out), transform .7s var(--e-out); }
[data-rise].in{ opacity:1; transform:none; }
[data-stagger] > *{ opacity:0; transform:translateY(14px); transition:opacity .6s var(--e-out), transform .6s var(--e-out); }
[data-stagger].in > *{ opacity:1; transform:none; }

/* ---------- 14. Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:1.6rem; translate:-50% 0; z-index:500;
  padding:.8rem 1.25rem; border-radius:var(--r); background:var(--ink); color:var(--canvas);
  font-size:.9rem; box-shadow:var(--sh-3); opacity:0; pointer-events:none;
  transform:translateY(10px); transition:opacity var(--d-2), transform var(--d-2) var(--e-out);
}
.toast.on{ opacity:1; transform:none; }

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important;
  }
  [data-rise],[data-stagger] > *{ opacity:1 !important; transform:none !important; }
}

/* ---------- 16. Print ---------- */
@media print{
  .hdr,.ftr,.btn,.toast{ display:none !important; }
  body{ background:#fff; }
  .card,.row-item{ break-inside:avoid; }
}


/* ==========================================================================
   17. THE LEARNING ENGINE
   The hero visual. Not decoration: it is a diagram of what the company
   actually does. Signals from a student go in on the left, the engine works
   in the middle, and what comes back out goes on the right. Dots travel the
   paths so the flow is legible at a glance, and the whole thing is built from
   the three data colours so the colour means the same thing everywhere.
   ========================================================================== */
.engine{ position:relative; width:100%; }
.engine svg{ width:100%; height:auto; overflow:visible; }

.engine .wire{ fill:none; stroke:var(--line-2); stroke-width:1.2; }
.engine .wire.live{ stroke:var(--c,var(--signal)); stroke-opacity:.34; }

/* A short dash running the length of a wire. One pulse, not a light show. */
.engine .pulse{
  fill:none; stroke:var(--c,var(--signal)); stroke-width:1.8; stroke-linecap:round;
  stroke-dasharray:14 460; stroke-dashoffset:474;
  animation:flow var(--dur,3.4s) linear infinite; animation-delay:var(--delay,0s);
}
@keyframes flow{ to{ stroke-dashoffset:0; } }

.engine .node{
  fill:var(--paper); stroke:var(--line-2); stroke-width:1.2;
}
.engine .node.on{ stroke:var(--c); }
.engine .chip{ fill:var(--paper); stroke:var(--line); stroke-width:1.2; }
.engine .label{
  font-family:var(--font-body); font-size:11px; font-weight:600; fill:var(--ink-2);
}
.engine .sub{ font-family:var(--font-body); font-size:9.5px; fill:var(--ink-4); }
.engine .tick{ font-family:var(--font-mono); font-size:8.5px; fill:var(--ink-4); letter-spacing:.06em; }

/* The core. A square that breathes rather than glows. */
.engine .core{ fill:var(--paper); stroke:var(--brand); stroke-width:1.6; }
.engine .core-ring{
  fill:none; stroke:var(--brand); stroke-width:1; stroke-opacity:.3;
  stroke-dasharray:3 5; transform-box:fill-box; transform-origin:center;
  animation:coreSpin 26s linear infinite;
}
@keyframes coreSpin{ to{ transform:rotate(360deg); } }
.engine .core-fill{
  fill:var(--brand); opacity:.07; transform-box:fill-box; transform-origin:center;
  animation:coreBreathe 4.6s var(--e-soft) infinite alternate;
}
@keyframes coreBreathe{ from{ transform:scale(.9); opacity:.05; } to{ transform:scale(1.04); opacity:.12; } }

/* Bars inside the output chips, so the right hand side shows a result. */
.engine .bar{ fill:var(--canvas-3); }
.engine .barfill{
  fill:var(--c,var(--progress)); transform-box:fill-box; transform-origin:left center;
  transform:scaleX(0); animation:barGrow 1.2s var(--e-out) forwards; animation-delay:var(--delay,0s);
}
@keyframes barGrow{ to{ transform:scaleX(1); } }

@media (prefers-reduced-motion:reduce){
  .engine .pulse{ animation:none; stroke-dashoffset:0; stroke-dasharray:none; stroke-opacity:.5; }
  .engine .core-ring,.engine .core-fill{ animation:none; }
  .engine .barfill{ animation:none; transform:scaleX(1); }
}

/* ---------- 18. Logo strip ---------- */
.strip{ display:flex; align-items:center; gap:clamp(1.4rem,3vw,3rem); flex-wrap:wrap; }
/* As a marquee track it must not wrap, or the row folds instead of moving. */
.marquee-track.strip{ flex-wrap:nowrap; gap:clamp(1.6rem,3vw,3.2rem); }
/* The logos are trimmed to their artwork and carry transparency, and every
   one of them is dark ink, so on a light page they need no chip behind
   them. A white box was a workaround for the old dark design, and it is
   what was making them look misaligned: the box was uniform, the artwork
   inside it was not.

   The supplied ratios run from 1.05 to 6.12, so both dimensions are capped.
   A wide logo meets the width limit, a squarer one meets the height limit,
   and nothing is stretched either way. */
.strip .lg{
  flex:0 0 auto; display:grid; place-items:center;
  width:136px; height:54px;
}
/* Absolute caps, not percentages. A percentage max-height inside a centred
   grid area resolves against an indefinite height and is simply dropped,
   which is how a square logo ended up 132px tall in a 46px row. */
.strip .lg img{
  max-width:136px; max-height:54px; width:auto; height:auto; object-fit:contain;
  opacity:.8; filter:grayscale(1);
  transition:opacity var(--d-2), filter var(--d-2), transform var(--d-2) var(--e-out);
}
.strip .lg:hover img{ opacity:1; filter:none; transform:scale(1.06); }

/* ---------- 19. Split feature ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(1.6rem,1rem + 3.4vw,4.5rem); align-items:center; }
@media (max-width:880px){ .split{ grid-template-columns:1fr; gap:2.2rem; } .split.flip > :first-child{ order:2; } }
.split .visual{ position:relative; }

/* ---------- 20. Tick list ---------- */
.ticks{ display:grid; gap:.65rem; }
.ticks li{ display:grid; grid-template-columns:auto 1fr; gap:.7rem; align-items:start; font-size:.95rem; color:var(--ink-2); }
.ticks li::before{
  content:""; width:16px; height:16px; margin-top:.22rem; border-radius:50%;
  background:var(--brand-tint); border:1px solid var(--brand-line);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' fill='none'%3E%3Cpath d='M1 3.6L3.3 6 8 1' stroke='%23C4551C' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center;
}

/* ---------- 21. Accordion ---------- */
.acc{ border-top:1px solid var(--line); }
.acc-item{ border-bottom:1px solid var(--line); }
.acc-btn{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:1.4rem;
  padding:1.25rem 0; font-family:var(--font-display); font-weight:600;
  font-size:clamp(1rem,.96rem + .3vw,1.12rem); color:var(--ink); transition:color var(--d-2);
}
.acc-btn:hover{ color:var(--brand-deep); }
.acc-btn .pm{ position:relative; width:18px; height:18px; flex-shrink:0; }
.acc-btn .pm::before,.acc-btn .pm::after{
  content:""; position:absolute; inset:50% 0 auto; height:1.5px; background:var(--ink-3);
  border-radius:2px; transition:transform var(--d-3) var(--e-out), background var(--d-2);
}
.acc-btn .pm::after{ transform:rotate(90deg); }
.acc-item.open .acc-btn .pm::after{ transform:rotate(0); }
.acc-item.open .acc-btn .pm::before,.acc-item.open .acc-btn .pm::after{ background:var(--brand); }
.acc-panel{ display:grid; grid-template-rows:0fr; transition:grid-template-rows var(--d-3) var(--e-out); }
.acc-item.open .acc-panel{ grid-template-rows:1fr; }
.acc-panel > div{ overflow:hidden; }
.acc-panel p{ color:var(--ink-2); padding-bottom:1.3rem; max-width:72ch; font-size:.95rem; }

/* ---------- 22. Call to action band ---------- */
.band{
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper);
  padding:clamp(2rem,1.4rem + 2.6vw,3.4rem); position:relative; overflow:hidden;
}
.band::before{
  content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--brand);
}
.band h2{ font-size:var(--t-h2); margin-bottom:.7rem; }
.band p{ color:var(--ink-2); font-size:var(--t-lead); max-width:56ch; }

/* The Yene Sekay device mockup now lives at the end of this file. */

/* ==========================================================================
   Rate table
   Prices are a decision point, so they get a real table rather than a
   paragraph. Three columns on a desktop, stacked cards on a phone, with
   the grade band repeated as a label so a stacked row still makes sense.
   ========================================================================== */
.rates{
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  background:var(--paper);
}
.rates table{ width:100%; border-collapse:collapse; }
.rates th,.rates td{ padding:.95rem 1.1rem; text-align:left; font-size:.95rem; }
.rates thead th{
  background:var(--canvas-2); border-bottom:1px solid var(--line);
  font-family:var(--font-display); font-weight:600; font-size:.82rem;
  letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3);
}
.rates tbody tr + tr{ border-top:1px solid var(--line); }
.rates tbody th{ font-weight:600; color:var(--ink); font-family:var(--font-display); }
.rates td{ color:var(--ink-2); font-variant-numeric:tabular-nums; }
.rates td b{ color:var(--ink); font-weight:600; }
.rates .unit{ font-size:.8rem; color:var(--ink-4); }

@media (max-width:720px){
  .rates thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .rates tbody tr{ display:block; padding:.4rem 0; }
  .rates tbody tr + tr{ border-top:1px solid var(--line); }
  .rates tbody th{ display:block; padding-bottom:.2rem; }
  .rates tbody td{
    display:flex; justify-content:space-between; gap:1rem;
    padding:.35rem 1.1rem; font-size:.92rem;
  }
  .rates tbody td::before{
    content:attr(data-label); color:var(--ink-4); font-size:.85rem;
  }
}

/* ==========================================================================
   Yene Sekay showcase
   A phone that stays put while the page scrolls past it, changing screen as
   each feature comes into view. The screens are rebuilt in markup rather
   than pasted in as images, so they stay sharp, stay light and can animate.
   ========================================================================== */
.showcase{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(1.6rem,1rem + 3vw,4rem); align-items:start;
}
.showcase-phone{ position:sticky; top:calc(var(--header-h) + 2.2rem); justify-self:center; }
.showcase-steps{ display:grid; }
.sc-step{
  min-height:68vh; display:flex; flex-direction:column; justify-content:center;
  padding-block:1.5rem; opacity:.32; transition:opacity var(--d-3) var(--e-out);
}
.sc-step.live{ opacity:1; }
.sc-step .n{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em;
  color:var(--ink-4); display:block; margin-bottom:.7rem;
}
.sc-step h3{ font-size:clamp(1.35rem,1.1rem + 1.1vw,1.9rem); margin-bottom:.6rem; }
.sc-step p{ color:var(--ink-2); font-size:var(--t-lead); max-width:40ch; }
.sc-step .rule{
  height:2px; width:0; background:var(--brand); border-radius:2px; margin-top:1.1rem;
  transition:width .7s var(--e-out);
}
.sc-step.live .rule{ width:56px; }

/* Stacked, the sticky tour does not survive: in a one column grid the
   phone's sticky containing block is only its own row, and scaling it to
   fit fights the pin. On a handset the tour becomes what a handset is good
   at instead, a rail of cards you swipe, with the phone above it. */
@media (max-width:900px){
  .showcase{ display:block; }
  .showcase-phone{ position:static; margin-inline:auto; width:max-content; max-width:100%; }
  .showcase-steps{
    display:flex; gap:.7rem; margin-top:1.6rem; padding:.2rem .1rem 1rem;
    overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain;
    scrollbar-width:none;
  }
  .showcase-steps::-webkit-scrollbar{ height:0; }
  .sc-step{
    flex:0 0 78%; scroll-snap-align:center; min-height:auto; opacity:.5;
    border:1px solid var(--line); border-radius:var(--r-lg); background:var(--paper);
    padding:1.1rem 1.15rem 1.25rem; justify-content:flex-start;
  }
  .sc-step.live{ opacity:1; border-color:var(--brand-line); }
  .sc-step h3{ font-size:1.15rem; }
  .sc-step p{ max-width:none; font-size:.95rem; }
}

/* ---------- the phone ---------- */
.ph{
  width:296px; max-width:100%; margin-inline:auto; border-radius:38px; padding:8px;
  background:linear-gradient(170deg,#2A2C31,#131417); position:relative;
  box-shadow:0 40px 80px -38px rgba(20,22,26,.55), 0 3px 10px rgba(20,22,26,.18);
}
.ph::after{
  content:""; position:absolute; top:19px; left:50%; transform:translateX(-50%);
  width:68px; height:5px; border-radius:99px; background:#0B0C0E; z-index:6;
}
.ph-screen{
  position:relative; border-radius:31px; overflow:hidden; background:#F3F3F3;
  height:604px; isolation:isolate;
}
.scr{
  position:absolute; inset:0; padding:2.1rem .82rem 4.4rem; overflow:hidden;
  opacity:0; transform:translateY(10px) scale(.985); pointer-events:none;
  transition:opacity .42s var(--e-out), transform .42s var(--e-out);
}
.scr.on{ opacity:1; transform:none; pointer-events:auto; }
@media (prefers-reduced-motion:reduce){ .scr{ transition:none; transform:none; } }

/* bottom navigation, shared by every screen */
.appbar{
  position:absolute; left:.7rem; right:.7rem; bottom:.7rem; height:52px; z-index:4;
  background:#fff; border-radius:18px; display:flex; align-items:center;
  justify-content:space-around; box-shadow:0 8px 22px -12px rgba(20,22,26,.3);
}
.appbar i{
  width:19px; height:19px; display:block; opacity:.55;
  background:currentColor; color:#2B2F36;
  -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat;
}
.appbar a{ display:grid; place-items:center; gap:.12rem; padding:.3rem .5rem; border-radius:12px; }
.appbar a.on{ background:var(--brand-tint); }
.appbar a.on i{ opacity:1; color:var(--brand); }
.appbar span{ font-size:.54rem; font-weight:700; color:var(--brand); letter-spacing:.01em; }

/* small shared app pieces */
.a-pill{
  display:inline-block; font-size:.54rem; font-weight:800; letter-spacing:.13em;
  color:var(--brand); background:#fff; border-radius:99px; padding:.3rem .62rem;
}
.a-card{ background:#fff; border-radius:16px; padding:.7rem .75rem; }
.a-soft{ background:linear-gradient(135deg,#FFF6EF,#FFFDFB); border-radius:16px; }
.a-title{ font-family:var(--font-display); font-weight:700; color:#1E2229; }
.a-sub{ color:#8A9099; }

/* screen 1, home */
.a-me{ display:flex; align-items:center; gap:.5rem; margin-bottom:.7rem; }
.a-me .av{
  width:30px; height:30px; border-radius:50%; flex-shrink:0;
  background:radial-gradient(circle at 35% 30%,#F2C4A3,#D08A5C); border:1px solid #fff;
}
.a-me b{ font-family:var(--font-display); font-size:.9rem; color:#1E2229; }
.a-feat{
  display:flex; align-items:center; gap:.5rem; padding:.7rem .7rem .7rem .8rem;
  margin-bottom:.45rem; min-height:78px;
}
.a-feat h4{ font-family:var(--font-display); font-size:.74rem; line-height:1.3; color:#1E2229; margin-top:.35rem; }
.a-feat .thumb{
  width:62px; height:62px; border-radius:12px; background:#fff; flex-shrink:0;
  display:grid; place-items:center;
}
.a-dots{ display:flex; gap:.28rem; justify-content:center; margin-bottom:.6rem; }
.a-dots i{ width:5px; height:5px; border-radius:50%; background:#D8DADD; }
.a-dots i:last-child{ background:var(--brand); }
.a-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:.45rem; }
.a-tile{ padding:.5rem .55rem .6rem; min-height:92px; position:relative; }
.a-tile .sq{
  width:44px; height:44px; border-radius:10px; background:#fff; margin-bottom:.4rem;
  display:grid; place-items:center;
}
.a-tile b{ display:block; font-family:var(--font-display); font-size:.66rem; color:#1E2229; }
.a-tile em{ font-style:normal; font-size:.56rem; color:#9AA0A8; }
.a-tile .ex{
  position:absolute; top:.5rem; right:.5rem; font-size:.44rem; font-weight:800;
  letter-spacing:.1em; color:var(--brand); background:#fff; padding:.2rem .4rem; border-radius:99px;
}

/* screen 2, plan */
.a-focus{ padding:.75rem; display:flex; gap:.6rem; align-items:flex-start; }
.a-focus .txt{ flex:1; }
.a-focus small{ font-size:.5rem; font-weight:800; letter-spacing:.13em; color:var(--brand); }
.a-focus b{ display:block; font-family:var(--font-display); font-size:.78rem; color:#1E2229; margin:.2rem 0 .18rem; }
.a-focus p{ font-size:.6rem; line-height:1.4; color:#8A9099; }
.a-ring{
  width:66px; height:66px; border-radius:14px; background:var(--brand); color:#fff;
  display:grid; place-items:center; text-align:center; flex-shrink:0; padding:.3rem;
}
.a-ring b{ font-size:1.05rem; font-family:var(--font-display); line-height:1; }
.a-ring span{ font-size:.46rem; line-height:1.15; display:block; opacity:.92; margin-top:.15rem; }
.a-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:.4rem; margin:.5rem 0; }
.a-stats div{ background:#fff; border-radius:12px; padding:.5rem .3rem; text-align:center; }
.a-stats b{ display:block; font-family:var(--font-display); font-size:.85rem; }
.a-stats span{ font-size:.5rem; color:#8A9099; font-weight:600; }
.a-days{ display:flex; gap:.3rem; margin:.5rem 0 .55rem; }
.a-days div{
  flex:1; background:#fff; border-radius:11px; padding:.42rem .1rem; text-align:center;
}
.a-days div.on{ background:var(--brand); color:#fff; }
.a-days small{ display:block; font-size:.46rem; opacity:.7; }
.a-days b{ font-size:.74rem; font-family:var(--font-display); }
.a-plan{ display:flex; gap:.5rem; align-items:center; padding:.6rem .65rem; margin-bottom:.4rem; }
.a-plan .tick{
  width:22px; height:22px; border-radius:7px; background:var(--brand-tint);
  display:grid; place-items:center; flex-shrink:0;
}
.a-plan b{ display:block; font-family:var(--font-display); font-size:.66rem; color:#1E2229; }
.a-plan em{ font-style:normal; font-size:.55rem; color:#9AA0A8; }

/* segmented controls */
.a-seg{
  display:flex; background:#fff; border-radius:14px; padding:.22rem; gap:.15rem; margin-bottom:.45rem;
}
.a-seg button{
  flex:1; padding:.44rem .2rem; border-radius:11px; font-size:.62rem; font-weight:700;
  color:#5E646D; display:flex; align-items:center; justify-content:center; gap:.25rem;
  transition:background var(--d-1), color var(--d-1);
}
.a-seg button.on{ background:var(--brand); color:#fff; }

/* screen 3, learning row */
.a-row{ display:flex; align-items:center; gap:.55rem; padding:.62rem .6rem; margin-top:.9rem; }
.a-row .ico{ width:38px; height:38px; border-radius:11px; background:var(--brand-tint); display:grid; place-items:center; flex-shrink:0; }
.a-row b{ display:block; font-family:var(--font-display); font-size:.82rem; color:#1E2229; }
.a-row em{ font-style:normal; font-size:.62rem; color:#8A9099; }
.a-row .ch{ margin-left:auto; color:#C4C8CD; }

/* screen 4, videos */
.a-vids{ display:grid; grid-template-columns:1fr 1fr; gap:.42rem; }
.a-vid{ background:#fff; border-radius:12px; overflow:hidden; }
.a-vid .fr{ position:relative; aspect-ratio:16/10; display:grid; place-items:center; }
.a-vid .fr::after{
  content:""; width:22px; height:22px; border-radius:50%; background:var(--brand);
  box-shadow:0 2px 8px rgba(0,0,0,.2);
  -webkit-mask:none;
}
.a-vid .fr span{
  position:absolute; z-index:2; width:0; height:0;
  border-left:7px solid #fff; border-top:4.5px solid transparent; border-bottom:4.5px solid transparent;
  margin-left:2px;
}
.a-vid .meta{ padding:.42rem .48rem .55rem; }
.a-vid .meta b{ display:block; font-family:var(--font-display); font-size:.58rem; line-height:1.3; color:#1E2229; }
.a-vid .meta em{ font-style:normal; font-size:.48rem; color:#9AA0A8; }

/* screen 5, flashcard */
.a-prog{ height:4px; border-radius:99px; background:#DDDFE2; overflow:hidden; margin-bottom:.3rem; }
.a-prog i{ display:block; height:100%; width:38%; background:var(--brand); border-radius:99px; }
.a-flip{ perspective:900px; height:230px; margin-top:.5rem; cursor:pointer; }
.a-flip-in{ position:relative; width:100%; height:100%; transition:transform .6s var(--e-out); transform-style:preserve-3d; }
.a-flip.turned .a-flip-in{ transform:rotateY(180deg); }
.a-face{
  position:absolute; inset:0; backface-visibility:hidden; background:#fff; border-radius:18px;
  padding:1.1rem .95rem; display:flex; flex-direction:column; justify-content:center; text-align:center;
}
.a-face p{ font-family:var(--font-display); font-weight:700; font-size:.82rem; line-height:1.42; color:#1E2229; }
.a-face img{ width:60px; margin:1.1rem auto 0; opacity:.95; }
.a-face.b{ transform:rotateY(180deg); background:var(--brand-tint); }
.a-face.b p{ font-weight:600; font-size:.78rem; color:#3A2015; }

/* screen 6, quiz */
.a-q{ background:var(--brand); border-radius:18px; padding:.65rem; margin-bottom:.55rem; }
.a-q .tag{ display:inline-block; background:rgba(255,255,255,.25); color:#fff; font-size:.55rem; font-weight:800; padding:.28rem .6rem; border-radius:99px; }
.a-q .in{ background:#FFF8F3; border-radius:14px; padding:.6rem .65rem; margin-top:.5rem; }
.a-q .sc{ display:flex; gap:.4rem; margin-bottom:.45rem; }
.a-q .sc span{ font-size:.58rem; font-weight:800; padding:.24rem .55rem; border-radius:99px; }
.a-q .sc .g{ color:#17764A; background:#E6F4ED; }
.a-q .sc .r{ color:#B3402C; background:#FBECE8; }
.a-q .in p{ font-family:var(--font-display); font-weight:700; font-size:.68rem; line-height:1.4; color:#1E2229; }
.a-opt{ display:flex; align-items:center; gap:.5rem; background:#fff; border-radius:13px; padding:.52rem .6rem; margin-bottom:.35rem; }
.a-opt i{
  width:22px; height:22px; border-radius:50%; background:#F1F2F4; color:#5E646D;
  font-style:normal; font-size:.58rem; font-weight:800; display:grid; place-items:center; flex-shrink:0;
}
.a-opt p{ font-size:.62rem; line-height:1.35; color:#3A3F47; }
.a-opt.hit{ background:#E9F5EF; }
.a-opt.hit i{ background:var(--ok); color:#fff; }

/* screen 7, reports */
.a-rep{ display:grid; grid-template-columns:repeat(3,1fr); gap:.38rem; margin:.5rem 0 .5rem; }
.a-rep div{ background:#fff; border-radius:12px; padding:.5rem .35rem; }
.a-rep span{ display:block; font-size:.5rem; color:#8A9099; }
.a-rep b{ font-family:var(--font-display); font-size:.78rem; color:#1E2229; }
.a-sub-card{ padding:.6rem .65rem; margin-bottom:.4rem; }
.a-sub-card .top{ display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; }
.a-sub-card b{ font-family:var(--font-display); font-size:.74rem; color:#1E2229; }
.a-sub-card em{ font-style:normal; display:block; font-size:.55rem; color:#8A9099; margin-top:.1rem; }
.a-score{ font-size:.58rem; font-weight:800; padding:.24rem .55rem; border-radius:99px; white-space:nowrap; }
.a-score.p{ color:#17764A; background:#E6F4ED; }
.a-score.f{ color:#B3402C; background:#FBECE8; }
.a-sub-card .ft{ display:flex; gap:.7rem; margin-top:.45rem; font-size:.52rem; color:#9AA0A8; }

/* the caption under the phone */
.ph-cap{
  text-align:center; font-size:var(--t-xs); color:var(--ink-4); margin-top:.85rem;
}

/* ==========================================================================
   SIGNATURE LAYER
   Glass surfaces, the logo motif, and the motion that carries both.

   The motif is taken straight from the mark: four rungs, each two nodes
   joined by a bar. It already means what the company does, so it is used
   wherever the page is about two things being connected.
   ========================================================================== */

/* ---------- the field that glass has something to blur ---------- */
.field{ position:relative; isolation:isolate; overflow:hidden; }
.field::before,.field::after{
  content:""; position:absolute; z-index:-1; border-radius:50%;
  filter:blur(70px); opacity:.5; pointer-events:none;
}
.field::before{
  width:46vw; height:46vw; max-width:560px; max-height:560px;
  top:-16%; right:-10%;
  background:radial-gradient(circle,rgba(238,110,47,.5),transparent 68%);
  animation:drift 26s var(--e-inout) infinite alternate;
}
.field::after{
  width:38vw; height:38vw; max-width:460px; max-height:460px;
  bottom:-18%; left:-8%;
  background:radial-gradient(circle,rgba(107,78,158,.34),transparent 68%);
  animation:drift2 32s var(--e-inout) infinite alternate;
}
@keyframes drift { to{ transform:translate3d(-6%,7%,0) scale(1.12); } }
@keyframes drift2{ to{ transform:translate3d(8%,-6%,0) scale(1.1); } }

/* ---------- glass ---------- */
.glass{
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(20px) saturate(1.5);
  -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--r-lg);
  box-shadow:0 20px 44px -30px rgba(24,22,20,.42), inset 0 1px 0 rgba(255,255,255,.7);
}
.glass.tint{ background:rgba(255,251,247,.6); border-color:rgba(247,203,174,.6); }
/* A sheen that crosses the card once it is hovered. */
.glass.lift{ position:relative; overflow:hidden; transition:transform var(--d-3) var(--e-out), box-shadow var(--d-3); }
.glass.lift::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.62) 50%,transparent 62%);
  transform:translateX(-120%); transition:transform .85s var(--e-out);
}
.glass.lift:hover{ transform:translateY(-4px); box-shadow:0 30px 60px -32px rgba(24,22,20,.5); }
.glass.lift:hover::after{ transform:translateX(120%); }
@media (hover:none){ .glass.lift:hover{ transform:none; } }

/* ---------- the mark motif ---------- */
.rung{ display:block; }
.rung .node{ fill:currentColor; }
.rung .bar{ stroke:currentColor; stroke-linecap:round; }
/* Each rung closes: the nodes arrive, then the bar draws between them. */
.rung .r{ opacity:0; }
.in .rung .r,.rung.play .r{ animation:rungIn .9s var(--e-out) forwards; }
.in .rung .r:nth-child(1),.rung.play .r:nth-child(1){ animation-delay:.05s; }
.in .rung .r:nth-child(2),.rung.play .r:nth-child(2){ animation-delay:.20s; }
.in .rung .r:nth-child(3),.rung.play .r:nth-child(3){ animation-delay:.35s; }
.in .rung .r:nth-child(4),.rung.play .r:nth-child(4){ animation-delay:.50s; }
@keyframes rungIn{
  0%  { opacity:0; transform:scaleX(.2); }
  60% { opacity:1; transform:scaleX(1.06); }
  100%{ opacity:1; transform:scaleX(1); }
}
.rung .r{ transform-origin:center; transform-box:fill-box; }

/* A quiet watermark version for section corners. */
.mark-wm{
  position:absolute; pointer-events:none; color:var(--brand); opacity:.09;
  width:clamp(140px,18vw,260px); z-index:0;
}
.mark-wm.tr{ top:-10px; right:-14px; }
.mark-wm.bl{ bottom:-18px; left:-16px; transform:rotate(180deg); }

/* ---------- reveal variants ---------- */
[data-rise],[data-stagger] > *{
  opacity:0; transform:translateY(14px);
  transition:opacity .7s var(--e-out), transform .7s var(--e-out);
}
[data-rise].in,[data-stagger].in > *{ opacity:1; transform:none; }

[data-slide]{ opacity:0; transform:translateX(-26px); transition:opacity .8s var(--e-out), transform .8s var(--e-out); }
[data-slide="right"]{ transform:translateX(26px); }
[data-slide].in{ opacity:1; transform:none; }

[data-zoom]{ opacity:0; transform:scale(.94); transition:opacity .7s var(--e-out), transform .7s var(--e-out); }
[data-zoom].in{ opacity:1; transform:none; }

/* Words arriving one after another, for a single line that matters. */
.words .w{
  display:inline-block; opacity:0; transform:translateY(.5em) rotate(1.5deg);
  transition:opacity .55s var(--e-out), transform .55s var(--e-out);
}
.words.in .w{ opacity:1; transform:none; }

/* A line that draws itself under a heading. */
/* Shrink to fit so the rule matches the text, but stay a block so a short
   heading never rides up beside its kicker. */
.underline{ position:relative; display:block; width:fit-content; max-width:100%; }
.head.mid .underline,.center .underline{ margin-inline:auto; }
.underline::after{
  content:""; position:absolute; left:0; bottom:-.16em; height:3px; width:0;
  background:var(--brand); border-radius:3px; transition:width .8s .25s var(--e-out);
}
.underline.in::after{ width:100%; }

@media (prefers-reduced-motion:reduce){
  .field::before,.field::after{ animation:none; }
  .rung .r{ opacity:1 !important; animation:none !important; }
  .words .w,[data-slide],[data-zoom]{ opacity:1 !important; transform:none !important; }
  .underline::after{ transition:none; }
  .glass.lift::after{ display:none; }
}

/* ==========================================================================
   Matching flow
   Five stages on a track, drawn from the mark's rungs. The track fills as
   the flow plays, and each stage opens as its node lights.
   ========================================================================== */
.flow{ position:relative; }
.flow-track{
  position:absolute; left:26px; top:34px; bottom:34px; width:2px;
  background:var(--line-2); border-radius:2px; overflow:hidden;
}
.flow-track i{
  position:absolute; inset:0 0 auto; height:0; background:var(--brand);
  border-radius:2px; transition:height 1.1s var(--e-out);
}
.flow-list{ display:grid; gap:.7rem; position:relative; }
.flow-step{
  display:grid; grid-template-columns:54px 1fr; gap:1rem; align-items:start;
  padding:.9rem 1rem .95rem 0; cursor:pointer; text-align:left; width:100%;
  border-radius:var(--r-lg); transition:background var(--d-2);
}
.flow-toggle{
  font:inherit; color:inherit; text-align:left; padding:0; width:100%;
}
.flow-step:hover{ background:rgba(255,255,255,.5); }
.flow-node{
  width:54px; height:54px; border-radius:50%; display:grid; place-items:center;
  background:var(--paper); border:2px solid var(--line-2); color:var(--ink-4);
  transition:border-color var(--d-3) var(--e-out), color var(--d-3),
             background var(--d-3), transform var(--d-3) var(--e-back),
             box-shadow var(--d-3);
  position:relative; z-index:1;
}
.flow-step.on .flow-node{
  border-color:var(--brand); color:var(--brand); background:var(--brand-tint);
  transform:scale(1.07); box-shadow:0 0 0 7px rgba(238,110,47,.12);
}
.flow-step.done .flow-node{ border-color:var(--brand); color:var(--brand); }
.flow-step h3{
  font-size:1.05rem; margin-bottom:.15rem; color:var(--ink-3);
  transition:color var(--d-2);
}
.flow-step.on h3,.flow-step.done h3{ color:var(--ink); }
.flow-step .body{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows var(--d-3) var(--e-out);
}
.flow-step.on .body{ grid-template-rows:1fr; }
.flow-step .body > *{ overflow:hidden; }
.flow-step .body p{ color:var(--ink-2); font-size:.95rem; padding-top:.35rem; }
.flow-step .meta{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.08em;
  color:var(--ink-4); text-transform:uppercase; display:block; margin-top:.5rem;
}
.flow-ctrl{ display:flex; gap:.5rem; align-items:center; margin-top:1.2rem; }
.flow-dots{ display:flex; gap:.35rem; margin-left:auto; }
.flow-dots i{
  width:7px; height:7px; border-radius:50%; background:var(--line-2);
  transition:background var(--d-2), transform var(--d-2);
}
.flow-dots i.on{ background:var(--brand); transform:scale(1.35); }

/* ==========================================================================
   Pricing selector
   One card that answers the question rather than four that make you do the
   arithmetic. Pick a curriculum, pick a grade, read the number.
   ========================================================================== */
.price{ display:grid; gap:1.1rem; }
.switch{
  display:inline-flex; padding:.28rem; gap:.2rem; border-radius:var(--r-pill);
  background:var(--canvas-2); border:1px solid var(--line);
}
.switch button{
  padding:.55rem 1.1rem; border-radius:var(--r-pill); font-size:.88rem;
  font-weight:600; color:var(--ink-3); transition:color var(--d-2);
  position:relative; z-index:1;
}
.switch button[aria-pressed="true"]{ color:#fff; }
.switch{ position:relative; }
.switch .thumb{
  position:absolute; top:.28rem; bottom:.28rem; border-radius:var(--r-pill);
  background:var(--brand); transition:left var(--d-3) var(--e-out), width var(--d-3) var(--e-out);
  z-index:0;
}
.price-out{
  display:flex; align-items:flex-end; gap:.5rem; flex-wrap:wrap;
  padding:1.6rem; border-radius:var(--r-lg);
}
.price-num{
  font-family:var(--font-display); font-weight:700; line-height:1;
  font-size:clamp(2.6rem,2rem + 3vw,4rem); color:var(--brand-deep);
  font-variant-numeric:tabular-nums;
}
.price-num.flash{ animation:numPop .45s var(--e-back); }
@keyframes numPop{ 0%{ transform:translateY(8px); opacity:.2; } 100%{ transform:none; opacity:1; } }
.price-unit{ color:var(--ink-3); font-size:1rem; padding-bottom:.4rem; }
.price-note{ width:100%; color:var(--ink-3); font-size:.9rem; margin-top:.7rem; }
.price-rows{ display:grid; gap:.5rem; }
.price-row{
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:.75rem 1rem; border-radius:var(--r); border:1px solid var(--line);
  background:var(--paper); transition:border-color var(--d-2), background var(--d-2), transform var(--d-2);
}
.price-row[aria-current="true"]{
  border-color:var(--brand); background:var(--brand-tint); transform:translateX(4px);
}
.price-row b{ font-family:var(--font-display); font-size:.95rem; }
.price-row span{ font-variant-numeric:tabular-nums; color:var(--ink-2); font-weight:600; }

/* ==========================================================================
   Disclosure: a form that stays out of the way until it is wanted
   ========================================================================== */
.disclose > .panel{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .6s var(--e-out);
}
.disclose.open > .panel{ grid-template-rows:1fr; }
.disclose > .panel > div{ overflow:hidden; }
.disclose-btn .ar{ transition:transform var(--d-2) var(--e-out); }
.disclose.open .disclose-btn .ar{ transform:rotate(90deg); }

/* ==========================================================================
   Desktop mockup — the school system
   Drawn in markup for the same reasons as the phone: sharp at any size,
   weighs nothing, and can have things happen on it.
   ========================================================================== */
.desk{
  border-radius:14px; overflow:hidden; background:#22252B; padding:8px 8px 0;
  box-shadow:0 40px 90px -44px rgba(20,22,26,.6), 0 2px 8px rgba(20,22,26,.18);
  position:relative;
}
.desk-bar{ display:flex; align-items:center; gap:.4rem; padding:0 .2rem .5rem; }
.desk-bar i{ width:9px; height:9px; border-radius:50%; background:#4A4E57; }
.desk-bar span{
  margin-left:.6rem; font-family:var(--font-mono); font-size:.58rem; color:#8A9099;
  background:#171A1F; padding:.22rem .7rem; border-radius:99px; flex:1;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.desk-body{
  display:grid; grid-template-columns:118px minmax(0,1fr); background:#F4F5F7;
  border-radius:9px 9px 0 0; overflow:hidden; min-height:392px;
}
.desk-side{ background:#fff; border-right:1px solid #E7E8EB; padding:.7rem .5rem; }
.desk-side .brand{ display:flex; align-items:center; gap:.35rem; padding:.2rem .35rem .8rem; }
.desk-side .brand img{ height:14px; width:auto; }
.desk-side a{
  display:flex; align-items:center; gap:.42rem; padding:.38rem .45rem; border-radius:7px;
  font-size:.6rem; font-weight:600; color:#6E757F;
}
.desk-side a.on{ background:var(--brand-tint); color:var(--brand-deep); }
.desk-side a b{ width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.55; }
.desk-main{ padding:.8rem .85rem 1rem; }
.desk-h{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:.6rem; }
.desk-h b{ font-family:var(--font-display); font-size:.82rem; color:#1E2229; }
.desk-h span{ font-size:.55rem; color:#9AA0A8; font-family:var(--font-mono); }
.desk-tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; margin-bottom:.55rem; }
.desk-tile{ background:#fff; border-radius:9px; padding:.5rem .55rem; border:1px solid #EDEEF1; }
.desk-tile em{ font-style:normal; display:block; font-size:.48rem; color:#9AA0A8; font-weight:600; }
.desk-tile b{ font-family:var(--font-display); font-size:.86rem; color:#1E2229; }
.desk-tile i{ font-style:normal; font-size:.46rem; font-weight:700; }
.desk-tile i.up{ color:#17764A; } .desk-tile i.dn{ color:#B3402C; }
.desk-split{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:.45rem; }
.desk-card{ background:#fff; border-radius:9px; padding:.6rem .62rem; border:1px solid #EDEEF1; }
.desk-card > b{ display:block; font-family:var(--font-display); font-size:.62rem; color:#1E2229; margin-bottom:.5rem; }
.desk-chart{ display:flex; align-items:flex-end; gap:.28rem; height:84px; }
.desk-chart i{
  flex:1; border-radius:3px 3px 0 0; background:var(--brand); opacity:.85;
  transform-origin:bottom; animation:barGrow .9s var(--e-out) both;
}
.desk-chart i:nth-child(2){ animation-delay:.06s } .desk-chart i:nth-child(3){ animation-delay:.12s }
.desk-chart i:nth-child(4){ animation-delay:.18s } .desk-chart i:nth-child(5){ animation-delay:.24s }
.desk-chart i:nth-child(6){ animation-delay:.30s } .desk-chart i:nth-child(7){ animation-delay:.36s }
.desk-chart i:nth-child(8){ animation-delay:.42s }
@keyframes barGrow{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
.desk-row{ display:flex; align-items:center; gap:.4rem; padding:.3rem 0; }
.desk-row + .desk-row{ border-top:1px solid #F1F2F4; }
.desk-row .av{ flex:0 0 16px; width:16px; height:16px; border-radius:50%; background:#E7E8EB; }
.desk-row span:not(.av){ font-size:.55rem; color:#3A3F47; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.desk-row u{ text-decoration:none; font-size:.46rem; font-weight:700; padding:.1rem .34rem; border-radius:99px; }
.desk-row u.r{ color:#B3402C; background:#FBECE8; }
.desk-row u.a{ color:#9A6B1E; background:#FBF3E4; }
.desk-row u.g{ color:#17764A; background:#E6F4ED; }

/* capability chips that surface over the mockup */
.pops{ position:absolute; inset:0; pointer-events:none; }
.pop{
  position:absolute; display:flex; align-items:center; gap:.4rem;
  padding:.44rem .75rem; border-radius:99px; font-size:.72rem; font-weight:600;
  color:var(--ink); background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px) saturate(1.4); -webkit-backdrop-filter:blur(10px) saturate(1.4);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 12px 26px -14px rgba(20,22,26,.5);
  opacity:0; transform:translateY(10px) scale(.94);
  transition:opacity .5s var(--e-out), transform .5s var(--e-back);
}
.pop.on{ opacity:1; transform:none; }
.pop::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--brand); flex-shrink:0; }
@media (max-width:640px){ .pop{ font-size:.62rem; padding:.34rem .58rem; } }

/* ==========================================================================
   Flip cards
   ========================================================================== */
.flips{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:.8rem; }
.flip-card{ perspective:1100px; height:176px; cursor:pointer; background:none; padding:0; text-align:left; }
.flip-card .fc{
  /* Inline by default, and width and height do nothing to an inline box,
     so the absolutely positioned faces would have no frame to fill. */
  display:block;
  position:relative; width:100%; height:100%; transition:transform .68s var(--e-out);
  transform-style:preserve-3d;
}
.flip-card.turned .fc,.flip-card:hover .fc,.flip-card:focus-visible .fc{ transform:rotateY(180deg); }
.flip-card .fc-face{
  position:absolute; inset:0; backface-visibility:hidden; border-radius:var(--r-lg);
  padding:1.1rem 1.15rem; display:flex; flex-direction:column; justify-content:space-between;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(16px) saturate(1.4); -webkit-backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid var(--line);
  box-shadow:0 18px 40px -28px rgba(24,22,20,.34);
}
.flip-card .fc-face h3{ font-size:1.02rem; }
.flip-card .fc-face .ic{ margin-bottom:auto; }
.flip-card .fc-face .hint{ font-size:.66rem; color:var(--ink-4); font-family:var(--font-mono); letter-spacing:.06em; }
.flip-card .fc-face.back{
  transform:rotateY(180deg); background:rgba(255,246,238,.88); border-color:var(--brand-line);
}
.flip-card .fc-face.back p{ font-size:.92rem; color:var(--ink-2); line-height:1.52; margin:auto 0; }
@media (prefers-reduced-motion:reduce){
  .flip-card .fc{ transition:none; }
  .desk-chart i{ animation:none; }
}

/* ==========================================================================
   Bento cluster
   Eight parts collected into one object rather than left as eight cards.
   Choosing a chip changes the panel beside it.
   ========================================================================== */
.bento{
  display:grid; grid-template-columns:1fr 1.05fr; gap:1rem; align-items:stretch;
}
.bento-chips{ display:grid; grid-template-columns:1fr 1fr; gap:.55rem; align-content:start; }
.bento-chip{
  display:flex; align-items:center; gap:.6rem; text-align:left; width:100%;
  padding:.85rem .9rem; border-radius:var(--r-lg);
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4);
  border:1px solid var(--line);
  transition:border-color var(--d-2), background var(--d-2), transform var(--d-2) var(--e-out);
}
.bento-chip:hover{ transform:translateY(-2px); border-color:var(--line-2); }
.bento-chip[aria-selected="true"]{
  border-color:var(--brand); background:rgba(255,246,238,.82);
  box-shadow:0 0 0 3px rgba(238,110,47,.1);
}
.bento-chip .ic{ width:32px; height:32px; }
.bento-chip .ic svg{ width:16px; height:16px; }
.bento-chip[aria-selected="true"] .ic{ background:var(--brand-tint); color:var(--brand-deep); }
.bento-chip b{ font-family:var(--font-display); font-size:.86rem; line-height:1.25; }
.bento-panel{
  border-radius:var(--r-lg); padding:clamp(1.3rem,1rem + 1.4vw,2rem);
  display:flex; flex-direction:column; justify-content:center; min-height:240px;
  background:rgba(255,255,255,.66);
  backdrop-filter:blur(20px) saturate(1.5); -webkit-backdrop-filter:blur(20px) saturate(1.5);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 22px 50px -34px rgba(24,22,20,.45);
  position:relative; overflow:hidden;
}
.bento-panel .n{
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em;
  color:var(--brand-deep); text-transform:uppercase;
}
.bento-panel h3{ font-size:clamp(1.3rem,1.1rem + .9vw,1.8rem); margin:.5rem 0 .6rem; }
.bento-panel p{ color:var(--ink-2); font-size:var(--t-lead); max-width:34ch; }
.bento-panel .swap{ animation:swapIn .45s var(--e-out) both; }
@keyframes swapIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.bento-panel .big{
  position:absolute; right:-8%; bottom:-14%; width:46%; color:var(--brand);
  opacity:.1; pointer-events:none;
}
@media (max-width:860px){
  .bento{ grid-template-columns:1fr; }
  .bento-panel{ min-height:0; order:-1; }
  .bento-panel p{ max-width:none; }
}
@media (max-width:420px){
  .bento-chips{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  .bento-panel .swap{ animation:none; }
  .bento-chip:hover{ transform:none; }
}

/* ==========================================================================
   MOTION LAYER
   Fixed, behind everything, and never able to receive a click or add a
   pixel of scroll width.
   ========================================================================== */
.fx-neural,.fx-flyers{
  position:fixed; inset:0; width:100%; height:100%;
  pointer-events:none; overflow:hidden; z-index:0;
}
.fx-neural{ z-index:0; opacity:.9; }
.fx-flyers{ z-index:0; }
.fx-fly{
  position:absolute; color:var(--brand); opacity:.085; will-change:transform;
  transform:translate3d(0,0,0);
}
.fx-fly svg{ width:100%; height:auto; display:block; }
/* Everything the reader actually reads sits above the motion. The header
   keeps its own higher layer: it is listed here too, and a later rule of
   equal weight would otherwise drop it underneath main, which puts the open
   navigation behind the page. */
main,.ftr{ position:relative; z-index:1; }
.hdr{ position:sticky; z-index:200; }
.modal-root{ position:fixed; z-index:400; }

.fx-progress{
  position:fixed; top:0; left:0; right:0; height:2px; z-index:300;
  background:linear-gradient(90deg,var(--brand),var(--intel));
  transform:scaleX(0); transform-origin:0 50%; will-change:transform;
}

/* A pointer light for sections that ask for one. */
[data-glow]{ position:relative; isolation:isolate; }
[data-glow]::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(420px circle at var(--gx,50%) var(--gy,50%),
             rgba(238,110,47,.13), transparent 62%);
  opacity:0; transition:opacity var(--d-3) var(--e-out);
}
[data-glow]:hover::before{ opacity:1; }

/* Marquee */
.marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee-track{ display:flex; gap:clamp(1.4rem,3vw,3rem); width:max-content; animation:slide 38s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes slide{ to{ transform:translateX(-50%); } }

[data-par]{ will-change:transform; }

@media (prefers-reduced-motion:reduce){
  .fx-flyers,.fx-neural{ display:none; }
  .marquee-track{ animation:none; }
  .fx-progress{ transition:none; }
}

/* ==========================================================================
   Popup
   ========================================================================== */
.modal-root{ position:fixed; inset:0; z-index:400; display:grid; place-items:center; padding:1.2rem; }
.modal-back{
  position:absolute; inset:0; background:rgba(24,22,20,.42);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; transition:opacity .28s var(--e-out);
}
.modal-root.on .modal-back{ opacity:1; }
.modal{
  position:relative; width:min(430px,100%); border-radius:var(--r-lg);
  padding:clamp(1.6rem,1.2rem + 2vw,2.4rem);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(26px) saturate(1.6); -webkit-backdrop-filter:blur(26px) saturate(1.6);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 50px 90px -40px rgba(24,22,20,.55);
  text-align:center; overflow:hidden;
  opacity:0; transform:translateY(18px) scale(.96);
  transition:opacity .34s var(--e-out), transform .42s var(--e-back);
}
.modal-root.on .modal{ opacity:1; transform:none; }
.modal-art{ position:absolute; top:-26px; right:-34px; width:180px; color:var(--brand); opacity:.12; pointer-events:none; }
.modal-art svg{ width:100%; height:auto; }
.modal-x{
  position:absolute; top:.7rem; right:.7rem; width:32px; height:32px;
  display:grid; place-items:center; border-radius:50%; color:var(--ink-3);
  background:var(--canvas-2); transition:background var(--d-2), color var(--d-2);
}
.modal-x:hover{ background:var(--canvas-3); color:var(--ink); }
.modal-eyebrow{
  display:inline-block; font-family:var(--font-mono); font-size:.68rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--brand-deep);
  background:var(--brand-tint); border:1px solid var(--brand-line);
  padding:.3rem .8rem; border-radius:var(--r-pill); margin-bottom:1rem;
}
.modal h2{ font-size:clamp(1.35rem,1.15rem + 1vw,1.75rem); margin-bottom:.6rem; }
.modal p{ color:var(--ink-2); font-size:.98rem; }
.coupon{
  display:flex; align-items:stretch; width:100%; margin:1.3rem 0 1.1rem;
  border:2px dashed var(--brand-line); border-radius:var(--r);
  background:var(--brand-tint); overflow:hidden;
  transition:border-color var(--d-2), transform var(--d-2) var(--e-out);
}
.coupon:hover{ border-color:var(--brand); transform:translateY(-2px); }
.coupon-code{
  flex:1; padding:.85rem 1rem; font-family:var(--font-mono); font-weight:600;
  font-size:1.1rem; letter-spacing:.1em; color:var(--brand-deep);
}
.coupon-do{
  display:grid; place-items:center; padding:0 1.1rem; font-size:.82rem; font-weight:600;
  background:var(--brand); color:#fff; transition:background var(--d-2);
}
.coupon.copied .coupon-do{ background:var(--ok); }
.modal-cta{ display:grid; gap:.5rem; margin-top:.4rem; }
.modal-cta .btn{ width:100%; }
.modal-terms{ font-size:.74rem; color:var(--ink-4); margin-top:1rem; line-height:1.5; }
@media (prefers-reduced-motion:reduce){
  .modal,.modal-back{ transition:none; opacity:1; transform:none; }
}

/* ==========================================================================
   One dropdown
   Extra support is the only branch with places worth listing, so it is the
   only item that opens. The parent is still a link: hovering reveals the
   children, clicking goes to the page.
   ========================================================================== */
.nav > li.has-menu{ position:relative; }
.nav > li.has-menu > a{ display:inline-flex; align-items:center; gap:.34rem; }
.nav .caret{ width:9px; height:9px; opacity:.55; transition:transform var(--d-2) var(--e-out); }
.nav > li.has-menu.open > a .caret{ transform:rotate(180deg); }
.sub-toggle{ display:none; }

.menu{
  position:absolute; top:calc(100% + .5rem); left:50%; transform:translate(-50%,-8px);
  min-width:290px; padding:.5rem; border-radius:var(--r-lg); z-index:30;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(22px) saturate(1.6); -webkit-backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 26px 60px -30px rgba(24,22,20,.46);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity var(--d-2) var(--e-out), transform var(--d-2) var(--e-out), visibility var(--d-2);
}
.nav > li.has-menu.open .menu,
.nav > li.has-menu:focus-within .menu{ opacity:1; visibility:visible; transform:translate(-50%,0); pointer-events:auto; }
.menu a{
  display:grid; gap:.1rem; padding:.6rem .7rem; border-radius:var(--r);
  transition:background var(--d-1), transform var(--d-1);
}
.menu a:hover{ background:var(--brand-tint); transform:translateX(3px); }
.menu a b{ font-family:var(--font-display); font-size:.9rem; color:var(--ink); font-weight:600; }
.menu a span{ font-size:.78rem; color:var(--ink-3); line-height:1.4; }

@media (max-width:1040px){
  /* Stacked, the parent link keeps its own tap target and the caret button
     beside it is what opens the children. Two jobs, two controls. */
  .nav > li.has-menu{ display:grid; grid-template-columns:1fr auto; align-items:center; }
  .nav > li.has-menu > a{ grid-column:1; }
  .nav > li.has-menu > a .caret{ display:none; }
  .sub-toggle{
    display:grid; place-items:center; grid-column:2; width:44px; height:44px;
    border-bottom:1px solid var(--line); color:var(--ink-3);
  }
  .sub-toggle::before{
    content:""; width:9px; height:9px; border-right:1.8px solid currentColor;
    border-bottom:1.8px solid currentColor; transform:rotate(45deg) translate(-2px,-2px);
    transition:transform var(--d-2) var(--e-out);
  }
  .nav > li.has-menu.open .sub-toggle::before{ transform:rotate(225deg) translate(-3px,-3px); }
  .menu{
    position:static; transform:none; grid-column:1 / -1; min-width:0;
    background:transparent; border:0; box-shadow:none; padding:0 0 .6rem 1rem;
    display:none; opacity:1; visibility:visible; pointer-events:auto;
  }
  .nav > li.has-menu.open .menu{ display:grid; transform:none; }
  .menu a{ padding:.6rem .2rem; }
  .menu a:hover{ background:transparent; transform:none; }
}

/* Build credit */
.ftr .base .credit{ font-size:.8rem; color:var(--ink-4); }
.ftr .base .credit a{ color:var(--ink-3); border-bottom:1px solid var(--line-2); }
.ftr .base .credit a:hover{ color:var(--brand-deep); border-color:var(--brand-line); }

/* ==========================================================================
   Legal documents
   Long text earns a spine: a contents rail that follows where you are, and
   clauses that arrive rather than dumping all at once.
   ========================================================================== */
.legal{ display:grid; grid-template-columns:230px minmax(0,1fr); gap:clamp(1.6rem,1rem + 3vw,4rem); align-items:start; }
.legal-toc{ position:sticky; top:calc(var(--header-h) + 1.6rem); }
.legal-toc h2{
  font-family:var(--font-mono); font-size:.68rem; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink-4); margin-bottom:.9rem;
}
.legal-toc ol{ list-style:none; display:grid; gap:.1rem; max-height:60vh; overflow-y:auto; scrollbar-width:thin; }
.legal-toc a{
  display:block; padding:.36rem .6rem; border-radius:var(--r); font-size:.84rem;
  color:var(--ink-3); border-left:2px solid transparent;
  transition:color var(--d-1), background var(--d-1), border-color var(--d-1);
}
.legal-toc a:hover{ color:var(--ink); background:var(--canvas-2); }
.legal-toc a.on{ color:var(--brand-deep); border-left-color:var(--brand); background:var(--brand-tint); font-weight:600; }

.legal-doc > section{ scroll-margin-top:calc(var(--header-h) + 1.4rem); padding-block:1.4rem; }
.legal-doc > section + section{ border-top:1px solid var(--line); }
.legal-doc h2{
  font-size:clamp(1.12rem,1rem + .5vw,1.34rem); margin-bottom:.7rem;
  display:flex; align-items:baseline; gap:.6rem;
}
.legal-doc h2 .num{
  font-family:var(--font-mono); font-size:.76rem; color:var(--brand);
  letter-spacing:.08em; flex-shrink:0;
}
.legal-doc h3{ font-size:1rem; margin:1.1rem 0 .4rem; color:var(--ink); }
.legal-doc p{ color:var(--ink-2); margin-bottom:.7rem; max-width:70ch; }
.legal-doc ul{ list-style:none; display:grid; gap:.45rem; margin:.3rem 0 .9rem; max-width:70ch; }
.legal-doc ul li{
  display:grid; grid-template-columns:auto 1fr; gap:.6rem; color:var(--ink-2); font-size:.95rem;
}
.legal-doc ul li::before{
  content:""; width:5px; height:5px; border-radius:50%; background:var(--brand-line);
  margin-top:.55rem;
}
.legal-doc strong{ color:var(--ink); font-weight:600; }
.legal-note{
  padding:1rem 1.2rem; border-radius:var(--r-lg); background:var(--brand-tint);
  border:1px solid var(--brand-line); margin:.6rem 0 .9rem;
}
.legal-note p{ margin:0; color:var(--ink-2); font-size:.93rem; }
.legal-meta{
  display:flex; gap:1.4rem; flex-wrap:wrap; font-size:var(--t-xs); color:var(--ink-4);
  padding-bottom:1.2rem; border-bottom:1px solid var(--line); margin-bottom:.6rem;
}
@media (max-width:900px){
  .legal{ grid-template-columns:1fr; }
  .legal-toc{ position:static; }
  .legal-toc ol{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); display:grid; max-height:none; }
}

/* ==========================================================================
   Desk login
   The mockup opens on a sign in screen carrying the Ethio IQ logo, so it is
   immediately obvious whose system this is, then signs itself in and reveals
   the dashboard behind it.
   ========================================================================== */
.desk-stage{ position:relative; }
.desk-login{
  position:absolute; inset:0; z-index:3; border-radius:9px 9px 0 0;
  background:linear-gradient(160deg,#FFF9F4 0%,#FFFFFF 46%,#FDF4EC 100%);
  display:grid; place-items:center; padding:1.2rem;
  transition:opacity .55s var(--e-out), transform .55s var(--e-out);
}
.desk-stage.in .desk-login{ opacity:0; transform:scale(1.04); pointer-events:none; }
.desk-login::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(420px circle at 82% 12%,rgba(238,110,47,.12),transparent 62%);
}
.dl-card{ width:min(232px,100%); text-align:center; position:relative; z-index:1; }
.dl-card > img{ height:22px; width:auto; margin-bottom:.15rem; }
.dl-card .sys{ display:block; font-size:.5rem; letter-spacing:.17em; text-transform:uppercase;
               color:var(--ink-4); font-family:var(--font-mono); margin-bottom:.95rem; }
.dl-card h4{ font-family:var(--font-display); font-size:.78rem; color:#1E2229; margin-bottom:.15rem; }
.dl-card p{ font-size:.56rem; color:#8A9099; margin-bottom:.8rem; }
.dl-field{
  text-align:left; background:#fff; border:1px solid #E4E5E9; border-radius:8px;
  padding:.36rem .55rem; margin-bottom:.4rem; position:relative;
}
.dl-field span{ display:block; font-size:.44rem; letter-spacing:.09em; text-transform:uppercase; color:#A2A8B0; }
.dl-field b{ display:block; font-family:var(--font-mono); font-size:.62rem; color:#2B2F36; min-height:.86em; }
.dl-field.typing{ border-color:var(--brand-line); box-shadow:0 0 0 3px rgba(238,110,47,.09); }
.dl-field b::after{
  content:""; display:inline-block; width:1px; height:.78em; margin-left:1px;
  background:var(--brand); vertical-align:-1px; opacity:0;
}
.dl-field.typing b::after{ opacity:1; animation:caret 1s steps(1) infinite; }
@keyframes caret{ 50%{ opacity:0; } }
.dl-go{
  width:100%; margin-top:.45rem; padding:.44rem; border-radius:8px; background:var(--brand);
  color:#fff; font-size:.6rem; font-weight:700; display:grid; place-items:center;
  position:relative; overflow:hidden;
}
.dl-go.busy{ color:transparent; }
.dl-go.busy::after{
  content:""; position:absolute; width:11px; height:11px; border-radius:50%;
  border:2px solid rgba(255,255,255,.4); border-top-color:#fff;
  animation:spin .6s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.dl-foot{ margin-top:.7rem; font-size:.46rem; color:#A2A8B0; }

@media (prefers-reduced-motion:reduce){
  .desk-login{ transition:none; }
  .dl-field.typing b::after{ animation:none; }
}

/* On a handset the sidebar is a label nobody can read. The dashboard keeps
   the numbers and the chart, which are the parts that carry the point. */
@media (max-width:620px){
  .desk-body{ grid-template-columns:minmax(0,1fr); min-height:0; }
  .desk-side{ display:none; }
  .desk-tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .desk-split{ grid-template-columns:minmax(0,1fr); }
  .desk-chart{ height:70px; }
  .dl-card{ width:min(210px,100%); }
  /* One floating label is a highlight; three on a narrow frame sit on top
     of the very rows they are pointing at. */
  .pop:nth-child(n+2){ display:none; }
}

/* ==========================================================================
   Micro interactions
   Small, cheap, and attached to things a reader already touches. None of it
   moves unless a pointer or the scroll asks it to.
   ========================================================================== */

/* The kicker rule draws itself out rather than simply appearing. */
.kicker::before{ transition:width .6s var(--e-out); }
[data-rise] .kicker::before,.kicker::before{ width:18px; }
.in .kicker::before,.kicker.in::before{ width:26px; }

/* Rows pick up an accent edge and step aside slightly. */
.row-item{ transition:background var(--d-2), transform var(--d-2) var(--e-out); position:relative; }
.row-item::after{
  content:""; position:absolute; left:0; top:12%; bottom:12%; width:2px;
  background:var(--brand); border-radius:2px;
  transform:scaleY(0); transform-origin:center; transition:transform var(--d-3) var(--e-out);
}
.row-item:hover{ background:rgba(255,255,255,.55); transform:translateX(5px); }
.row-item:hover::after{ transform:scaleY(1); }
.row-item .rn{ transition:color var(--d-2); }
.row-item:hover .rn{ color:var(--brand); }

/* Cards lift, and their icon chip warms up. */
.card{ transition:transform var(--d-3) var(--e-out), box-shadow var(--d-3), border-color var(--d-2); }
.card.hoverable:hover{ transform:translateY(-4px); box-shadow:var(--sh-2,0 14px 34px rgba(20,22,26,.1)); }
.card.hoverable:hover .ic{ background:var(--brand-tint); color:var(--brand-deep); }
.card .ic{ transition:background var(--d-2), color var(--d-2), transform var(--d-2) var(--e-back); }
.card.hoverable:hover .ic{ transform:translateY(-2px) rotate(-4deg); }

/* The text arrow actually travels. */
.btn-text .ar{ display:inline-block; transition:transform var(--d-2) var(--e-out); }
.btn-text:hover .ar{ transform:translateX(5px); }

/* Primary buttons get a light that sweeps once on hover. */
.btn-primary{ position:relative; overflow:hidden; }
.btn-primary::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.3) 50%,transparent 60%);
  transform:translateX(-120%); transition:transform .7s var(--e-out);
}
.btn-primary:hover::after{ transform:translateX(120%); }

/* Tags settle in one after another and lift under the pointer. */
.tag{ transition:transform var(--d-2) var(--e-out), border-color var(--d-2), background var(--d-2); }
.tag:hover{ transform:translateY(-2px); border-color:var(--brand-line); background:var(--brand-tint); }

/* The accordion marker turns, and the row warms as it opens. */
.acc-item{ transition:background var(--d-2); border-radius:var(--r); }
.acc-item.open{ background:rgba(255,255,255,.5); }
.acc-btn{ padding-inline:.6rem; }

/* Footer links step across. */
.ftr a{ transition:color var(--d-1), transform var(--d-1) var(--e-out); display:inline-block; }
.ftr ul a:hover{ transform:translateX(3px); }

/* A quiet cue that there is more below, on the first screen only. */
.cue{
  display:inline-flex; align-items:center; gap:.5rem; margin-top:2rem;
  font-size:var(--t-xs); color:var(--ink-4); letter-spacing:.06em; text-transform:uppercase;
  font-family:var(--font-mono);
}
.cue i{
  width:1px; height:26px; background:linear-gradient(var(--brand),transparent);
  animation:cueDrop 1.9s var(--e-inout) infinite;
}
@keyframes cueDrop{
  0%  { transform:scaleY(0); transform-origin:top; }
  45% { transform:scaleY(1); transform-origin:top; }
  55% { transform:scaleY(1); transform-origin:bottom; }
  100%{ transform:scaleY(0); transform-origin:bottom; }
}

@media (hover:none){
  .row-item:hover,.card.hoverable:hover{ transform:none; }
}
@media (prefers-reduced-motion:reduce){
  .btn-primary::after,.cue i{ animation:none; display:none; }
  .row-item:hover,.card.hoverable:hover,.tag:hover{ transform:none; }
}
