/* daheeh.com, the home page only. Loaded after landing.css, which still dresses the camera, the "what to make" sheet
   and the shared tokens. One loud maroon block with the action in it, a chunky headline, the face as a giant mascot,
   then a dark page with colour cards. Wine, gold, white, and one cool blue for relief. */
:root {
  --bg: #0C0709; --surface: #1A0F13; --surface-2: #26171C; --border: #3B2730; --text: #F4F5F8; --muted: #A9A6B0;
  --primary: #B02A45; --primary-hi: #8B1A2E; --accent: #E9B949; --success: #3DB37C; --danger: #FF6B6B;
  --gold: #E9B949; --gold-hi: #F2C14E; --maroon: #8B1A2E; --cream: #FFFFFF; --ink: #191A20;
  --disp: 'Rubik', system-ui, sans-serif; --head: var(--disp);
  --r: 22px; --ease: cubic-bezier(.22, .9, .28, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --face: url(img/face-dark.svg);
  color-scheme: dark;
}
html { scroll-padding-top: 0; }
body { font-size: 17px; }
h1, h2, h3 { font-family: var(--disp); font-weight: 900; line-height: 1.14; }
b { font-weight: 700; }
.fwrap { max-width: 1120px; margin-inline: auto; }

/* the app's duotone icon classes */
svg.ico .m { fill: currentColor; } svg.ico .a { fill: currentColor; opacity: .42; }
svg.ico .k { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.ico .d { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .42; }
.gstar { fill: currentColor; }

/* the chunky button: it has a floor, and it goes down when pressed */
.fbtn, .lg-quiz .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 64px; padding: 0 34px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--cream); color: var(--ink); font: 800 21px/1 var(--disp); text-decoration: none; white-space: nowrap;
  box-shadow: 0 7px 0 rgba(0, 0, 0, .32); transition: transform .09s, box-shadow .09s; }
.fbtn:hover, .lg-quiz .btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 rgba(0, 0, 0, .32); }
.fbtn:active, .lg-quiz .btn:active { transform: translateY(6px); box-shadow: 0 1px 0 rgba(0, 0, 0, .32); }
.fbtn.sm, .lg-quiz .btn { height: 44px; padding: 0 20px; font-size: 15.5px; box-shadow: 0 4px 0 rgba(0, 0, 0, .32); }
.fbtn.gold, .lg-quiz .btn.primary { background: var(--accent); color: var(--ink); }
.lg-quiz .btn.ghost { border: 0; background: var(--surface-2); color: var(--text); }

/* ---------- hero: the action is the first thing on the page ---------- */
.fhero { position: relative; overflow: hidden; color: var(--cream); border-radius: 0 0 44px 44px;
  background: radial-gradient(circle at 15% 110%, rgba(255, 255, 255, .16), transparent 46%), var(--maroon); }
