/* Feature tiles, pop-ups and the little animated demos. Every demo is plain CSS, loops quietly, and stops for people who ask for reduced motion. */
:root { --ok: #17724a; }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 11px; border-radius: 99px; width: max-content; }
.chip.st-now { background: var(--success-bg); color: var(--ok); } .chip.st-soon { background: #e8e6ff; color: var(--brand); }

/* ---- hero on small screens ---- */
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero { padding-top: 28px; } .hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); } .collage { gap: 14px; max-width: 100%; margin: 8px auto 0; } .h-pill { max-width: 3.4em; }
  .hero-copy .lede { font-size: 1.05rem; } .cta-row .btn { flex: 1 1 150px; } .made-for { font-size: .88rem; } }
@media (max-width: 420px) { .collage { gap: 10px; } .h-line { gap: 10px; } .notice { margin-top: 12px; } }

/* ---- Manage your school: the list and the shuffling cards ---- */
.rows button { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 0; padding: 15px 20px; background: var(--card); color: var(--ink-2); border: 1px solid var(--border); border-radius: 12px; font: 400 1.02rem var(--font); text-align: left; transition: border-color .3s var(--e), color .3s var(--e), transform .3s var(--e), box-shadow .3s var(--e); }
.rows button:hover { border-color: var(--brand); color: var(--brand); transform: translateX(4px); background: var(--card); box-shadow: none; } .rows button .i { flex: none; }
.rows { max-width: 540px; gap: 9px; }
.shuffle { position: relative; background: #f9f9f9; border-radius: 22px; min-height: 440px; overflow: hidden; }
.sc { position: absolute; left: 11%; right: 11%; top: 38%; background: var(--card); border-radius: 22px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 16px 50px rgba(28, 32, 64, .1); animation: shuffle 15s cubic-bezier(.5, 0, .2, 1) infinite; animation-delay: calc(var(--k) * 3s - 15s); will-change: transform, opacity; }
.sc > b { font-size: 1.15rem; font-weight: 500; } .sc .soon { color: var(--brand); font-weight: 600; font-size: .72rem; background: #e8e6ff; padding: 3px 10px; border-radius: 99px; width: max-content; }
.sc .view { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; } .sc .view .ok { font-style: normal; background: var(--success-bg); color: var(--ok); padding: 2px 10px; border-radius: 99px; font-size: .75rem; }
.sc .fee strong { font-size: 1.5rem; display: block; } .sc .fee small { color: var(--ink-2); } .prog { height: 6px; background: var(--track); border-radius: 6px; margin-top: 10px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.mini-rc { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: .9rem; } .mini-rc i { font-style: normal; font-weight: 700; color: var(--brand); }
.qrow { display: flex; gap: 8px; } .qdot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); } .qdot.on { background: var(--brand); border-color: var(--brand); }
@keyframes shuffle {
  0%, 16% { transform: translateY(0) scale(1); opacity: 1; z-index: 5; }
  20% { transform: translateY(70px) rotate(3deg) scale(1.03); opacity: 0; z-index: 5; }
  21%, 36% { transform: translateY(-72px) scale(.76); opacity: 0; z-index: 1; }
  40%, 56% { transform: translateY(-54px) scale(.82); opacity: .4; z-index: 2; }
  60%, 76% { transform: translateY(-36px) scale(.88); opacity: .65; z-index: 3; }
  80%, 96% { transform: translateY(-18px) scale(.94); opacity: .85; z-index: 4; }
  100% { transform: translateY(0) scale(1); opacity: 1; z-index: 5; }
}
@media (max-width: 900px) { .shuffle { min-height: 400px; } }

/* ---- the filter and the tiles ---- */
.ftools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.ftools h3 { margin: 0; font-size: 1.6rem; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { min-height: 0; padding: 9px 16px; border-radius: 99px; background: var(--card); color: var(--ink); border: 1px solid var(--border); font: 500 .88rem var(--font); display: inline-flex; gap: 8px; align-items: center; transition: all .25s var(--e); }
.fchip span { background: var(--soft); border-radius: 99px; padding: 1px 8px; font-size: .75rem; color: var(--ink-2); }
.fchip:hover { background: var(--card); border-color: var(--brand); box-shadow: none; transform: none; } .fchip.on { background: var(--brand); color: #fff; border-color: var(--brand); } .fchip.on span { background: rgba(255, 255, 255, .22); color: #fff; }
.fgrid2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ftile { display: flex; flex-direction: column; text-align: left; padding: 0; min-height: 0; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 28px; overflow: hidden; cursor: pointer; font: inherit; transition: transform .6s var(--e), box-shadow .6s var(--e), border-color .6s var(--e); }
.ftile[hidden] { display: none; }
.ftile:hover { background: var(--card); transform: translateY(-6px); box-shadow: 0 28px 70px rgba(28, 32, 64, .13); border-color: var(--brand); }
.ftile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ft-art { background: #f4f4f8; min-height: 190px; display: grid; place-items: center; padding: 22px 16px; overflow: hidden; }
.ft-body { display: grid; gap: 8px; padding: 20px 22px 22px; justify-items: start; } .ft-body b { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.ft-blurb { color: var(--ink-2); line-height: 1.45; font-size: .95rem; } .ft-more { color: var(--brand); font-weight: 500; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.ft-more .i { width: 16px; height: 16px; transition: transform .3s var(--e); } .ftile:hover .ft-more .i { transform: translateX(4px); }
@media (max-width: 980px) { .fgrid2 { grid-template-columns: 1fr 1fr; } } @media (max-width: 620px) { .fgrid2 { grid-template-columns: 1fr; } }

/* ---- the pop-up ---- */
.fdlg { background: var(--card); border: 0; padding: 0; border-radius: 28px; width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 120px rgba(15, 14, 36, .45); color: var(--ink); }
.fdlg::backdrop { background: rgba(20, 18, 46, .6); backdrop-filter: blur(8px); }
.fdlg[open] { display: grid; grid-template-columns: 1fr 1fr; animation: dlg-in .45s cubic-bezier(.2, .9, .3, 1); }
.fdlg[open]::backdrop { animation: fade .4s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.fdlg > form { position: absolute; top: 14px; right: 14px; z-index: 2; } .fclose { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--border); display: grid; place-items: center; }
.fclose:hover { background: var(--soft); box-shadow: none; transform: rotate(90deg); }
.fdlg-art { background: #f1f1f7; display: grid; place-items: center; padding: 36px 24px; min-height: 320px; }
.fdlg-art .demo { transform: scale(1.18); }
.fdlg-body { padding: 40px 36px 36px; display: grid; gap: 14px; align-content: center; justify-items: start; } .fdlg-body h3 { font-size: 1.8rem; margin: 0; } .fdlg-body p { color: var(--ink-2); line-height: 1.6; margin: 0; }
.fdlg-body .checks { margin: 4px 0 8px; } .fdlg-body .fine { background: #fff7ea; color: #7a4e00; padding: 10px 14px; border-radius: 12px; font-size: .88rem; }
@media (max-width: 760px) { .fdlg[open] { grid-template-columns: 1fr; } .fdlg-art { min-height: 220px; padding: 30px 16px 20px; } .fdlg-art .demo { transform: none; } .fdlg-body { padding: 24px 22px 26px; } }

/* ---- the demos ---- */
.demo { position: relative; display: grid; place-items: center; width: 100%; font-size: .8rem; color: var(--ink); }
.demo b { font-weight: 600; }
@keyframes rise-in { 0% { opacity: 0; transform: translateY(10px); } 10%, 82% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes pop-in2 { 0% { opacity: 0; transform: scale(.6); } 10%, 82% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes grow-x { 0% { transform: scaleX(0); } 14%, 82% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
.mt-table { background: var(--card); border-radius: 14px; padding: 12px 16px; display: grid; gap: 8px; min-width: 230px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); font-variant-numeric: tabular-nums; }
.mt-head, .mt-row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 8px; align-items: center; } .mt-head { color: var(--ink-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.mt-row span:not(:first-child) { background: var(--soft); border-radius: 99px; text-align: center; padding: 2px 0; } .mt-row span:last-child { background: none; color: var(--brand); font-weight: 700; }
.mt-row { animation: rise-in 7s infinite backwards; animation-delay: calc(var(--i) * .5s + .2s); }
.mt-tag { position: absolute; right: 10px; bottom: -4px; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--ok); background: var(--success-bg); padding: 3px 10px; border-radius: 99px; animation: pop-in2 7s infinite backwards; animation-delay: 2s; }
.mt-map { background: var(--card); border-radius: 14px; padding: 12px 16px; display: grid; gap: 9px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); }
.mt-maprow { display: grid; grid-template-columns: auto 18px auto; gap: 8px; align-items: center; animation: rise-in 7s infinite backwards; animation-delay: calc(var(--i) * .6s + .2s); }
.mt-maprow code { background: var(--soft); border-radius: 99px; padding: 3px 10px; font: 600 .74rem ui-monospace, Consolas, monospace; } .mt-maprow i { color: var(--brand); font-style: normal; }
.mt-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: start; }
.mt-flow li { background: var(--card); padding: 7px 16px; border-radius: 99px; font-weight: 600; box-shadow: 0 6px 18px rgba(28, 32, 64, .08); animation: lit 8s infinite; animation-delay: calc(var(--i) * 1.4s); }
.mt-flow li:nth-child(2) { margin-left: 18px; } .mt-flow li:nth-child(3) { margin-left: 36px; } .mt-flow li:nth-child(4) { margin-left: 54px; }
@keyframes lit { 0%, 4% { background: var(--card); color: var(--ink); } 10%, 40% { background: var(--brand); color: #fff; transform: scale(1.05); } 52%, 100% { background: var(--card); color: var(--ink); transform: none; } }
.mt-card { position: relative; background: var(--card); border-radius: 14px; padding: 12px 16px; width: 230px; display: grid; gap: 8px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); }
.mc-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-soft); padding-bottom: 8px; } .mc-head span { color: #52525b; }
.mc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; animation: rise-in 7s infinite backwards; animation-delay: calc(var(--i) * .5s + .2s); } .mc-row b { color: var(--brand); }
.mc-foot { display: flex; justify-content: space-between; background: var(--soft); border-radius: 10px; padding: 7px 10px; color: var(--ink-2); }
.mc-stamp { position: absolute; right: -8px; top: -12px; border: 2px solid #d9480f; color: #d9480f; font-weight: 800; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--card); transform: rotate(8deg); animation: stamp 7s infinite backwards; animation-delay: 2.2s; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(8deg) scale(2); } 8%, 82% { opacity: 1; transform: rotate(8deg); } 96%, 100% { opacity: 0; } }
.mt-phone { width: 190px; background: #14122e; color: #fff; border-radius: 22px; padding: 18px 16px 16px; display: grid; gap: 4px; box-shadow: 0 20px 50px rgba(20, 18, 46, .3); animation: phone-up 7s infinite; }
.mt-phone i { width: 34px; height: 4px; border-radius: 4px; background: #3a376b; margin: -8px auto 10px; } .mt-phone small { color: #a9a5d0; } .mt-phone span { margin-top: 8px; background: var(--accent); text-align: center; border-radius: 99px; padding: 8px; font-weight: 600; animation: pulse 2.4s infinite; }
@keyframes phone-up { 0% { opacity: 0; transform: translateY(24px); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } } @keyframes pulse { 50% { transform: scale(1.05); } }
.mt-bands { background: var(--card); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; min-width: 220px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); }
.mb-row { display: grid; grid-template-columns: 22px 62px 1fr; gap: 8px; align-items: center; } .mb-row b { color: var(--brand); font-size: 1rem; } .mb-row span { color: var(--ink-2); }
.mb-row i { display: block; height: 8px; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--brand), #3f87fe); transform-origin: left; animation: grow-x 7s infinite backwards; animation-delay: calc(var(--i) * .35s + .2s); }
.mt-ring { position: relative; width: 150px; height: 150px; } .mt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .mt-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; } .mt-ring .bg { stroke: #e3e4ef; }
.mt-ring .fg { stroke: var(--brand); stroke-dasharray: 301.6; stroke-dashoffset: calc(301.6 * (1 - var(--v) / 100)); animation: ring-fill 6s ease-in-out infinite; }
@keyframes ring-fill { 0% { stroke-dashoffset: 301.6; } 30%, 85% { stroke-dashoffset: calc(301.6 * (1 - var(--v) / 100)); } 100% { stroke-dashoffset: 301.6; } }
.mt-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .mt-ring span b { font-size: 1.6rem; } .mt-ring small { color: var(--ink-2); font-size: .7rem; max-width: 80px; }
.mt-radar { position: relative; width: 190px; height: 170px; } .mt-radar svg { width: 100%; height: 100%; } .mt-radar .web { fill: none; stroke: #d6d8e6; } .mt-radar .shape { fill: rgba(61, 53, 140, .25); stroke: var(--brand); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: radar 6s ease-in-out infinite; }
@keyframes radar { 0%, 100% { transform: scale(.35); } 35%, 75% { transform: scale(1); } 55% { transform: scale(.85) rotate(4deg); } }
.mt-radar .ax { position: absolute; font-size: .66rem; color: #3f3f46; background: var(--card); padding: 1px 6px; border-radius: 6px; } .ax.a1 { top: -2px; left: 50%; translate: -50% 0; } .ax.a2 { top: 28%; right: -10px; } .ax.a3 { bottom: 4px; right: 6px; } .ax.a4 { bottom: 4px; left: 6px; } .ax.a5 { top: 28%; left: -10px; }
.mt-xp { background: var(--card); border-radius: 16px; padding: 16px 20px; display: grid; gap: 10px; min-width: 210px; text-align: center; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); }
.flame { font-size: 2rem; display: grid; justify-items: center; animation: bob2 2.2s ease-in-out infinite; } .flame b { font-size: 1.4rem; line-height: 1; } .flame small { color: var(--ink-2); }
.xpbar { height: 10px; background: var(--track); border-radius: 10px; overflow: hidden; } .xpbar i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, #ffd23f, #f18820); border-radius: 10px; transform-origin: left; animation: grow-x 5s infinite; }
.xplabel { color: var(--ok); font-weight: 600; animation: rise-in 5s infinite backwards; animation-delay: 1.2s; } @keyframes bob2 { 50% { transform: translateY(-5px) scale(1.05); } }
.mt-feed { display: grid; gap: 9px; min-width: 230px; } .mf-item { background: var(--card); border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 22px rgba(28, 32, 64, .08); animation: slide-in 7s infinite backwards; animation-delay: calc(var(--i) * .8s + .2s); }
.mf-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; } @keyframes slide-in { 0% { opacity: 0; transform: translateX(30px); } 10%, 82% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.mt-notes { display: grid; gap: 8px; justify-items: center; } .mt-notes .files { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .mt-notes .files span { background: var(--card); border-radius: 8px; padding: 5px 10px; font-weight: 600; font-size: .72rem; box-shadow: 0 6px 16px rgba(28, 32, 64, .1); animation: drop 6s infinite backwards; animation-delay: calc(var(--i) * .4s); }
.mt-notes .arrow { font-style: normal; color: var(--brand); animation: bob2 1.6s infinite; } .mt-notes .doc { background: var(--card); border-radius: 10px; padding: 12px 14px; width: 190px; display: grid; gap: 7px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); }
.mt-notes .doc p { margin: 0; height: 7px; border-radius: 6px; background: #d9dbe6; transform-origin: left; animation: grow-x 6s infinite; } .mt-notes .doc p:nth-child(2) { width: 80%; animation-delay: .5s; } .mt-notes .doc p:nth-child(3) { width: 55%; animation-delay: 1s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-14px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mt-quiz { background: var(--card); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; width: 230px; box-shadow: 0 10px 30px rgba(61, 53, 140, .12); position: relative; }
.qbar { height: 5px; background: var(--track); border-radius: 5px; overflow: hidden; } .qbar i { display: block; height: 100%; width: 60%; background: var(--brand); transform-origin: left; animation: grow-x 7s infinite; }
.qopt { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 12px; } .qopt.right { animation: pick 7s infinite; }
@keyframes pick { 0%, 30% { border-color: var(--line); background: var(--card); } 40%, 85% { border-color: var(--green); background: var(--success-bg); } 100% { border-color: var(--line); background: var(--card); } }
.qdone { position: absolute; right: 12px; top: -12px; font-style: normal; font-weight: 700; font-size: .72rem; color: #fff; background: var(--green); padding: 3px 10px; border-radius: 99px; animation: pop-in2 7s infinite backwards; animation-delay: 2.6s; }
.mt-flash { display: grid; gap: 10px; justify-items: center; perspective: 700px; } .fc { position: relative; width: 210px; height: 120px; transform-style: preserve-3d; animation: flip 6s ease-in-out infinite; }
.face { position: absolute; inset: 0; backface-visibility: hidden; background: var(--card); border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 600; box-shadow: 0 12px 34px rgba(61, 53, 140, .16); } .face.back { transform: rotateY(180deg); background: var(--brand); color: #fff; font-size: 1.3rem; }
.mt-flash small { color: var(--ink-2); } @keyframes flip { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* ---- the three stories ---- */
.stories { display: grid; gap: clamp(48px, 7vw, 100px); padding: clamp(56px, 8vw, 110px) 0 0; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; } .story.flip > :first-child { order: 2; }
.story-art { background: #f4f4f8; border-radius: 32px; min-height: 340px; display: grid; place-items: center; padding: 30px; overflow: hidden; } .story-art .demo { transform: scale(1.3); }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 14px 0 12px; } .story p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0 0 18px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story.flip > :first-child { order: 0; } .story-art { min-height: 260px; } .story-art .demo { transform: scale(1.08); } }

/* ---- How it works: centred in the panel, with cards that move ---- */
.how-panel { padding: 72px 0 80px; }
.how-cards { margin: 0 auto; max-width: 1040px; padding: 0 clamp(18px, 4vw, 40px); align-items: stretch; }
.how + .split, .how + .pricing-sec { padding-top: clamp(56px, 8vw, 110px); }
.hcard { position: relative; border-radius: 22px; padding: 18px 18px 26px; transition: transform .5s var(--e), box-shadow .5s var(--e); cursor: default; }
.hcard:hover, .hcard:focus-visible { transform: translateY(-10px); box-shadow: 0 30px 70px rgba(10, 8, 40, .35); outline: none; }
.hcard:focus-visible { box-shadow: 0 0 0 3px #fff, 0 30px 70px rgba(10, 8, 40, .35); }
.how-art { height: 230px; border-radius: 14px; }
.phone-art { background: #7a7cff; align-items: end; overflow: hidden; }
.hp-phone { width: 138px; height: 190px; background: var(--card); border-radius: 22px 22px 0 0; border: 5px solid #1c2040; border-bottom: 0; padding: 14px 12px; display: grid; gap: 9px; align-content: start; margin-bottom: -2px; position: relative; top: 10px; } .hp-phone .notch { width: 40px; height: 6px; border-radius: 6px; background: #1c2040; margin: -6px auto 2px; }
.hp-phone b { font-size: .78rem; line-height: 1.1; } .fld { height: 20px; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; display: block; } .fld u { display: block; height: 100%; width: 100%; background: #e8e6ff; transform-origin: left; animation: grow-x 5s infinite; } .f2 u { animation-delay: .7s; width: 70%; } .f3 u { animation-delay: 1.4s; width: 85%; }
.hp-phone .go { background: var(--brand); color: #fff; font-size: .62rem; text-align: center; border-radius: 99px; padding: 6px 0; animation: pulse 2.4s infinite; }
.sheet { display: grid; gap: 10px; width: 150px; height: auto; padding: 16px; border-radius: 20px; grid-template-columns: none; grid-template-rows: none; }
.sheet .r { display: flex; align-items: center; gap: 10px; } .sheet .r i { width: 24px; height: 24px; border-radius: 7px; flex: none; transition: transform .3s; } .sheet .r b { display: block; flex: 1; height: 9px; border-radius: 9px; background: #8b97ab; box-shadow: none; transform-origin: left; animation: grow-x 5s infinite; }
.sheet .r:nth-child(2) b { animation-delay: .6s; } .sheet .r:nth-child(3) b { animation-delay: 1.2s; } .hcard:hover .sheet .r i { transform: rotate(-8deg) scale(1.12); }
.sheet i.y { background: #ffc040; } .sheet i.b { background: #3dc0f0; } .sheet i.p { background: #c96ee0; }
.launch-art .rocket { transition: transform .9s cubic-bezier(.3, .8, .2, 1); animation: lift 3.4s ease-in-out infinite; } .hcard:hover .rocket, .hcard:focus-visible .rocket { animation: none; transform: translateY(-46px) scale(1.12); }
.rocket .flame { transform-box: fill-box; transform-origin: top; animation: flick .3s infinite alternate; } @keyframes flick { to { transform: scaleY(1.35); } }
@media (max-width: 900px) { .how-panel { padding: 56px 0 40px; } }

/* ---- Pricing on the home page ---- */
.pricing-sec { padding: clamp(56px, 8vw, 110px) 0 0; }
.pricing-sec .pkgs { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .demo *, .sc, .hcard *, .fdlg { animation: none !important; }
  .sc { opacity: 0; } .sc[style*="--k:0"] { opacity: 1; position: relative; inset: auto; margin: 40px auto; max-width: 78%; }
}
.fdlg-body { background: var(--card); }
@media (max-width: 480px) { .cta-row { flex-direction: column; align-items: stretch; gap: 10px; } .cta-row .btn { width: 100%; white-space: nowrap; justify-content: center; } .made-for { align-items: flex-start; } .made-for .i { flex: none; margin-top: 3px; } }

/* ===== Optimisation and proportion pass ===== */
:root { --sec: clamp(56px, 8vw, 112px); --gap: clamp(14px, 2vw, 22px); }
.demo, .demo * { animation-play-state: paused !important; }
.demo-on .demo, .demo-on .demo *, dialog[open] .demo, dialog[open] .demo * { animation-play-state: running !important; }
.shuffle:not(.demo-on) .sc, .how-panel:not(.demo-on) * { animation-play-state: paused; }
.stories, .serve, .split, .safe, .faq, .pricing-sec { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* grids that stay in proportion */
.fgrid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gap); }
.ft-art { aspect-ratio: 16 / 10; min-height: 0; }
.ftile { height: 100%; }
.ft-body { align-content: start; }
.manage { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.shuffle { min-height: 0; aspect-ratio: 5 / 4; height: auto; }
.serve-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; gap: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); }
.serve-grid img { height: auto; aspect-ratio: 16 / 9; }
.story-art { aspect-ratio: 4 / 3; min-height: 0; }
.how-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pkgs { gap: var(--gap); }
.stories { padding-top: var(--sec); } .features, .serve, .pricing-sec, .faq { padding-top: var(--sec); } .split, .safe { padding: var(--sec) 0; } .faq { padding-bottom: var(--sec); }
.sect-head { margin-bottom: clamp(28px, 5vw, 48px); }
.path { list-style: none; counter-reset: p; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.path li { counter-increment: p; background: var(--soft); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; position: relative; font-size: .86rem; }
.path li::before { content: counter(p); position: absolute; right: 10px; top: 8px; font-size: .7rem; color: var(--ink-2); } .path li b { font-weight: 600; } .path li span { color: var(--ink-2); font-size: .76rem; line-height: 1.3; }
.mt-radar { width: 210px; height: 190px; } .mt-radar .shape.base { fill: none; stroke: #9aa1b9; stroke-dasharray: 3 3; stroke-width: 1.4; animation: none; transform: none; }
.mt-radar .leg { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--ink-2); white-space: nowrap; } .mt-radar .leg i { width: 12px; height: 0; border-top: 2px dashed #9aa1b9; } .mt-radar .leg i.e { border-top: 3px solid var(--brand); margin-left: 8px; }

/* tablets */
@media (max-width: 980px) { .fgrid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .manage { grid-template-columns: minmax(0, 1fr); } .shuffle { aspect-ratio: 4 / 3; max-width: 560px; width: 100%; margin: 0 auto; } .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phones: the 17 features become a swipeable row so the page stays short */
@media (max-width: 640px) {
  :root { --sec: 52px; }
  .wrap { width: calc(100% - 32px); }
  .ftools { flex-direction: column; align-items: stretch; gap: 12px; } .ftools h3 { font-size: 1.35rem; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; } .fchips::-webkit-scrollbar { display: none; } .fchip { flex: none; }
  .serve-grid { grid-template-columns: minmax(0, 1fr); } .story-art { aspect-ratio: 5 / 4; padding: 18px; } .story-art .demo { transform: scale(1); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sect-head h2, .story h2 { font-size: 1.7rem; }
  .manage-h { font-size: 2rem; } .manage-p { font-size: 1.05rem; } .shuffle { aspect-ratio: 1 / 1; }
  .hcard { padding: 14px 14px 22px; } .how-art { height: 200px; } .how-panel { border-radius: 30px; padding: 44px 0 28px; }
  .partner-line { font-size: 1.25rem; } .spark { display: none; }
  .pkg { padding: 26px 22px; } .match { padding: 18px; } .match-row { grid-template-columns: 1fr 20px 1fr; }
  .fdlg[open] { grid-template-columns: minmax(0, 1fr); border-radius: 22px; } .fdlg-body h3 { font-size: 1.45rem; }
}
@media (max-width: 380px) { .path { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 2.3rem; } }

/* ===== Corrections: aligned grids, equal tiles, a clean list on phones ===== */
.ftile { width: 100%; }
.manage > * { min-width: 0; } .shuffle { align-self: center; width: 100%; max-width: none; }
.ft-ico { display: none; }
.ft-art { aspect-ratio: 16 / 10; overflow: hidden; }
.ft-art .demo { transform: scale(.88); transform-origin: center; }
.mt-radar { width: 210px; height: 200px; } .mt-radar svg { height: 168px; } .mt-radar .leg { bottom: 0; }
@media (max-width: 640px) {
  .fgrid2 { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; overflow: visible; margin: 0; padding: 0; gap: 10px; scroll-snap-type: none; }
  .ftile { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; position: relative; height: auto; }
  .ft-art, .ft-more { display: none; }
  .ft-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); } .ft-ico .i { width: 22px; height: 22px; }
  .ft-body { padding: 0 22px 0 0; gap: 3px; flex: 1; min-width: 0; } .ft-body b { font-size: 1.05rem; }
  .ft-blurb { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ftile::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-top: 2px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }
  .chip { font-size: .66rem; padding: 2px 9px; }
}
.ftile { align-items: stretch; justify-content: flex-start; }
@media (max-width: 640px) { .ftile { align-items: center; } }
@media (min-width: 641px) and (max-width: 1100px) { .ft-art { aspect-ratio: 16 / 11; } .ft-art .demo { transform: scale(.8); } }

/* ===== Fee payment demo: money and a payment, not a ring ===== */
.mt-pay { position: relative; width: 236px; background: var(--card); border-radius: 18px; padding: 16px 18px 14px; display: grid; gap: 10px; box-shadow: 0 12px 34px rgba(61, 53, 140, .14); overflow: hidden; }
.pay-top small { display: block; color: var(--ink-2); } .pay-top b { font-size: 1.5rem; letter-spacing: -.02em; }
.pay-card { position: relative; height: 62px; border-radius: 12px; background: linear-gradient(135deg, #1c2040, #3d358c); color: #fff; padding: 10px 12px; display: grid; align-content: space-between; font-size: .7rem; animation: card-tilt 5s ease-in-out infinite; }
.chipc { width: 22px; height: 15px; border-radius: 4px; background: linear-gradient(135deg, #ffd23f, #f18820); } .pay-card i { font-style: normal; letter-spacing: .08em; } .pay-card em { position: absolute; right: 12px; bottom: 10px; font-style: normal; opacity: .8; }
.coins { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; }
.coins i { position: absolute; top: -22px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe27a, #f1a520); color: #7a4e00; font-style: normal; font-weight: 700; font-size: .72rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); opacity: 0; animation: coin-drop 5s infinite; }
.coins i:nth-child(1) { left: 24%; animation-delay: .6s; } .coins i:nth-child(2) { left: 52%; animation-delay: .9s; } .coins i:nth-child(3) { left: 74%; animation-delay: 1.2s; }
.pay-btn { position: relative; height: 38px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 600; display: grid; place-items: center; overflow: hidden; animation: pay-press 5s infinite; }
.pay-btn em { position: absolute; font-style: normal; } .pay-btn .paid { opacity: 0; animation: paid-in 5s infinite; } .pay-btn .pay { animation: pay-out 5s infinite; }
.pay-receipt { display: flex; align-items: center; gap: 8px; background: var(--success-bg); color: var(--ok); border-radius: 10px; padding: 7px 10px; font-size: .74rem; font-weight: 600; animation: receipt 5s infinite; } .pay-receipt span { width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .6rem; }
@keyframes coin-drop { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 40% { opacity: 1; transform: translateY(150px) rotate(240deg); } 48%, 100% { opacity: 0; transform: translateY(170px) scale(.5); } }
@keyframes card-tilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
@keyframes pay-press { 0%, 40% { background: var(--brand); transform: none; } 44% { transform: scale(.96); } 50%, 90% { background: var(--green); transform: none; } 100% { background: var(--brand); } }
@keyframes pay-out { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } } @keyframes paid-in { 0%, 46% { opacity: 0; transform: translateY(8px); } 54%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes receipt { 0%, 52% { opacity: 0; transform: translateY(12px); } 62%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ===== Pop-up: picture on the left, words and checklist on the right ===== */
.fdlg { width: min(960px, calc(100vw - 24px)); }
.fdlg[open] { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.fdlg-art { padding: 36px 22px; min-height: 0; align-self: stretch; } .fdlg-art .demo { transform: scale(1.12); }
.fdlg-body { padding: 40px 38px; }
@media (max-width: 760px) { .fdlg[open] { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } .fdlg-art { padding: 28px 12px; } .fdlg-art .demo { transform: scale(.92); } .fdlg-body { padding: 28px 22px; gap: 10px; } .fdlg-body h3 { font-size: 1.4rem; } }
@media (max-width: 560px) { .fdlg[open] { grid-template-columns: minmax(0, 1fr); } .fdlg-art { padding: 34px 16px 18px; } .fdlg-art .demo { transform: none; } }
.fdlg-art .demo.d-pay, .fdlg-art .demo.d-card, .fdlg-art .demo.d-quiz { transform: scale(1.28); }
@media (max-width: 760px) { .fdlg-art .demo.d-pay, .fdlg-art .demo.d-card, .fdlg-art .demo.d-quiz { transform: scale(1); } }

/* ===== Phone fixes: true proportions, stacked cards, sensible buttons ===== */
.collage img { height: auto; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.how-art, .ft-art, .story-art { max-width: 100%; }
@media (max-width: 700px) { .how-cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; padding-left: 20px; padding-right: 20px; gap: 16px; } }
@media (max-width: 900px) { .cta-row .btn { flex: 0 0 auto; } .how-art { height: 190px; } .hcard h3 { font-size: 1.25rem; } }
@media (max-width: 480px) {
  .cta-row .btn { flex: 0 0 auto; min-height: 52px; height: auto; padding-top: 0; padding-bottom: 0; }
  .how-panel { margin: 0 -4px; }
}
@media (max-width: 640px) { .ftools { flex-wrap: nowrap; } .ftools > * { min-width: 0; max-width: 100%; } .fchips { max-width: calc(100% + 32px); } }

/* ScholarTab demo: a board in the classroom and a tablet at home */
.mt-device { position: relative; width: 250px; height: 170px; }
.dv-board { position: absolute; left: 0; top: 0; width: 190px; height: 118px; border-radius: 12px; border: 6px solid var(--deep); background: var(--card); padding: 12px; display: grid; gap: 7px; align-content: start; box-shadow: 0 10px 30px rgba(61, 53, 140, .14); }
.dv-board i { width: 28px; height: 6px; border-radius: 4px; background: var(--accent); }
.dv-board b { font-size: .8rem; color: var(--deep); }
.dv-board span { height: 7px; border-radius: 4px; background: #e8e9f2; } .dv-board span + span { width: 60%; }
.dv-tab { position: absolute; right: 0; bottom: 0; width: 112px; height: 140px; border-radius: 14px; border: 5px solid var(--deep); background: var(--brand-soft, #e8e4ff); padding: 12px 10px; display: grid; gap: 6px; align-content: start; box-shadow: 0 12px 32px rgba(28, 32, 64, .2); }
.dv-tab b { font-size: .72rem; color: var(--deep); line-height: 1.25; }
.dv-tab span { height: 7px; border-radius: 4px; background: rgba(61, 53, 140, .3); }

/* ScholarTab band */
.scholartab { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-top: 72px; padding: 48px; border-radius: 32px;
  background: linear-gradient(135deg, #f1efff, #fff5ea); }
.scholartab .st-art { display: grid; place-items: center; min-height: 220px; }
.scholartab h2 { margin-top: 10px; }
.scholartab .fine { color: var(--ink-2); font-size: .95rem; }
.btn.ghost-dark { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
@media (max-width: 820px) { .scholartab { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; } }

/* Phones and tablets: the floating header is about 100px tall (70px bar + 30px gap above it), so the hero's content starts below it.
   An earlier rule here set a 28px top padding that left the first lines of the hero hidden under the header. */
@media (max-width: 900px) {
  .hero { margin-top: -100px; padding-top: calc(100px + 28px); }
}
