/* Front page for visitors who aren't signed in (templates/main/home-logged-out.html).
   The main problem first, then one section per feature, then prices. */

.lp { max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; color: var(--cb-action); }
.lp h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .75rem; }
.lp p { font-size: 1.05rem; line-height: 1.6; color: var(--cb-ink-soft); margin: 0 0 .6rem; }

/* Buttons */
.lp-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem;
          border-radius: var(--cb-radius-sm); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.lp-btn-main { background: var(--cb-warm); color: var(--cb-action); }
.lp-btn-main:hover { background: var(--cb-warm); color: var(--cb-action); }
.lp-btn-quiet { background: var(--cb-card); color: var(--cb-action); border-color: var(--cb-line-strong); }
.lp-btn-quiet:hover { background: var(--cb-page); color: var(--cb-action); }
.lp-btn-light { background: transparent; color: var(--cb-card); border-color: color-mix(in srgb, var(--cb-card) 60.0%, transparent); }
.lp-btn-light:hover { background: color-mix(in srgb, var(--cb-card) 10.0%, transparent); color: var(--cb-card); }

/* 1. Hero: the main problem */
/* Full-width forest band behind the hero */
.lp-hero { text-align: center; padding: 64px 20px 56px; margin: 0 calc(50% - 50vw); background: var(--cb-brand); color: var(--cb-card); }
/* The green band starts right under the top bar: no grey strip above it. */
.content-area:has(> .lp > .lp-hero:first-child) { margin-top: 61px; padding-top: 0; }
@media (max-width: 768px) { .content-area:has(> .lp > .lp-hero:first-child) { margin-top: 57px; } }
.lp-hero .lp-hero-title { color: var(--cb-card); }
.lp-hero p { color: color-mix(in srgb, var(--cb-card) 85.0%, transparent); }
.lp-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .9rem !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--cb-action); color: var(--cb-card) !important; }
.lp-hero-title { font-size: 3.4rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: .4rem auto 1rem; max-width: 820px; }
.lp-hero-text { font-size: 1.2rem !important; max-width: 640px; margin: 0 auto 1.6rem !important; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.lp-actions .lp-btn { min-height: 52px; font-size: 1.05rem; }
.lp-note { font-size: .9rem !important; margin-top: .8rem !important; }

/* Screenshots */
.lp-shot { margin: 0; border-radius: var(--cb-radius); overflow: hidden; background: var(--cb-card);
           border: 1px solid var(--cb-pill); box-shadow: 0 12px 32px color-mix(in srgb, var(--cb-action) 8.0%, transparent); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-hero .lp-hero-shot { margin: 48px auto 0; max-width: 980px; }
.lp-shot-phone { max-width: 300px; justify-self: center; border-radius: 28px; border: 8px solid var(--cb-action); }

/* 2. Feature shortcuts */
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 48px 0 24px; }
.lp-chips a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 14px 6px;
              border-radius: var(--cb-radius); color: var(--cb-action); text-decoration: none; font-size: .9rem; font-weight: 600; }
.lp-chips a:hover { background: var(--cb-card); }
.lp-chips .cb-svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--cb-pill); color: var(--cb-action); box-sizing: border-box; }

/* Feature sections, image on alternating sides */
.lp-feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 56px 0; scroll-margin-top: 80px; }
.lp-flip { grid-template-columns: 7fr 5fr; }
.lp-flip .lp-feature-text { order: 2; }
.lp-feature-icon .cb-svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--cb-pill); color: var(--cb-action); box-sizing: border-box; margin-bottom: 14px; }

