/* gurugyan.: the app's "Midnight Lime, light" theme (design/spec), as a web page. */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(fonts/unbounded_semibold.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded_bold.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(fonts/publicsans_regular.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(fonts/publicsans_medium.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(fonts/publicsans_semibold.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(fonts/publicsans_bold.woff2) format("woff2"); }
/* Gujarati only: Latin text never downloads these. */
@font-face { font-family: "Hind Vadodara"; font-weight: 400; font-display: swap; src: url(fonts/hindvadodara_regular.woff2) format("woff2"); unicode-range: U+0A80-0AFF, U+0964-0965, U+200C-200D; }
@font-face { font-family: "Hind Vadodara"; font-weight: 500 700; font-display: swap; src: url(fonts/hindvadodara_medium.woff2) format("woff2"); unicode-range: U+0A80-0AFF, U+0964-0965, U+200C-200D; }

:root {
  color-scheme: light;
  /* Spec §1 colour tokens, by their names in SpecTokens.kt. One palette: the app has no dark mode. */
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --neutral: #E9EBE4;
  --border: rgba(26, 28, 26, .09);
  --border2: rgba(26, 28, 26, .16);
  --ink: #1A1C1A;
  --ink2: #232526;
  --muted: #6B6F66;
  --muted2: #9A9E96;
  --hero-start: #232526;
  --hero-end: #414345;
  --hero: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  --primary: #232526;
  --primary-fg: #C6FF6B;
  --accent: #8FD400;
  --lime: #C6FF6B;
  --on-accent: #1A2A05;
  --accent-soft: #EEF9D6;
  --accent-ink: #3F6B00;
  --ok: #1E7F5C;
  --ok-soft: #DDF2E8;
  --bad: #C2410C;
  --bad-soft: #FDE7DC;

  --display: "Unbounded", "Hind Vadodara", system-ui, sans-serif;
  --text: "Public Sans", "Hind Vadodara", system-ui, sans-serif;
  --guj: "Hind Vadodara", "Public Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--primary-fg); padding: 10px 14px; border-radius: 12px; }
.skip:focus { left: 8px; }

.wordmark { font: 700 18px/1 var(--display); letter-spacing: -.4px; color: var(--ink); white-space: nowrap; }
.wordmark > span { color: var(--accent-ink); }
.eyebrow { font: 700 11px/1 var(--text); letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.caption { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---- buttons (spec §6) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 15px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), filter .15s, background-color .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(.94); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-lime { background: var(--lime); color: var(--on-accent); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { filter: none; background: rgba(255, 255, 255, .08); }
.btn-sm { height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-block { width: 100%; height: 50px; }
.btn[disabled] { opacity: .4; cursor: default; filter: none; transform: none; }

/* Google's "Get it on Google Play" badge, unaltered, with its own clear space (the transparent edge
   is part of the artwork). Sizes set the badge's visible height: the image is 250 high, the badge 168. */
.play { --bh: 78px; display: inline-flex; line-height: 0; border-radius: 14px; }
.play img { height: var(--bh); width: auto; }
.play:focus-visible { outline-offset: -10px; }
/* The artwork carries its clear space as a transparent edge (41 of its 250 px each side); the margins
   let it hang outside, so the badge itself lines up with the text beside it. */
.hero .play { margin-left: calc(var(--bh) * -.164); }
.play-top { --bh: 56px; margin-left: auto; margin-right: calc(var(--bh) * -.164); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.top-inner { max-width: var(--max); margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
/* A solid bar: near-black with white text over the hero, the page's light colour past it. */
.top { transition: border-color .2s, background-color .25s; }
.top.on-dark { background: #111212; border-bottom-color: rgba(255, 255, 255, .08); }
.top.on-dark .wordmark { color: #fff; }
.top.on-dark .wordmark > span { color: var(--lime); }
.top-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.top-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); }

/* ---- the phone: an Android handset around a real screenshot ---- */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); padding: calc(var(--pw) * .032);
  border-radius: calc(var(--pw) * .155); background: #111212;
  box-shadow: 0 60px 90px -40px rgba(26, 28, 26, .55), 0 20px 40px -20px rgba(26, 28, 26, .3), inset 0 0 0 1.5px #2e3031;
}
.phone-screen { position: relative; aspect-ratio: 402 / 874; border-radius: calc(var(--pw) * .125); overflow: hidden; background: var(--bg); isolation: isolate; }
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
/* Punch-hole camera. */
.phone-screen::before { content: ""; position: absolute; z-index: 4; top: calc(var(--pw) * .021); left: 50%; width: calc(var(--pw) * .036); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #0a0a0a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
/* The status bar the screenshot leaves room for (32 dp of 874). */
.status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 3.66%; display: flex; align-items: center; justify-content: space-between; padding: 0 7.5%; font: 600 calc(var(--pw) * .037)/1 var(--text); color: var(--ink); transition: color .3s; pointer-events: none; }
.status.dark { color: #fff; }
.status-icons {
  width: calc(var(--pw) * .15); height: calc(var(--pw) * .036); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 13'%3E%3Cpath d='M1 12h2V9H1zM5 12h2V7H5zM9 12h2V4H9zM13 12h2V1h-2z'/%3E%3Cpath d='M26 12.5l-6.5-7.2a9.5 9.5 0 0113 0z'/%3E%3Crect x='37' y='2' width='14' height='9' rx='2.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3Crect x='38.8' y='3.8' width='8.5' height='5.4' rx='1'/%3E%3Cpath d='M52.2 5v3h.8a.6.6 0 00.6-.6V5.6a.6.6 0 00-.6-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 13'%3E%3Cpath d='M1 12h2V9H1zM5 12h2V7H5zM9 12h2V4H9zM13 12h2V1h-2z'/%3E%3Cpath d='M26 12.5l-6.5-7.2a9.5 9.5 0 0113 0z'/%3E%3Crect x='37' y='2' width='14' height='9' rx='2.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3Crect x='38.8' y='3.8' width='8.5' height='5.4' rx='1'/%3E%3Cpath d='M52.2 5v3h.8a.6.6 0 00.6-.6V5.6a.6.6 0 00-.6-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- pieces that spill out of the phone ---- */
.piece {
  position: absolute; z-index: 5; pointer-events: none;
  opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(.2);
  transition: transform .95s var(--spring), opacity .35s linear;
  transition-delay: calc(var(--d, 0) * 85ms);
}
.piece.out, .spilled .piece { opacity: 1; transform: translate(0, 0) scale(1) rotate(var(--r, 0deg)); }
.piece > * {
  animation: float var(--float, 6.5s) ease-in-out infinite alternate;
  animation-delay: calc(var(--d, 0) * -1.7s);
  translate: calc(var(--px, 0) * var(--depth, 1) * 14px) calc(var(--py, 0) * var(--depth, 1) * 14px);
  transition: translate .5s var(--ease);
}
.piece img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(26, 28, 26, .26)) drop-shadow(0 4px 8px rgba(26, 28, 26, .12)); }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(7px); } }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; }

/* Android's notification card, with the reminder's own words. Sizes in em, so it scales. */
.notif { font-size: 15px; width: 100%; background: rgba(255, 255, 255, .97); border: 1px solid var(--border); border-radius: 1.45em; padding: .95em 1.05em; box-shadow: 0 1.6em 3.2em -.9em rgba(26, 28, 26, .35); text-align: left; }
.notif-head { display: flex; align-items: center; gap: .45em; font: 600 .8em/1 var(--text); color: var(--muted); }
.notif-head img { width: 1.25em; height: 1.25em; border-radius: .3em; }
.notif-head b { color: var(--ink2); font-weight: 700; }
.notif-title { font: 700 1em/1.3 var(--text); color: var(--ink); margin: .55em 0 .15em; }
.notif-body { font: 400 .93em/1.4 var(--text); color: var(--muted); }

/* ---- hero: black like the app icon's tile, the logo's g large, rudraksha beads scattered ---- */
.hero-band {
  --black: radial-gradient(70% 60% at 82% 10%, rgba(255, 255, 255, .07), transparent 60%), linear-gradient(135deg, #0E0F0F 0%, #1A1C1A 55%, #262829 100%);
  position: relative; color: #fff; background: var(--black); overflow: clip;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.beads { position: absolute; inset: 0; }
.beads i {
  position: absolute; width: var(--s); height: var(--s); opacity: var(--o);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10.5' fill='%234D7A0B'/%3E%3Ccircle cx='12' cy='12' r='9.4' fill='%23C6FF6B'/%3E%3Ccircle cx='9.5' cy='8.5' r='5' fill='%23fff' opacity='.16'/%3E%3Cpath d='M12 2.6v18.8M12 2.6c-3.4 4-3.4 14.8 0 18.8M12 2.6c3.4 4 3.4 14.8 0 18.8' fill='none' stroke='%234D7A0B' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='12' cy='2.6' rx='1.7' ry='1.1' fill='%234D7A0B'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(var(--r));
  animation: drift var(--t, 10s) ease-in-out var(--w, 0s) infinite alternate, scatter-in .6s ease-out both;
}
/* The logo's g (spec §5, traced from Unbounded by tools/logo_g.py), scattered among the beads. */
.beads i.g {
  width: calc(var(--s) * .952);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='13.6 21.4 33.6 35.3'%3E%3Cpath fill='%23C6FF6B' d='M37.42 41.66V37.4L37.73 36.34V30.18L37.42 29.26V22.88H46.4V41.31Q46.4 45.93 44.24 49.23Q42.08 52.53 38.23 54.25Q34.38 55.96 29.15 55.96Q25.67 55.96 22.7 55.06Q19.73 54.16 16.78 52.4V45.62Q19.51 47.65 22.53 48.55Q25.54 49.45 28.58 49.45Q32.89 49.45 35.15 47.6Q37.42 45.76 37.42 41.66ZM26.64 45.36Q23.08 45.36 20.3 43.91Q17.53 42.46 15.93 39.84Q14.32 37.22 14.32 33.74Q14.32 30.22 15.93 27.63Q17.53 25.03 20.3 23.58Q23.08 22.13 26.64 22.13Q29.28 22.13 31.48 22.94Q33.68 23.76 35.4 25.1Q37.11 26.44 38.28 28Q39.44 29.56 40.06 31.1Q40.68 32.64 40.68 33.83Q40.68 35.46 39.73 37.44Q38.78 39.42 36.98 41.22Q35.18 43.03 32.56 44.19Q29.94 45.36 26.64 45.36ZM29.68 39.24Q32.27 39.24 34.3 37.88Q36.32 36.52 37.73 33.74Q36.28 30.93 34.25 29.59Q32.23 28.24 29.68 28.24Q27.74 28.24 26.31 28.9Q24.88 29.56 24.13 30.82Q23.38 32.07 23.38 33.74Q23.38 35.37 24.13 36.63Q24.88 37.88 26.29 38.56Q27.7 39.24 29.68 39.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes scatter-in { from { opacity: 0; } }
@keyframes drift {
  from { transform: translate(-50%, -50%) rotate(var(--r)) translateY(-6px); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--r) + 18deg)) translateY(7px); }
}
.hero { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter) 28px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; min-height: min(820px, calc(100svh - 68px)); }
.chip-line { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); font: 600 13px/1 var(--text); color: #fff; backdrop-filter: blur(6px); }
.chip-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font: 700 clamp(30px, 3.2vw, 46px)/1.08 var(--display); letter-spacing: -.035em; margin: 22px 0 20px; text-wrap: balance; color: #fff; }
.hero h1 mark { background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255, 255, 255, .7); max-width: 31em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.stage { --sp: 330px; position: relative; height: 780px; }
.stage-phone { --pw: var(--sp); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-2deg); z-index: 2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 60px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1.5px #2e3031; }
.hero .piece img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .4)) drop-shadow(0 22px 26px rgba(0, 0, 0, .5)); }
.p-badge { width: 176px; left: -4%; top: 64px; --r: -8deg; --depth: 1.2; pointer-events: auto; cursor: pointer; }

