:root {
  --bg: #070a0e;
  --bg-soft: #0b0f14;
  --panel: #0f141a;
  --panel-raised: #151b22;
  --panel-light: #1b2129;
  --charcoal: #202121;
  --neon: #d6e41b;
  --neon-bright: #e5f21e;
  --neon-soft: rgba(214, 228, 27, 0.12);
  --white: #ffffff;
  --text: #f5f6f7;
  --muted: #a8adb5;
  --muted-dark: #727984;
  --line: rgba(255, 255, 255, 0.11);
  --line-neon: rgba(214, 228, 27, 0.42);
  --error: #ffb6b6;
  --success: #dff28e;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  --glow: 0 0 0 1px rgba(214, 228, 27, 0.18), 0 22px 65px rgba(214, 228, 27, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 52% 13%, rgba(214, 228, 27, 0.07), transparent 25%),
    linear-gradient(180deg, #080b10 0%, #070a0e 54%, #090d12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--neon);
  color: #090b0e;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 14, 0.84);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--site-width), calc(100% - 42px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
 .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand-image {
  display: block;
  width: 164px;
  height: auto;
  max-height: 94px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 16px rgba(214, 228, 27, 0.08));
  transition: filter 180ms ease, opacity 180ms ease;
}
.brand:hover .brand-image {
  filter: drop-shadow(0 0 18px rgba(214, 228, 27, 0.18));
  opacity: 0.96;
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neon);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.header-link span { font-size: 23px; font-weight: 400; }
.header-link:hover { color: var(--neon-bright); }

main { overflow: hidden; }
.hero {
  position: relative;
  padding: 58px 0 32px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: 45%;
  top: 40px;
  border-radius: 50%;
  background: rgba(214, 228, 27, 0.045);
  filter: blur(85px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(var(--site-width), calc(100% - 42px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}
.hero-copy-block { position: relative; z-index: 3; }
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  color: var(--neon);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.hero h1 span { display: block; color: var(--neon); }
.hero-copy {
  max-width: 650px;
  margin: 28px 0 30px;
  color: #d6d9de;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}
.hero-features {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text);
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 228, 27, 0.28);
  border-radius: 50%;
  background: rgba(214, 228, 27, 0.04);
  color: var(--neon);
}
.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-item strong { display: block; font-size: 14px; font-weight: 700; }
.feature-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.feature-divider { width: 1px; height: 54px; background: var(--line); }

.report-visual {
  position: relative;
  min-height: 465px;
}
.report-paper {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 360px;
  min-height: 430px;
  padding: 32px 30px;
  border: 1px solid rgba(214, 228, 27, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 24, 28, 0.94), rgba(10, 13, 17, 0.9));
  color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.4);
  transform: rotate(6deg);
  overflow: hidden;
}
.report-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.025), transparent 62%);
  pointer-events: none;
}
.report-title {
  font: 400 23px Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-align: center;
}
.report-rule { height: 1px; margin: 19px 0 24px; background: rgba(255, 255, 255, 0.17); }
.report-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 17px 0; font-size: 12px; }
.report-row i { border-top: 1px dashed rgba(255, 255, 255, 0.23); }
.report-row b { color: var(--neon); font-size: 20px; text-shadow: 0 0 10px rgba(214, 228, 27, 0.52); }
.report-comments {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}
.report-comments small { font-size: 9px; letter-spacing: 0.12em; }
.report-comments p {
  margin: 8px 0 0;
  font: italic 15px/1.4 Georgia, "Times New Roman", serif;
  color: rgba(255, 255, 255, 0.55);
}
.grade-orb {
  display: grid;
  place-items: center;
  border: 3px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  background: rgba(18, 22, 21, 0.86);
  box-shadow: 0 0 20px rgba(214, 228, 27, 0.48), 0 0 70px rgba(214, 228, 27, 0.18), inset 0 0 35px rgba(214, 228, 27, 0.1);
  text-shadow: 0 0 20px rgba(214, 228, 27, 0.6);
}
.hero-grade {
  position: absolute;
  left: 4px;
  top: 102px;
  width: 235px;
  height: 235px;
  z-index: 3;
  font: italic 700 106px/1 Georgia, "Times New Roman", serif;
  transform: rotate(-5deg);
}
.spark { position: absolute; z-index: 5; color: var(--neon); text-shadow: 0 0 16px rgba(214, 228, 27, 0.9); }
.spark-one { left: 53px; bottom: 40px; font-size: 30px; }
.spark-two { right: 34px; top: 84px; font-size: 18px; }