.ftop { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 4vw, 48px); }
.fmark { display: block; width: 86px; aspect-ratio: 423 / 179; background: var(--cream); -webkit-mask: url(img/mark.png) center / contain no-repeat; mask: url(img/mark.png) center / contain no-repeat; }
.fhead { position: relative; z-index: 1; display: grid; justify-items: start; gap: 18px; padding: clamp(10px, 3vw, 44px) clamp(18px, 4vw, 48px) clamp(250px, 58vw, 300px); }
.fhero h1 { font-size: clamp(58px, 11.4vw, 150px); line-height: 1.06; }
.fhero h1 span { display: block; animation: fadeUp .6s var(--ease) both; }
.fhero h1 span + span { animation-delay: .1s; }
.fhero .lead { max-width: 26em; color: inherit; text-wrap: balance; font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; opacity: .9; animation: fadeUp .6s .18s var(--ease) both; }
.fcta { display: grid; justify-items: start; gap: 14px; margin-top: 6px; animation: fadeUp .6s .26s var(--ease) both; }
.fcta .falt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; font-weight: 600; }
.fcta .falt a, .fcta .falt label { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.fcta .falt label.busy { pointer-events: none; text-decoration: none; }
.fcta .falt label.over { color: var(--gold-hi); }
.fcta small { font-size: 13.5px; font-weight: 600; opacity: .75; }
/* the mascot: the logo's own glasses and smirk, very large, with eyes that look around */
.fhero .gface { position: absolute; left: -5%; bottom: 3%; width: clamp(280px, 74vw, 620px); color: var(--cream); transform: rotate(-9deg); }
.gface .pu { fill: currentColor; stroke: none; animation: fpb 4.6s infinite; }
.gface.idle .pu { animation: fpb 4.6s infinite, flook 7s ease-in-out infinite; }
@keyframes fpb { 0%, 94%, 100% { opacity: 1; } 97% { opacity: 0; } }
@keyframes flook { 0%, 100% { transform: translate(34px, 6px); } 22% { transform: translate(34px, 6px); } 30%, 52% { transform: translate(-36px, -14px); } 60%, 84% { transform: translate(8px, 40px); } 92% { transform: translate(34px, 6px); } }
@media (min-width: 900px) {
  .fhead { padding-bottom: clamp(70px, 9vw, 130px); gap: 22px; }
  .fhero h1 { font-size: clamp(80px, 9.2vw, 132px); }
  .fhero .gface { left: 2%; bottom: -3%; width: clamp(340px, 36vw, 540px); }
}

/* subjects, drifting past */
.fmarq { display: flex; overflow: hidden; padding: 22px 0 6px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.fmarq > div { flex: none; display: flex; gap: 10px; padding-inline-end: 10px; animation: fmarq 40s linear infinite; }
@keyframes fmarq { to { transform: translateX(100%); } }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--surface-2); font: 700 15px var(--disp); white-space: nowrap; }
.fchip svg { color: var(--accent); }

/* ---------- sections ---------- */
.fsec { padding: clamp(64px, 9vw, 116px) 20px 0; text-align: center; }
.fico { display: inline-block; color: var(--accent); margin-bottom: 12px; }
.fsec h2 { font-size: clamp(34px, 5.4vw, 66px); text-wrap: balance; }
.fsec .sub { max-width: 30em; margin: 12px auto 0; color: var(--muted); }