/* 3. Smaller features */
.lp-more { padding: 56px 0 24px; scroll-margin-top: 80px; }
.lp-more h2 { text-align: center; margin-bottom: 1.5rem; }
.lp-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-more li { display: flex; gap: 14px; padding: 18px; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.lp-more li .cb-svg { flex: none; width: 24px; height: 24px; color: var(--cb-action); margin-top: 2px; }
.lp-more strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.lp-more span { color: var(--cb-ink-soft); line-height: 1.5; }
.lp-more > p { text-align: center; color: var(--cb-ink-soft); margin: -0.75rem auto 1.5rem; max-width: 36rem; }
.lp-more strong a { color: var(--cb-action); text-decoration: underline; text-underline-offset: 3px; }
.lp-why { padding-bottom: 0; }
.lp-why > p { margin-top: 0; max-width: 44rem; line-height: 1.6; }
.lp-steps ol { list-style: none; counter-reset: lp-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { display: block; counter-increment: lp-step; padding: 18px; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.lp-steps li::before { content: counter(lp-step); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 10px;
                       border-radius: 50%; background: var(--cb-pill); color: var(--cb-action); font-weight: 700; }
.lp-steps strong { display: block; margin-bottom: 2px; }
.lp-steps span { color: var(--cb-ink-soft); line-height: 1.5; }
.lp-end .lp-note { margin: 14px 0 0; color: var(--cb-brand-soft); }

/* 4. Prices */
.lp-prices { text-align: center; padding: 64px 0 24px; }
.lp-price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.lp-price-card { display: flex; flex-direction: column; padding: 24px; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.lp-price-card .lp-btn { margin-top: auto; }
.lp-price-best { border: 2px solid var(--cb-action); }
.lp-price-name { font-weight: 700; color: var(--cb-action) !important; display: flex; align-items: center; gap: 8px; }
.lp-tag { font-size: .78rem; font-weight: 600; color: var(--cb-action); background: var(--cb-pill); padding: 2px 8px; border-radius: 999px; }
.lp-price { font-size: 2.2rem !important; font-weight: 800; color: var(--cb-action) !important; letter-spacing: -.02em; margin-bottom: .8rem !important; }
.lp-price span { font-size: 1rem; font-weight: 500; color: var(--cb-ink-soft); letter-spacing: 0; }

.lp-price-more { margin-top: 20px; }
.lp-price-more a { color: var(--cb-action); font-weight: 600; }

/* Pricing page: the plans side by side, then billing questions */
.lp-prices-top { padding-top: 40px; }
.lp-prices-top h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--cb-action); }
.lp-prices-top .lp-note { margin-top: 16px; }
.lp-compare, .lp-faq { max-width: 760px; margin: 0 auto; padding: 48px 0 0; }
.lp-compare h2, .lp-faq h2 { text-align: center; margin-bottom: 20px; }
.lp-compare table { width: 100%; border-collapse: collapse; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); overflow: hidden; }
.lp-compare th, .lp-compare td { padding: 12px 16px; border-bottom: 1px solid var(--cb-pill); text-align: left; vertical-align: middle; }
.lp-compare tbody tr:last-child th, .lp-compare tbody tr:last-child td { border-bottom: 0; }
.lp-compare thead th { font-weight: 700; font-size: 1rem; color: var(--cb-action); background: var(--cb-page); }
.lp-compare table { table-layout: fixed; }
.lp-compare th:first-child { width: 52%; }
.lp-compare tbody th { font-weight: 500; color: var(--cb-action); white-space: normal; overflow: visible; text-overflow: clip; max-width: none; }
.lp-compare td { color: var(--cb-ink-soft); font-size: .95rem; white-space: nowrap; }
.lp-compare td .cb-svg { width: 20px; height: 20px; color: var(--cb-action); }
.lp-faq details { background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); margin-bottom: 10px; }
.lp-faq summary { padding: 14px 18px; font-weight: 600; color: var(--cb-action); cursor: pointer; }
.lp-faq details p { padding: 0 18px 14px; margin: 0; color: var(--cb-ink-soft); line-height: 1.6; }
.lp-faq details a, .lp-faq-more a { color: var(--cb-action); font-weight: 600; }
.lp-faq-more { text-align: center; margin-top: 18px; color: var(--cb-ink-soft); }

/* What we do: one column of plain text with farm examples */
.lp-doc { max-width: 760px; margin: 0 auto; padding: 24px 0 0; }
.lp-doc h2 { margin: 36px 0 10px; }
.lp-doc p { color: var(--cb-ink-soft); line-height: 1.6; }
.lp-example { padding: 14px 18px; background: var(--cb-card); border: 1px solid var(--cb-pill); border-radius: var(--cb-radius); }
.lp-example strong { color: var(--cb-action); }

/* 5. Last call */
.lp-end { margin-top: 56px; padding: 48px 24px; text-align: center; background: var(--cb-brand); border-radius: var(--cb-radius); }
.lp-end h2 { color: var(--cb-card); margin-bottom: 1.2rem; }

/* Tablet */
@media (max-width: 900px) {
  .lp-hero-title { font-size: 2.6rem; }
  .lp-feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .lp-flip { grid-template-columns: 1fr; }
  .lp-flip .lp-feature-text { order: 0; }
  .lp-more ul, .lp-price-cards { grid-template-columns: 1fr 1fr; }
  .lp-steps ol { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 600px) {
  .lp { padding: 0 16px 40px; }
  .lp h2 { font-size: 1.5rem; }
  .lp-hero { padding: 32px 16px 36px; }
  .lp-hero-title { font-size: 2.15rem; }
  .lp-hero-text { font-size: 1.05rem !important; }
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-hero .lp-hero-shot { margin-top: 28px; }
  .lp-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 32px -16px 8px; padding: 0 16px; scrollbar-width: none; }
  .lp-chips a { flex: none; width: 84px; padding: 10px 2px; font-size: .82rem; }
  .lp-shot-phone { max-width: 240px; }
  .lp-more ul, .lp-price-cards { grid-template-columns: 1fr; }
  .lp-end { padding: 36px 16px; }
  .lp-end .lp-btn { width: 100%; }
  .lp-prices-top h1 { font-size: 2rem; }
  .lp-compare th, .lp-compare td { padding: 10px 10px; font-size: .92rem; }
  .lp-compare td { white-space: normal; }
}

/* Drawings on the front page */
.lp-why-art { width: 200px; margin: 0 auto 1rem; }
.lp-steps li, .lp-promise li { display: flex; flex-direction: column; }
.lp-steps li > .cb-drawing, .lp-promise li > .cb-drawing { order: -1; height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 14px; }
