:root {
  --bg: #ffffff;
  --panel: #fbfbfb;
  --text: #2d2d2d;
  --text-strong: #000000;
  --muted: #999999;
  --accent: #668dc6;
  --line: #d5d5d5;
  --rule: #555555;
  --white: #ffffff;
  --max-width: 1360px;
  --content-width: 1280px;
  --page-pad: 24px;
  --section-pad-y: 22px;
  --radius: 18px;
  --font-sans: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.reading-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1.1rem;
  white-space: nowrap;
}

.wordmark strong {
  font-weight: 700;
}

.wordmark.light {
  color: var(--white);
}

.wordmark.dark {
  color: var(--text-strong);
}

.cover-logo {
  width: min(52vw, 300px);
  height: auto;
}

.brand-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icons img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.texture-bg {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 26%),
    radial-gradient(circle at 80% 14%, rgba(0,0,0,0.08), transparent 24%),
    radial-gradient(circle at 70% 72%, rgba(255,255,255,0.12), transparent 30%),
    linear-gradient(135deg, #7498cb 0%, #668dc6 36%, #587cb2 68%, #4f6d9c 100%);
}

.hero,
.closing-panel,
.gate-screen {
  color: var(--white);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: 8svh;
  padding-bottom: 7svh;
}

.hero-top {
  display: flex;
  justify-content: center;
}

.hero-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-middle-spaced {
  gap: 24px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 1.12rem;
  opacity: 0.95;
  margin-bottom: 8px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: none;
}

.title-line {
  display: block;
}

.title-line-compact {
  white-space: nowrap;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.meta-text {
  color: var(--muted);
  font-size: 0.75rem;
}

.cover-meta {
  color: rgba(255,255,255,0.88);
}

.interior-header {
  padding: 18px 0 0;
}

.interior-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.interior-logo {
  height: 22px;
  width: auto;
  display: block;
}

.top-rule {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
}

.document-title-block {
  padding: 42px 0 28px;
}

.title-with-accent {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.title-accent,
.section-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.title-accent img,
.section-arrow img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.section-arrow.small {
  width: 18px;
}

.section-arrow.small img {
  width: 18px;
  height: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-strong);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.document-title {
  margin: 0;
  color: var(--accent);
  font-size: clamp(2rem, 7vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.document-subtitle {
  margin: 14px 0 0;
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  line-height: 1.18;
  color: var(--text);
  max-width: none;
}

.major-section {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  margin-top: 18px;
}

.phase-section {
  border-top-width: 2px;
  padding-top: 30px;
  margin-top: 26px;
}

.phase-heading-row {
  padding: 12px 16px 14px;
  margin-bottom: 6px;
  background: rgba(102, 141, 198, 0.08);
  border-radius: 16px;
}

.phase-heading-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.phase-heading-inline .section-arrow {
  font-size: 1.05rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
}

.section-heading {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.phase-section .section-heading {
  font-size: clamp(1.8rem, 5.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.phase-section .section-subtitle {
  font-size: 1.02rem;
  font-weight: 600;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.98rem;
}

.phase-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.phase-summary-item {
  font-size: 1rem;
  line-height: 1.45;
}

.phase-summary-item strong {
  color: var(--text-strong);
}

.phase-summary-break {
  display: none;
}

.table-section {
  display: grid;
  gap: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(220px, 21%) minmax(0, 1fr);
  gap: 26px;
  padding: calc(var(--section-pad-y) + 2px) 0;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.label {
  align-self: start;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.01em;
}

.label-main,
.label-detail {
  display: block;
}

.label-detail {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--muted);
}

.week-label,
.week-row .label {
  color: var(--accent);
  font-weight: 800;
}

.week-row .label {
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(102, 141, 198, 0.12);
  align-self: start;
}

.week-row .content {
  min-width: 0;
}

.week-title {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-strong);
}

.content h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text-strong);
}

.content h4 {
  margin: 26px 0 8px;
  font-size: 0.94rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.content .intro-heading {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.content .phase-outline-intro {
  margin: 0 0 14px;
  color: var(--text);
}

.phase-outline {
  display: grid;
  gap: 16px;
  margin: 0 0 18px;
}

.phase-outline-item {
  display: grid;
  gap: 6px;
}

.content .phase-outline-heading {
  margin: 0;
}

.content .phase-outline-copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text);
}

.content .mini-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
}

.content .mini-table th,
.content .mini-table td {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  font-size: 0.96rem;
}

.content .mini-table th {
  width: 30%;
  padding-right: 18px;
  color: var(--text-strong);
}

.investment-rollup {
  margin: 24px 0 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.investment-rollup-heading {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.94rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.investment-rollup-line {
  margin: 10px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
}

.investment-rollup-line-accent {
  color: var(--accent);
}

.investment-rollup-line-dark {
  color: var(--text-strong);
  font-weight: 400;
}

.content p {
  margin: 0 0 14px;
}

.content p:last-child {
  margin-bottom: 0;
}

/* Sign-off block */
.sign-off-grid {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}

.sign-off-party {}

.sign-off-label {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-strong);
  margin: 0 0 12px;
}

.sign-off-fields {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.sign-off-field {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.sign-off-field-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  min-width: 80px;
}

.sign-off-value {
  font-weight: 600;
  color: var(--text-strong);
}

.sign-off-line {
  flex: 1;
  border-bottom: 1px solid var(--line);
  min-width: 180px;
  height: 1px;
}

/* Contact block */
.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

.contact-party-name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-strong);
  margin: 0 0 6px;
}

.phase-time {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-strong);
}

.outcome {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.outcome-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: none;
}

.outcome-note strong {
  color: var(--text-strong);
}

ul.clean-list,
ol.clean-list {
  padding-left: 20px;
  margin: 0;
}

ul.clean-list {
  list-style: disc;
}

ol.clean-list {
  list-style: decimal;
}

ul.clean-list li,
ol.clean-list li {
  padding-left: 4px;
  margin-top: 6px;
}

ul.clean-list li::marker,
ol.clean-list li::marker {
  color: var(--text);
}

.summary-grid {
  display: grid;
  gap: 14px;
}

.summary-card,
.action-panel,
.gate-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 20px;
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text-strong);
}

