/* "SAT" after "Practice" is in College Board's Roboto, served from here so it's the same on every device */
@font-face { font-family: 'Roboto'; src: url(/fonts/roboto-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.home { padding-bottom: 5rem; }
/* The front page has the whole screen, edge to edge, with only the gutters kept clear,
   on any screen. */
.home > .how { padding-inline: var(--gut); }
/* The first screen is the pitch and the cards under it, together in the middle: on a
   window taller than they need, what's left over goes evenly above and below them,
   not in a hole between them. The rest is a scroll away. --lead is the heading's size, and "scope" is as wide as the
   screen, unless that would push the cards off it: --rest is what else needs the
   height. --above is everything over the hero (the header, and the login bar when
   there is one) and --doors is the cards' height; home.js measures both. */
.hero { --lead: clamp(2rem, min(5.5vw, 6.6svh), 7.5rem); --rest: calc(var(--doors, 10rem) + var(--below, 2.5rem) + 3.5rem); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto auto; align-content: center; gap: 3rem; min-height: calc(100svh - var(--above, var(--nav))); padding: clamp(1rem, 3svh, 2.5rem) var(--gut); }
.pitch { grid-row: 1; }
.doors { grid-row: 2; }
.pitch h1 { font-size: var(--lead); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.pitch em { display: block; margin: -.1em 0 .1em -.045em; font-size: max(6.8rem, min(calc((100vw - 2 * var(--gut)) / 2.5), calc((100svh - var(--above, var(--nav)) - 2.2 * var(--lead) - var(--rest)) / .9))); font-style: normal; line-height: .8; letter-spacing: -.055em; }
/* lighter than the heading, but not as light as the line under it; on a wide screen
   it shares the heading's last line, at the far end */
.next { display: grid; justify-items: start; margin-top: 1.25rem; }
.practice { margin: 0 0 .35rem; font-size: clamp(1.35rem, min(2.1vw, 3.2svh), 2.6rem); font-weight: 500; letter-spacing: -.01em; color: var(--ink-soft); }
.practice .said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the subjects share one cell; the one showing is .on, and the one before it leaves
   upwards as .off. The rest wait below, out of sight, so going back there is instant. */
/* The subject is lit, and nothing beside or under it is: a soft light of its own colour
   around it, which the clip leaves room for. Each wears the look of what it names:
   IELTS its red and its test's Arial, the SAT its blue and College Board's Roboto, and
   vocabulary a dictionary's headword. They share "Practice"'s line, whatever the font. */
.slot { display: inline-grid; align-items: baseline; clip-path: inset(-.5em -1em); font-weight: 700; }
.slot span { grid-area: 1 / 1; translate: 0 100%; opacity: 0; color: #5fb0ff; font-family: Roboto, var(--system); text-shadow: 0 0 .5em color-mix(in srgb, currentColor 60%, transparent); }
.slot span:nth-child(3) { color: #ff5c57; font-family: Arial, Helvetica, sans-serif; }
.slot span:last-child { color: #f7f0de; font-family: var(--serif); }
/* the tests go by their trademarks: a small ® up at the top of the name, which leaves the line as it was.
   It's halfway from the name's colour to the off-white: that small, the name's own colour gets lost in the art */
.slot sup { margin-left: .04em; font-size: .4em; font-weight: 400; line-height: 0; vertical-align: 1.05em; color: #a2ccf6; }
.slot span:nth-child(3) sup { color: #f2a2a2; }
/* only "SAT" is the SAT's blue; which part of it is white, like the heading */
.slot b { color: var(--ink); font-weight: inherit; }
.slot .on { translate: 0 0; opacity: 1; }
.slot .off { translate: 0 -100%; }
.pitch .lede { font-size: clamp(1rem, min(1.15vw, 1.8svh), 1.45rem); margin: 0; }
/* the way in for someone who doesn't know where to start: every module. The one filled
   button on the first screen, on a line of its own under the others, and the brightest
   thing in their corner: the night's off-white with navy words, which no subject's colour
   fights with */
.next .start { margin-top: 1.25rem; padding: .6em 1.4em; border-color: var(--ink); background: var(--ink); color: #141f5e; font-size: clamp(1rem, min(1.15vw, 1.8svh), 1.45rem); }
@media (hover: hover) {
  .next .start:hover { border-color: #fff; background: #fff; }
}
@media (min-width: 1100px) {
  .next { width: fit-content; margin: calc(-1.05 * var(--lead)) 0 0 auto; }
}

/* each door is a key: it sits on a low ledge, lifts under the pointer and goes down when pressed.
   It's tinted glass over the night: the scope shows through, blurred, dark enough to read on.
   They're where to start, so they're the biggest buttons on the screen, and grow with it, so
   their words fill them on a wide screen, or two to a row, too. The name has the card's whole width, sized to
   it so the longest ("SAT Reading and Writing", 11.9em at these sizes) stays on one line.
   The arrow sits in the corner beside the line under it, in the same place on every card. */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
/* a window 4:3 or squarer has height to spare once "scope" spans it: the cards take two
   rows, twice as wide */
@media (min-width: 1100px) and (max-aspect-ratio: 27/20) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.door { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: .35rem 1rem; container-type: inline-size; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.05rem, min(1.45vw, 2.6svh), 2rem) clamp(1.2rem, 1.6vw, 2.2rem) clamp(1.15rem, min(1.55vw, 2.8svh), 2.1rem); background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(8px); box-shadow: 0 2px 0 var(--line); color: var(--ink); text-decoration: none; transition: translate .12s, box-shadow .12s, border-color .12s; }
.door strong { grid-column: 1 / -1; font-size: clamp(1.2rem, 8.2cqi, 2.1rem); line-height: 1.2; }
.door span { color: var(--muted); font-size: clamp(1rem, min(max(1.08vw, 3.6cqi), 1.9svh), 1.5rem); line-height: 1.35; text-wrap: pretty; }
/* the arrow is drawn, not typed: a glyph sits off-centre in its circle */
.door::after { content: ''; align-self: end; width: clamp(2.2rem, min(2.3vw, 4svh), 3rem); height: clamp(2.2rem, min(2.3vw, 4svh), 3rem); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238ea2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 55% no-repeat var(--blue-soft); transition: background-color .12s; }
.door:hover, .door:focus-visible { border-color: var(--blue); box-shadow: 0 3px 0 var(--blue); translate: 0 -1px; outline: 0; }
/* the card for the subject after "Practice" has its arrow lit, but not its edge, and only a
   step up from the others: the pointer is what fills it */
.door:hover::after, .door:focus-visible::after, .door.lit::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); background-color: var(--blue); }
.door.lit:not(:hover, :focus-visible)::after { background-color: color-mix(in srgb, var(--blue) 40%, var(--blue-soft)); }
.door:active { box-shadow: 0 0 0 var(--blue); translate: 0 2px; }

/* The first screen is night, in either theme (style.css gives .night the dark colours),
   and it looks down the scope. The logo is four circles, radii 90, 67, 44 and 21, each
   inside the last and all meeting at one point up and to the right: a telescope's tubes,
   seen from the end. Each holds less than the one around it, and is filled with a
   picture of what it holds, over and over. For SAT Math: the SAT's name, then math's
   graphs, then algebra's lines and equations, and in the smallest, the lit one, the one
   question type in focus, a single graph of a linear function. That point sits beside
   the heading's first line, over the word, and the biggest circle runs off the foot.
   Every circle is lit from that point: lightest beside it, darker away, with a rim that
   catches the light. The smallest is the lightest of them, but only by a step.
   Focus is drawn as focus: the circles and the letters of "scope" are blurred at the
   far end and get sharper towards the smallest circle. */
.hero { background: #05070d; color: var(--ink); }
.pitch em span:nth-child(1) { filter: blur(.016em); }
.pitch em span:nth-child(2) { filter: blur(.009em); }
.pitch em span:nth-child(3) { filter: blur(.004em); }
.pitch em span:nth-child(4) { filter: blur(.0012em); }
.scope { --d: min(130svh, 105vw); position: absolute; z-index: -1; width: var(--d); aspect-ratio: 1; left: calc(100% - var(--gut) - .8536 * var(--d)); top: calc(6% - .1464 * var(--d)); }
.scope i { position: absolute; border-radius: 50%; border: max(2px, .16vw) solid transparent; }
.scope i:nth-child(1) { inset: 0; filter: blur(calc(var(--d) / 600)); background: radial-gradient(circle at 88% 12%, #1a2560, #0c1233 38%, #070a1c 75%) padding-box, linear-gradient(225deg, rgba(225, 232, 255, .95), rgba(120, 140, 255, .35) 35%, rgba(72, 100, 245, .08) 70%) border-box; box-shadow: 1.2vw -1.2vw 4vw -1.5vw rgba(130, 150, 255, .55); }
.scope i:nth-child(2) { left: 21.81%; top: 3.74%; width: 74.44%; aspect-ratio: 1; filter: blur(calc(var(--d) / 1100)); background: radial-gradient(circle at 88% 12%, #1f2d78, #10184a 40%, #090d26 78%) padding-box, linear-gradient(225deg, rgba(230, 236, 255, .95), rgba(130, 150, 255, .4) 35%, rgba(72, 100, 245, .08) 70%) border-box; box-shadow: -2vw 2vw 4vw rgba(0, 0, 0, .55), 1vw -1vw 3vw -1.2vw rgba(140, 160, 255, .6); }
.scope i:nth-child(3) { left: 43.63%; top: 7.49%; width: 48.89%; aspect-ratio: 1; filter: blur(calc(var(--d) / 2600)); background: radial-gradient(circle at 88% 12%, #2a3b9c, #141f5e 42%, #0b1132 80%) padding-box, linear-gradient(225deg, #f0f4ff, rgba(150, 170, 255, .45) 35%, rgba(72, 100, 245, .1) 70%) border-box; box-shadow: -1.5vw 1.5vw 3.5vw rgba(0, 0, 0, .55), .8vw -.8vw 2.5vw -1vw rgba(160, 178, 255, .7); }
.scope i:nth-child(4) { left: 65.44%; top: 11.23%; width: 23.33%; aspect-ratio: 1; background: radial-gradient(circle at 85% 15%, #a3b1f7, #364cc2 7%, #263693 45%, #171f57) padding-box, linear-gradient(225deg, #f0f4ff, rgba(160, 178, 255, .5) 35%, rgba(72, 100, 245, .12) 70%) border-box; box-shadow: -1vw 1vw 3vw rgba(0, 0, 0, .5), 0 0 24px 2px rgba(120, 140, 255, .3), 0 0 120px 24px rgba(72, 100, 245, .16); }
/* There's a scope for each subject after "Practice", so a circle has four pictures
   (Reading and Writing's, Math's, IELTS's, vocabulary's) and shows the one that's .on.
   When the subject changes, the circles turn: the picture showing turns away as .off
   while the next turns in from the other side, and each circle turns against the one
   around it. A shade over the first three fades their pictures away from where
   the circles meet, so they're faint behind the words lower down; it stays still. */
.scope i { --turn: -90deg; }
.scope i:nth-child(even) { --turn: 90deg; }
.scope b { position: absolute; inset: 0; border-radius: 50%; opacity: 0; rotate: var(--turn); }
.scope .on { opacity: var(--show); rotate: 0deg; }
.scope .off { rotate: calc(-1 * var(--turn)); }
.scope i:not(:last-child)::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 85% 15%, transparent 30%, var(--far) 80%); }
.scope i:nth-child(1) { --show: .3; --far: #070a1c; }
.scope i:nth-child(2) { --show: .5; --far: #090d26; }
.scope i:nth-child(3) { --show: .6; --far: #0b1132; }
.scope i:nth-child(4) { --show: 1; }
.scope i:nth-child(1) b { background: url(/scope/sat.svg) 0 0 / max(12%, 5.5rem); }
.scope i:nth-child(1) b:nth-child(3) { background: url(/scope/ielts.svg) 0 0 / max(17.5%, 8rem); }
.scope i:nth-child(1) b:nth-child(4) { background-image: url(/scope/letters.svg); }
.scope i:nth-child(2) b { background: url(/scope/rw.svg) 0 0 / max(22%, 7.5rem); }
.scope i:nth-child(2) b:nth-child(2) { background-image: url(/scope/math.svg); }
.scope i:nth-child(2) b:nth-child(3) { background-image: url(/scope/modules.svg); }
.scope i:nth-child(2) b:nth-child(4) { background-image: url(/scope/levels.svg); }
.scope i:nth-child(3) b { background: url(/scope/conventions.svg) 0 0 / max(34%, 8rem); }
.scope i:nth-child(3) b:nth-child(2) { background-image: url(/scope/algebra.svg); }
.scope i:nth-child(3) b:nth-child(3) { background-image: url(/scope/passage.svg); }
.scope i:nth-child(3) b:nth-child(4) { background-image: url(/scope/words.svg); }
.scope i:nth-child(4) b { background: url(/scope/boundaries.svg) 0 0 / 100%; }
.scope i:nth-child(4) b:nth-child(2) { background-image: url(/scope/linear.svg); }
.scope i:nth-child(4) b:nth-child(3) { background-image: url(/scope/tfng.svg); }
.scope i:nth-child(4) b:nth-child(4) { background-image: url(/scope/word.svg); }

/* The type below the first screen: a headline as heavy and tight as the hero's, step
   titles over the running text, which is the body size, and one smaller size for captions. */
.how { margin-top: 1.5rem; font-size: 1rem; }
.how > h2 { margin: 0 0 .75rem; font-size: clamp(2.25rem, 3vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
/* the tabs stay in reach while the three screens scroll past */
.howhead { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.pick { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pick button { border: 0; border-radius: 0; padding: .3rem .95rem; font-size: .875rem; }
.pick [aria-pressed=true] { background: var(--blue); color: #fff; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; padding: 0; margin: 1.5rem 0 0; }
.steps > li { counter-increment: step; display: flex; flex-direction: column; color: var(--muted); }
.steps > li::before { content: counter(step); display: block; margin-bottom: .3rem; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--blue-text); }
.steps > li > strong { display: block; margin-bottom: .25rem; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.steps .wide { grid-column: 1 / -1; }

/* The stand-in screens. The three tests' screens share one cell, so the cell is as
   tall as the tallest and nothing below moves when the showcase turns. They're
   drawn smaller than life, and they're pictures: nothing in them can be pressed. */
.shots { flex: 1; display: grid; margin-top: 1rem; color: var(--ink); }
.shot { grid-area: 1 / 1; zoom: .85; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem 1.25rem; background: var(--bg); overflow: hidden; visibility: hidden; opacity: 0; }
.how[data-show=ielts] [data-for=ielts], .how[data-show=math] [data-for=math], .how[data-show=rw] [data-for=rw] { visibility: visible; opacity: 1; }
.shot .title { display: block; margin-bottom: .6rem; font-size: 1.15rem; }
.shot .row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .9rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.shot .count { color: var(--muted); font-size: .85rem; }
/* a row's setting: .was is lit until the step is done, then .will is */
.shot .seg .on, .shot .seg:not(.done) .was, .shot .seg.done .will { background: var(--blue); color: #fff; }
.shot .go { display: inline-block; margin-top: .9rem; border-radius: 999px; padding: .45rem 1.1rem; background: var(--blue); color: #fff; font-weight: 600; }
.shot.test { padding-top: 0; font-family: var(--system); }
.shot .top { margin: 0 -1.25rem 1.25rem; }
.shot .clock { font-size: 1.05rem; }
.shot .passage, .shot .stem { margin: 0 0 .9rem; }
.shot .choices { gap: .5rem; }
.shot .choices.two { grid-template-columns: 1fr 1fr; }
.shot .choice { padding: .5rem .8rem; cursor: auto; }
.shot .go.done { background: var(--blue-deep); scale: .95; }
/* an answer is picked, then the question is marked and says why */
.shot .choice.done { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.shot .choice.done .letter { background: var(--blue); border-color: var(--blue); color: #fff; }
.shot .choices.done .choice.done { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); background: var(--ok-soft); }
.shot .choices.done .choice.done .letter { background: var(--green); border-color: var(--green); color: var(--bg); }
.shot .feedback { margin-top: .6rem; padding: .55rem .8rem; font-size: .9rem; }
.shot .feedback:not(.done) { opacity: 0; }
.shot .besides { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.shot .fig { margin: 0; }
.shot .tf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.shot .tf .stem { margin: 0; }
.shot.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem 2rem; align-items: start; }
.shot .stats { margin: 0; }
.shot[data-for=ielts] .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shot .focus { display: grid; justify-items: start; margin-top: .75rem; }
.shot .focus strong { margin-top: .15rem; font-size: 1.3rem; }
.shot .focus .go { margin-top: .5rem; }
.shot .bar:hover { background: none; }

/* the foot of the front page: dark, with the logo as big as the links beside it are
   tall, over the name, and every section as one big line */
.foot { background: #0f1115; color: #fff; }
.foot .inner { margin: 0; padding: 4rem var(--gut) 2.5rem; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem 4rem; }
.foot .brand { display: block; color: #fff; font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.foot .brand::before { display: block; width: clamp(9rem, 17vw, 16rem); height: clamp(9rem, 17vw, 16rem); margin: 0 0 1.5rem; }
.foot .about p { margin: .6rem 0 0; color: rgba(255, 255, 255, .6); }
.foot .links { border-top: 1px solid rgba(255, 255, 255, .14); }
.foot .links a { display: flex; align-items: baseline; gap: 1.75rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; text-transform: uppercase; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.15; transition: color .12s, padding-left .15s; }
.foot .links small { font-size: .875rem; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.foot .links a:hover, .foot .links a:focus-visible { color: #a9b8ff; padding-left: .5rem; outline: 0; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.5rem; color: rgba(255, 255, 255, .6); font-size: .875rem; }
.foot .legal p { margin: 0 0 .75rem; }

@media (prefers-reduced-motion: no-preference) {
  .slot :is(.on, .off) { transition: translate .55s cubic-bezier(.6, 0, .2, 1), opacity .55s cubic-bezier(.6, 0, .2, 1); }
  .scope :is(.on, .off) { transition: rotate 1.1s cubic-bezier(.6, 0, .2, 1), opacity 1.1s cubic-bezier(.6, 0, .2, 1); }
  .shot { transition: opacity .35s, visibility .35s; }
  .shot :is(.seg span, .go, .choice, .letter, .feedback) { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, opacity .3s, scale .15s; }
}

@media (max-width: 1099px) {
  /* "Practice" goes under the heading, and the cards take two rows, at a size of their own,
     wide enough for the arrow beside the name */
  .hero { --rest: calc(var(--doors, 20rem) + var(--below, 6rem) + 3rem); row-gap: 2rem; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door { padding: .8rem 1.1rem .9rem; }
  .door strong { grid-column: 1; font-size: 1.3rem; }
  .door span { grid-column: 1 / -1; font-size: .95rem; }
  .door::after { grid-area: 1 / 2; align-self: center; width: 1.8rem; height: 1.8rem; }
}
@media (max-width: 860px) {
  .hero { row-gap: 1.75rem; padding-block: 2rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .shot.sheet { grid-template-columns: minmax(0, 1fr); }
  .foot .inner { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
}
@media (max-width: 480px) {
  .doors { grid-template-columns: 1fr; }
  .pick button { padding: .3rem .6rem; }
  .shot { zoom: .8; padding: 1rem; }
  .shot .top { margin: 0 -1rem 1rem; }
  .shot .row, .shot .tf { grid-template-columns: 1fr auto; }
  .shot .row .seg, .shot .tf .seg { grid-column: 1 / -1; justify-self: start; }
  .shot .besides { grid-template-columns: minmax(0, 1fr); }
  .shot .choices.two { grid-template-columns: 1fr; }
}
