/* =====================================================
   LINEAGI — Neubrutalism Design System
   Colors: #0A0A0A (black), #FFD60A (yellow accent),
           #1B4332 (deep green), #FF6B6B (coral highlight)
   Font: Space Grotesk (Google Fonts)
   Borders: 3px solid #0A0A0A
   Shadows: 4px 4px 0 #0A0A0A
===================================================== */

:root {
  --black: #0A0A0A;
  --white: #FAFAF8;
  --yellow: #FFD60A;
  --green: #1B4332;
  --coral: #FF6B6B;
  --gray: #E8E6E0;
  --border: 3px solid #0A0A0A;
  --shadow: 4px 4px 0 #0A0A0A;
  --shadow-lg: 6px 6px 0 #0A0A0A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}

/* =====================================================
   NAV
===================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  border-bottom: var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s, box-shadow 0.05s;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #0A0A0A;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0A0A0A;
}

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

.btn-accent {
  background: var(--yellow);
  color: var(--black);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
}

.btn-nav {
  background: var(--black);
  color: var(--yellow);
  padding: 8px 18px;
  font-size: 14px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border: var(--border);
  box-shadow: 3px 3px 0 #0A0A0A;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.signup-box {
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  border: var(--border);
  background: var(--white);
  outline: none;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.08);
}

.email-input:focus {
  box-shadow: 0 0 0 3px var(--green), inset 2px 2px 0 rgba(0,0,0,0.08);
}

.signup-note {
  margin-top: 14px;
  font-size: 13px;
  color: #555;
  text-align: center;
}

/* =====================================================
   PROBLEM STRIP
===================================================== */
.problem-strip {
  background: var(--black);
  color: var(--white);
  padding: 48px 24px;
  border-top: var(--border);
  border-bottom: var(--border);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.problem-emoji {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-item p {
  font-size: 16px;
  line-height: 1.5;
  color: #ccc;
  font-style: italic;
}

/* =====================================================
   SHARED SECTION STYLES
===================================================== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
}

/* =====================================================
   DEMO SECTION
===================================================== */
.demo-section {
  padding: 80px 24px;
  background: var(--green);
  color: var(--white);
  border-top: var(--border);
  border-bottom: var(--border);
}

.demo-section .section-label {
  color: var(--yellow);
}

.demo-section .section-title {
  color: var(--white);
}

.demo-section .section-sub {
  color: rgba(255,255,255,0.75);
}

.demo-widget {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 680px;
}

.demo-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.demo-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  border: var(--border);
  background: var(--gray);
  color: var(--black);
  outline: none;
}

.demo-input:focus {
  background: var(--white);
  box-shadow: 0 0 0 3px var(--yellow);
}

.demo-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.demo-result {
  margin-top: 20px;
  background: var(--gray);
  border: var(--border);
  padding: 20px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.demo-loading {
  margin-top: 20px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--black);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =====================================================
   TREE SECTION
===================================================== */
.tree-section {
  padding: 80px 24px;
  border-bottom: var(--border);
}

.tree-container {
  background: var(--gray);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  overflow-x: auto;
}

.tree-caption {
  margin-top: 12px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* Pedigree SVG styles */
.tree-node {
  cursor: pointer;
}

.tree-node rect {
  fill: var(--white);
  stroke: var(--black);
  stroke-width: 2.5;
  rx: 0;
}

.tree-node.selected rect {
  fill: var(--yellow);
}

.tree-node text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  fill: var(--black);
  dominant-baseline: middle;
  text-anchor: middle;
}

.tree-link {
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
}

.tree-badge {
  fill: var(--green);
}

.tree-badge-text {
  fill: var(--white);
  font-size: 8px;
  font-weight: 700;
}

/* =====================================================
   HOW IT WORKS
===================================================== */
.how-section {
  padding: 80px 24px;
  background: var(--yellow);
  border-bottom: var(--border);
}

.how-section .section-sub {
  color: var(--black);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.step-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.step-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* =====================================================
   SOCIAL PROOF
===================================================== */
.proof-section {
  padding: 80px 24px;
  border-bottom: var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
}

.stars {
  color: var(--yellow);
  background: var(--black);
  display: inline-block;
  padding: 4px 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  color: #333;
}

.testimonial-author {
  font-size: 13px;
  font-weight: 700;
  color: #777;
}

/* =====================================================
   PRICING
===================================================== */
.pricing-section {
  padding: 80px 24px;
  background: var(--gray);
  border-bottom: var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  position: relative;
}

.pricing-card.pricing-featured {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pricing-card.pricing-featured .pricing-features li {
  color: #ccc;
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border: var(--border);
  white-space: nowrap;
}

.pricing-name {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 24px;
}

.pricing-price span {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.7;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: #444;
}

.pricing-card.pricing-featured .pricing-features li {
  border-bottom-color: rgba(255,255,255,0.1);
}

.pricing-note {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* =====================================================
   FAQ
===================================================== */
.faq-section {
  padding: 80px 24px;
  border-bottom: var(--border);
}

.faq-list {
  max-width: 740px;
}

.faq-item {
  border: var(--border);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q:hover {
  background: var(--gray);
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-q.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  border-top: 2px solid var(--black);
  background: var(--gray);
}

.faq-a.open {
  display: block;
}

/* =====================================================
   FOOTER CTA
===================================================== */
.footer-cta {
  padding: 80px 24px;
  background: var(--coral);
  border-top: var(--border);
  border-bottom: var(--border);
  text-align: center;
}

.footer-cta-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.footer-cta .signup-form {
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
}

/* =====================================================
   SITE FOOTER
===================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 24px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--yellow);
}

/* =====================================================
   TOAST
===================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: var(--white);
  padding: 16px 24px;
  border: var(--border);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 15px;
  z-index: 1000;
  max-width: 320px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 640px) {
  .signup-form {
    flex-direction: column;
  }
  .email-input {
    width: 100%;
  }
  .demo-inputs {
    flex-direction: column;
  }
  .demo-plus {
    transform: rotate(90deg);
  }
  .pricing-card.pricing-featured {
    transform: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  border: 2px solid #0A0A0A;
}
