*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --charcoal: #1a1a2e;
  --charcoal-light: #242440;
  --charcoal-mid: #2a2a4a;
  --cream: #f5f0e8;
  --cream-dim: #e8e0d4;
  --red-ink: #c41e3a;
  --red-ink-dark: #9a1830;
  --red-ink-light: #e8304a;
  --text-cream: #ddd5c8;
  --text-muted: #9994a8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', 'Source Sans Pro', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--charcoal);
  color: var(--text-cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Texture overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { max-width: 65ch; }

a {
  color: var(--red-ink-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--cream); }

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 30, 58, 0.15);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--red-ink); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--red-ink);
  padding: 0.6rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--cream); }

.nav-cta:hover {
  background: var(--red-ink-light);
  color: var(--cream);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-ink);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--red-ink);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 55ch;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  background: var(--red-ink);
  padding: 1rem 2.8rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--red-ink-light);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
}

.hero-price {
  display: inline-block;
  margin-left: 1.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text-muted);
  vertical-align: middle;
}

.hero-sample {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-muted);
}
.hero-sample a {
  color: var(--red-ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-sample a:hover {
  color: var(--cream);
}
.hero-sample em {
  font-style: italic;
}

/* Red ink decorative line */
.ink-rule {
  width: 60px;
  height: 3px;
  background: var(--red-ink);
  border: none;
  margin: 3rem 0;
}

.ink-rule-center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Section headers --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red-ink);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

/* --- What You Get (report sections) --- */
.report-sections {
  background: var(--charcoal-light);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.06);
}

.report-card {
  background: var(--charcoal-light);
  padding: 2.2rem 2rem;
  transition: background 0.3s;
}
.report-card:hover {
  background: var(--charcoal-mid);
}

.report-card-number {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--red-ink);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.report-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.report-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Report Excerpts --- */
.report-excerpts {
  background: var(--charcoal);
  padding: 5rem 0;
}

.excerpt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.excerpt-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(245, 240, 232, 0.08);
  padding: 2rem 2.2rem;
}

.excerpt-card-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red-ink);
  margin-bottom: 0.8rem;
}

.excerpt-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.excerpt-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.excerpt-source {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.excerpt-source a {
  color: var(--red-ink-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.excerpt-source a:hover {
  color: var(--cream);
}
.excerpt-source em {
  font-style: italic;
}

/* --- Comparison Table --- */
.comparison {
  background: var(--charcoal-light);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table thead th {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 2px solid rgba(245, 240, 232, 0.1);
  color: var(--cream);
}

.comparison-table thead th:first-child {
  width: 40%;
}

.comparison-table thead th.col-rir {
  color: var(--red-ink-light);
  background: rgba(196, 30, 58, 0.06);
}

.comparison-table tbody td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
  vertical-align: middle;
}

.comparison-table tbody td.col-rir {
  background: rgba(196, 30, 58, 0.04);
}

.comparison-table tbody tr:hover td {
  background: rgba(245, 240, 232, 0.02);
}
.comparison-table tbody tr:hover td.col-rir {
  background: rgba(196, 30, 58, 0.08);
}

.comparison-table .feature-name {
  color: var(--text-cream);
}

.check {
  color: var(--red-ink-light);
  font-size: 1.2rem;
  font-weight: 700;
}

.cross {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 1.1rem;
}

.coming-soon {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.price-row td {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid rgba(245, 240, 232, 0.1);
}

.price-row .col-rir {
  color: var(--red-ink-light);
}

/* --- How It Works --- */
.how-it-works {
  background: var(--charcoal);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--red-ink);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Connector lines between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1.5rem;
  width: 3rem;
  height: 1px;
  background: rgba(196, 30, 58, 0.3);
}

/* --- Pricing --- */
.pricing {
  text-align: center;
  background: var(--charcoal-light);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  padding: 3rem;
  background: var(--charcoal);
  border: 1px solid rgba(245, 240, 232, 0.08);
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(196, 30, 58, 0.3);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-ink);
}

.pricing-amount {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-per {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
  font-size: 0.95rem;
  color: var(--text-cream);
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red-ink);
  margin-right: 0.8rem;
  vertical-align: middle;
}

.pricing-cta {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  background: var(--red-ink);
  padding: 1.1rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}
.pricing-cta:hover {
  background: var(--red-ink-light);
  color: var(--cream);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
}

.pricing-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Testimonials --- */
.testimonials {
  background: var(--charcoal-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--charcoal);
  border: 1px solid rgba(245, 240, 232, 0.06);
  border-radius: 8px;
  padding: 2rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cream-dim);
  margin: 0 0 1.2rem 0;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  color: var(--cream);
}

/* --- FAQ --- */
.faq {
  background: var(--charcoal);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
}

.faq-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--cream);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
footer {
  padding: 4rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--cream); }

/* --- Upload Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--charcoal-light);
  border: 1px solid rgba(196, 30, 58, 0.2);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-ink);
}

.modal-header {
  padding: 2rem 2.5rem 0;
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem;
}
.modal-close:hover { color: var(--cream); }

.modal-body {
  padding: 1.5rem 2.5rem 2.5rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--charcoal);
  border: 1px solid rgba(245, 240, 232, 0.12);
  color: var(--text-cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-ink);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239994a8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--text-cream);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* File upload area */
.file-upload {
  border: 2px dashed rgba(245, 240, 232, 0.12);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.file-upload:hover,
.file-upload.dragover {
  border-color: var(--red-ink);
  background: rgba(196, 30, 58, 0.05);
}
.file-upload.has-file {
  border-color: var(--red-ink);
  border-style: solid;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.file-upload-label strong {
  color: var(--red-ink-light);
}
.file-upload-name {
  font-size: 0.9rem;
  color: var(--cream);
  margin-top: 0.4rem;
}

.form-submit {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--red-ink);
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1.5rem;
}
.form-submit:hover:not(:disabled) {
  background: var(--red-ink-light);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.3);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  background: rgba(196, 30, 58, 0.15);
  border: 1px solid var(--red-ink);
  color: var(--cream);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

/* --- Status Page --- */
.status-page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.status-page.active {
  display: flex;
}
.status-page .container {
  max-width: 560px;
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.status-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(245, 240, 232, 0.1);
  border-top-color: var(--red-ink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-page h2 {
  margin-bottom: 0.8rem;
}

.status-page p {
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
}

.status-download {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
  background: var(--red-ink);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  transition: all 0.3s;
}
.status-download:hover {
  background: var(--red-ink-light);
  color: var(--cream);
}

/* Hide landing page when status is shown */
body.show-status .landing-content { display: none; }
body.show-status .status-page { display: flex; }
body.show-status nav .nav-cta { display: none; }

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .excerpt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-price {
    display: block;
    margin-left: 0;
    margin-top: 1rem;
  }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.7rem 0.8rem;
  }
  nav { padding: 1rem 1.2rem; }
  .container { padding: 0 1.2rem; }
}
