/* Marketing-plane-only layout. Loads AFTER theme.css and uses only its design
   tokens (var(--...)) - it never redefines a color, font, or scale value, so
   theme.css stays the single source of truth. The app plane never loads this
   file; the app never loads marketing-specific classes. */

/* ---------------------------------------------------------------- shell */

.mkt-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mkt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.mkt-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--brand);
  text-decoration: none;
}

.mkt-brand .wordmark {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mkt-nav {
  display: flex;
  gap: var(--space-24);
  align-items: center;
  font-size: var(--text-ui);
  font-weight: 600;
}

.mkt-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.mkt-nav a:hover {
  color: var(--text);
}

.mkt-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-44) var(--space-24) var(--space-56);
}

.mkt-narrow {
  max-width: 720px;
}

.mkt-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-24);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.mkt-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-20);
  flex-wrap: wrap;
  font-size: var(--text-ui);
  font-weight: 600;
}

.mkt-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.mkt-footer-links a:hover {
  color: var(--text);
}

.mkt-footer-note {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- hero (M1) */

.mkt-hero {
  display: grid;
  gap: var(--space-44);
  align-items: start;
}

@media (min-width: 900px) {
  .mkt-hero {
    grid-template-columns: 1.1fr 350px;
  }
}

.mkt-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero-mobile);
  line-height: var(--leading-hero);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-16);
  text-wrap: pretty;
}

@media (min-width: 720px) {
  .mkt-hero h1 {
    font-size: var(--text-hero);
  }
}

.mkt-lede {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.mkt-secondary-link {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
}

/* the real teaser-report component, at 1deg (README M1) */
.teaser-report {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  box-shadow: 0 8px 24px rgba(32, 30, 26, 0.1);
  transform: rotate(1deg);
}

.teaser-report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.teaser-report-title {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 600;
}

.teaser-report-total {
  font-size: 22px;
  font-weight: 800;
}

.teaser-row {
  border-radius: var(--radius-chip);
  padding: var(--space-8) var(--space-12);
  display: flex;
  gap: var(--space-8);
  align-items: baseline;
}

.teaser-row.error {
  background: var(--finding-error-bg);
}

.teaser-row.question {
  background: var(--finding-question-bg);
}

.teaser-row .teaser-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: var(--tag-tracking);
}

.teaser-row.error .teaser-tag {
  color: var(--finding-error);
}

.teaser-row.question .teaser-tag {
  color: var(--finding-question);
}

.teaser-row .teaser-label {
  font-size: var(--text-support);
  color: var(--text);
  flex: 1;
}

/* server-rendered redaction bar - the real values are never in the HTML */
.redact {
  background: var(--redact);
  color: transparent;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  padding: 0 var(--space-4);
  user-select: none;
}

/* ---------------------------------------------------------------- steps (M1) */

.mkt-steps {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-44);
}

@media (min-width: 720px) {
  .mkt-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mkt-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: var(--space-16);
}

.mkt-step-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  font-weight: 600;
  color: var(--accent);
}

.mkt-step-title {
  font-size: var(--text-body);
  font-weight: 700;
  margin-top: var(--space-4);
}

.mkt-step-body {
  font-size: var(--text-support);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-4);
}

/* ---------------------------------------------------------------- founder note (M1) */

.mkt-founder {
  margin-top: var(--space-44);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 720px) {
  .mkt-founder {
    flex-direction: row;
    gap: var(--space-20);
    align-items: baseline;
  }
}

.mkt-founder blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

.mkt-founder cite {
  font-size: var(--text-ui);
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  font-style: normal;
}

.mkt-founder cite span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: var(--text-support);
}

/* ---------------------------------------------------------------- prose (about) */

.mkt-prose {
  margin-top: var(--space-24);
}

.mkt-prose p {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 var(--space-20);
}

/* ---------------------------------------------------------------- not found (404) */

.mkt-404 {
  padding: var(--space-44) 0;
  max-width: 520px;
}

/* ---------------------------------------------------------------- generic section */

.mkt-section {
  margin-top: var(--space-56);
}

.mkt-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 600;
  margin: 0 0 var(--space-16);
}