.summary-card p {
  margin: 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  background: var(--white);
  color: var(--text-strong);
}

.button.primary {
  border-color: var(--text-strong);
  background: var(--text-strong);
  color: var(--white);
}

.button.ghost-light {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.action-panel {
  padding: 22px;
}

.closing-panel {
  margin-top: 34px;
}

.closing-inner {
  min-height: 42svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 48px 0;
  text-align: center;
}

.closing-title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.04em;
}

.gate-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.gate-card {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(14px);
}

.gate-card p {
  margin: 20px 0 0;
  color: rgba(255,255,255,0.88);
}

.gate-form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.gate-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.96);
  color: var(--text-strong);
}

.small-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.82);
}

.footer-space {
  padding: 40px 0 28px;
}

.doc-flow {
  padding: 42px 0 0;
}

.doc-flow > :first-child {
  margin-top: 0;
}

.doc-flow h1,
.doc-flow h2 {
  color: var(--accent);
  font-size: clamp(1.95rem, 6vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.doc-flow h3 {
  color: var(--text-strong);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.16;
  margin: 34px 0 14px;
}

.doc-flow h4 {
  color: var(--text-strong);
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 24px 0 10px;
}

.doc-flow p,
.doc-flow li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.doc-flow p {
  margin: 0 0 14px;
}

.doc-flow ul,
.doc-flow ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.doc-flow li {
  margin: 6px 0;
  padding-left: 4px;
}

.doc-flow hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}

.doc-flow strong {
  color: var(--text-strong);
}

.doc-flow table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
}

.doc-flow table td,
.doc-flow table th {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.96rem;
}

.doc-flow table tr:first-child td,
.doc-flow table tr:first-child th {
  border-top: 1px solid var(--rule);
}

.doc-flow blockquote {
  margin: 18px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--accent);
}

.doc-flow .columns {
  display: block;
}

@media (min-width: 768px) {
  :root {
    --page-pad: 40px;
    --section-pad-y: 26px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .document-subtitle {
    max-width: none;
  }
}

@media (max-width: 767px) {
  :root {
    --page-pad: 20px;
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .hero-middle {
    align-items: flex-start;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(1.92rem, 9.4vw, 2.7rem);
    line-height: 0.97;
    letter-spacing: -0.05em;
  }

  .cover-logo {
    width: min(60vw, 220px);
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .interior-header-row,
  .section-heading-row,
  .title-with-accent {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .label {
    display: inline-block;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(102, 141, 198, 0.12);
  }

  .week-row .label {
    display: inline-flex;
    border-radius: 999px;
  }

  .week-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .interior-logo {
    height: 18px;
  }

  .document-subtitle {
    max-width: none;
  }

  .phase-section {
    padding-top: 24px;
    margin-top: 22px;
  }

  .phase-heading-row {
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 4px;
  }

  .phase-heading-inline {
    gap: 8px;
  }

  .phase-section .section-heading {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .phase-section .section-subtitle {
    font-size: 0.94rem;
    line-height: 1.24;
    max-width: none;
  }

  .phase-summary {
    gap: 6px 0;
  }

  .phase-summary-item {
    display: block;
  }

  .phase-summary-break {
    display: block;
    width: 100%;
    height: 0;
  }

  .content .mini-table th,
  .content .mini-table td {
    display: block;
    width: 100%;
  }

  .content .mini-table th {
    padding-bottom: 4px;
  }
}

@media print {
  :root {
    --page-pad: 0px;
    --section-pad-y: 16px;
    --shadow: none;
  }

  body {
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  .gate-screen,
  .actions,
  .button {
    display: none !important;
  }

  .hero,
  .closing-panel {
    break-after: page;
  }

  .hero-inner,
  .closing-inner {
    min-height: auto;
    padding: 24pt 0;
  }

  .summary-card,
  .action-panel,
  .gate-card {
    box-shadow: none;
  }

  .row,
  .summary-card,
  .action-panel,
  .major-section,
  .closing-panel {
    break-inside: avoid;
  }
}
