@font-face {
  font-family: Inter;
  src: url("/literature-coach/fonts/inter-variable.woff2");
  font-weight: 100 900;
  font-display: optional;
}
@font-face {
  font-family: Jakarta;
  src: url("/literature-coach/fonts/plus-jakarta-sans-variable.woff2");
  font-weight: 100 900;
  font-display: optional;
}
:root {
  --ink: #0a1a33;
  --navy: #10294d;
  --navy-700: #1b3a66;
  --gold: #e7b53c;
  --gold-deep: #976714;
  --paper: #f6f3ec;
  --page: #fbfaf7;
  --tint: #eef1f7;
  --correct: #1f9d6b;
  --line: #d8d2c4;
  --text: #16263f;
  --muted: #5c6b82;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font:
    16px/1.65 Inter,
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
.brand,
button {
  font-family: Jakarta, system-ui, sans-serif;
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 16px 0;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 19px;
}
a {
  color: var(--navy);
  text-underline-offset: 4px;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #996912;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 10;
  padding: 12px;
}
header {
  background: var(--ink);
  color: white;
  padding: 20px max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
}
.brand small {
  display: block;
  font: 10px/2 Inter;
  letter-spacing: 0.15em;
  color: #dfd8c6;
}
.logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 26px;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav a {
  color: #fff;
  font-size: 14px;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  min-height: 75vh;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
footer span {
  display: block;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  display: inline-block;
  border-radius: 999px;
  background: var(--tint);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.hero {
  padding: 36px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.hero p {
  max-width: 630px;
}
.hero .chip {
  background: var(--gold);
  color: var(--ink);
}
.grid {
  display: grid;
  gap: 18px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
.text-card {
  position: relative;
  background: linear-gradient(135deg, #fff, var(--paper));
  border-top: 5px solid var(--gold);
}
.text-card .number {
  font-size: 46px;
  color: #8794a7;
  font-weight: 800;
  line-height: 1;
}
.muted {
  color: var(--muted);
}
button,
.button {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: var(--navy-700);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: var(--tint);
  color: var(--ink);
}
.secondary:hover {
  background: #dce3ed;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.tabs button {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 10px 14px;
}
.tabs button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.question {
  display: block;
  text-decoration: none;
  margin: 12px 0;
}
.question:hover {
  border-color: var(--navy);
}
.question h3 {
  margin: 12px 0;
}
.back {
  font-size: 13px;
  display: block;
  width: fit-content;
  margin-bottom: 20px;
}
.passage {
  white-space: pre-wrap;
  font: 15px/1.8 Inter;
  max-height: 350px;
  overflow: auto;
  background: var(--paper);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
textarea,
select {
  width: 100%;
  font: 16px/1.65 Inter;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
textarea {
  min-height: 300px;
  resize: vertical;
}
.count {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.radio {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-right: 18px;
}
.radio input {
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
}
details {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
.error,
.notice {
  background: #fff2df;
  border: 1px solid #c99b48;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  color: #68470e;
}
.progress {
  text-align: center;
  padding: 50px 24px;
  background: var(--paper);
  border-radius: 16px;
}
.spinner {
  margin: auto;
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.score {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 32px;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0;
}
.score h1,
.score h2 {
  color: white;
}
.score h1 {
  font-size: 72px;
  line-height: 1;
  margin: 10px 0;
}
.score h1 span {
  font-size: 25px;
  color: #bfcbe0;
}
.score .chip {
  background: var(--gold);
  color: var(--ink);
}
.score p {
  max-width: 600px;
}
.ao {
  border-top: 5px solid var(--navy);
}
.ao.strong {
  border-top-color: var(--correct);
}
.ao.developing {
  border-top-color: var(--gold-deep);
}
.ao.weak {
  border-top-color: #a34b53;
}
.ao .rating {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ao.strong .rating {
  color: #136845;
}
.ao.developing .rating {
  color: #79530c;
}
.ao.weak .rating {
  color: #8c3840;
}
.fix {
  background: #fcf3d9;
  border-color: #d5b265;
  margin: 24px 0;
}
.fix h2 {
  margin: 12px 0;
}
.upgrade {
  border: 1px solid #8aaca0;
  background: #f2f8f5;
  margin: 24px 0;
}
.upgrade-text {
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.85;
}
.change {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.before {
  color: var(--muted);
}
.after {
  color: #136845;
  font-weight: 600;
}
.quote blockquote {
  font-size: 22px;
  font-family: Jakarta;
  margin: 12px 0;
}
.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.filters > div {
  flex: 1;
  min-width: 180px;
}
.empty {
  padding: 40px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
p,
li,
h1,
h2,
h3,
blockquote {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (min-width: 700px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.aos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero {
    padding: 48px;
  }
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 30px;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
@media (max-width: 420px) {
  header {
    padding: 16px;
  }
  .brand {
    font-size: 19px;
  }
  main {
    padding: 26px 16px;
  }
  .hero {
    padding: 24px;
  }
  .score {
    padding: 24px;
  }
  .score h1 {
    font-size: 64px;
  }
  .card {
    padding: 20px;
  }
  nav {
    gap: 16px;
  }
}

.score .eyebrow {
  color: #d1dced;
}

main:focus {
  outline: none;
}

.status-pill {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 16px;
  background: var(--tint);
  color: var(--muted);
  font-size: 0.8rem;
}
.status-pill.online {
  color: var(--correct);
}
#access-code-area {
  margin: 1rem 0;
}
#access-code {
  max-width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
/* Shared Reportcards spacing, palette and type, with a quieter writing workspace. */
:root {
  --content: 1120px;
  --gutter: clamp(16px, 3vw, 32px);
}
body {
  line-height: 1.65;
}
header {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 18px
    max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
  gap: 24px;
}
.brand {
  color: var(--ink);
  font-size: 23px;
  gap: 12px;
}
.brand small {
  color: var(--muted);
  font:
    500 13px/1.6 Inter,
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
  flex: none;
}
nav {
  align-items: center;
  gap: 24px;
}
nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
}
nav a:hover {
  color: var(--gold-deep);
}
main {
  max-width: var(--content);
  padding: 44px var(--gutter) 72px;
}
footer {
  padding: 28px var(--gutter);
}
h1 {
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -0.035em;
  margin: 14px 0 20px;
}
h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
h3 {
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
p {
  margin: 0 0 18px;
}
p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  text-transform: none;
  letter-spacing: 0.035em;
  color: var(--gold-deep);
  font-weight: 700;
}
.hero {
  border: 0;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--navy);
  color: #eef1f7;
  margin-bottom: 28px;
}
.hero h1 {
  color: white;
  max-width: 780px;
}
.hero p {
  font-size: 18px;
  max-width: 650px;
}
.hero .eyebrow {
  color: var(--gold);
}
.grid {
  gap: 24px;
}
.card {
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(10, 26, 51, 0.025);
}
.pathways {
  margin: 0 0 44px;
}
.pathway {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.pathway h2,
.pathway p {
  margin: 0;
}
.pathway .button {
  margin-top: auto;
}
.own-path {
  background: var(--paper);
  border-color: #d8c799;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: Jakarta, system-ui, sans-serif;
  font-size: 15px;
  border-radius: 11px;
}
.gold {
  background: var(--gold);
  color: var(--ink);
}
.gold:hover {
  background: var(--gold-deep);
}
.text-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  border-top: 4px solid var(--gold);
  gap: 14px;
}
.text-card h2,
.text-card p {
  margin: 0;
}
.text-card .number {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.text-card .button {
  margin-top: auto;
}
.tabs {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  gap: 6px;
  margin: 28px 0;
}
.tabs button {
  border: 0;
  background: transparent;
  min-height: 44px;
}
#section[aria-label="Practise"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.question {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.question h3 {
  margin: 0;
}
.question > span:last-child {
  margin-top: auto;
  font-weight: 700;
  color: var(--navy);
}
.workspace {
  margin-top: 16px;
  gap: 32px;
}
.workspace > section {
  min-width: 0;
}
.workspace > section:last-child {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
fieldset {
  margin: 0 0 24px;
}
label {
  font-size: 14px;
  margin: 0 0 8px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 10px;
  font:
    16px/1.6 Inter,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: white;
}
input[type="checkbox"] {
  accent-color: var(--navy);
  width: 20px;
  height: 20px;
  flex: none;
}
.count {
  margin: 8px 0 22px;
}
.actions {
  align-items: center;
}
.ao {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ao h3,
.ao p {
  margin: 0;
}
.ao h3 {
  font-size: 17px;
}
.rating {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  padding: 36px;
}
.score p {
  margin: 16px 0 0;
}
.fix h2 {
  margin: 10px 0 14px;
}
.lead {
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 32px;
}
.own-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}
.own-guide {
  background: var(--paper);
}
.own-guide h2 {
  margin-top: 20px;
}
.own-guide ol {
  padding-left: 22px;
  margin: 24px 0;
}
.own-guide li {
  padding-left: 4px;
  margin: 0 0 16px;
}
.own-form > label {
  margin-top: 24px;
}
.short {
  min-height: 112px;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.privacy {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.own-wait {
  max-width: 760px;
  margin: 32px auto;
  padding: 44px;
  text-align: center;
}
.own-wait .spinner {
  margin-bottom: 28px;
}
@media (min-width: 700px) and (max-width: 1000px) {
  .grid.aos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace,
  .own-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 699px) {
  header {
    gap: 12px;
    padding: 16px var(--gutter);
  }
  nav {
    width: 100%;
    gap: 24px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  nav a {
    font-size: 13px;
  }
  .brand {
    font-size: 21px;
  }
  .logo {
    width: 50px;
    height: 50px;
  }
  main {
    padding-top: 28px;
  }
  .card {
    padding: 22px;
  }
  #section[aria-label="Practise"],
  .own-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .score {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 26px;
  }
  .score h1 {
    font-size: 64px;
  }
  .own-wait {
    padding: 28px 22px;
  }
  .tabs button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .workspace > section:last-child {
    padding: 20px;
  }
}

nav a[aria-current="page"] {
  color: var(--gold-deep);
  box-shadow: inset 0 -3px var(--gold-deep);
}

/* A small literary stage, with genuine depth from CSS 3D geometry. */
/* The footer appears once the first view has its final dimensions. */
main:has(> p[role="status"]) + footer { visibility: hidden; }
.hero { min-height: 352px; isolation: isolate; background: linear-gradient(120deg, #10294d, #091b36); }
.hero-copy { position: relative; z-index: 2; max-width: 57%; }
.hero-copy p { font-size: 17px; }
.literary-scene { position: absolute; inset: 0 0 0 55%; pointer-events: none; perspective: 900px; overflow: hidden; }
.stage-light { position: absolute; width: 390px; height: 390px; left: 0; top: -70px; background: radial-gradient(ellipse, #e7b53c26, transparent 65%); }
.stage-curtain { position: absolute; right: -12px; top: 0; height: 100%; width: 65px; opacity: .45; background: repeating-linear-gradient(90deg, #071329, #21324c 14px, #071329 25px); border-radius: 0 0 0 80%; box-shadow: -15px 0 40px #051127; }
.book-drift { position: absolute; top: 48%; left: 48%; width: 260px; height: 190px; margin: -95px 0 0 -130px; transform-style: preserve-3d; transform: rotateX(var(--parallax-y, 0deg)) rotateY(var(--parallax-x, 0deg)); transition: transform .45s ease-out; }
.open-book { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(48deg) rotateZ(-22deg); }
.book-cover, .book-leaf { position: absolute; width: 50%; height: 100%; transform-style: preserve-3d; border-radius: 3px 10px 10px 3px; transform-origin: left center; }
.book-cover { background: linear-gradient(90deg, #795924, #c6a04e 4%, #163154 7%, #0a1c37 92%, #dbba65); border: 2px solid #bb9347; box-shadow: 0 10px 0 #07152c, 0 12px 1px #ad8940; }
.book-cover.left { left: 0; transform-origin: right center; transform: rotateY(12deg); border-radius: 10px 3px 3px 10px; }
.book-cover.right { left: 50%; transform: rotateY(-12deg); }
.book-leaf { top: 6px; width: calc(50% - 7px); height: calc(100% - 14px); background: linear-gradient(90deg, #cdbf9e, #fff5d9 16%, #f5e9c9 90%, #c8b690); border: 1px solid #c7b48a; box-shadow: 0 2px #e4d4ae, 0 4px #a3926c, 0 6px #eadcbc; }
.book-leaf::after { content: ''; position: absolute; inset: 25px 17px 22px; opacity: .4; background: repeating-linear-gradient(transparent 0 9px, #756548 9px 10px); border-top: 3px double #94763c; }
.book-leaf.left { left: 6px; transform-origin: right center; transform: rotateY(12deg) translateZ(8px); border-radius: 8px 2px 2px 8px; background: linear-gradient(90deg, #f0dfb8, #fff6df 70%, #b8a482); }
.book-leaf.right { left: 50%; transform: rotateY(-12deg) translateZ(8px); }
.book-leaf.turning { left: 50%; transform: translateZ(12px) rotateY(-24deg); backface-visibility: visible; }
.book-leaf.leaf-two { transform: translateZ(14px) rotateY(-36deg); }
.book-spine { position: absolute; left: calc(50% - 2px); width: 4px; top: 6px; height: 95%; background: #a58a50; transform: translateZ(10px); }
.book-ribbon { position: absolute; width: 8px; height: 70px; left: 54%; bottom: -35px; background: linear-gradient(90deg, #b68b30, #f6d47a); transform: translateZ(15px) rotateZ(-5deg); clip-path: polygon(0 0,100% 0,100% 100%,50% 91%,0 100%); }
.book-shadow { position: absolute; width: 230px; height: 25px; left: 48%; top: 80%; transform: translateX(-50%); background: #020a1c70; filter: blur(12px); border-radius: 50%; }
.gold-dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #eccc7e; box-shadow: 0 0 9px #e7b53c; top: 24%; left: 25%; opacity: .5; }
.gold-dust i:nth-child(2) { left: 73%; top: 66%; animation-delay: -2s; }
.gold-dust i:nth-child(3) { left: 63%; top: 15%; animation-delay: -4s; }
.gold-dust i:nth-child(4) { left: 15%; top: 73%; animation-delay: -6s; }
.gold-dust i:nth-child(5) { left: 85%; top: 39%; animation-delay: -8s; }
.gold-dust i:nth-child(6) { left: 38%; top: 84%; animation-delay: -3s; }
.motion-enabled .open-book { animation: book-float 12s ease-in-out infinite; }
.motion-enabled .turning { animation: page-breathe 9s ease-in-out infinite; }
.motion-enabled .leaf-two { animation-delay: -4.5s; }
.motion-enabled .gold-dust i { animation-name: dust-drift; animation-duration: 10s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.scene-paused *, .scene-paused { animation-play-state: paused !important; }
.motion-tab-hidden * { animation-play-state: paused !important; }
@keyframes book-float { 0%,100% { transform: translateY(0) rotateX(48deg) rotateZ(-22deg) rotateY(-6deg); } 50% { transform: translateY(-12px) rotateX(53deg) rotateZ(-17deg) rotateY(6deg); } }
@keyframes page-breathe { 0%,100% { transform: translateZ(12px) rotateY(-20deg); } 45% { transform: translateZ(12px) rotateY(-65deg); } 65% { transform: translateZ(12px) rotateY(-45deg); } }
@keyframes dust-drift { 0%,100% { transform: translate3d(0,0,0); opacity: .2; } 50% { transform: translate3d(10px,-22px,0); opacity: .7; } }

.book-loader { position: relative; width: 78px; height: 58px; margin: 0 auto 24px; perspective: 250px; transform: rotate(-8deg); }
.book-loader::before, .book-loader::after, .book-loader i { content: ''; position: absolute; top: 0; width: 50%; height: 100%; background: #fff9e9; border: 1px solid #c3a462; border-bottom: 5px solid var(--navy); border-radius: 3px 7px 7px 3px; transform-origin: left; }
.book-loader::before { left: 0; transform: skewY(8deg); }
.book-loader::after, .book-loader i { left: 50%; transform: skewY(-8deg); }
.book-loader i { z-index: 1; background: repeating-linear-gradient(#fff9e9 0 8px,#e5d7b6 8px 9px); }
.motion-enabled .book-loader i { animation: loader-page 2.8s ease-in-out infinite; }
.book-loader i:nth-child(2) { animation-delay: .35s; }
.book-loader i:nth-child(3) { animation-delay: .7s; }
@keyframes loader-page { 0%,15% { transform: rotateY(0) skewY(-8deg); } 65%,100% { transform: rotateY(-180deg) skewY(-8deg); } }
.mark-orbit { position: relative; width: 164px; height: 164px; display: grid; place-items: center; margin-top: 12px; }
.mark-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mark-orbit circle { fill: none; stroke-width: 3; }
.ring-track { stroke: #ffffff26; }
.ring-value { stroke: #e7b53c; stroke-linecap: round; stroke-dasharray: 452.39; stroke-dashoffset: calc(452.39 * (1 - var(--progress, 0))); }
.score .mark-orbit h1 { font-size: 58px; margin: 0; letter-spacing: -.06em; }
.mark-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.course-papers {
  display: grid;
  gap: 24px;
}
.courses {
  margin-bottom: 24px;
}
.set-text-list {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
}
.set-text-list li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.set-text-list .actions {
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 900px) {
  .set-text-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}
.score .mark-orbit h1 span { font-size: 20px; letter-spacing: 0; }
.score { position: relative; overflow: hidden; }
.motion-enabled .score .chip { animation: badge-enter .55s .65s cubic-bezier(.2,.8,.2,1) both; }
@keyframes badge-enter { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.motion-enabled .motion-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--reveal-delay,0ms), transform .5s var(--reveal-delay,0ms); }
.motion-enabled .motion-reveal.revealed { opacity: 1; transform: translateY(0); }
.motion-enabled .fix.revealed { animation: next-step-glow 1.5s .5s ease-out; }
@keyframes next-step-glow { 50% { box-shadow: 0 0 0 5px #e7b53c25, 0 8px 30px #c8922a20; } }
.motion-enabled .upgrade:not([hidden]) .upgrade-text { animation: paragraph-enter .65s ease-out both; }
.motion-enabled .change.revealed .after { animation: paragraph-enter .6s .3s ease-out both; }
.motion-enabled .change.revealed .before { animation: before-settle .6s ease-out both; }
@keyframes paragraph-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes before-settle { from { color: var(--ink); } to { color: var(--muted); } }
.result-sparkles { position: absolute; inset: 0; pointer-events: none; }
.result-sparkles i { position: absolute; left: calc(40% + var(--spark) * 8%); top: 42%; width: 5px; height: 5px; background: #f4d78d; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); animation: result-spark 1.6s ease-out both; animation-delay: calc(var(--spark) * 70ms); }
@keyframes result-spark { from { opacity: 0; transform: translateY(15px) scale(.3); } 30% { opacity: .85; } to { opacity: 0; transform: translateY(-55px) rotate(60deg) scale(1.2); } }
@media (hover: hover) and (pointer: fine) {
  .motion-enabled .brand .logo { transition: transform .4s, filter .4s; }
  .motion-enabled .brand:hover .logo { transform: perspective(400px) rotateY(-15deg) rotateX(7deg); filter: drop-shadow(3px 4px 6px #c8922a40); }
  .motion-enabled :is(.text-card,.pathway,.quote) { position: relative; transition: transform .25s ease-out, box-shadow .25s; }
  .motion-enabled :is(.text-card,.pathway,.quote):hover { transform: perspective(1000px) translateY(-4px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); box-shadow: 0 16px 36px #10294d12; }
  .motion-enabled :is(.text-card,.pathway,.quote)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--shine-x,50%) var(--shine-y,50%),#e7b53c15,transparent 60%); }
  .motion-enabled :is(.text-card,.pathway,.quote):hover::after { opacity: 1; }
}
.motion-enabled :is(button,.button):active { transform: scale(.98); transition: transform .12s; }
@media (hover: none) and (pointer: coarse) {
  .motion-enabled :is(.text-card,.pathway,.quote):active { transform: scale(.995); transition: transform .15s ease-out; }
}
@media (max-width: 699px) {
  .hero { min-height: 0; padding: 28px 28px 250px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: 36px; }
  .hero-copy p { font-size: 16px; }
  .literary-scene { inset: auto 0 0; height: 230px; overflow: visible; }
  .book-drift { width: 230px; height: 158px; margin: -79px 0 0 -115px; top: 55%; left: 50%; }
  .stage-curtain { width: 36px; }
  .stage-light { left: calc(50% - 195px); top: -140px; }
  .book-shadow { top: 83%; left: 50%; }
  .mark-orbit { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-reveal { opacity: 1 !important; transform: none !important; }
  .book-drift { transform: none !important; }
}

.exam-choice label { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16px; }

.progress-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.progress-filters label, .study-plan label { display: block; font-weight: 600; }
.progress-chart svg { width: 100%; max-height: 200px; margin: 20px 0; }
.progress-chart svg line { stroke: var(--line); }
.progress-chart svg polyline { fill: none; stroke: var(--navy); stroke-width: 3; }
.progress-chart svg circle { fill: var(--gold-deep); }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 20px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
.table-scroll caption { text-align: left; color: var(--muted); padding: 10px 0; }
.table-scroll th, .table-scroll td { padding: 12px; border-bottom: 1px solid var(--line); min-width: 100px; vertical-align: top; }
.table-scroll thead { background: var(--tint); }
.targeted-drill { border-left: 5px solid var(--gold); }
.practice-source { padding: 16px; background: var(--tint); border-radius: 10px; }
.top-answer, .study-plan, .parent-card { margin: 24px 0; }
.top-answer summary, .study-plan summary, .parent-card summary { font-weight: 700; font-family: Jakarta, system-ui, sans-serif; }
.study-plan form { max-width: 600px; }
.writing-comparison { align-items: start; }
.writing-comparison > div { min-width: 0; }
.writing-comparison p { white-space: pre-wrap; overflow-wrap: anywhere; }
.writing-comparison mark { background: #f9e7ac; color: var(--ink); }
.revision-focus { margin: 24px 0 16px; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold-deep); border-radius: 12px; background: var(--paper); overflow-wrap: anywhere; scroll-margin-top: 24px; }
.revision-focus h2 { margin: 0 0 12px; font-size: 20px; }
.revision-focus h3 { margin: 12px 0 8px; font-size: 18px; }
.revision-focus p { margin: 8px 0 0; }
.revision-focus:focus { outline: 3px solid var(--navy); outline-offset: 4px; }
.parent-preview { max-width: 620px; margin: 20px 0; padding: 24px; border: 1px solid var(--line); border-left: 5px solid var(--gold-deep); border-radius: 12px; background: var(--paper); overflow-wrap: anywhere; }
.parent-preview h3 { margin: 0; }
.parent-preview h4 { margin: 24px 0 8px; }
.parent-preview p { margin: 8px 0; }
.parent-preview .parent-total { font-size: 24px; margin: 20px 0; }
.parent-preview dl { margin: 0; }
.parent-preview dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.parent-preview dt { font-weight: 600; }
.parent-preview dd { margin: 0; }
.parent-preview ul { padding-left: 20px; margin: 20px 0 0; }
.practice-card { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.practice-card .button { margin-top: auto; }
#practice-items { align-items: stretch; }
[role="tab"][aria-selected="true"] { background: var(--navy); color: white; }
[role="tabpanel"] { margin-top: 24px; }
.practice-form textarea.short { min-height: 320px; }
.practice-form textarea[name="question"] { min-height: 160px; }
.practice-form textarea.practice-context { min-height: 88px; }