.grader-shell, .results, .loading-panel, .how-it-works {
  width: min(var(--site-width), calc(100% - 42px));
  margin-inline: auto;
}
.grader-shell {
  position: relative;
  z-index: 4;
  margin-top: 18px;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--line-neon);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 23, 29, 0.98), rgba(9, 13, 18, 0.98));
  box-shadow: var(--shadow), var(--glow);
}
.grader-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(214, 228, 27, 0.24), transparent 30%, transparent 68%, rgba(214, 228, 27, 0.12));
  filter: blur(20px);
  opacity: 0.4;
}
.grader-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin-bottom: 24px;
}
.grader-heading { display: flex; align-items: center; gap: 18px; }
.round-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 228, 27, 0.26);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(214, 228, 27, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--neon);
}
.round-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grader-heading h2, .loading-panel h2, .how-it-works h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.grader-heading p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.mini-note { display: flex; align-items: flex-start; gap: 12px; max-width: 340px; color: var(--muted); font-size: 13px; }
.mini-note > span {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  font-size: 12px;
  font-weight: 800;
}
.mini-note p { margin: 0; }
.mini-note strong { color: var(--neon); }

.prompt-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 154px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, rgba(24, 30, 37, 0.98), rgba(13, 17, 22, 0.98));
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.prompt-card:hover { border-color: rgba(214, 228, 27, 0.25); }
.prompt-card:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(214, 228, 27, 0.12), 0 18px 45px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.prompt-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px 12px;
  border-right: 1px solid rgba(214, 228, 27, 0.44);
  background: linear-gradient(150deg, rgba(214, 228, 27, 0.6), rgba(113, 123, 8, 0.15));
  color: var(--neon);
  text-align: center;
}
.prompt-label span { font-size: 31px; line-height: 1; font-weight: 850; letter-spacing: -0.04em; }
.prompt-label label { max-width: 72px; font-size: 13px; line-height: 1.25; font-weight: 700; }
.prompt-field { position: relative; min-width: 0; }
textarea {
  width: 100%;
  min-height: 152px;
  resize: vertical;
  padding: 25px 24px 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
textarea::placeholder, input::placeholder { color: #666e79; }
.counter { position: absolute; right: 17px; bottom: 13px; color: var(--muted-dark); font-size: 11px; }

.add-prompt-card {
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 17px 22px;
  border: 1px dashed var(--neon);
  border-radius: var(--radius-md);
  background: rgba(214, 228, 27, 0.015);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.add-prompt-card:hover { background: rgba(214, 228, 27, 0.055); transform: translateY(-1px); }
.add-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px dashed var(--neon);
  border-radius: 13px;
  color: var(--neon);
  font-size: 32px;
  font-weight: 300;
}
.add-prompt-card strong { display: block; color: var(--neon); font-size: 16px; }
.add-prompt-card em { font-style: normal; font-weight: 500; }
.add-prompt-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
}
.privacy-note p { margin: 0; }
.privacy-note strong { color: var(--text); }
.privacy-icon { color: var(--neon); flex: 0 0 auto; }
.privacy-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form-error {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 118, 118, 0.24);
  border-radius: 10px;
  background: rgba(133, 34, 34, 0.18);
  color: var(--error);
  font-size: 13px;
}
.form-error[data-state="success"] {
  border-color: rgba(214, 228, 27, 0.28);
  background: rgba(214, 228, 27, 0.1);
  color: var(--success);
}
.grader-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}
.primary-button, .secondary-button, .sample-button, .text-button {
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.primary-button {
  min-width: 335px;
  min-height: 62px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  border: 1px solid var(--neon);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(12, 16, 20, 0.98), rgba(214, 228, 27, 0.2));
  color: var(--neon);
  box-shadow: 0 0 24px rgba(214, 228, 27, 0.15), inset 0 0 24px rgba(214, 228, 27, 0.04);
  font-size: 18px;
}
.primary-button > svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button-arrow { margin-left: 4px; font-size: 34px; line-height: 0.7; font-weight: 300; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(214, 228, 27, 0.23), 0 14px 34px rgba(0, 0, 0, 0.3); }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.sample-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px dotted var(--neon);
  background: none;
  color: var(--neon);
  font-size: 15px;
}
.sample-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sample-button:hover { color: var(--neon-bright); transform: translateY(-1px); }

