/* Statement Lab v0.1
 * Bold dark identity with glowing accents.
 * Deep navy canvas, warm gold accent, mint and coral score tiers, high contrast.
 * No new fonts. No external packages. No em dash characters.
 */

:root {
  --bg: #0b121d;
  --bg-2: #0f1722;
  --surface: #15202f;
  --surface-2: #1b2737;
  --surface-3: #20304400;
  --line: #2a3853;
  --line-2: #223049;
  --ink: #eef3fa;
  --ink-soft: #aab6cb;
  --ink-faint: #76859c;

  --gold: #e6b366;
  --gold-bright: #f6d79f;
  --gold-deep: #c8924a;

  --mint: #4fd6a8;
  --mint-bg: rgba(79, 214, 168, 0.12);
  --coral: #ff7d7d;
  --coral-bg: rgba(255, 125, 125, 0.12);
  --amber: #f5c46b;
  --amber-bg: rgba(245, 196, 107, 0.12);
  --blue-soft: #8fb0e0;
  --blue-bg: rgba(143, 176, 224, 0.12);

  --glow-gold: 0 10px 34px rgba(230, 179, 102, 0.40);
  --glow-soft: 0 16px 44px rgba(0, 0, 0, 0.45);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
/* Animated ambient glow layer */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% -10% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% 8%, rgba(230, 179, 102, 0.16), transparent 60%),
    radial-gradient(680px 460px at 92% 18%, rgba(79, 214, 168, 0.12), transparent 60%),
    radial-gradient(700px 520px at 70% 100%, rgba(143, 176, 224, 0.10), transparent 60%);
  animation: bg-drift 22s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
body > * { position: relative; z-index: 1; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(11, 18, 29, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
}
.byline {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.demo-badge {
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
}
.topbar-cta {
  text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 13.5px; color: #1a1205;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--glow-gold);
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.topbar-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 40px rgba(230, 179, 102, 0.6); filter: brightness(1.05); }

/* ---------- Stage and views ---------- */
.stage { max-width: 1000px; margin: 0 auto; padding: 44px 24px 72px; }
.view { display: none; animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.view-active { display: block; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal (classes added by app.js) */
.sl-reveal { opacity: 0; transform: translateY(28px); }
.sl-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- Paste view ---------- */
.intro { text-align: center; margin-bottom: 30px; }
.intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.18;
  color: #fff;
  margin: 0 auto 14px;
  padding-bottom: 0.12em;
  max-width: 760px;
  letter-spacing: -0.4px;
}
.intro h1 { background: linear-gradient(180deg, #ffffff 0%, #cdd8ea 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  font-size: 16.5px;
}
.lede-secondary {
  color: var(--ink-faint);
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 13.5px;
}
.lede-secondary a { color: var(--gold-bright); text-decoration: none; font-weight: 700; }
.lede-secondary a:hover { text-shadow: 0 0 14px rgba(230, 179, 102, 0.6); }

.privacy-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 auto 24px;
  max-width: 780px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.privacy-note strong { color: #fff; display: block; margin-bottom: 6px; }
.privacy-note ul { margin: 0; padding-left: 18px; }
.privacy-note li { margin: 3px 0; }

.paste-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.field-label, .meta-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--gold);
  text-transform: uppercase;
}
.field-label { display: block; margin-bottom: 8px; }
textarea#essay {
  width: 100%;
  min-height: 290px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea#essay::placeholder { color: var(--ink-faint); }
textarea#essay:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 179, 102, 0.22), 0 0 30px rgba(230, 179, 102, 0.18);
  background: #101926;
}
.essay-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.limit-status.over { color: var(--coral); font-weight: 700; }
.limit-status.ok { color: var(--mint); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin-top: 24px;
}
.meta-field { display: flex; flex-direction: column; }
.meta-field label { margin-bottom: 6px; text-transform: none; font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--ink-soft); }
.optional { color: var(--ink-faint); font-weight: 400; font-size: 11.5px; }
.meta-field select, .meta-field input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.meta-field select option { background: var(--surface-2); color: var(--ink); }
.meta-field select:focus, .meta-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 179, 102, 0.22);
  background: #101926;
}

.form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-hint { font-size: 13px; color: var(--ink-faint); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1205;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: var(--glow-gold);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px) scale(1.01); box-shadow: 0 16px 44px rgba(230, 179, 102, 0.6); filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; filter: grayscale(0.4); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 22px rgba(230, 179, 102, 0.22); }

/* ---------- Report view ---------- */
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.report-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  color: #fff;
  margin: 0;
}
.report-context { color: var(--ink-soft); margin: 4px 0 0; font-size: 14px; }
.report-disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

