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

:root {
  --white: #ffffff;
  --off-white: #f8f9fb;
  --light: #eef1f6;
  --mid: #d0d7e3;
  --gray: #8a93a6;
  --dark-gray: #3d4557;
  --navy: #1a2340;
  --blue: #2356c7;
  --blue-light: #3a6bdf;
  --blue-pale: #e8eef9;
  --black: #0d1117;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-mark svg { width: 20px; height: 20px; }

.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ── SECTION BASE ── */
section {
  padding: 6rem 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding: 6rem 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
}

.form-group select option { background: var(--navy); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--blue-light); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.form-honeypot { position: absolute; left: -9999px; }

.form-status {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.8);
}

.form-status:empty { display: none; }
.form-status.is-error { color: #ff8a8a; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 3rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── DIVIDER ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--light);
  margin: 0;
}

/* ── PUBLISHING HERO ── */
.pub-hero {
  max-width: none;
  margin: 0;
  padding: calc(64px + 6rem) 5% 5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.pub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(35,86,199,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,86,199,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.pub-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}

.pub-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--blue-light); }

.pub-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 820px;
}

.pub-hero h1 em { font-style: normal; color: var(--blue-light); }

.pub-hero p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.pub-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SPLIT COMPARISON ── */
.split-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.75rem; }

.split-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.split-row-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.split-row-note { font-size: 0.75rem; color: var(--gray); }

.split-bar {
  display: flex;
  height: 44px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--light);
}

.split-bar > div {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.split-writer { background: var(--blue); color: var(--white); }
.split-pub { color: var(--dark-gray); justify-content: flex-end; flex: 1; }
.split-row.is-corporate .split-writer { background: var(--gray); }

.split-explainer {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--blue);
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* ── TIERS ── */
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.tier-card {
  border: 1px solid var(--mid);
  border-radius: 4px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.tier-card.is-featured { border-color: var(--blue); box-shadow: 0 12px 32px rgba(35,86,199,0.12); }

.tier-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.tier-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 0.5rem; }

.tier-split { display: flex; align-items: baseline; gap: 0.5rem; margin: 1rem 0 0.25rem; }
.tier-split strong { font-family: 'Playfair Display', serif; font-size: 3rem; line-height: 1; color: var(--navy); }
.tier-split span { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.12em; }
.tier-fee { font-size: 0.8rem; color: var(--gray); margin-bottom: 1.25rem; }
.tier-summary { font-size: 0.88rem; color: var(--dark-gray); line-height: 1.7; margin-bottom: 1.25rem; }

.tier-list { list-style: none; margin-bottom: 2rem; flex: 1; }

.tier-list li {
  font-size: 0.85rem;
  color: var(--dark-gray);
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--light);
  position: relative;
}

.tier-list li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.tier-card .btn-primary { text-align: center; }

.tier-card .btn-ghost {
  text-align: center;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.tier-card .btn-ghost:hover { background: var(--navy); color: var(--white); }

/* ── RIGHTS TABLE ── */
.rights-wrap { margin-top: 3rem; overflow-x: auto; border: 1px solid var(--light); border-radius: 4px; }

.rights-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.85rem; }

.rights-table th, .rights-table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--light); vertical-align: top; }

.rights-table thead th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--off-white);
}

.rights-table tbody th { font-weight: 600; color: var(--navy); width: 22%; }
.rights-table td { color: var(--dark-gray); }
.rights-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
.rights-table tbody tr:last-child > * { border-bottom: none; }

/* ── TERMS GRID ── */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light);
  border: 1px solid var(--light);
  margin-top: 3rem;
}

.term { background: var(--white); padding: 2rem; }
.term-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--blue); line-height: 1; margin-bottom: 0.75rem; }
.term h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.term p { font-size: 0.8rem; color: var(--gray); line-height: 1.7; }

/* ── SUSTAINABILITY ── */
.share-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.share-use { border-top: 2px solid var(--navy); padding-top: 1rem; }
.share-use h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.share-use p { font-size: 0.8rem; color: var(--gray); line-height: 1.7; }

