/* ==========================================================================
   Sitepeep — Global Styles
   Coral red (#FF4D3D) accent on white/near-black base.
   Written-craft brand: Stripe / Linear / Lenny family.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset & Base ---------- */

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

:root {
  --bg: #FAFAF7;
  --bg-cream: #FFF8F3;
  --bg-black: #0F0F0F;
  --text-primary: #0F0F0F;
  --text-secondary: #6B6B6B;
  --text-inverse: #FFFFFF;
  --divider: #E5E5E5;
  --coral: #FF4D3D;
  --coral-hover: #E8392A;
  --coral-light: rgba(255, 77, 61, 0.08);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1240px;
  --section-pad: 140px;
  --section-pad-mobile: 80px;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--coral-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.67rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.33rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-pad-mobile) 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background: var(--coral-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1.5px solid var(--divider);
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn-large {
  padding: 1.15rem 2.5rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Sticky Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.3s, border-color 0.3s;
}

.site-header.visible {
  transform: translateY(0);
  border-bottom-color: var(--divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-size: 1.33rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.wordmark .ee {
  position: relative;
}

.wordmark .ee::after {
  content: '••';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.25em;
  color: var(--coral);
  letter-spacing: 0.35em;
  pointer-events: none;
}

.header-cta .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 180px 0 var(--section-pad);
  background: var(--bg);
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 0 var(--section-pad-mobile);
  }
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero-credential {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 680px;
}

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

.hero-anchor {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--coral-light);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  max-width: 540px;
}

.hero-anchor strong {
  color: var(--coral);
}

/* ---------- Sample Audit Preview ---------- */

.sample-audit {
  background: var(--bg-cream);
}

.audit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .audit-cards {
    grid-template-columns: 1fr;
  }
}

.audit-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.audit-card:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
}

.audit-card-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.audit-card-label.quick-win {
  background: #E8F5E9;
  color: #2E7D32;
}

.audit-card-label.medium-lift {
  background: #FFF3E0;
  color: #E65100;
}

.audit-card-label.strategic-bet {
  background: #EDE7F6;
  color: #4527A0;
}

.audit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.audit-card-detail {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.audit-card-detail::before {
  content: '→ ';
  color: var(--coral);
}

.audit-card-principle {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid var(--divider);
  padding-top: 0.8rem;
}

.sample-audit .section-cta {
  text-align: center;
}

/* ---------- Trust Strip ---------- */

.trust-strip {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 2.5rem 0;
}

.trust-strip .container {
  text-align: center;
}

.trust-strip-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-logos span {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ---------- What Sitepeep Finds ---------- */

.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .findings-grid {
    grid-template-columns: 1fr;
  }
}

.finding-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s;
}

.finding-item:hover {
  border-color: var(--coral);
}

.finding-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--coral-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--coral);
}

.finding-item p {
  font-size: 0.94rem;
  color: var(--text-primary);
  margin: 0;
}

/* ---------- How It Works ---------- */

.how-it-works {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  font-size: 0.94rem;
}

.ai-disclosure {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-cream);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Why Not ChatGPT ---------- */

.chatgpt-section {
  background: var(--bg-cream);
  padding: 80px 0;
}

.chatgpt-section .container {
  max-width: 720px;
}

.chatgpt-section h2 {
  font-size: 1.55rem;
}

.chatgpt-section p {
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Comparison Table ---------- */

.comparison {
  background: var(--bg);
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

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

.comparison-table thead th {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-bottom: 1.2rem;
}

.comparison-table thead th.highlight {
  color: #fff;
  background: var(--coral);
  border-radius: 8px 8px 0 0;
}

.comparison-table td.highlight {
  background: rgba(255, 77, 61, 0.04);
  font-weight: 500;
}

.comparison-table td .check {
  color: var(--coral);
  font-weight: 700;
}

.comparison-table td .muted {
  color: #ccc;
}

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

/* ---------- Testimonials ---------- */

.testimonials {
  background: var(--bg-cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 2rem;
}

.testimonial-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--coral);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--divider);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.testimonial-placeholder {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--divider);
  border-radius: 8px;
  margin-top: 1.5rem;
}

/* ---------- About ---------- */

.about {
  background: var(--bg);
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.about-bio h3 {
  font-size: 1.33rem;
  margin-bottom: 1rem;
}

.about-bio p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.about-roles {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.about-roles li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--divider);
}

.about-roles li:last-child {
  border-bottom: none;
}

.about-roles li strong {
  color: var(--text-primary);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.33rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--bg-black);
  color: var(--text-inverse);
  padding: var(--section-pad) 0;
}

.final-cta .container {
  text-align: center;
  max-width: 720px;
}

.final-cta h2 {
  color: var(--text-inverse);
  font-size: clamp(1.8rem, 3.5vw, 2.67rem);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.final-cta .hero-ctas {
  justify-content: center;
}

.final-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.final-cta .btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.final-cta-quote {
  margin-top: 3rem;
  font-style: italic;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.5);
}

.final-cta-guarantee {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-brand a:hover {
  color: var(--coral);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* ---------- First Look Form ---------- */

.first-look-form {
  margin-top: 2.5rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 200px;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--coral);
}

.form-field input::placeholder {
  color: #B0B0B0;
}

.form-field .field-error {
  font-size: 0.72rem;
  color: var(--coral);
  margin-top: 0.3rem;
  display: none;
}

.form-field.error input {
  border-color: var(--coral);
}

.form-field.error .field-error {
  display: block;
}

.form-submit {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .form-submit {
    width: 100%;
  }
  .form-submit .btn {
    width: 100%;
  }
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ---------- Section Helpers ---------- */

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin-bottom: 0.8rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 1rem;
}

.section-cta {
  margin-top: 2.5rem;
}

/* ---------- Confirmation Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.modal h3 {
  font-size: 1.33rem;
  margin-bottom: 1rem;
}

.modal p {
  font-size: 0.94rem;
}

.modal .btn {
  margin-top: 1.5rem;
}

/* ---------- Placeholder Markers ---------- */

.placeholder-marker {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #FFF3CD;
  border: 1px dashed #FFC107;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #856404;
  vertical-align: middle;
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
