/* ==========================================================================
   TROYAN FUNNEL MASTER STYLESHEET (Sites Studio Production)
   Zero external dependencies, lightning fast, 100% responsive
   ========================================================================== */

:root {
  --tr-bg: #f8fafc;
  --tr-surface: #ffffff;
  --tr-border: #e2e8f0;
  --tr-border-focus: #cbd5e1;
  --tr-text-head: #0f172a;
  --tr-text-body: #334155;
  --tr-text-muted: #64748b;
  --tr-primary: #2563eb;
  --tr-primary-hover: #1d4ed8;
  --tr-accent-green: #22c55e;
  --tr-accent-green-hover: #16a34a;
  --tr-accent-red: #ef4444;
  --tr-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --tr-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --tr-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --tr-shadow-green: 0 10px 25px rgba(34, 197, 94, 0.35);
  --tr-radius-sm: 8px;
  --tr-radius-md: 14px;
  --tr-radius-lg: 20px;
  --tr-radius-pill: 999px;
  --tr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  background-color: var(--tr-bg);
  color: var(--tr-text-body);
  font-family: var(--tr-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER / TOPBAR
   ========================================================================== */
.tr-topbar {
  background: var(--tr-surface);
  border-bottom: 1px solid var(--tr-border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.tr-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.tr-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tr-badge {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: var(--tr-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--tr-radius-pill);
  border: 1px solid #bfdbfe;
}

.tr-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--tr-primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
  animation: trPulse 2s infinite;
}

@keyframes trPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}

.tr-author-info {
  text-align: right;
}

.tr-author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tr-text-head);
}

.tr-author-status {
  display: block;
  font-size: 12px;
  color: var(--tr-text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--tr-radius-md);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  line-height: 1.2;
}

.tr-btn-green {
  background-color: var(--tr-accent-green);
  color: #ffffff !important;
  box-shadow: var(--tr-shadow-green);
}

.tr-btn-green:hover {
  background-color: var(--tr-accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.45);
}

.tr-btn-blue {
  background-color: var(--tr-primary);
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.tr-btn-blue:hover {
  background-color: var(--tr-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.45);
}

.tr-btn svg {
  margin-right: 10px;
  flex-shrink: 0;
}

.tr-alt-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tr-primary);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.tr-alt-link:hover {
  color: var(--tr-primary-hover);
}

/* ==========================================================================
   PAGE 1: PRE-LANDER SPECIFIC
   ========================================================================== */
.tr-prelander-hero {
  padding: 56px 0 32px 0;
  text-align: center;
}

.tr-prelander-title {
  font-size: 34px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--tr-text-head);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.tr-prelander-lead {
  font-size: 18px;
  color: var(--tr-text-body);
  max-width: 760px;
  margin: 0 auto 32px auto;
  text-align: left;
}

.tr-pain-card {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--tr-shadow-sm);
  text-align: left;
}

.tr-pain-card-head {
  font-size: 17px;
  font-weight: 700;
  color: var(--tr-text-head);
  margin-bottom: 16px;
}

.tr-pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tr-pain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--tr-text-body);
}

.tr-pain-icon {
  color: var(--tr-accent-red);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.tr-cta-center {
  text-align: center;
  margin: 36px 0;
}

.tr-preview-section {
  padding: 48px 0;
  border-top: 1px solid var(--tr-border);
  border-bottom: 1px solid var(--tr-border);
  margin: 48px 0;
  background: #f1f5f9;
}

.tr-preview-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--tr-text-head);
  margin-bottom: 24px;
  text-align: center;
}

.tr-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tr-preview-card {
  background: var(--tr-surface);
  border-radius: var(--tr-radius-md);
  padding: 22px 24px;
  box-shadow: var(--tr-shadow-sm);
  border-left: 4px solid var(--tr-primary);
}

.tr-preview-card:nth-child(2) {
  border-left-color: #f59e0b;
}

.tr-preview-card:nth-child(3) {
  border-left-color: var(--tr-accent-green);
}

.tr-preview-card strong {
  display: block;
  font-size: 17px;
  color: var(--tr-text-head);
  margin-bottom: 6px;
}

.tr-preview-card p {
  font-size: 14px;
  color: var(--tr-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   PAGE 2: VSL (VIDEO SALES LETTER)
   ========================================================================== */
.tr-vsl-hero {
  padding: 48px 0 28px 0;
  text-align: center;
}

.tr-vsl-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--tr-text-head);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tr-vsl-subtitle {
  font-size: 18px;
  color: var(--tr-text-muted);
  max-width: 760px;
  margin: 0 auto;
}

.tr-video-frame {
  margin: 36px 0;
  background: #090d16;
  border-radius: var(--tr-radius-lg);
  overflow: hidden;
  box-shadow: var(--tr-shadow-lg);
  border: 1px solid var(--tr-border);
}

.tr-video-aspect {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
}

.tr-video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.tr-play-button {
  width: 90px;
  height: 90px;
  background: var(--tr-accent-red);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.25), 0 12px 28px rgba(239, 68, 68, 0.4);
  transition: all 0.25s ease-in-out;
}

.tr-play-button:hover {
  transform: scale(1.08);
  background: #dc2626;
  box-shadow: 0 0 0 16px rgba(239, 68, 68, 0.35), 0 16px 36px rgba(239, 68, 68, 0.5);
}

.tr-poster-text {
  margin-top: 24px;
}

.tr-poster-text strong {
  display: block;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 6px;
}

.tr-poster-text span {
  display: block;
  font-size: 14px;
  color: #94a3b8;
}

