:root {
  --navy-950: #061725;
  --navy-900: #0b2234;
  --navy-800: #17364c;
  --ink: #121a21;
  --ink-soft: #536069;
  --ivory: #fbf8f1;
  --paper: #fffdf8;
  --paper-deep: #f4eee2;
  --line: #d9cfbd;
  --line-strong: #bca980;
  --crimson: #9f1025;
  --crimson-dark: #750b1b;
  --green: #175d4c;
  --gold: #c99944;
  --gold-soft: #f2e5c9;
  --danger: #9b1c1c;
  --shadow: 0 18px 48px rgba(4, 17, 28, 0.22);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--crimson);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  color: #fff9ea;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav {
  width: min(1380px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff9ea;
  text-decoration: none;
}

.site-brand img {
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.brand-copy small {
  color: #e5b95e;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav-links a {
  color: rgba(255, 249, 234, 0.92);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: #efc774;
}

.mobile-menu-button {
  display: none;
}

.upload-hero {
  position: relative;
  min-height: 675px;
  overflow: hidden;
  color: #fff;
  background-color: #221711;
  background-image: url("assets/law-desk-hero-v2.jpg");
  background-position: center 48%;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 13, 0.47);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  min-height: 675px;
  margin: 0 auto;
  padding: 40px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: min(800px, 100%);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.48);
}

.hero-copy .eyebrow {
  margin-bottom: 8px;
  color: #efcf93;
}

.hero-copy h1 {
  margin: 0;
  color: #fffdf6;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.98;
}

.hero-copy > p:last-child {
  width: min(690px, 100%);
  margin: 17px auto 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 17px;
  line-height: 1.45;
}

.upload-workbench {
  width: min(700px, 100%);
  margin-top: 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.985);
  border: 1px solid rgba(221, 199, 155, 0.96);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.source-tab {
  position: relative;
  min-height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #373d42;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.source-tab + .source-tab {
  border-left: 1px solid var(--line);
}

.source-tab::after {
  position: absolute;
  right: 20%;
  bottom: -1px;
  left: 20%;
  height: 2px;
  content: "";
  background: transparent;
}

.source-tab svg {
  width: 19px;
  height: 19px;
}

.source-tab.is-active {
  color: var(--crimson);
}

.source-tab.is-active::after {
  background: var(--crimson);
}

.source-panel {
  padding: 20px 22px 12px;
}

.file-drop {
  min-height: 214px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed #b9a98d;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.file-drop:hover,
.file-drop:focus-within,
.file-drop.is-dragging {
  background: #fffaf0;
  border-color: var(--crimson);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.file-drop > svg {
  width: 39px;
  height: 39px;
  margin-bottom: 7px;
  color: var(--crimson);
  stroke-width: 1.45;
}

.file-drop strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.file-drop > span:not(.choose-file-button) {
  color: var(--crimson-dark);
  font-family: var(--serif);
  font-size: 17px;
}

.file-drop small {
  margin-top: 3px;
  color: #697078;
  font-size: 12px;
}

.choose-file-button {
  min-width: 160px;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--crimson);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.selected-file {
  min-height: 108px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #f8f2e7;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.selected-file > svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.selected-file > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.selected-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file small {
  color: var(--ink-soft);
}

.paste-panel > label,
.course-field,
.advanced-settings label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #26333d;
  font-size: 13px;
  font-weight: 750;
}

.paste-panel textarea,
.course-field select,
.advanced-settings input {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}

.paste-panel textarea {
  min-height: 190px;
  padding: 13px 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.course-field select,
.advanced-settings input {
  height: 46px;
  padding: 0 12px;
  font-size: 14px;
}

.paste-panel textarea:focus,
.course-field select:focus,
.advanced-settings input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 93, 76, 0.12);
}

.textarea-meta {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  color: #6c747a;
  font-size: 11px;
}

.free-note {
  min-height: 39px;
  padding: 8px 20px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #5c646a;
  font-family: var(--serif);
  font-size: 14px;
}

.analysis-options {
  padding: 20px 22px 22px;
  background: #f7f1e5;
  border-top: 1px solid var(--line);
}

.next-step-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.next-step-heading span {
  color: var(--crimson);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.next-step-heading strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.advanced-settings {
  margin-top: 12px;
  border-top: 1px solid rgba(188, 169, 128, 0.55);
}

.advanced-settings summary {
  padding: 11px 0 3px;
  color: #4f5b63;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.advanced-settings label {
  padding: 8px 0 4px;
}

.processing-note {
  margin: 13px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5e676d;
  font-size: 11px;
  line-height: 1.45;
}

.processing-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--green);
}

.analyze-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(159, 16, 37, 0.16);
}

