/* ============================================
   Labora — Popcorn.space-inspired design
   ============================================ */


/* ---- Variables ---- */
:root {
  --bg:          #F0EEEB;
  --white:       #FFFFFF;
  --dark:        #1C1C1C;
  --mid:         #737068;
  --light:       #E4E2DD;
  --card-a:      #E2DFD8;   /* card tint */
  --card-b:      #F7F5F2;   /* card light */
  --border:      rgba(28, 28, 28, 0.08);
  --rose:        #C5756A;   /* Labora accent */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-full: 9999px;

  --max-w: 1080px;
  --shadow: 0 2px 16px rgba(28, 28, 28, 0.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
p { font-size: 1.125rem; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--dark);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--mid);
  padding: 6px 12px;
  border-radius: var(--r-full);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--dark); background: var(--bg); }
.nav-links a.active {
  color: var(--dark);
  font-weight: 500;
  border-bottom: 2px solid var(--dark);
  border-radius: 0;
  padding-bottom: 4px;
}

.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--r-full) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: opacity 0.15s !important;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.8 !important; background: var(--dark) !important; }

/* ---- Badge Pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.01em;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 32px 64px;
  text-align: center;
  max-width: var(--max-w);
  margin: 80px auto;
}

.hero-badge {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  font-optical-sizing: auto;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 20px;
  max-width: 640px;
  margin: 0 auto 16px;
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 12px
}

.cta-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 24px
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}
.btn-dark:hover { opacity: 0.75; }
.btn-dark svg { flex-shrink: 0; }

.hero-image {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: 28px auto 0;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--dark);
  padding: 14px 28px;
  border-radius: var(--r-full);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}
.btn-light:hover { opacity: 0.75; }

/* ---- Feature Pills Row ---- */
.feature-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 32px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark);
}

.feature-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark);
  flex-shrink: 0;
}

/* ---- Section ---- */
.section {
  padding: 80px 32px;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 12px;
}

.features-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
  max-width: 560px;
}

/* ---- Feature Cards Grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px;
}

.card {
  background: var(--card-b);
  border-radius: var(--r-lg);
  padding: 0 24px 24px;
  height: 100%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }

@media (min-width: 861px) {
  .card-wide {
    grid-column: 1 / -1;
    padding: 0 64px;
  }

  .cards-grid > .card.card-wide.card-wide-image-left {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    column-gap: 32px;
    row-gap: 12px;
    align-items: center;
    padding: 0 64px;
  }

  .cards-grid > .card.card-wide.card-wide-image-left .card-icon {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .cards-grid > .card.card-wide.card-wide-image-left .card-icon-image {
    width: 320px;
    height: 320px;
    margin: 0;
  }

  .cards-grid > .card.card-wide.card-wide-image-left .card-copy {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .cards-grid > .card.card-wide.card-wide-image-left .card-copy .card-title,
  .cards-grid > .card.card-wide.card-wide-image-left .card-copy .card-desc {
    margin: 0;
  }

  .cards-grid > .card.card-wide.card-wide-image-right {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    column-gap: 32px;
    row-gap: 12px;
    align-items: center;
  }

  .cards-grid > .card.card-wide.card-wide-image-right .card-copy {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .cards-grid > .card.card-wide.card-wide-image-right .card-icon {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .cards-grid > .card.card-wide.card-wide-image-right .card-icon-image {
    width: 320px;
    height: 320px;
    margin: 0;
  }

  .cards-grid > .card.card-wide.card-wide-image-right .card-copy .card-title,
  .cards-grid > .card.card-wide.card-wide-image-right .card-copy .card-desc {
    margin: 0;
  }
}

.card-icon {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.card-icon-image {
  width: 240px;
  height: 240px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.card-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.65;
}

/* ---- Stats Section ---- */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  padding: 56px 32px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  font-optical-sizing: auto;
  letter-spacing: -0.04em;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mid);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stat-divider { display: none; }
}

/* ---- Reviews Section ---- */
.reviews-section {
  padding: 80px 0;
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  padding: 0 32px;
  margin-bottom: 48px;
}

