/* getspringle.com/students: the exam-bound student's page, on home.css and tutor.css (the same paper and ink
   chapters, the same drawn past paper in the hero). This file holds only what the page adds: a night of study in five
   frames, the subjects, big topics in parts, teach-then-test, the phone, and the price against an hour of tutoring. */

/* The hero's longer first line ("Your exam tutor,") on a phone: one line with the face, as on Home. */
@media (max-width: 620px) {
  .stu-page .hero .h1 { font-size: min(56px, calc((100vw - 32px) / 9.6)); }
}

/* ---------- A night of study, in five frames ---------- */
.night { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 1280px; margin-inline: auto; }
.nf { display: grid; gap: 8px; align-content: start; padding: 12px 12px 22px; border-radius: 26px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); }
.nf > :not(.nf-v) { padding-inline: 10px; }
.nf h3 { font: 500 22px/1.08 var(--display); letter-spacing: -.03em; }
.nf p { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }
.nf p .kc { min-width: 24px; height: 24px; font-size: 11.5px; }
.nf-n { margin-top: 8px; font: 500 12px/1 var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--listen) !important; }
.nf-v { position: relative; height: 170px; border-radius: 16px; overflow: hidden; display: grid; align-content: center; gap: 8px; padding: 14px 16px;
  background: #FBFAF6; color: var(--paper-ink); }
.nf-v svg { width: 100%; height: auto; overflow: visible; }

.nf-slide { align-content: start; gap: 6px; padding-top: 10px; }
.nf-bar { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mac) !important; color: #8A8794 !important; padding: 0 0 6px !important; border-bottom: 1px solid #E8E4DC; }
.nf-st { font: 600 15px/1.1 var(--display) !important; color: var(--paper-ink) !important; padding: 0 !important; }
.nf-slide svg circle { fill: none; stroke: #C9C4BA; stroke-width: 1.6; }
.nf-slide svg circle.d { fill: #E9E5DD; stroke: #B3ADA2; }
.nf-slide svg path { stroke: #DDD8CF; stroke-width: 4; stroke-linecap: round; }

.nf-keys { grid-auto-flow: column; justify-content: center; align-content: center; gap: 10px; padding-bottom: 46px;
  background: radial-gradient(ellipse at 50% 120%, rgba(60, 227, 164, .22), transparent 60%), #0B0B0D; color: var(--ink); }
.nf-keys .kc.big { min-width: 54px; height: 54px; font-size: 22px; }
.nf-say { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px !important; border-radius: 99px;
  background: rgba(60, 227, 164, .14); color: var(--listen) !important; font: 500 12.5px/1.2 var(--mac) !important; text-align: center; }
.nf-say .bars { display: inline-flex; gap: 2px; align-items: center; height: 11px; flex: none; }
.nf-say .bars i { width: 2.4px; height: 100%; border-radius: 1px; background: var(--listen); animation: bar .9s ease-in-out infinite alternate; }
.nf-say .bars i:nth-child(2) { animation-delay: -.3s; } .nf-say .bars i:nth-child(3) { animation-delay: -.6s; } .nf-say .bars i:nth-child(4) { animation-delay: -.15s; } .nf-say .bars i:nth-child(5) { animation-delay: -.45s; }

.nf-board svg .cyc { fill: none; stroke: var(--paper-ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.nf-board svg .ar { fill: none; stroke: var(--paper-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nf-board svg text { font: 500 10.5px/1 var(--mac); fill: var(--water); }
.nf-board svg text:last-child { fill: #C2410C; }
.nf-cap { padding: 6px 10px !important; border-radius: 10px; background: #0B0B0D; color: #F3F0EA !important; font: 500 11.5px/1.3 var(--mac) !important; }
@media (prefers-reduced-motion: no-preference) {
  .night.in .nf-board svg .cyc { animation: nf-draw 2.6s .4s var(--ease) both; }
  @keyframes nf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

.nf-quiz { align-content: center; gap: 7px; }
.nf-quiz .hq-q { font-size: 15px !important; }
.nf-quiz .hq-a { padding: 7px 10px !important; font-size: 12.5px !important; }

.nf-keep { align-content: center; gap: 6px; }
.nf-kept { display: flex; align-items: center; gap: 8px; padding: 8px 10px !important; border-radius: 12px; background: #E2F6EC; color: #11704E !important; font: 600 12.5px/1.2 var(--mac) !important; }
.nf-tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2BB383; color: #fff; font: 700 10px/1 var(--mac); }
.nf-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px !important; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #E2DED6; font: 500 12px/1.2 var(--mac) !important; color: var(--paper-ink) !important; }
.nf-row span { color: #2BB383; }
.nf-row.dim { opacity: .55; }
.nf-row.dim span { color: #8A8794; }
.night-fine { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--fg-3); }

@media (max-width: 1100px) {
  .night { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px)) * -1); padding-inline: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px)); scroll-padding-inline: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left, 0px)); }
  .night::-webkit-scrollbar { display: none; }
  .nf { scroll-snap-align: start; }
}

/* ---------- Subjects ---------- */
.subj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin-inline: auto; }
.subj li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 22px 22px 24px; border-radius: 24px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); transition: transform .3s var(--ease), box-shadow .3s; }
.subj li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ln-2), 0 24px 50px -36px rgba(7, 7, 8, .45); }
.sj-i { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #0B0B0D; color: var(--listen); }
.sj-i svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subj h3 { font: 500 22px/1.1 var(--display); letter-spacing: -.025em; padding-top: 3px; }
.subj p { font: 400 italic 18px/1.3 var(--serif); color: var(--fg-2); }

.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 1180px; margin: 28px auto 0; border-top: 1px solid var(--ln); }
.wk { padding: 22px 24px 0; }
.wk + .wk { border-left: 1px solid var(--ln); }
.wk h3 { font: 500 17px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 6px; }
.wk p { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }

@media (max-width: 980px) { .subj { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .subj { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .subj li { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 18px; border-radius: 20px; }
  .sj-i { width: 44px; height: 44px; border-radius: 13px; }
  .sj-i svg { width: 22px; height: 22px; }
  .subj h3 { font-size: 19px; }
  .subj p { font-size: 16.5px; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .wk { padding: 16px 4px 0; }
  .wk + .wk { border-left: 0; border-top: 1px solid var(--ln); margin-top: 16px; }
}

/* ---------- Big topics, in parts ---------- */
.parts-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; }
.parts-words { display: grid; gap: 22px; justify-items: start; }
.parts-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 99px; background: rgba(60, 227, 164, .14); color: var(--listen); font-weight: 500; }
.parts-card { padding: 24px; border-radius: 28px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln-2), 0 40px 90px -50px rgba(0, 0, 0, .9); }
.pc-k { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--ln); font: 500 16px/1.3 var(--mac); color: var(--fg); }
.pc-k .face { --s: 24px; background: var(--ink); }
.pc-list { display: grid; gap: 4px; counter-reset: none; }
.pc-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 10px; border-radius: 16px; color: var(--fg-3); }
.pc-list b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ln-2); font: 500 14px/1 var(--display); }
.pc-list span { font: 500 17px/1.25 var(--display); letter-spacing: -.01em; }
.pc-list small { display: block; margin-top: 3px; font: 400 13px/1.3 var(--font); color: var(--fg-3); }
.pc-list li.done { color: var(--fg-2); }
.pc-list li.done b { background: rgba(60, 227, 164, .16); box-shadow: none; color: var(--listen); }
.pc-list li.now { background: rgba(255, 255, 255, .05); color: var(--fg); }
.pc-list li.now b { background: var(--listen); box-shadow: none; color: #0B0B0D; }
.pc-list li.now small { color: var(--listen); }
@media (max-width: 860px) { .parts-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .parts-card { padding: 16px; border-radius: 22px; } .pc-list span { font-size: 15.5px; } }

/* ---------- Teach, then test ---------- */
.honest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin-inline: auto; }
.hn { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); }
.hn-k { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.hn h3 { font: 500 26px/1.08 var(--display); letter-spacing: -.03em; }
.hn p:not(.hn-k) { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }
.hn-ink { background: #0B0B0D; color: #F3F0EA; --fg-2: rgba(243, 240, 234, .7); --fg-3: rgba(243, 240, 234, .5); box-shadow: none; }
@media (max-width: 900px) { .honest { grid-template-columns: minmax(0, 1fr); max-width: 640px; } }

/* ---------- On your phone too ---------- */
.stu-iph { padding-block: clamp(90px, 10vw, 140px); }
.stu-iph-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; max-width: 1080px; }
.stu-iph-ph { max-width: 300px; justify-self: center; transform: rotate(-4deg); }
.stu-iph-words { display: grid; gap: 22px; justify-items: start; }
.stu-iph-words .iph-cta { margin-top: 6px; }
.stu-more { display: inline-flex; align-items: center; gap: 8px; font: 500 15.5px/1 var(--font); color: var(--fg); text-decoration: none; }
.stu-more span { transition: transform .25s var(--ease); }
.stu-more:hover span { transform: translateX(3px); }
@media (max-width: 760px) {
  .stu-iph-in { grid-template-columns: minmax(0, 1fr); }
  .stu-iph-ph { max-width: 200px; order: 2; }
}

/* ---------- Price, against an hour with a tutor ---------- */
.sp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; max-width: 1180px; margin-inline: auto; }
.sp-words { display: grid; gap: 24px; justify-items: start; }
.sp-words .h2 { font-size: clamp(44px, 5.6vw, 88px); }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sp-vs { display: grid; gap: 12px; }
.sv { display: grid; gap: 6px; padding: 26px 28px; border-radius: 26px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--ln); }
.sv-k { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.sv-n { font: 500 clamp(52px, 6vw, 84px)/1 var(--display); letter-spacing: -.045em; color: var(--fg-2); }
.sv-s { font-size: 14.5px; line-height: 1.5; color: var(--fg-3); }
.sv-s sup a { color: var(--link); text-decoration: none; }
.sv-us { background: #F3F0EA; color: #0B0B0D; --fg-2: #0B0B0D; --fg-3: rgba(11, 11, 13, .58); box-shadow: 0 30px 70px -40px rgba(60, 227, 164, .55); }
.sv-word { color: #0B0B0D; }
.sp-src { max-width: 1180px; margin: 30px auto 0; font-size: 12.5px; line-height: 1.5; color: var(--fg-3); }
.sp-src a { color: var(--fg-2); }
@media (max-width: 860px) { .sp { grid-template-columns: minmax(0, 1fr); } }