.analyze-button:hover,
.analyze-button:focus-visible {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
}

.analyze-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.analyze-button svg {
  width: 18px;
  height: 18px;
}

.form-message {
  min-height: 0;
  margin: 0 22px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.form-message:not(:empty) {
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fff1f1;
  border-left: 3px solid var(--danger);
}

.analysis-progress {
  padding: 0 22px 18px;
  color: #4f5c64;
  font-size: 12px;
}

.analysis-progress strong,
.progress-detail {
  display: block;
}

.analysis-progress strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.progress-detail {
  margin-top: 3px;
  color: #6b7478;
  line-height: 1.45;
}

.progress-bar {
  height: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #ded7ca;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 350ms ease;
}

.next-hint {
  margin-top: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--serif);
  font-size: 14px;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.next-hint svg {
  width: 19px;
  height: 19px;
}

.example-section,
.result-section,
.how-section,
.pricing-section,
.site-footer {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.example-section {
  padding: 54px 0 68px;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2,
.result-heading h2,
.pricing-section h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin: 11px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.example-board {
  display: grid;
  grid-template-columns: 1.18fr repeat(4, 1fr);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(14, 28, 39, 0.08);
}

.example-case-summary,
.example-output {
  min-width: 0;
  padding: 22px 20px;
}

.example-case-summary {
  background: #f7f2e8;
}

.example-output {
  border-left: 1px solid var(--line);
}

.case-course {
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.example-case-summary h3 {
  margin: 7px 0 2px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.16;
}

.citation {
  margin: 0;
  color: #5a646b;
  font-size: 12px;
}

.source-badge {
  width: max-content;
  margin-top: 12px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  background: #f2faf6;
  border: 1px solid #8ab8a7;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.source-badge svg {
  width: 12px;
  height: 12px;
}

.example-case-summary > p:last-child {
  margin: 13px 0 0;
  color: #45515a;
  font-size: 13px;
  line-height: 1.48;
}

.example-output > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--crimson);
  border-bottom: 1px solid var(--line);
}

.example-output > header svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--gold);
}

.example-output > header strong {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.example-output > p,
.example-output ul {
  margin: 13px 0 0;
  color: #2f3940;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}

.example-output ul {
  padding-left: 17px;
}

.example-output li + li {
  margin-top: 7px;
}

.full-example-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--crimson);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.full-example-link svg {
  width: 14px;
  height: 14px;
}

.result-section {
  padding: 58px 0 70px;
  border-top: 1px solid var(--line);
}

.result-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.result-heading .eyebrow {
  margin-bottom: 7px;
}

.result-heading > div > p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.result-actions {
  display: flex;
  gap: 8px;
}

.icon-text-button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-900);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.icon-text-button:hover,
.icon-text-button:focus-visible {
  background: #f5efe3;
}

.icon-text-button svg {
  width: 16px;
  height: 16px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 22px;
}