.loading-panel {
  margin-top: 38px;
  padding: 82px 28px;
  border: 1px solid var(--line-neon);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 23, 29, 0.98), rgba(9, 13, 18, 0.98));
  box-shadow: var(--shadow), var(--glow);
  text-align: center;
}
.pencil-loader {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  box-shadow: 0 0 30px rgba(214, 228, 27, 0.16);
  animation: wobble 1s infinite alternate ease-in-out;
}
.pencil-loader svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes wobble { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.loading-panel p:last-child { color: var(--muted); }

.results { margin-top: 38px; padding-bottom: 72px; }
.results-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 46px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line-neon);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(140deg, rgba(20, 26, 33, 0.98), rgba(8, 12, 16, 0.98));
  box-shadow: var(--shadow), var(--glow);
}
.results-header h2 { margin: 0 0 17px; font-size: clamp(42px, 6vw, 74px); line-height: 0.96; letter-spacing: -0.055em; }
.results-header p:last-child { max-width: 710px; color: var(--muted); font-size: 16px; }
.grade-stamp {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 3px solid var(--neon);
  border-radius: 50%;
  color: var(--neon);
  background: rgba(214, 228, 27, 0.04);
  box-shadow: 0 0 28px rgba(214, 228, 27, 0.36), inset 0 0 30px rgba(214, 228, 27, 0.08);
  transform: rotate(3deg);
}
.grade-stamp div { font: italic 700 82px/0.9 Georgia, "Times New Roman", serif; }
.grade-stamp span { margin-top: 9px; color: var(--text); font-size: 13px; font-weight: 850; }
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}
.rubric-item { padding: 22px 18px; border-right: 1px solid var(--line); }
.rubric-item:last-child { border-right: 0; }
.rubric-item strong { display: block; min-height: 42px; color: var(--text); font-size: 12px; }
.rubric-score { display: flex; align-items: baseline; gap: 4px; margin: 10px 0; }
.rubric-score b { color: var(--neon); font-size: 35px; line-height: 1; }
.rubric-score span { color: var(--muted-dark); font-size: 11px; }
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--neon); box-shadow: 0 0 12px rgba(214, 228, 27, 0.5); }
.results-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; }
.panel, .report-panel, .cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(20, 25, 31, 0.96), rgba(11, 15, 20, 0.96));
}
.panel { padding: clamp(25px, 4vw, 42px); }
.issue { padding: 20px 0; border-top: 1px solid var(--line); }
.issue:first-of-type { border-top: 0; }
.issue strong { display: flex; gap: 13px; color: var(--text); font-size: 18px; }
.issue strong span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--neon);
  color: #11150b;
  font-size: 12px;
}
.issue p { margin: 8px 0 0 38px; color: var(--muted); font-size: 14px; }
.prompt-result { padding: 18px 0; border-top: 1px solid var(--line); }
.prompt-result:first-of-type { border-top: 0; }
.prompt-result-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.prompt-result-head strong { font-size: 14px; }
.prompt-result-head b { color: var(--neon); font: italic 700 31px Georgia, "Times New Roman", serif; }
.prompt-result p { color: var(--muted); font-size: 13px; }
.positive-signal { margin-top: 10px !important; padding-left: 11px; border-left: 2px solid var(--neon); color: #d8dcae !important; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tags span { padding: 6px 9px; border: 1px solid rgba(214, 228, 27, 0.19); border-radius: 999px; background: rgba(214, 228, 27, 0.05); color: #d7dc9c; font-size: 10px; font-weight: 700; }
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 46px);
  border-color: var(--line-neon);
  background: radial-gradient(circle at 82% 50%, rgba(214, 228, 27, 0.12), transparent 28%), linear-gradient(140deg, #12171d, #080b10);
}
.cta-panel h3, .report-panel h3 { margin: 0; font-size: clamp(29px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.cta-panel p:last-child, .report-panel-copy p:last-child { color: var(--muted); max-width: 650px; }
.button-link { min-width: 245px; text-decoration: none; }
.report-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 44px);
}
.report-form { display: grid; gap: 14px; align-content: start; }
.report-form label span { display: block; margin-bottom: 6px; color: var(--text); font-size: 12px; font-weight: 800; }
.report-form em { color: var(--muted); font-weight: 400; }
input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}
input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(214, 228, 27, 0.1); }
.secondary-button {
  min-height: 49px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--neon);
  color: #10130a;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--neon);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 5px;
}
.start-over { display: block; margin: 28px auto 0; }