/* Review method note */
.review-method {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 13px 17px; margin-bottom: 28px;
}
.review-method-label {
  font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 700;
  color: var(--gold); white-space: nowrap; margin-top: 2px;
}
.review-method p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Hero score ---------- */
.hero-score {
  display: flex;
  align-items: center;
  gap: 34px;
  background:
    radial-gradient(700px 240px at 12% 10%, rgba(230, 179, 102, 0.18), transparent 60%),
    linear-gradient(135deg, #11203a, #0c1726);
  border: 1px solid var(--line);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 38px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.hero-ring {
  --val: 0;
  flex: 0 0 auto;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(closest-side, #0c1726 78%, transparent 79%),
    conic-gradient(var(--gold) calc(var(--val) * 1%), rgba(255, 255, 255, 0.08) 0);
  transition: background 1s ease;
  box-shadow: 0 0 50px rgba(230, 179, 102, 0.28);
}
.hero-value { font-family: var(--serif); font-size: 50px; font-weight: 600; line-height: 1; color: #fff; }
.hero-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-bright); margin-top: 6px; max-width: 110px; text-align: center; line-height: 1.2; }
.hero-side h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 0 0 8px; color: #fff; }
.hero-summary { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 15.5px; }

/* ---------- Section titles ---------- */
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  margin: 38px 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}
.section-title::before {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(230, 179, 102, 0.6);
}
.section-note { color: var(--ink-faint); font-size: 13.5px; margin: 6px 0 14px; }

/* ---------- Score grid ---------- */
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  animation: sl-rise 0.55s ease both;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.score-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 26px rgba(230, 179, 102, 0.18);
  border-left-color: var(--gold);
}
.score-card .sc-top { display: flex; justify-content: space-between; align-items: baseline; }
.score-card .sc-name { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.score-card .sc-val { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #fff; transition: color 0.2s, text-shadow 0.2s; }
.score-card:hover .sc-val { color: var(--gold-bright); text-shadow: 0 0 18px rgba(230, 179, 102, 0.5); }
.score-bar { height: 8px; background: var(--bg-2); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.score-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.score-bar.tier-low > span { background: linear-gradient(90deg, #d9534f, var(--coral)); box-shadow: 0 0 16px rgba(255, 125, 125, 0.55); }
.score-bar.tier-mid > span { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 16px rgba(230, 179, 102, 0.55); }
.score-bar.tier-high > span { background: linear-gradient(90deg, #2fae84, var(--mint)); box-shadow: 0 0 16px rgba(79, 214, 168, 0.55); }

.sc-evidence-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sc-why { font-size: 12px; color: var(--ink-faint); margin: 8px 0 0; line-height: 1.45; }

/* ---------- Evidence tags ---------- */
.evidence-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
}
.evidence-strong { background: var(--mint-bg); border-color: rgba(79, 214, 168, 0.4); color: var(--mint); }
.evidence-moderate { background: var(--amber-bg); border-color: rgba(245, 196, 107, 0.4); color: var(--amber); }
.evidence-weak { background: var(--surface-2); border-color: var(--line); color: var(--ink-faint); }

/* ---------- Risk flags ---------- */
.risk-flags { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.risk-item {
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; gap: 12px; align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.risk-item:hover { transform: translateX(3px); }
.risk-item .rk-tag {
  font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin-top: 1px;
}
.risk-high { border-color: rgba(255, 125, 125, 0.38); background: var(--coral-bg); }
.risk-high .rk-tag { background: var(--coral); color: #2a0d0d; }
.risk-medium { border-color: rgba(245, 196, 107, 0.38); background: var(--amber-bg); }
.risk-medium .rk-tag { background: var(--amber); color: #2a1f08; }
.risk-low { border-color: rgba(143, 176, 224, 0.34); background: var(--blue-bg); }
.risk-low .rk-tag { background: var(--blue-soft); color: #0c1726; }
.rk-body strong { display: block; color: #fff; font-size: 14.5px; }
.rk-body span { color: var(--ink-soft); font-size: 13px; }
.rk-action { color: var(--ink); font-size: 13px; margin: 5px 0 0; }
.rk-action strong { color: var(--gold-bright); }
.rk-cue { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.rk-cue code { font-family: var(--sans); background: rgba(230, 179, 102, 0.16); border-radius: 5px; padding: 1px 7px; color: var(--gold-bright); }
.risk-empty { background: var(--mint-bg); border: 1px solid rgba(79, 214, 168, 0.4); color: var(--mint); padding: 13px 17px; border-radius: var(--radius-sm); font-size: 14px; }

/* ---------- Authenticity ---------- */
.authenticity {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px; margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.auth-head { display: flex; align-items: flex-start; gap: 16px; }
.auth-level {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft);
}
.auth-level.level-low { background: var(--mint-bg); border-color: rgba(79, 214, 168, 0.4); color: var(--mint); }
.auth-level.level-medium { background: var(--amber-bg); border-color: rgba(245, 196, 107, 0.4); color: var(--amber); }
.auth-level.level-high { background: var(--coral-bg); border-color: rgba(255, 125, 125, 0.4); color: var(--coral); }
.auth-why { margin: 0; color: var(--ink-soft); font-size: 14px; }
.auth-disclaimer {
  margin: 14px 0 0; padding: 11px 15px; font-size: 12.5px; color: var(--ink-soft);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.auth-block { margin-top: 18px; }
.auth-block h4 { font-family: var(--serif); font-weight: 600; font-size: 16px; margin: 0 0 10px; color: #fff; }
.auth-block ul { margin: 0; padding-left: 18px; }
.auth-block li { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0; }
.auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-findings { display: flex; flex-direction: column; gap: 9px; }
.auth-finding {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: transform 0.16s ease, border-color 0.2s ease;
}
.auth-finding:hover { transform: translateX(3px); border-color: var(--gold); }
.auth-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.3px; color: var(--gold); white-space: nowrap; }
.auth-phrase { font-family: var(--serif); font-size: 13.5px; color: var(--ink); background: rgba(230, 179, 102, 0.16); border-radius: 5px; padding: 1px 8px; }
.auth-where { font-size: 12px; color: var(--ink-faint); margin-left: auto; white-space: nowrap; }
.auth-clean { color: var(--mint); font-size: 13.5px; }

/* ---------- Contextual CTA ---------- */
.context-cta[hidden] { display: none; }
.context-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 0 0 30px; padding: 18px 22px;
  background: linear-gradient(135deg, #182338, #11192a);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
}
.context-cta p { margin: 0; flex: 1; min-width: 220px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.context-cta-btn {
  display: inline-block; white-space: nowrap; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1205;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-sm); box-shadow: var(--glow-gold);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.context-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 40px rgba(230, 179, 102, 0.6); }

/* ---------- Panels ---------- */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.triple-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 17px 19px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.panel:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
.panel h4 { font-family: var(--serif); font-weight: 600; font-size: 16px; margin: 0 0 10px; color: #fff; }
.panel ul { margin: 0; padding-left: 18px; }
.panel li { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0; }
.panel-good { border-top: 3px solid var(--mint); }
.panel-watch { border-top: 3px solid var(--amber); }

/* ---------- Paragraph feedback ---------- */
.paragraph-feedback { display: flex; flex-direction: column; gap: 10px; }
.para-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.para-item:hover { border-color: var(--gold); }
.para-head { display: flex; align-items: center; gap: 12px; padding: 14px 17px; cursor: pointer; user-select: none; transition: background 0.2s; }
.para-head:hover { background: var(--surface-2); }
.para-num {
  flex: 0 0 auto; font-family: var(--serif); font-weight: 600; font-size: 15px;
  color: #1a1205; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px rgba(230, 179, 102, 0.4);
}
.para-preview { flex: 1; color: var(--ink-soft); font-size: 13.5px; font-family: var(--serif); }
.para-words { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.para-chevron { color: var(--gold); transition: transform 0.3s; font-size: 13px; }
.para-item.open .para-chevron { transform: rotate(90deg); }
.para-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border-top: 1px solid transparent; }
.para-item.open .para-body { max-height: 420px; border-top-color: var(--line-2); }
.para-body ul { margin: 0; padding: 14px 16px 16px 34px; }
.para-body li { font-size: 13.5px; color: var(--ink-soft); margin: 5px 0; }

/* ---------- Priorities ---------- */
.priorities { list-style: none; padding: 0; margin: 18px 0 0; }
.priorities li {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 15px 19px 15px 17px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
.priorities li:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 22px rgba(230, 179, 102, 0.14); }
.pr-rank { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--gold-bright); min-width: 26px; text-shadow: 0 0 16px rgba(230, 179, 102, 0.4); }
.pr-title { font-weight: 700; color: #fff; font-size: 15px; }
.pr-score { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.pr-why { color: var(--ink-soft); font-size: 13.5px; margin: 4px 0 6px; }
.pr-action { color: var(--ink); font-size: 13.5px; }
.pr-action strong { color: var(--gold-bright); }

/* ---------- Revision plan ---------- */
.revision-plan { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: rp; }
.revision-plan li {
  position: relative; padding: 13px 17px 13px 52px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink-soft); box-shadow: var(--shadow-sm); counter-increment: rp;
  transition: transform 0.16s ease;
}
.revision-plan li:hover { transform: translateX(4px); }
.revision-plan li::before {
  content: counter(rp);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1205;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; font-family: var(--sans);
  box-shadow: 0 0 14px rgba(230, 179, 102, 0.4);
}

.report-foot { margin-top: 38px; text-align: center; }

/* ---------- Prominent human review offer ---------- */
.human-note {
  margin-top: 38px; padding: 30px 32px;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(230, 179, 102, 0.22), transparent 60%),
    linear-gradient(135deg, #13233f, #0c1726);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.human-note strong { display: block; font-family: var(--serif); font-size: 23px; margin-bottom: 8px; color: #fff; }
.human-note span { font-size: 14.5px; color: rgba(255, 255, 255, 0.82); }
.human-cta {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.human-cta-text { flex: 1; min-width: 220px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.human-cta-btn {
  display: inline-block; white-space: nowrap; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1205;
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius-sm);
  box-shadow: var(--glow-gold);
  animation: sl-pulse 2.8s ease-in-out infinite;
  transition: transform 0.16s ease, filter 0.2s ease;
}
.human-cta-btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.07); }

/* ---------- Reviewing (staged) view ---------- */
.reviewing-shell {
  max-width: 640px; margin: 28px auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 34px;
}
.reviewing-title { font-family: var(--serif); font-weight: 600; font-size: 28px; color: #fff; margin: 0 0 6px; }
.reviewing-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 24px; }
.reviewing-track { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-bottom: 24px; position: relative; }
.reviewing-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 18px rgba(230, 179, 102, 0.6);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative; overflow: hidden;
}
.reviewing-bar::after {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sl-sheen 1.4s ease-in-out infinite;
}
.reviewing-stages { list-style: none; margin: 0; padding: 0; }
.reviewing-stage { display: flex; align-items: center; gap: 14px; padding: 9px 2px; opacity: 0.4; transition: opacity 0.4s; }
.reviewing-stage.active, .reviewing-stage.done { opacity: 1; }
.rs-dot {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #1a1205; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.reviewing-stage.active .rs-dot { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230, 179, 102, 0.2), 0 0 18px rgba(230, 179, 102, 0.4); }
.reviewing-stage.done .rs-dot { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-color: var(--gold); }
.rs-spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gold); border-top-color: transparent; animation: rs-rotate 0.8s linear infinite; }
@keyframes rs-rotate { to { transform: rotate(360deg); } }
.rs-text { font-size: 14.5px; color: var(--ink); }
.rs-detail { font-size: 12.5px; color: var(--ink-faint); margin-left: auto; white-space: nowrap; }

/* ---------- Calibration view (developer only) ---------- */
.calib-essay {
  width: 100%; min-height: 160px; resize: vertical; margin-top: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px;
  font-family: var(--serif); font-size: 15px; background: var(--bg-2); color: var(--ink);
}
.calib-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.calib-row label { font-size: 12.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 5px; }
.calib-row select, .calib-row input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px;
  font-family: var(--sans); font-size: 14px; background: var(--bg-2); color: var(--ink);
}
.calib-result { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.calib-result table { border-collapse: collapse; width: 100%; margin-top: 10px; }
.calib-result td, .calib-result th { border: 1px solid var(--line); padding: 7px 10px; text-align: left; font-size: 13px; }
.calib-pass { color: var(--mint); font-weight: 700; }
.calib-fail { color: var(--coral); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-2);
  padding: 22px 32px;
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center;
  font-size: 12.5px; color: var(--ink-faint);
}

/* ---------- Keyframes ---------- */
@keyframes sl-rise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes sl-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(230, 179, 102, 0.4); }
  50% { box-shadow: 0 12px 38px rgba(230, 179, 102, 0.75); }
}
@keyframes sl-sheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(260%); } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-cta { flex: 1; text-align: center; }
  .stage { padding: 28px 16px 56px; }
  .meta-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: 1fr; }
  .split-panels, .triple-panels, .auth-cols { grid-template-columns: 1fr; }
  .auth-head { flex-direction: column; gap: 10px; }
  .hero-score { flex-direction: column; text-align: center; gap: 20px; padding: 28px 22px; }
  .report-head { flex-direction: column; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn-primary { width: 100%; }
  .reviewing-shell { padding: 26px 18px; }
  .review-method { flex-direction: column; gap: 6px; }
  .calib-row label { width: 100%; }
  .context-cta { flex-direction: column; align-items: stretch; }
  .context-cta-btn, .human-cta-btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  body::before { animation: none !important; }
  .sl-reveal { opacity: 1 !important; transform: none !important; }
}