.result-brief,
.result-prep {
  min-width: 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.result-prep {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #f8f1e3;
}

.result-column-title {
  margin: 0 0 18px;
  color: var(--crimson);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.result-prep .result-column-title {
  color: #efc574;
}

.brief-row {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid #e2dbcf;
}

.brief-row > strong {
  color: var(--crimson);
  font-size: 11px;
  text-transform: uppercase;
}

.brief-row p,
.brief-row ul {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
}

.brief-row ul {
  padding-left: 18px;
}

.brief-row li + li {
  margin-top: 6px;
}

.source-map {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 2px solid var(--navy-900);
}

.source-map > strong {
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.source-map > div {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #e2dbcf;
}

.source-map > div > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.source-map p {
  margin: 0;
  color: #44515a;
  font-family: var(--serif);
  font-size: 13px;
}

.cold-answer,
.prep-block {
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cold-answer strong,
.prep-block > strong {
  color: #efc574;
  font-size: 11px;
  text-transform: uppercase;
}

.cold-answer p,
.prep-block p,
.prep-block ul {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: 15px;
}

.prep-block ul {
  padding-left: 18px;
}

.prep-question {
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prep-question b {
  color: #fff9eb;
  font-size: 13px;
}

.prep-question span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.source-warning {
  margin: 18px 0 0;
  padding: 11px;
  color: #ffe4aa;
  background: rgba(201, 153, 68, 0.12);
  border-left: 3px solid var(--gold);
  font-family: var(--sans) !important;
  font-size: 11px !important;
}

.how-section {
  padding: 62px 0 68px;
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  margin-bottom: 34px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.how-steps article {
  position: relative;
  min-width: 0;
  padding: 30px;
}

.how-steps article + article {
  border-left: 1px solid var(--line);
}

.how-steps article > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--crimson);
  font-family: var(--serif);
  font-size: 14px;
}

.how-steps article > svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.how-steps h3 {
  margin: 18px 0 7px;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 22px;
}

.how-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.course-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #566169;
  font-size: 12px;
}

.course-list span {
  display: inline-flex;
  align-items: center;
}

.course-list span:not(:last-child)::after {
  margin: 0 10px;
  content: "·";
  color: var(--gold);
}

.pricing-section {
  margin-bottom: 72px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: 50px;
  color: #fff9e9;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: 6px;
}

.pricing-section .eyebrow {
  color: #efc574;
}

.pricing-section h2 {
  color: #fff9e9;
}

.pricing-copy > p:last-of-type {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.pricing-points {
  margin-top: 24px;
  display: grid;
  gap: 13px;
}

.pricing-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f7efdf;
  font-size: 14px;
}

.pricing-points svg {
  width: 18px;
  height: 18px;
  color: #efc574;
}

.subscription-card {
  min-width: 0;
  padding: 26px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(239, 197, 116, 0.8);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.plan-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.plan-heading > span {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.plan-heading small {
  color: var(--crimson);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-price strong {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.plan-price span {
  color: #657078;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.subscription-card #subscription-offer > p {
  margin: 13px 0 19px;
  color: #59646b;
  font-size: 13px;
}

.subscription-button {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.subscription-button:hover,
.subscription-button:focus-visible {
  background: var(--crimson-dark);
}

.subscription-button:disabled,
.access-form button:disabled,
.account-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.subscription-button svg {
  width: 18px;
  height: 18px;
}

.checkout-note {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #6b7479;
  font-size: 11px;
  line-height: 1.45;
}

.checkout-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--green);
}

.access-toggle {
  width: 100%;
  margin-top: 18px;
  padding: 4px 0;
  color: var(--navy-800);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.access-form {
  padding-top: 3px;
}

.access-form > label {
  display: block;
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 800;
}

.access-form > div {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.access-form button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--navy-950);
  border: 1px solid var(--navy-950);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.access-form > small {
  margin-top: 8px;
  display: block;
  color: #737b80;
  font-size: 10px;
}

.subscriber-account {
  text-align: center;
}

.account-label {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-balance {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-balance strong {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
}

.account-balance span,
#account-key {
  color: #687178;
  font-size: 12px;
}

#account-key {
  margin: 8px 0 20px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-actions button {
  min-height: 42px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy-950);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.account-actions button:first-child {
  color: #fff;
  background: var(--navy-950);
  border-color: var(--navy-950);
}

.account-actions svg {
  width: 15px;
  height: 15px;
}

.billing-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #59646b;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.billing-message[data-tone="error"] {
  color: var(--danger);
}

.billing-message[data-tone="notice"] {
  color: #75500d;
}

.billing-complete-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 248, 241, 0.93), rgba(251, 248, 241, 0.97)),
    url("assets/law-desk-hero-v2.jpg") center / cover fixed;
}

.activation-shell {
  width: min(100% - 32px, 720px);
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  place-items: center;
}

.activation-card {
  width: 100%;
  padding: 48px 54px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.activation-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy-950);
  border-radius: 50%;
}

.activation-icon[data-state="loading"] svg {
  animation: billing-spin 1.1s linear infinite;
}

.activation-icon[data-state="success"] {
  background: var(--green);
}

.activation-icon[data-state="error"] {
  background: var(--crimson);
}

.activation-icon svg {
  width: 25px;
  height: 25px;
}

@keyframes billing-spin {
  to { transform: rotate(360deg); }
}

.activation-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.activation-card > p:not(.eyebrow):not(.activation-help) {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.activation-progress {
  width: min(360px, 100%);
  height: 3px;
  margin: 28px auto 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.activation-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--crimson);
  animation: billing-progress 1.4s ease-in-out infinite alternate;
}

@keyframes billing-progress {
  from { transform: translateX(-80%); }
  to { transform: translateX(220%); }
}

.activation-success {
  margin-top: 26px;
}

.activation-success > div {
  display: flex;
  flex-direction: column;
}

.activation-success strong {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
}

.activation-success span {
  color: var(--ink-soft);
  font-size: 12px;
}

.activation-success a,
.activation-retry {
  min-height: 46px;
  margin-top: 22px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.activation-success svg {
  width: 17px;
  height: 17px;
}

.activation-key-form {
  margin-top: 26px;
}

.activation-key-form label {
  display: block;
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.activation-key-form > div {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.activation-key-form input,
.activation-key-form button {
  min-height: 46px;
}

.activation-key-form input {
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.activation-key-form button {
  padding: 0 18px;
  color: #fff;
  background: var(--navy-950);
  border: 1px solid var(--navy-950);
  border-radius: 0 4px 4px 0;
  font-weight: 800;
  cursor: pointer;
}

.activation-help {
  margin: 26px auto 0;
  color: #7a8185;
  font-size: 10px;
}

.site-footer {
  padding: 30px 0 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  max-width: 640px;
}

.footer-brand {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer p {
  margin: 6px 0 0;
  color: #687178;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer nav a {
  color: #526069;
  font-size: 12px;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--crimson);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .example-board {
    grid-template-columns: 1.15fr repeat(2, 1fr);
  }

  .example-output:nth-of-type(3) {
    border-left: 0;
  }

  .example-output:nth-of-type(n + 3) {
    border-top: 1px solid var(--line);
  }

  .example-case-summary {
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  .site-nav {
    width: min(100% - 32px, 760px);
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .site-nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  }

  .site-nav-links.is-open {
    display: flex;
  }

  .site-nav-links a {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .upload-hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    width: min(100% - 32px, 760px);
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .example-section,
  .result-section,
  .how-section,
  .pricing-section,
  .site-footer {
    width: min(100% - 40px, 760px);
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-steps article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pricing-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .site-nav-links {
    top: 64px;
  }

  .site-brand img {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .upload-hero {
    min-height: 760px;
    background-position: 53% center;
  }

  .hero-content {
    width: min(100% - 24px, 480px);
    min-height: 760px;
    padding: 30px 0 22px;
  }

  .hero-copy .eyebrow {
    font-size: 10px;
  }

  .hero-copy h1 {
    font-size: 39px;
    line-height: 1.01;
  }

  .hero-copy > p:last-child {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.5;
  }

  .upload-workbench {
    margin-top: 20px;
  }

  .source-tab {
    min-height: 52px;
    padding: 0 10px;
    font-size: 14px;
  }

  .source-panel {
    padding: 18px 14px 10px;
  }

  .file-drop {
    min-height: 250px;
    padding: 22px 16px;
  }

  .file-drop strong {
    font-size: 21px;
  }

  .free-note {
    padding-bottom: 15px;
  }

  .analysis-options {
    padding: 18px 14px;
  }

  .form-message {
    margin-right: 14px;
    margin-left: 14px;
  }

  .analysis-progress {
    padding-right: 14px;
    padding-left: 14px;
  }

  .next-hint {
    margin-top: 17px;
    font-size: 13px;
  }

  .example-section,
  .result-section,
  .how-section,
  .pricing-section,
  .site-footer {
    width: calc(100% - 24px);
  }

  .example-section,
  .result-section,
  .how-section {
    padding-top: 46px;
    padding-bottom: 52px;
  }

  .section-heading {
    margin-bottom: 23px;
    text-align: left;
  }

  .section-heading h2,
  .result-heading h2,
  .pricing-section h2 {
    font-size: 31px;
  }

  .section-heading > p:last-child {
    font-size: 14px;
  }

  .example-board {
    grid-template-columns: 1fr;
  }

  .example-case-summary {
    grid-row: auto;
  }

  .example-output,
  .example-output:nth-of-type(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .example-output {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .example-output > header {
    min-height: 34px;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
  }

  .icon-text-button {
    flex: 1;
  }

  .result-brief,
  .result-prep {
    padding: 20px 16px;
  }

  .brief-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .source-map > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .how-steps article {
    padding: 24px 20px;
  }

  .course-list {
    justify-content: flex-start;
  }

  .pricing-section {
    margin-bottom: 48px;
    padding: 30px 22px;
  }

  .subscription-card {
    padding: 22px 18px;
  }

  .plan-price strong {
    font-size: 43px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .activation-shell {
    min-height: calc(100vh - 64px);
    padding: 28px 0;
  }

  .activation-card {
    padding: 34px 20px;
  }

  .activation-card h1 {
    font-size: 32px;
  }

  .activation-key-form > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .activation-key-form input,
  .activation-key-form button {
    border: 1px solid var(--line-strong);
    border-radius: 4px;
  }

  .site-footer {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media print {
  .site-header,
  .upload-hero,
  .example-section,
  .how-section,
  .pricing-section,
  .site-footer,
  .result-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .result-section {
    width: 100%;
    padding: 0;
    border: 0;
  }

  .result-layout {
    display: block;
  }

  .result-brief,
  .result-prep {
    margin-bottom: 20px;
    color: #000;
    background: #fff;
    border-color: #aaa;
    box-shadow: none;
  }

  .result-prep .result-column-title,
  .cold-answer strong,
  .prep-block > strong,
  .cold-answer p,
  .prep-block p,
  .prep-block ul,
  .prep-question b,
  .prep-question span {
    color: #000;
  }
}