.p-timer { width: 104px; right: -9%; top: 118px; --r: 6deg; --depth: 1.8; }
/* The 8 pm reminder just right of the phone, over its frame's edge, as wide as the room to the
   page's edge allows (the stage's left edge sits at 50vw - 10px on screens 1200 px and wider). */
.p-notif { left: calc(50% + var(--sp) / 2 - 12px); top: 318px; width: min(270px, calc(50vw - 440px)); --r: 3deg; --depth: .9; }
.p-notif .notif { font-size: 13px; }
.p-y2 { width: 58px; left: 4%; bottom: 72px; --r: 7deg; --depth: 1.4; }
.p-y3 { width: 58px; left: 9%; top: 330px; --r: -6deg; --depth: 2.2; }

/* ---- everything below the hero: one place, all cards ---- */
.cards { position: relative; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 0; display: flex; flex-direction: column; gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* A phone peeking up from each feature card, a piece spilling out of it. */
.feature { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: grid; grid-template-rows: 1fr auto; row-gap: 16px; isolation: isolate; }
.feature.dark { background: var(--hero); border-color: transparent; color: #fff; }
.feature.lime { background: var(--accent-soft); border-color: transparent; }
.feature-text { position: relative; z-index: 6; padding: 20px 20px 0; }
.feature h3 { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.feature-text p:not(.num) { font-size: 13px; line-height: 1.45; color: var(--muted); }
.feature.dark .feature-text p:not(.num) { color: rgba(255, 255, 255, .7); }
/* The phone shows its top 236 px; the words above take what they need. */
.feature-phone { position: relative; height: 236px; }
.feature .phone { --pw: 196px; position: absolute; left: 50%; top: 0; margin-left: calc(var(--pw) * -.532); box-shadow: 0 30px 50px -24px rgba(26, 28, 26, .5), inset 0 0 0 1.5px #2e3031; transition: transform .5s var(--spring); }
.feature:hover .phone { transform: translateY(-8px); }
.feature.dark .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 50px -24px rgba(0, 0, 0, .7); }
.feature .piece img { filter: drop-shadow(0 14px 18px rgba(26, 28, 26, .28)) drop-shadow(0 3px 6px rgba(26, 28, 26, .12)); }
.f-y1 { width: 54px; left: 12px; top: 70px; --r: -10deg; }
.f-y2 { width: 54px; right: 14px; top: 136px; --r: 9deg; }
.f-timer { width: 100px; right: 8px; top: 40px; --r: 6deg; }
.f-today { width: 226px; left: calc(50% - 113px); top: 128px; --r: -4deg; }
.phone-screen > .lock { position: absolute; inset: 0; }

/* The lock screen at 8 pm. */
.lock { background: radial-gradient(130% 55% at 50% -5%, rgba(198, 255, 107, .2), transparent 62%), var(--hero); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 26% 6% 0; }
.lock-time { font: 700 calc(var(--pw) * .2)/1 var(--display); letter-spacing: -.04em; }
.lock-date { font: 500 calc(var(--pw) * .046)/1.2 var(--text); opacity: .78; margin-top: .6em; }
.lock-stack { margin-top: 16%; width: 100%; display: flex; flex-direction: column; gap: calc(var(--pw) * .025); }
.lock-stack .notif { font-size: calc(var(--pw) * .039); opacity: 0; transform: translateY(-14px) scale(.96); transition: opacity .4s ease, transform .6s var(--spring); }
.lock-stack .notif.in { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .screens .feature { grid-row: span 2; grid-template-rows: subgrid; }
  }
}

/* ---- the cards you can use ---- */
.tools > .card { container-type: inline-size; }
.tools > .card { padding: 20px; border-radius: 22px; }
.card h3 { font: 600 18px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 4px; text-wrap: balance; }

/* Try three (Practice, S10). */
.try { position: relative; display: flex; flex-direction: column; gap: 12px; }
.try h3 { margin: 0; }
.try-meta .run-pill { margin-left: auto; white-space: nowrap; }
.run-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 700 12px/1 var(--text); }
.run-pill svg { width: 14px; height: 14px; fill: currentColor; }
.run-pill.bump { animation: pop .45s var(--spring); }
.try-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 700 14px/1 var(--text); color: var(--ink2); }
.try-meta b, .run-pill b { font-weight: 700; }
.try-meta .of { color: var(--muted2); font-weight: 600; }
.tag { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 700 11px/1.2 var(--text); }
.asked { display: inline-flex; flex-basis: 100%; width: fit-content; max-width: max-content; padding: 4px 9px; border-radius: 6px; font: 700 11px/1.25 var(--text); background: var(--c, var(--neutral)); color: var(--cf, var(--muted)); }
.try-stem { font: 500 17px/1.55 var(--guj); color: var(--ink); min-height: 3.1em; }
.try-options { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 14px; border: 1.5px solid var(--border2); background: var(--surface); font: 400 15px/1.4 var(--guj); color: var(--ink); cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
.opt:hover { border-color: var(--muted2); }
.opt .badge { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 700 12px/1 var(--display); transition: inherit; }
.opt[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.opt[aria-checked="true"] .badge { background: var(--lime); color: var(--on-accent); }
.opt.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ink); }
.opt.ok .badge { background: var(--ok); color: #fff; }
.opt.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--ink); }
.opt.bad .badge { background: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
.feedback { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.feedback.ok { background: var(--ok-soft); animation: pop .45s var(--spring); }
.feedback.bad { background: var(--bad-soft); animation: shake .45s ease; }
.feedback h4 { font: 600 14px/1.2 var(--display); color: var(--ok); }
.feedback.bad h4 { color: var(--bad); }
.feedback p { font-size: 13px; line-height: 1.45; color: var(--ink); }
.feedback .gu { font-family: var(--guj); }
.feedback .expl { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.try .btn-block { margin-top: auto; }
.try-done { text-align: center; padding: 10px 0 4px; }
.try-done b { display: block; font: 700 22px/1.2 var(--display); margin-bottom: 6px; }
.try-done p { color: var(--muted); font-size: 15px; }
.try-badge { position: absolute; z-index: 9; left: 50%; top: -34px; width: 200px; pointer-events: none; opacity: 0; transform: translateX(-50%) scale(.3) rotate(-12deg); }
.try-badge.show { animation: badge 2.6s var(--spring) forwards; }
.try-badge img { width: 100%; filter: drop-shadow(0 18px 22px rgba(26, 28, 26, .3)); }
@keyframes pop { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes badge {
  0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-12deg); }
  18% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
  82% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateX(-50%) scale(.92) translateY(-10px); }
}

/* The papers wall: one block per paper, by year, coloured by class. */
.wall { display: flex; flex-direction: column; }
.wall-legend { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 14px; margin-top: 12px; font: 600 11px/1 var(--text); color: var(--muted); }
.wall-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wall-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.c1 { background: #232526; } .c2 { background: #3F6B00; } .c3 { background: #8FD400; } .c0 { background: #E9EBE4; box-shadow: inset 0 0 0 1px var(--border2); }
.wall-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; align-items: end; flex: 1; min-height: 200px; margin-top: 14px; }
.wall-col { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; }
/* One flat block per paper, stacked upwards: each year a bar you can read paper by paper. */
.wall-stack { display: flex; flex-direction: column-reverse; gap: 2px; }
.wall-stack button { flex: none; height: var(--bh, 8px); border: 0; padding: 0; border-radius: 3px; background: var(--c); cursor: pointer; position: relative; overflow: hidden; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .5s var(--spring), filter .15s; transition-delay: calc(var(--i, 0) * 18ms); }
.wall-stack button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--c2, transparent); }
.wall.shown .wall-stack button { transform: none; }
.wall-stack button:hover, .wall-stack button.sel { filter: brightness(1.25) saturate(1.1); outline: 2px solid var(--lime); outline-offset: 1px; }
.wall-year { font: 700 10px/1 var(--display); color: var(--ink2); text-align: center; letter-spacing: -.02em; white-space: nowrap; }
/* Narrow walls label every other year, so the labels never run into each other. */
.wall.tight .wall-col:nth-child(even) .wall-year { visibility: hidden; }
.wall-tip { margin-top: 14px; min-height: 2.9em; font-size: 13px; line-height: 1.45; color: var(--muted); }
.wall-tip b { color: var(--ink); }