.tr-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tr-timeline-box {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-lg);
  padding: 32px;
  margin: 36px 0;
  box-shadow: var(--tr-shadow-sm);
}

.tr-timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tr-text-head);
  margin-bottom: 20px;
}

.tr-timeline-item {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.tr-timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tr-timeline-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-primary);
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: var(--tr-radius-sm);
  height: fit-content;
  white-space: nowrap;
}

.tr-timeline-desc strong {
  display: block;
  font-size: 16px;
  color: var(--tr-text-head);
  margin-bottom: 4px;
}

.tr-timeline-desc p {
  font-size: 14px;
  color: var(--tr-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   PAGE 3: LONGREAD & SALES OFFER
   ========================================================================== */
.tr-lr-hero {
  padding: 56px 0 32px 0;
}

.tr-lr-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--tr-text-head);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.tr-lr-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--tr-text-muted);
  border-left: 4px solid var(--tr-primary);
  padding-left: 20px;
  margin-bottom: 40px;
}

.tr-quote-box {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--tr-radius-md);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 1.65;
  color: #1e3a8a;
  font-style: italic;
}

.tr-lr-h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--tr-text-head);
  margin: 48px 0 20px 0;
  line-height: 1.3;
}

.tr-card-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.tr-fail-card {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-md);
  padding: 24px 28px;
  box-shadow: var(--tr-shadow-sm);
  transition: transform 0.15s ease;
}

.tr-fail-card:hover {
  transform: translateY(-2px);
  border-color: var(--tr-border-focus);
}

.tr-fail-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--tr-primary);
  background: #eff6ff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--tr-radius-sm);
  margin-bottom: 10px;
}

.tr-fail-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tr-text-head);
  margin-bottom: 8px;
}

.tr-fail-card p {
  font-size: 15px;
  color: var(--tr-text-body);
  margin: 0;
  line-height: 1.6;
}

/* Loop Diagram */
.tr-loop-container {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--tr-radius-md);
  padding: 28px;
  margin: 32px 0;
}

.tr-loop-node strong {
  display: block;
  font-size: 16px;
  color: #9f1239;
  margin-bottom: 4px;
}

.tr-loop-node span {
  font-size: 14px;
  color: #4c0519;
}

.tr-loop-down {
  text-align: center;
  font-size: 22px;
  color: var(--tr-accent-red);
  font-weight: 900;
  margin: 8px 0;
}

/* Steps */
.tr-step-card {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--tr-surface);
  border-radius: var(--tr-radius-md);
  border: 1px solid var(--tr-border);
  box-shadow: var(--tr-shadow-sm);
}

.tr-step-tag {
  background: var(--tr-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--tr-radius-sm);
  height: fit-content;
  white-space: nowrap;
}

.tr-step-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tr-text-head);
  margin-bottom: 6px;
}

.tr-step-text p {
  font-size: 15px;
  color: var(--tr-text-body);
  margin: 0;
  line-height: 1.6;
}

/* Proof Cases */
.tr-case-box {
  background: var(--tr-surface);
  border: 1px solid var(--tr-border);
  border-radius: var(--tr-radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--tr-shadow-sm);
}

.tr-case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tr-case-user strong {
  display: block;
  font-size: 17px;
  color: var(--tr-text-head);
}

.tr-case-user span {
  font-size: 14px;
  color: var(--tr-text-muted);
}

.tr-case-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--tr-radius-pill);
  border: 1px solid #a7f3d0;
}

.tr-case-box p {
  font-size: 15px;
  color: var(--tr-text-body);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

/* Grand Offer Card */
.tr-grand-offer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--tr-radius-lg);
  padding: 48px 36px;
  margin: 48px 0;
  box-shadow: var(--tr-shadow-lg);
}

.tr-offer-tag {
  display: inline-block;
  background: var(--tr-accent-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--tr-radius-pill);
  margin-bottom: 16px;
}

.tr-offer-h2 {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tr-offer-sub {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.5;
}

.tr-offer-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.tr-point-row {
  display: flex;
  gap: 14px;
}

.tr-point-check {
  width: 26px;
  height: 26px;
  background: var(--tr-accent-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.tr-point-desc strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 2px;
}

.tr-point-desc p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.tr-urgency-note {
  display: flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--tr-radius-sm);
  padding: 12px 18px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 32px;
}

.tr-lead-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tr-radius-md);
  padding: 28px;
  margin-top: 32px;
}

.tr-form-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-align: center;
}

.tr-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tr-form-grid label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.tr-form-grid input {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--tr-radius-sm);
  font-size: 15px;
  color: var(--tr-text-head);
  outline: none;
}

.tr-form-grid input:focus {
  border-color: var(--tr-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.25);
}

.tr-privacy-sub {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tr-footer {
  border-top: 1px solid var(--tr-border);
  padding: 40px 0;
  background: var(--tr-surface);
  text-align: center;
  color: var(--tr-text-muted);
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .tr-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .tr-author-info {
    text-align: left;
  }
  .tr-prelander-title,
  .tr-vsl-title,
  .tr-lr-title {
    font-size: 26px;
    line-height: 1.3;
  }
  .tr-prelander-lead,
  .tr-vsl-subtitle,
  .tr-lr-lead {
    font-size: 16px;
  }
  .tr-btn {
    width: 100%;
    font-size: 16px;
    padding: 16px 20px;
  }
  .tr-step-card {
    flex-direction: column;
    gap: 10px;
  }
  .tr-grand-offer {
    padding: 32px 20px;
  }
  .tr-offer-h2 {
    font-size: 24px;
  }
  .tr-timeline-item {
    flex-direction: column;
    gap: 8px;
  }
}