.mkt-page-title {
  font-family: var(--font-display);
  font-size: var(--text-hero-mobile);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-16);
}

.mkt-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- pricing (M2) */

.mkt-price-grid {
  display: grid;
  gap: var(--space-24);
  margin-top: var(--space-24);
}

@media (min-width: 720px) {
  .mkt-price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mkt-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.mkt-price-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 600;
  margin: 0;
}

.mkt-tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mkt-tier.selected {
  border-color: var(--brand);
  border-width: 2px;
  background: var(--brand-tint);
}

.mkt-tier-price {
  font-family: var(--font-display);
  font-size: var(--text-total);
  font-weight: 600;
}

.mkt-tier-badge {
  font-size: var(--text-tag);
  font-weight: 800;
  letter-spacing: var(--tag-tracking);
  color: var(--brand);
}

.mkt-tier-reason {
  font-size: var(--text-support);
  color: var(--text-muted);
  line-height: 1.5;
}

.mkt-refund {
  margin-top: var(--space-16);
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  color: var(--success);
}

.mkt-included {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  margin-top: var(--space-16);
}

.mkt-included th,
.mkt-included td {
  text-align: left;
  padding: var(--space-8) var(--space-12);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.mkt-included th {
  font-weight: 700;
}

/* FAQ = native <details>, no JS */
.mkt-faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-12) 0;
}

.mkt-faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: var(--text-body-lg);
}

.mkt-faq p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: var(--space-8) 0 0;
}

/* ---------------------------------------------------------------- letter tool (M3) */

.mkt-tool-form {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-24);
  max-width: 520px;
}

.mkt-tool-form label {
  display: block;
  font-weight: 600;
  font-size: var(--text-ui);
  margin-bottom: var(--space-4);
}

.mkt-letter-output {
  margin-top: var(--space-24);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: var(--space-24);
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: var(--text-body);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- guides (M4) */

.mkt-deadline-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-16);
  font-size: var(--text-body);
}

.mkt-deadline-table th,
.mkt-deadline-table td {
  text-align: left;
  padding: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.mkt-deadline-table th {
  font-weight: 700;
  background: var(--bg);
}

.mkt-verify-notice {
  margin-top: var(--space-16);
  background: var(--warning-bg);
  color: var(--warning);
  border-radius: var(--radius-button);
  padding: var(--space-12) var(--space-16);
  font-size: var(--text-support);
  font-weight: 600;
  line-height: 1.5;
}

.mkt-verified-stamp {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  color: var(--text-muted);
  margin-top: var(--space-8);
}

.mkt-related {
  list-style: none;
  padding: 0;
  margin: var(--space-12) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  font-size: var(--text-body);
}

.mkt-related a {
  color: var(--link);
}

.mkt-guide-index {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: var(--space-16);
}

/* ---------------------------------------------------------------- waitlist */

.mkt-waitlist {
  margin-top: var(--space-24);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: var(--space-20);
}

.mkt-waitlist h2 {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 600;
  margin: 0 0 var(--space-8);
}

.mkt-waitlist-row {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  align-items: flex-end;
}

.mkt-waitlist-row .field {
  flex: 1;
  min-width: 220px;
}

/* ---------------------------------------------------------------- funnel (M6) */

.mkt-funnel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.mkt-funnel-steps {
  list-style: none;
  padding: 0;
  margin: var(--space-24) 0;
  display: grid;
  gap: var(--space-8);
  text-align: left;
}

.mkt-funnel-steps li {
  font-size: var(--text-support);
  color: var(--text-muted);
  padding-left: var(--space-20);
  position: relative;
}

.mkt-funnel-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.mkt-center-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-24);
}

/* ---------------------------------------------------------------- print (M3)
   The letter tool prints the generated letter alone: site chrome, the form,
   and the tool's own helper text (marked data-print-hide) all drop away. */

@media print {
  .mkt-header,
  .mkt-footer,
  [data-print-hide] {
    display: none !important;
  }

  .mkt-main {
    padding: 0;
    max-width: none;
  }

  .mkt-letter-output {
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    white-space: pre-wrap;
  }
}