.reviews-track {
  display: flex;
  gap: 16px;
  padding: 0 32px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card-first {
  margin-left: 32px;
  scroll-margin-left: 32px;
}

.review-quote {
  font-weight: 300;
  color: var(--dark);
  line-height: 1.7;
  flex: 1;
}

.review-author {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.01em;
}

/* ---- Centered Quote Section ---- */
.quote-section {
  padding: 80px 32px;
  text-align: center;
}

.quote-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 64px 48px;
}

.quote-founder-image {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 2px solid rgba(28, 28, 28, 0.08);
}

.quote-story {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.quote-story p {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 12px;
}

.quote-story strong {
  margin-bottom: 0;
  color: var(--dark);
  font-weight: 500;
}

/* ---- FAQ ---- */
.faq-section {
  padding: 80px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  color: var(--mid);
}

.faq-item.open .faq-icon {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-weight: 300;
  line-height: 1.7;
}

.faq-answer ul {
  margin-left: 24px;
}

.faq-item.open .faq-answer { display: block; }

/* ---- Two-Panel CTA ---- */
.cta-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 32px 80px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: calc(var(--max-w) - 0px);
  margin-left: auto;
  margin-right: auto;
}

.cta-left {
  background: #D6E4DC;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-left-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 32px;
}

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--r-full);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

.cta-step-num {
  font-size: 0.8rem;
  color: var(--mid);
  width: 16px;
  flex-shrink: 0;
}

.cta-note {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 16px;
  font-style: italic;
}

.cta-right {
  background: var(--dark);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

.cta-right-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-right-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

/* ---- Footer ---- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 32px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.footer-logo-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: none;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--dark);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--mid); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--mid);
}

/* ---- Inner Pages ---- */
.inner-hero {
  padding: 80px 32px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.inner-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 8px;
}

.inner-hero-date {
  font-size: 0.875rem;
  color: var(--mid);
}

.inner-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px 100px;
}

.inner-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin: 48px 0 14px;
}

.inner-content h2:first-child { margin-top: 0; }

.inner-content p {
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

.inner-content ul {
  margin: 0 0 14px 18px;
}

.inner-content li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 6px;
}

.inner-content a {
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s;
}
.inner-content a:hover { border-color: var(--dark); }

.inner-content strong {
  font-weight: 500;
  color: var(--dark);
}

/* ---- Blog: Ordered List ---- */
.inner-content-ol {
  margin: 0 0 20px 20px;
  counter-reset: none;
}

.inner-content-ol li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 6px;
}

.inner-content-ol li strong {
  font-weight: 500;
  color: var(--dark);
}

/* ---- Blog: Table ---- */
.inner-content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.875rem;
}

.inner-content-table th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid);
  padding: 10px 12px;
  border-bottom: 2px solid var(--light);
}

.inner-content-table td {
  color: var(--dark);
  font-weight: 300;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}

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

/* ---- Blog: Screenshot ---- */
.blog-screenshot {
  margin: 32px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Blog: CTA box ---- */
.blog-cta {
  background: var(--dark);
  border-radius: var(--r-md);
  padding: 32px;
  margin: 48px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.blog-cta .blog-cta-text {
  font-weight: 400;
  color: var(--white);
  line-height: 1.7;
  margin: 0;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-full);
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.blog-cta-btn:hover { opacity: 0.88; }

/* ---- Blog: FAQ ---- */
/* ---- Blog Hub ---- */
.blog-hub {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 32px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  align-items: start;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  transition: box-shadow 0.15s;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
}

.blog-card-date {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--mid);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.2;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
  margin: 0;
}

.blog-card-read {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }

  .hero { padding: 56px 20px; }
  .hero-sub { 
    font-size: 1.1rem; 
    max-width: 320px;
  }
  .cards-grid { grid-template-columns: 1fr; padding: 56px 20px; }
  .feature-pills { padding: 0 20px 48px; }

  .section { padding: 56px 20px; }
  .quote-section { padding: 56px 20px; }
  .quote-inner { padding: 32px 24px; }
  .faq-section { padding: 56px 20px; }

  .cta-panels {
    grid-template-columns: 1fr;
    margin: 0 20px 56px;
  }

  .footer { padding: 40px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .inner-hero { padding: 60px 20px 40px; }
  .inner-content { padding: 40px 20px 72px; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .feature-pills { flex-direction: column; align-items: center; }
}