/* what it makes: four colour cards, each with the thing itself sticking out of it */
.fcards { display: flex; gap: 16px; margin-top: 38px; padding: 12px 20px 34px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fc { position: relative; overflow: hidden; flex: 0 0 min(72vw, 258px); aspect-ratio: 3 / 4; padding: 22px 20px; border-radius: 28px; text-align: start; color: var(--ink);
  scroll-snap-align: center; transition: transform .4s var(--spring); }
.fc h3 { font-size: 31px; } .fc p { margin-top: 4px; font-size: 14.5px; font-weight: 600; line-height: 1.5; opacity: .78; }
.fc.c1 { background: #F2A0AE; } .fc.c2 { background: #E9B949; } .fc.c3 { background: #EDEDF1; } .fc.c4 { background: #A9B8F0; }
.fc:hover { transform: translateY(-12px) rotate(-1.6deg); } .fc:nth-child(even):hover { transform: translateY(-12px) rotate(1.6deg); }
.fc .vis { position: absolute; inset: auto 20px -20px; height: 54%; transition: transform .4s var(--spring); transform: rotate(-4deg); transform-origin: 50% 100%; }
.fc:nth-child(even) .vis { transform: rotate(4deg); }
.fc:hover .vis { transform: rotate(0) translateY(-12px); }
.fdoc { height: 100%; overflow: hidden; padding: 12px 12px 0; border-radius: 12px 12px 0 0; background: #fff; color: #191A20; box-shadow: 0 -8px 26px rgba(0, 0, 0, .2);
  font: 500 9px/1.7 var(--ui); text-align: start; }
.fdoc header { margin-bottom: 7px; padding: 6px 9px; border-radius: 7px; background: #8B1A2E; color: #fff; line-height: 1.4; }
.fdoc header b { display: block; font: 700 11.5px var(--ui); } .fdoc header span { font-size: 7.5px; opacity: .85; }
.fdoc h4 { margin: 0 0 3px; padding-bottom: 2px; border-bottom: 1.5px solid #8B1A2E; color: #8B1A2E; font: 700 10px/1.5 var(--ui); }
.fdoc p { margin: 0 0 5px; opacity: 1; font-size: 9px; font-weight: 500; }
.fdoc .law { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; border-radius: 6px; border: 1px solid #E1E1E7; border-inline-start: 3px solid #2F3A5C;
  background: #F3F5FA; font-weight: 700; color: #2F3A5C; }
.fdoc .law span { direction: ltr; font: italic 10.5px 'Times New Roman', serif; color: #191A20; }
.fdoc.ws { padding: 17px 18px 0; font: 700 8.5px/1.9 Arial, var(--ui); color: #000; outline: 3px double #7C8DB0; outline-offset: -9px; }
.fdoc.ws h4 { border: 0; padding: 0; margin-bottom: 3px; color: #000; text-align: center; text-decoration: underline; font: 700 10.5px/1.6 Arial, var(--ui); }
.fdoc.ws h5 { margin: 3px 0 0; font: 700 9.5px/1.8 Arial, var(--ui); text-decoration: underline; }
.fdoc.ws .o { display: grid; grid-template-columns: 1fr 1fr; padding-inline-start: 12px; }
.fdoc.ws u { display: inline-block; width: 44px; text-decoration: none; border-bottom: 1.5px dotted #000; }
.fopts { display: grid; gap: 7px; align-content: start; transform: none !important; }
.fopts b { margin-bottom: 1px; font: 800 13.5px/1.5 var(--ui); }
.fopts > span { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 12px; background: #fff; border: 1.5px solid #E1E1E7; font: 700 14px var(--ui); }
.fopts i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #EFEFF3; font: 800 11px var(--ui); }
.fopts .ok { border-color: #1F7A4D; background: #DDF1E6; } .fopts .ok i { background: #1F7A4D; color: #fff; }
/* the flashcard turns itself over: question, then answer */
.fflip { perspective: 700px; transform: none !important; }
.fflip > div { position: relative; height: 84%; transform-style: preserve-3d; animation: fturn 6s cubic-bezier(.5, 0, .3, 1) infinite; }
.fflip span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 14px; border-radius: 16px; background: #fff; text-align: center;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; font: 800 19px/1.4 var(--disp); box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.fflip span + span { transform: rotateY(180deg); background: #E6EAFB; font: 600 13.5px/1.7 var(--ui); }
.fflip small { font: 600 10.5px var(--ui); opacity: .6; }
@keyframes fturn { 0%, 36% { transform: none; } 50%, 86% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (min-width: 1160px) { .fcards { justify-content: center; overflow: visible; } }

/* ---------- particles ---------- */
.gconf { position: fixed; z-index: 99; width: 6px; height: 9px; border-radius: 1.5px; pointer-events: none; }

/* ---------- the flame, the face, rings ---------- */
.gflame .fo { fill: var(--gold); } .gflame .fi { fill: var(--gold-hi); }
.gflame { transform-origin: 50% 92%; animation: gflick 1.5s ease-in-out infinite; }
@keyframes gflick { 0%, 100% { transform: rotate(-3deg) scale(1); } 35% { transform: rotate(2deg) scale(1.07, .95); } 70% { transform: rotate(-1deg) scale(.96, 1.05); } }
.gface { display: block; width: 76px; aspect-ratio: 824 / 484; overflow: visible; color: #fff; }
.gface * { transform-box: fill-box; transform-origin: center; }
.gface .gf-l, .gface .gf-r { animation: gblink 4.6s infinite; }
@keyframes gblink { 0%, 94%, 100% { transform: none; } 97% { transform: scaleY(.08); } }
.gface.happy .gf-gl { animation: ghop .9s var(--spring); }
@keyframes ghop { 0%, 100% { transform: none; } 25% { transform: translateY(-16%); } 50% { transform: none; } 70% { transform: translateY(-8%); } }
.gface.happy .gf-m, .gface.wow .gf-m, .gface.wink .gf-m { animation: ggrin 1.3s var(--spring); }
@keyframes ggrin { 0%, 100% { transform: none; } 20%, 80% { transform: scale(1.45, 1.8) rotate(-7deg); } }
.gface.wink .gf-r { animation: gwink .8s; }
@keyframes gwink { 0%, 100% { transform: none; } 25%, 70% { transform: scaleY(.08); } }
.gface.wow .gf-gl { animation: gwow 1.3s var(--spring); }
@keyframes gwow { 0%, 100% { transform: none; } 20%, 80% { transform: scale(1.14); } }
.gring { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
/* only the ring itself is turned to start at 12 o'clock; the face inside stays upright */
.gring > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.gring .t { stroke: var(--surface-2); } .gring .p { stroke: var(--primary); }
.gring.full .p { stroke: var(--gold); }
.gring > b { font: 700 15px var(--head); direction: ltr; }
.gring.big { width: 104px; height: 104px; } .gring.big circle { stroke-width: 9; }
@keyframes gstamp { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(.9) rotate(4deg); opacity: 1; } to { transform: none; } }
@keyframes gbeat { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent); } }

/* ---------- the quiz, to play ---------- */
.fquiz { max-width: 440px; margin: 36px auto 0; text-align: start; }
.lg-quiz { width: 100%; display: grid; gap: 10px; }
.lg-qtop { font: 600 13px var(--ui); color: var(--muted); }
.lg-quiz .qcard { max-width: none; display: grid; gap: 8px; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); text-align: start; }
.lg-quiz .qcard h3 { font: 800 18px/1.6 var(--disp); margin: 0 0 2px; }
.lg-quiz .qopt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--bg);
  font: 600 16px var(--ui); color: inherit; text-align: start; cursor: pointer; transition: border-color .15s; }
.lg-quiz .qopt:not(:disabled):hover { border-color: var(--accent); }
.lg-quiz .qopt:disabled { cursor: default; }
.lg-quiz .qopt > span { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font: 800 13px var(--disp); }
.lg-quiz .qopt.ok { border-color: var(--success); background: color-mix(in srgb, var(--success) 14%, var(--bg)); }
.lg-quiz .qopt.ok > span { font-size: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M6.5 12.5l3.8 3.8 7.4-8.4'/%3E%3C/svg%3E") center / 16px no-repeat, var(--success); }
.lg-quiz .qopt.bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--bg)); }
.lg-quiz .qopt.bad > span { background: var(--danger); color: #fff; }
.lg-quiz .qopt.gpick { animation: gright .5s var(--spring); }
.lg-quiz .qopt.gmiss { animation: gshake .42s; }
@keyframes gright { 40% { transform: scale(1.035); } }
@keyframes gshake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.lg-quiz .qhint { display: block; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; text-align: start; animation: fadeUp .25s var(--ease); }
/* the result: the face in the ring, stars, and the one useful next step */
.gresult { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 18px 14px 14px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.gresult .gring .gface { width: 56px; }
.gresult h2 { font-size: 19px; margin: 0; }
.gresult h2 small { display: block; font: 500 13.5px var(--ui); color: var(--muted); }
.gstars { display: flex; gap: 6px; direction: ltr; }
.gstars svg { width: 36px; height: 36px; color: var(--surface-2); }
.gstars svg.on { color: var(--gold); animation: gstamp .5s var(--spring) both; }
.gstars svg:nth-child(2) { margin-top: -8px; }
.gacts { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; margin-top: 6px; }
.gacts .btn { width: 100%; }

/* ---------- how it works: each step is a small scene that plays when it scrolls into view ---------- */
.lg-how { display: grid; gap: 14px; margin-top: 40px; text-align: start; }
@media (min-width: 760px) { .lg-how { grid-template-columns: repeat(3, 1fr); } }
.lg-step { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; overflow: hidden; }
.lg-vis { position: relative; height: 200px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lg-step .txt { padding: 14px 16px 18px; display: grid; gap: 4px; }
.lg-step .txt b { display: flex; align-items: center; gap: 10px; font: 700 17px var(--head); }
.lg-step .txt p { color: var(--muted); font-size: 14.5px; }
.num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font: 900 17px var(--disp); }
/* 1: the camera as it really looks: a page in the viewfinder, the shutter fires, the page joins the strip, the count goes up */
.lg-cam { position: relative; width: 102px; height: 164px; flex: none; overflow: hidden; direction: ltr; border-radius: 22px; background: #101014;
  box-shadow: 0 0 0 2.5px #34343E, 0 16px 30px -14px rgba(0, 0, 0, .55); }
.lg-cam::before { content: ""; position: absolute; z-index: 3; top: 6px; left: 50%; width: 26px; height: 7px; margin-left: -13px; border-radius: 99px; background: #000; }
.lg-cam .cnt { position: absolute; top: 16px; left: 0; right: 0; height: 12px; }
.lg-cam .cnt b { position: absolute; inset: 0; text-align: center; font: 700 8px/12px var(--ui); color: #fff; opacity: 0; }
.lg-cam .cnt b:first-child { opacity: 1; }
.lg-cam .pg { position: absolute; left: 25px; top: 36px; width: 52px; height: 66px; border-radius: 2px; background:
  linear-gradient(#8B1A2E, #8B1A2E) 50% 8px / 34px 5px no-repeat, repeating-linear-gradient(transparent 0 5px, #C9CCD6 5px 6.5px) 50% 26px / 38px 34px no-repeat, #fff; }
.lg-cam .vf { position: absolute; left: 17px; top: 30px; width: 68px; height: 78px; background:
  linear-gradient(#fff, #fff) 0 0 / 11px 2px, linear-gradient(#fff, #fff) 0 0 / 2px 11px,
  linear-gradient(#fff, #fff) 100% 0 / 11px 2px, linear-gradient(#fff, #fff) 100% 0 / 2px 11px,
  linear-gradient(#fff, #fff) 0 100% / 11px 2px, linear-gradient(#fff, #fff) 0 100% / 2px 11px,
  linear-gradient(#fff, #fff) 100% 100% / 11px 2px, linear-gradient(#fff, #fff) 100% 100% / 2px 11px; background-repeat: no-repeat; }
.lg-cam .strip { position: absolute; left: 0; right: 0; top: 113px; display: flex; justify-content: center; gap: 3px; }
.lg-cam .strip i { width: 10px; height: 13px; border-radius: 1.5px; background: linear-gradient(#8B1A2E, #8B1A2E) 50% 2px / 6px 2px no-repeat, #fff; opacity: 0; }
.lg-cam .sh { position: absolute; bottom: 8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #101014, 0 0 0 3.5px #fff; }
.lg-cam .fl { position: absolute; z-index: 2; inset: 0; background: #fff; opacity: 0; }
.in .lg-cam .fl { animation: lgfl 4.6s infinite; }
.in .lg-cam .sh { animation: lgsh 4.6s infinite; }
.in .lg-cam .strip i:nth-child(1) { animation: lgt1 4.6s infinite; } .in .lg-cam .strip i:nth-child(2) { animation: lgt2 4.6s infinite; } .in .lg-cam .strip i:nth-child(3) { animation: lgt3 4.6s infinite; }
.in .lg-cam .cnt b:nth-child(1) { animation: lgc0 4.6s infinite; } .in .lg-cam .cnt b:nth-child(2) { animation: lgc1 4.6s infinite; }
.in .lg-cam .cnt b:nth-child(3) { animation: lgc2 4.6s infinite; } .in .lg-cam .cnt b:nth-child(4) { animation: lgc3 4.6s infinite; }
@keyframes lgfl { 0%, 9%, 15%, 33%, 39%, 57%, 63%, 100% { opacity: 0; } 10%, 34%, 58% { opacity: .92; } }
@keyframes lgsh { 0%, 6%, 12%, 30%, 36%, 54%, 60%, 100% { transform: none; } 9%, 33%, 57% { transform: scale(.76); } }
@keyframes lgt1 { 0%, 9.9% { opacity: 0; transform: translate(13px, -50.5px) scale(5.1); } 10% { opacity: 1; transform: translate(13px, -50.5px) scale(5.1); } 17%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes lgt2 { 0%, 33.9% { opacity: 0; transform: translate(0px, -50.5px) scale(5.1); } 34% { opacity: 1; transform: translate(0px, -50.5px) scale(5.1); } 41%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes lgt3 { 0%, 57.9% { opacity: 0; transform: translate(-13px, -50.5px) scale(5.1); } 58% { opacity: 1; transform: translate(-13px, -50.5px) scale(5.1); } 65%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes lgc0 { 0%, 11%, 97%, 100% { opacity: 1; } 12%, 96% { opacity: 0; } }
@keyframes lgc1 { 0%, 11%, 36%, 100% { opacity: 0; } 12%, 35% { opacity: 1; } }
@keyframes lgc2 { 0%, 35%, 60%, 100% { opacity: 0; } 36%, 59% { opacity: 1; } }
@keyframes lgc3 { 0%, 59%, 97%, 100% { opacity: 0; } 60%, 96% { opacity: 1; } }
/* 2: one tap on the sign-in button */
.lg-signin { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
  font: 600 14px var(--ui); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .4); }
.lg-signin u { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: var(--surface-2); }
.lg-signin u::after { content: ""; width: 20px; height: 20px; border-radius: 50%; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M6.5 12.5l3.8 3.8 7.4-8.4'/%3E%3C/svg%3E") center / 13px no-repeat, var(--success); }
.in .lg-signin { animation: lgtap 3.6s .6s infinite; }
.in .lg-signin u::after { animation: lgtick 3.6s .6s infinite; }
@keyframes lgtap { 0%, 18%, 30%, 100% { transform: none; border-color: var(--border); } 24% { transform: scale(.94); border-color: var(--primary); } }
@keyframes lgtick { 0%, 28% { opacity: 0; transform: scale(.3); } 36%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
/* 3: the file arrives, the way it does in the chat */
.lg-file { display: flex; align-items: center; gap: 10px; width: 210px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; text-align: start; }
.lg-file .th { position: relative; width: 46px; aspect-ratio: 794 / 1000; flex: none; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lg-file span:last-child { display: grid; line-height: 1.5; } .lg-file b { font-family: var(--head); } .lg-file i { font-size: 12px; font-weight: 600; color: var(--gold-hi); }
.gmini { position: absolute; inset: 0; background:
  linear-gradient(#8B1A2E, #8B1A2E) 50% 9% / 80% 13% no-repeat,
  repeating-linear-gradient(transparent 0 6%, #E4E4EA 6% 8.4%) 50% 78% / 76% 62% no-repeat, #fff; }
.in .lg-file { animation: lgborn 3.6s .9s infinite both; }
.in .lg-file .gmini { animation: lgprint2 3.6s .9s infinite both; }
@keyframes lgborn { 0% { opacity: 0; transform: scale(.6) translateY(18px); } 10% { opacity: 1; transform: scale(1.05); } 16% { transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 32%, transparent), 0 10px 30px color-mix(in srgb, var(--gold) 34%, transparent); border-color: var(--gold); }
  45%, 88% { opacity: 1; transform: none; box-shadow: none; border-color: var(--border); } 96%, 100% { opacity: 0; } }
@keyframes lgprint2 { 0%, 10% { clip-path: inset(0 0 100% 0); } 36%, 100% { clip-path: inset(0); } }

/* ---------- "studying, as a game": the app's own today card inside a phone ---------- */
.lg-game { display: grid; gap: 28px; align-items: center; text-align: start; }
.lg-game h2 { text-align: start; }
@media (min-width: 860px) { .lg-game { grid-template-columns: 1fr 340px; gap: 56px; } }
.lg-points { display: grid; gap: 14px; margin-top: 18px; }
.lg-points div { display: flex; align-items: flex-start; gap: 12px; }
.lg-points u { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent); }
.lg-points b { display: block; font: 700 16.5px var(--head); } .lg-points p { color: var(--muted); font-size: 14.5px; }
.lg-device { position: relative; justify-self: center; width: min(340px, 100%); padding: 14px 12px 18px; border-radius: 34px; border: 1px solid var(--border); background: var(--bg);
  box-shadow: 0 30px 70px -30px rgba(60, 10, 20, .4); text-align: start; cursor: pointer; }
.gstreak { display: flex; align-items: center; gap: 3px; width: fit-content; height: 34px; margin: 0 0 10px auto; padding: 0 12px 0 8px; border-radius: 99px; font: 700 15px var(--head);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent); }
.gtoday { display: grid; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.gt-top { display: flex; align-items: center; gap: 12px; }
.gt-tx { flex: 1; min-width: 0; display: grid; }
.gt-tx b { font: 700 16px var(--head); } .gt-tx i { font-size: 12.5px; color: var(--muted); }
.gt-top .gface { width: 50px; }
.gt-top .gring b { font-size: 14px; }
.gweek { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.gweek span { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.gweek span::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--border); }
.gweek .d::before { border-color: transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M6.5 12.5l3.8 3.8 7.4-8.4'/%3E%3C/svg%3E") center / 16px no-repeat, var(--gold); }
.gweek .now { color: var(--text); font-weight: 700; }
.gweek .now:not(.d)::before { border: 1.5px dashed var(--gold); background: var(--bg); animation: gbeat 1.6s ease-in-out infinite; }
.gweek .d.pop::before { animation: gstamp .5s var(--spring); }
.gdue { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: 14px; }
.gdue > svg:first-child { color: var(--gold-hi); } .gdue b { flex: 1; } .gdue > svg:last-child { color: var(--muted); transform: scaleX(-1); }

/* ---------- facts, as big as the headline ---------- */
.fstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 12px; margin-top: 44px; }
.fstats b { display: block; font: 900 clamp(54px, 7.4vw, 92px)/1.05 var(--disp); color: var(--accent); direction: ltr; }
.fstats span { color: var(--muted); font-weight: 600; }
@media (min-width: 760px) { .fstats { grid-template-columns: repeat(4, 1fr); } }
.ffree { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 38px; }
.ffree span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 16px; border-radius: 99px; background: var(--surface-2); font: 700 15px var(--disp); }
.ffree span::before { content: "✓"; color: var(--accent); font-weight: 900; }

.ffaq { max-width: 720px; margin: 36px auto 0; display: grid; gap: 10px; text-align: start; }
.ffaq details { padding: 16px 20px; border-radius: 22px; background: var(--surface); }
.ffaq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font: 800 18px/1.5 var(--disp); }
.ffaq summary::-webkit-details-marker { display: none; }
.ffaq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .25s; }
.ffaq details[open] summary::after { transform: rotate(45deg); }
.ffaq p { margin-top: 8px; color: var(--muted); }
.ffaq a { color: var(--gold-hi); font-weight: 700; }

/* ---------- the last block: the action again, then the name as large as the page ---------- */
.ffoot { position: relative; overflow: hidden; container-type: inline-size; margin: clamp(64px, 9vw, 116px) clamp(8px, 1.4vw, 18px) 14px; padding: clamp(48px, 7vw, 86px) 20px 0;
  border-radius: 40px; text-align: center; color: var(--cream); background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .15), transparent 50%), var(--maroon); }
.ffoot .gface { width: clamp(110px, 15vw, 170px); margin: 0 auto 18px; color: var(--cream); }
.ffoot h2 { font-size: clamp(38px, 6vw, 76px); }
.ffoot .fbtn { margin-top: 24px; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 44px; font-size: 14.5px; font-weight: 600; opacity: .85; }
.flinks a:hover { text-decoration: underline; }
.fslogan { margin-top: 16px; font-size: 13.5px; opacity: .7; }
/* the name in IBM Plex Sans Arabic, as live text: sharp at any size */
.fword { margin: calc(30px - .2em) 0 .07em; pointer-events: none; font: 700 41cqw/1 'IBM Plex Sans Arabic', sans-serif; color: var(--cream); white-space: nowrap; user-select: none; }

/* once the hero's button has scrolled away, the same button follows the reader */
.ffloat { position: fixed; z-index: 20; bottom: 18px; inset-inline: 0; width: fit-content; margin-inline: auto; transform: translateY(130px); transition: transform .45s var(--spring); }
.ffloat.on { transform: none; }

/* sections rise as they come into view */
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-rv].in { opacity: 1; transform: none; }
[data-rv="2"] { transition-delay: .1s; } [data-rv="3"] { transition-delay: .2s; }
.falt .ltr { display: inline; }