/* ── DARK PANEL (opt-in, lookup) ── */
.dark-section { background: var(--navy); padding: 6rem 0; }
.dark-section .section-title { color: var(--white); }
.dark-section .section-label { color: var(--blue-light); }
.dark-section .section-sub { color: rgba(255,255,255,0.55); max-width: 620px; }
.dark-section.is-black { background: var(--black); }

.panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.step + .step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08); }

.step-head { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.5rem; }
.step-num { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--blue-light); }
.step-head h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.step-hint { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin: -0.9rem 0 1.25rem; line-height: 1.6; }

.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.tier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.tier-option { position: relative; display: block; cursor: pointer; }
.tier-option input { position: absolute; opacity: 0; pointer-events: none; }

.tier-option-box {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}

.tier-option input:checked + .tier-option-box { border-color: var(--blue-light); background: rgba(58,107,223,0.12); }
.tier-option input:focus-visible + .tier-option-box { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.tier-option-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.tier-option-split { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); margin: 0.25rem 0; }
.tier-option-note { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

.works-list { display: flex; flex-direction: column; gap: 0.75rem; }

.work-row { display: grid; grid-template-columns: 2fr 2fr 110px 40px; gap: 0.75rem; align-items: end; }
.work-row .form-group { margin-bottom: 0; }

.icon-btn {
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: rgba(255,255,255,0.5);
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.1rem;
}

.icon-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

.link-btn {
  margin-top: 1rem;
  background: none;
  border: 1px dashed rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  padding: 0.6rem 1rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.link-btn:hover { border-color: var(--blue-light); color: var(--white); }

.clause-list { display: flex; flex-direction: column; gap: 0.75rem; }

.clause {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.clause:has(input:checked) { border-color: rgba(58,107,223,0.6); background: rgba(58,107,223,0.08); }
.clause input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-light); }
.clause-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; color: var(--white); margin-bottom: 0.2rem; }
.clause-text { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

.clause-progress { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.9rem; }

.signature-input { font-family: 'Playfair Display', serif !important; font-size: 1.4rem !important; font-style: italic; }

.form-group input[type="file"] { padding: 0.6rem; }

/* ── RECEIPT ── */
.receipt {
  background: var(--white);
  color: var(--navy);
  border-radius: 4px;
  padding: 2.5rem;
  margin-top: 3rem;
}

.receipt[hidden] { display: none; }

.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.receipt-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  background: var(--blue-pale);
  color: var(--blue);
}

.receipt-badge.is-warn { background: #fff3e0; color: #a35a00; }
.receipt-badge.is-ended { background: var(--light); color: var(--dark-gray); }

.receipt h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-top: 0.6rem; }

.receipt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; margin: 1.5rem 0; }
.receipt-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.2rem; }
.receipt-value { font-size: 0.9rem; font-weight: 600; word-break: break-word; }
.receipt-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; font-weight: 500; }
.receipt-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.05em; }

.receipt-note { font-size: 0.82rem; color: var(--dark-gray); line-height: 1.7; padding: 1rem 1.2rem; background: var(--off-white); border-radius: 3px; }

.receipt-section-title { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin: 2rem 0 0.75rem; }

.receipt ol { padding-left: 1.2rem; font-size: 0.82rem; color: var(--dark-gray); line-height: 1.7; }
.receipt ol li { margin-bottom: 0.5rem; }
.receipt ol strong { color: var(--navy); }

.receipt-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark:hover { background: var(--blue); }

.disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.35); line-height: 1.7; margin-top: 1.5rem; max-width: 760px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light);
    box-shadow: 0 8px 24px rgba(13,17,23,0.08);
    padding: 0.5rem 5% 1.25rem;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--light); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta { margin-top: 0.75rem; text-align: center; padding: 0.8rem 1.2rem; }
  .tiers-grid, .tier-pick, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .share-uses { grid-template-columns: 1fr 1fr; }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .work-row { grid-template-columns: 1fr 90px 40px; }
  .work-row .work-cowriters { grid-column: 1 / -1; grid-row: 2; }
  .panel, .receipt, .tier-card { padding: 1.5rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ── PRINT: only the receipt being printed ── */
@media print {
  nav, footer { display: none !important; }
  body.printing * { visibility: hidden; }
  body.printing .is-printing, body.printing .is-printing * { visibility: visible; }
  body.printing .is-printing { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .receipt-actions { display: none !important; }
}