.how-it-works { padding: 100px 0 118px; }
.rubric-heading { max-width: 760px; }
.rubric-heading > p:last-child { color: var(--muted); font-size: 16px; }
.subject-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 45px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  overflow: hidden;
}
.subject-list article { min-height: 220px; padding: 24px 20px; background: var(--panel); }
.subject-list span { color: var(--neon); font-size: 12px; font-weight: 850; }
.subject-list h3 { margin: 55px 0 8px; font-size: 20px; line-height: 1.06; }
.subject-list p { color: var(--muted); font-size: 13px; }

footer { border-top: 1px solid var(--line); background: #06090d; }
.footer-inner {
  width: min(var(--site-width), calc(100% - 42px));
  min-height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
}
footer span { color: var(--muted-dark); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--neon); }

.legal-page { min-height: 100vh; }
.legal-main { width: min(900px, calc(100% - 42px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-main h1 { margin: 0; font-size: clamp(47px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.055em; }
.legal-card { margin-top: 36px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line-neon); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(19, 25, 31, 0.98), rgba(9, 13, 17, 0.98)); color: var(--muted); box-shadow: var(--glow); }
.legal-card p { margin: 0 0 18px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: var(--text); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .report-visual { min-height: 420px; width: min(570px, 100%); margin: 0 auto; }
  .report-paper { right: 8%; }
  .hero-grade { left: 9%; }
  .hero-features { max-width: 760px; }
  .rubric-grid { grid-template-columns: repeat(2, 1fr); }
  .rubric-item { border-bottom: 1px solid var(--line); }
  .results-columns, .report-panel, .cta-panel { grid-template-columns: 1fr; }
  .subject-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; padding: 35px 0; gap: 20px; }
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 28px, var(--site-width)); min-height: 78px; }
  .brand-image { width: 134px; max-height: 76px; }
  .header-link { max-width: 122px; justify-content: flex-end; text-align: right; font-size: 12px; line-height: 1.25; }
  .hero { padding-top: 46px; }
  .hero-inner, .grader-shell, .results, .loading-panel, .how-it-works { width: calc(100% - 24px); }
  .hero h1 { font-size: clamp(54px, 17vw, 74px); }
  .hero-copy { font-size: 17px; }
  .hero-features { display: grid; gap: 15px; }
  .feature-divider { display: none; }
  .report-visual { min-height: 340px; }
  .report-paper { right: -7%; width: 305px; min-height: 350px; padding: 25px 24px; }
  .report-row { margin: 11px 0; }
  .report-comments { margin-top: 18px; }
  .hero-grade { left: 0; top: 85px; width: 175px; height: 175px; font-size: 78px; }
  .grader-shell { padding: 25px 16px; }
  .grader-intro { display: block; }
  .mini-note { margin-top: 20px; }
  .round-icon { width: 52px; height: 52px; }
  .prompt-card { grid-template-columns: 82px minmax(0, 1fr); min-height: 148px; }
  .prompt-label span { font-size: 25px; }
  .prompt-label label { font-size: 11px; }
  textarea { min-height: 146px; padding: 21px 17px 37px; font-size: 14px; }
  .add-prompt-card { gap: 15px; padding: 14px; }
  .add-icon { width: 48px; height: 48px; }
  .grader-actions { gap: 20px; }
  .primary-button { width: 100%; min-width: 0; font-size: 16px; }
  .results-header { display: block; }
  .grade-stamp { width: 150px; height: 150px; margin-top: 30px; }
  .grade-stamp div { font-size: 68px; }
  .rubric-grid, .subject-list { grid-template-columns: 1fr; }
  .rubric-item { border-right: 0; }
  .subject-list article { min-height: auto; }
  .subject-list h3 { margin-top: 28px; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