/* Exams and subjects. */
.subjects .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.chip { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border2); font: 600 13px/1 var(--text); color: var(--ink2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.subject-list { margin: 10px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.subject { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-top: 9px; font: 600 12px/1.3 var(--text); }
.subject span:nth-child(2) { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.track { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--border); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 5px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.subjects.shown .track i { transform: scaleX(var(--f)); }

/* Pricing, with the download. */
.pricing { display: flex; flex-direction: column; gap: 14px; }
.free { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.free li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font: 600 12px/1.2 var(--text); }
.free li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.paid { border-radius: 16px; padding: 14px 16px; background: var(--hero); color: rgba(255, 255, 255, .7); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 13px; line-height: 1.3; }
.paid b { display: block; font: 700 26px/1 var(--display); color: var(--lime); letter-spacing: -.02em; margin-bottom: 4px; }
.paid-note { grid-column: 1 / -1; font-size: 12px; color: rgba(255, 255, 255, .6); }
.get { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 0; }
.get .play { --bh: 74px; }
.get-meta { font: 500 12px/1.4 var(--text); color: var(--muted); text-align: center; }

/* ---- contact: the footer, black like the hero ---- */
.contact { position: relative; overflow: clip; margin-top: 56px; color: #fff; background: radial-gradient(60% 80% at 15% 0%, rgba(198, 255, 107, .1), transparent 60%), linear-gradient(135deg, #0E0F0F 0%, #1A1C1A 55%, #262829 100%); padding: 56px var(--gutter) 24px; }
.contact-inner, .contact .foot { position: relative; z-index: 1; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.contact .num { font: 700 12px/1 var(--display); letter-spacing: .04em; color: var(--lime); }
.contact h2 { font: 700 clamp(26px, 2.8vw, 38px)/1.1 var(--display); letter-spacing: -.03em; max-width: 17em; margin: 14px 0 10px; text-wrap: balance; }
.contact-line { color: rgba(255, 255, 255, .7); font-size: 17px; max-width: 34em; }
/* The address in a box, its copy button inside. */
.mail-box { display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; margin: 24px 0 20px; padding: 14px 14px 14px 20px; border: 1.5px solid rgba(198, 255, 107, .38); border-radius: 22px; background: rgba(255, 255, 255, .05); }
.mail-icon { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* One line always: the address is about 14 times its font size wide, so the size follows the room left. */
.contact-mail { min-width: 0; white-space: nowrap; font: 700 clamp(17px, calc((100vw - 260px) / 14.5), 48px)/1.1 var(--display); letter-spacing: -.03em; color: var(--lime); text-decoration: none; text-underline-offset: .12em; }
.contact-mail:hover { text-decoration: underline; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: 700 14px/1 var(--text); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .12); }
.copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Under the address, an invitation to work with us (user, 9 Oct 2026), where an "Email us" button was. */
.contact-close { color: #fff; font-weight: 600; }
.contact .foot { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.contact .foot .wordmark { font-size: 15px; color: #fff; margin-right: 6px; }
.contact .foot .wordmark > span { color: var(--lime); }
/* The last line of the page: who made gurugyan, and an invitation to work with them (user, 8 Oct 2026). */
.contact .foot .maker { flex-basis: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.contact .foot .maker b { font: 700 15px/1 var(--display); letter-spacing: -.02em; color: #fff; margin-right: 4px; white-space: nowrap; }
.contact .foot .maker b span { color: var(--lime); }
.contact .foot .maker a { color: var(--lime); text-decoration: none; }
.contact .foot .maker a:hover { text-decoration: underline; }
.legal { font-size: 12px; color: rgba(255, 255, 255, .42); }

/* ---- narrower screens ---- */
@media (max-width: 1180px) {
  .feature .phone { --pw: 172px; }
  .feature h3, .card h3 { font-size: 16px; }
  .stage { --sp: 290px; height: 700px; }
  .p-badge { width: 156px; }
  .p-timer { width: 92px; right: -6%; }
}
/* From 1280 px down the reminder no longer fits beside the phone. */
@media (max-width: 1279px) {
  .p-notif { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 16px; }
  .hero-copy { max-width: 640px; }
  .stage { --sp: 300px; height: 700px; max-width: 640px; width: 100%; margin: 0 auto; }
  /* Under the words, the stage has room either side of the phone again. */
  .p-notif { display: block; left: auto; right: -6%; top: 290px; width: 232px; }
  .p-notif .notif { font-size: 12px; }
}
/* Below 1024 px each row of cards becomes a row you swipe, every card in both rows the same width. */
@media (max-width: 1023px) {
  .card-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none;
  }
  .card-grid::-webkit-scrollbar { display: none; }
  .feature, .tools > .card { flex: 0 0 min(340px, 84%); scroll-snap-align: center; }
  .feature .phone { --pw: 196px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-inner { gap: 12px; }
  .stage { height: 560px; }
  .stage { --sp: 240px; }
  .p-badge { width: 124px; left: -3%; top: 34px; }
  .p-timer { width: 74px; right: -2%; top: 70px; }
  /* On a phone the big notification would cover the app's screen: only the small pieces stay. */
  .p-notif { display: none; }
  .p-y2 { width: 40px; left: 1%; bottom: 10px; }
  .p-y3 { display: none; }
  .cards { padding-top: 28px; }
  .feature .phone { --pw: 190px; }
  /* The box spans the column; the copy button keeps to its end. */
  .mail-box { gap: 10px; padding: 10px 10px 10px 14px; width: 100%; }
  .mail-icon { display: none; }
  .contact-mail { font-size: calc((100vw - 2 * var(--gutter) - 92px) / 14); }
  .copy { padding: 0 12px; margin-left: auto; }
  .copy span { display: none; }
}

/* Small phones: a shorter stage, so the hero still fits in about a screen and a half. */
@media (max-width: 380px) {
  .stage { --sp: 212px; height: 480px; }
  /* Little room beside the phone: the badge and the timer reach into the page's margins instead. */
  .p-badge { width: 100px; left: -16px; top: 26px; }
  .p-timer { width: 66px; right: -16px; top: 62px; }
}
/* Fingers need bigger targets than a mouse. */
@media (pointer: coarse) {
  .chip { min-height: 40px; }
}

/* Narrow cards (four to a row on a 1024 px tablet): one column of subjects, the prices one above the
   other, the run counter on its own line. Last in the file, so it wins over the rules above. */
@container (max-width: 240px) {
  .subject-list { grid-template-columns: 1fr; }
  .paid { grid-template-columns: 1fr; }
  .try-meta .run-pill { margin-left: 0; }
}
