/* ============================================
   Run Our House — Marketing Site Stylesheet
   Mobile-first | No JavaScript
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  --color-primary: #2A9D8F;
  --color-primary-dark: #1F7A6E;
  --color-primary-light: #E8F5F3;
  --color-accent: #E76F51;
  --color-accent-hover: #D15A3E;
  --color-bg: #FEFAF6;
  --color-bg-alt: #F5EDE4;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-white: #FFFFFF;
  --color-border: #DFE6E9;

  --chat-bg: #ECE5DD;
  --chat-sent: #DCF8C6;
  --chat-received: #FFFFFF;
  --chat-header: #075E54;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Nunito', 'Inter', sans-serif;

  --max-width: 1100px;
  --nav-height: 64px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3rem 0;
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

.section-alt {
  background: var(--color-bg-alt);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   T007 — Navigation Bar
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}
.nav-logo:hover { color: var(--color-primary-dark); }

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:last-child { border-bottom: none; }

.nav-cta-mobile {
  display: inline-block;
  margin-top: 0.75rem;
  width: 100%;
  text-align: center;
}

/* ============================================
   T008 — Footer
   ============================================ */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-brand .tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.footer-area {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
}

.footer-waitlist p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.footer-waitlist form {
  display: flex;
  gap: 0.5rem;
}

.footer-waitlist input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.footer-waitlist input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.footer-waitlist button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.footer-waitlist button:hover { background: var(--color-accent-hover); }

.footer-waitlist input[name="_gotcha"] { display: none; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

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

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

/* ============================================
   T009 — WhatsApp Chat Bubbles
   ============================================ */
.chat-window {
  background: var(--chat-bg);
  border-radius: var(--radius-lg);
  padding: 1rem;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.chat-header {
  background: var(--chat-header);
  color: var(--color-white);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1rem -1rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.message {
  max-width: 80%;
  padding: 0.5rem 0.625rem 0.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
}

.message .sender {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.125rem;
}

.message .time {
  display: block;
  text-align: right;
  font-size: 0.6875rem;
  color: var(--color-text-light);
  margin-top: 0.125rem;
}

.message.sent {
  align-self: flex-end;
  background: var(--chat-sent);
  border-bottom-right-radius: 2px;
}
.message.sent .sender { color: #075E54; }

.message.sent::after {
  content: '';
  position: absolute;
  bottom: 0; right: -6px;
  width: 0; height: 0;
  border-left: 6px solid var(--chat-sent);
  border-bottom: 6px solid transparent;
}

.message.received {
  align-self: flex-start;
  background: var(--chat-received);
  border-bottom-left-radius: 2px;
}
.message.received .sender { color: var(--color-primary-dark); }

.message.received::before {
  content: '';
  position: absolute;
  bottom: 0; left: -6px;
  width: 0; height: 0;
  border-right: 6px solid var(--chat-received);
  border-bottom: 6px solid transparent;
}

.chat-showcase {
  display: grid;
  gap: 2rem;
}

.chat-example { text-align: center; }

.chat-example .context-label {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.chat-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ============================================
   T010 — CTA Section
   ============================================ */
.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.0625rem;
  padding: 0.875rem 2rem;
}
.cta-section .btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

/* ============================================
   T011 — Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

.pricing-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.pricing-setup {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-card .btn { width: 100%; }

/* ============================================
   T012 — FAQ Accordion
   ============================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid var(--color-border);
}

.faq-list summary {
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '\2212';
}

.faq-list details p {
  padding: 0 0 1rem;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   T013 — Comparison Table
   ============================================ */
.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

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

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 0.625rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
  background: var(--color-primary-light);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary-dark);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tbody tr:hover {
  background: var(--color-primary-light);
}

.comparison-table .row-highlight {
  background: rgba(42,157,143,0.06);
  font-weight: 600;
}
.comparison-table .row-highlight td:first-child {
  color: var(--color-primary);
}

.check { color: var(--color-primary); font-weight: 700; }
.cross { color: #B2BEC3; }

/* ============================================
   T014 — Integration Cards
   ============================================ */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.integration-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.integration-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.integration-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.integration-card p {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-required {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-optional {
  background: #F0F0F0;
  color: var(--color-text-light);
}

/* ============================================
   Page-Specific Components
   ============================================ */

/* Page Images */
.page-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
}

.page-image-wide {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-image-wrapper {
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-image {
  max-width: 480px;
  margin: 2rem auto;
  display: block;
}

.section-image-float {
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

.headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow);
  float: right;
  margin: 0 0 1rem 1.5rem;
}

@media (max-width: 480px) {
  .headshot {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
  }
}

@media (min-width: 768px) {
  .page-image-wide { height: 360px; }

  .section-image-float {
    float: right;
    margin: 0 0 1rem 2rem;
  }

  .headshot { width: 220px; height: 220px; }
}

@media (min-width: 1024px) {
  .page-image-wide { height: 420px; }
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero .btn { font-size: 1.0625rem; padding: 0.875rem 2rem; }

/* Pain Points */
.pain-points h2 { text-align: center; margin-bottom: 1.5rem; }

.pain-grid {
  display: grid;
  gap: 1rem;
}

.pain-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow);
}

.pain-card .emoji {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.pain-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.step-content h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.step-content p { color: var(--color-text-light); font-size: 0.9375rem; margin-bottom: 0; }

/* Testimonial */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.testimonial blockquote {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial blockquote::before { content: '\201C'; font-size: 2rem; color: var(--color-primary); line-height: 0; vertical-align: -0.35em; margin-right: 0.125rem; }
.testimonial blockquote::after { content: '\201D'; font-size: 2rem; color: var(--color-primary); line-height: 0; vertical-align: -0.35em; margin-left: 0.125rem; }

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
}

.testimonial .improvement {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Callout Box */
.callout {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.callout p {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0.5rem auto 0;
}

/* Setup Fee Explanation */
.setup-explanation {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
}

.setup-explanation h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.setup-explanation p { font-size: 0.9375rem; color: var(--color-text-light); margin-bottom: 0; }

/* Data Handling / Trust Items */
.trust-grid {
  display: grid;
  gap: 1rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.125rem;
}

.trust-item h3 { font-size: 1rem; margin-bottom: 0.125rem; }
.trust-item p { font-size: 0.9375rem; color: var(--color-text-light); margin-bottom: 0; }

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.error-page p { color: var(--color-text-light); margin-bottom: 1.5rem; }

/* ============================================
   Responsive — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }

  .chat-showcase { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }

  .integrations-grid { grid-template-columns: repeat(3, 1fr); }

  .steps-grid { gap: 2rem; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Responsive — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }

  .hero { padding: 4.5rem 0 3.5rem; }
  .hero .subtitle { font-size: 1.125rem; }

  section { padding: 4rem 0; }

  .pain-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   Responsive — Small Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }

  .chat-window { max-width: 100%; }

  .message { max-width: 85%; }

  .pricing-card { padding: 1.5rem 1rem; }

  .footer-waitlist form { flex-direction: column; }
  .footer-waitlist button { width: 100%; }
}
