:root {
  --cream: #F2EDE1;
  --cream-deep: #E8E1D0;
  --ink: #121212;
  --ink-soft: #2A2A2A;
  --muted: #6B6560;
  --line: #1212121A;
  --navy: #0A2E5C;
  --navy-deep: #061E3E;
  --accent: #B4471F;
  --gold: #9A7B2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 48px 48px;
}

/* ─── PAGE NAV ─── */
.page-nav {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0 0 16px 0;
  margin-right: 32px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-nav a:hover {
  color: var(--ink);
}

.page-nav a.active {
  color: var(--navy-deep);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ─── HEADER ─── */
.masthead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.brand-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}

.brand-meta span + span::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.4;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--navy-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.role {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin-top: 16px;
  font-weight: 400;
}

.handles {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.handles strong {
  color: var(--ink);
  font-weight: 500;
}

/* ─── SNAPSHOT ─── */
.snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
  padding-right: 0;
}

.stat:not(:first-child) {
  padding-left: 24px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}

.stat-unit {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.stat-note {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

/* ─── AUDIENCE STRIP ─── */
.audience {
  margin-bottom: 72px;
  padding: 24px 28px;
  background: var(--cream-deep);
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 13px;
}

.audience-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audience-item span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.audience-item span:last-child {
  color: var(--ink);
  font-weight: 500;
}

/* ─── SECTIONS ─── */
section {
  margin-bottom: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}

.section-sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 400;
}

/* ─── RATE TABLE ─── */
.rates {
  width: 100%;
  border-collapse: collapse;
}

.rates tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.rates tr:hover {
  background: var(--cream-deep);
}

.rates tr:last-child {
  border-bottom: none;
}

.rates td {
  padding: 18px 0;
  vertical-align: top;
}

.rates td:first-child {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}

.rates td:first-child small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.rates td:last-child {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-deep);
  white-space: nowrap;
  padding-left: 24px;
}

/* ─── BUNDLE EMPHASIS ─── */
.bundles .rates td:last-child {
  color: var(--accent);
  font-weight: 600;
}

.strike {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  margin-right: 8px;
}

/* ─── ADD-ONS COMPACT GRID ─── */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.addon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.addon:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.addon:nth-child(even) {
  padding-left: 24px;
}

.addon-name {
  color: var(--ink);
}

.addon-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-deep);
  white-space: nowrap;
  padding-left: 12px;
}

.addon-price.free {
  color: var(--accent);
  font-weight: 600;
}

/* ─── NOTE ─── */
.note {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.note-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  white-space: nowrap;
}

.note strong {
  color: #F5D78A;
  font-weight: 600;
}

/* ─── WORKFLOW ─── */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.workflow-step {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-step:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.workflow-step:not(:nth-child(3n+1)) {
  padding-left: 24px;
}

.workflow-step:nth-last-child(-n+3) {
  border-bottom: none;
}

.workflow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.workflow-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 24;
}

.workflow-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── TERMS SUMMARY (rate card compact grid) ─── */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.terms-block h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.terms-block ul {
  list-style: none;
  padding: 0;
}

.terms-block li {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding: 3px 0 3px 14px;
  position: relative;
}

.terms-block li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ─── FULL T&C GRID ─── */
.tc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.tc-block {
  padding: 28px 36px 28px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.tc-block:nth-child(even) {
  padding-left: 36px;
  padding-right: 0;
  border-right: none;
}

.tc-block.full {
  grid-column: span 2;
  border-right: none;
  padding-right: 0;
}

.tc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 8px;
}

.tc-block h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
  font-variation-settings: "opsz" 24;
}

.tc-block ul {
  list-style: none;
  padding: 0;
}

.tc-block li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 4px 0 4px 16px;
  position: relative;
}

.tc-block li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.tc-block li strong {
  color: var(--ink);
  font-weight: 600;
}

.tc-block p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ─── PROHIBITED LIST ─── */
.prohibited-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.prohibited-list li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.prohibited-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 9px;
}

/* ─── CANCELLATION TABLE ─── */
.cancel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cancel-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0 16px 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.cancel-table th:last-child {
  text-align: right;
  padding-right: 0;
}

.cancel-table td {
  padding: 14px 16px 14px 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
}

.cancel-table td:last-child {
  text-align: right;
  padding-right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--navy-deep);
  white-space: nowrap;
}

.cancel-table tr:last-child td {
  border-bottom: none;
}

.cancel-table .refund-highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ─── PHASE HEADER ─── */
.phase-header {
  margin: 40px 0 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.phase-header:first-child {
  margin-top: 0;
}

.phase-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.phase-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 32;
}

/* workflow-grid when it's inside a phase (no top border, bottom border on last row handled differently) */
.phase-workflow {
  border-top: none;
  margin-bottom: 0;
}

.phase-workflow .workflow-step:nth-last-child(-n+3) {
  border-bottom: 1px solid var(--line);
}

.phase-workflow.last-phase .workflow-step:nth-last-child(-n+3) {
  border-bottom: none;
}

/* ─── CONTACT ─── */
.contact {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.contact-left h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  margin-bottom: 6px;
}

.contact-left h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact-sub {
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-right {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}

.contact-right a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-right a:hover {
  border-bottom-color: var(--accent);
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ─── TIMELINE SUMMARY ─── */
.timeline-summary {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--navy-deep);
  border-radius: 2px;
  color: var(--cream);
}

.timeline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 20px;
}

.timeline-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.timeline-node {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #F5D78A;
  opacity: 0.9;
  text-align: center;
}

.timeline-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cream);
  opacity: 0.3;
  padding: 0 2px;
}

.timeline-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 237, 225, 0.12);
  font-size: 13px;
  color: var(--cream);
  opacity: 0.8;
}

.timeline-total strong {
  color: #F5D78A;
  font-weight: 600;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .page { padding: 40px 24px 32px; }
  .masthead { grid-template-columns: 1fr; gap: 24px; }
  .handles { text-align: left; }
  .snapshot { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; padding: 20px 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
  .stat:nth-child(even) { padding-left: 20px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-value { font-size: 30px; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .section-title { font-size: 28px; }
  .section-sub { margin-left: 0; font-size: 12px; }
  .addons-grid { grid-template-columns: 1fr; }
  .addon { border-right: none !important; padding: 14px 0 !important; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step { border-right: none !important; padding: 20px 0 !important; }
  .workflow-step:nth-last-child(-n+3) { border-bottom: 1px solid var(--line) !important; }
  .workflow-step:last-child { border-bottom: none !important; }
  .terms-grid { grid-template-columns: 1fr; gap: 24px; }
  .rates td:first-child { font-size: 14px; }
  .rates td:last-child { font-size: 14px; }
  .note { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .contact-right { text-align: left; }
  .contact-left h2 { font-size: 36px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
  .page-nav { flex-wrap: wrap; gap: 8px 0; }
  .tc-grid { grid-template-columns: 1fr; }
  .tc-block,
  .tc-block:nth-child(even) { border-right: none; padding: 20px 0; }
  .tc-block.full { grid-column: span 1; }
  .prohibited-list { grid-template-columns: 1fr; }
  .phase-header { flex-wrap: wrap; gap: 4px; }
  .timeline-summary { padding: 20px; }
  .timeline-track { gap: 4px; }
  .timeline-step { min-width: 56px; }
  .timeline-node { font-size: 12px; }
  .timeline-arrow { font-size: 10px; }
}

/* ─── PRINT ─── */
@media print {
  body { background: white; }
  .page { max-width: none; padding: 0; }
  .rates tr:hover { background: transparent; }
  .note { background: var(--navy-deep) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
