/*
  Landing page design layer. Loaded after styles.css and wins over it.
  Brand tokens are unchanged: green primary, gold accent, Manrope.
*/
:root {
  --lp-ink: #0d1d16;
  --lp-muted: #4d6157;
  --lp-primary: #0b7449;
  --lp-primary-dark: #073f2c;
  --lp-primary-soft: #e6f2ea;
  --lp-gold: #c99b2b;
  --lp-bg: #f5f7f4;
  --lp-border: rgba(16, 32, 24, 0.1);
  --lp-radius: 16px;
  --lp-shadow: 0 18px 44px rgba(13, 29, 22, 0.1);
  --lp-shadow-soft: 0 8px 24px rgba(13, 29, 22, 0.07);
  --lp-header: 76px;
}

[id] {
  scroll-margin-top: calc(var(--lp-header) + 12px);
}

/* ------------------------------------------------------------ header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--lp-border);
}

.nav-links a {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  color: #2c4237;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--lp-primary-soft);
  color: var(--lp-primary-dark);
}

/* ----------------------------------------------------------- buttons */
.btn {
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7, 63, 44, 0.28);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* -------------------------------------------------------- typography */
body[data-page="home"] h1 {
  max-width: 26ch;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

body[data-page="home"] h2 {
  max-width: none;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--lp-ink);
}

body[data-page="home"] .section {
  padding: clamp(3.2rem, 6.5vw, 5.8rem) 0;
  margin: 0;
}

.section-head.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
}

.section-head.center h2 {
  margin-inline: auto;
}

.section-head.center p {
  margin: 0.8rem auto 0;
  color: var(--lp-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: #7a5906;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- hero */
body[data-page="home"] .hero-home {
  min-height: 0;
  background-image:
    linear-gradient(100deg, rgba(5, 24, 16, 0.94) 0%, rgba(5, 24, 16, 0.82) 46%, rgba(5, 24, 16, 0.4) 100%),
    url("../img/hero-building.jpg");
  background-size: cover;
  background-position: center;
}

body[data-page="home"] .hero-overlay {
  display: block;
  padding: clamp(3.4rem, 8vw, 6.2rem) 0 clamp(6rem, 11vw, 8.4rem);
}

body[data-page="home"] .hero-copy {
  max-width: 680px;
}

body[data-page="home"] .hero-offer {
  margin: 1rem 0 1.6rem;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  min-height: 52px;
  padding-inline: 1.5rem;
  text-align: center;
  white-space: normal;
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-facts li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-note {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.hero-stores {
  display: grid;
  gap: 8px;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------- proof band */
.proof-band {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(2.6rem, 5vw, 3.6rem));
}

.proof-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  box-shadow: var(--lp-shadow);
}

.proof-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--lp-primary-dark);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.6rem;
  text-align: center;
  background: var(--lp-primary-soft);
  border-radius: 14px;
}

.proof-stat strong {
  color: var(--lp-primary-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.proof-stat span {
  color: var(--lp-muted);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------- screens */
body[data-page="home"] .section-screens {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ef 100%);
  padding-top: clamp(3.4rem, 6vw, 5rem);
}

.screen-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
  justify-items: center;
}

.screen-card {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.screen-card .phone-frame {
  width: min(100%, 230px);
  box-shadow: 0 24px 50px rgba(13, 29, 22, 0.2);
}

.screen-card figcaption {
  max-width: 24ch;
  font-weight: 800;
  color: var(--lp-ink);
}

/* ------------------------------------------------------------- pains */
body[data-page="home"] .section-pains {
  background: #eef4ee;
}

.pain-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pain-list li {
  position: relative;
  padding: 1.2rem 1.3rem 1.2rem 3.7rem;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-left: 4px solid var(--lp-gold);
  border-radius: 14px;
  box-shadow: var(--lp-shadow-soft);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.pain-list li::before {
  content: "\2715";
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #fbe9e5;
  color: #b3402a;
  font-size: 0.85rem;
  font-weight: 800;
}

.pain-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
  margin: 2rem auto 0;
  max-width: 920px;
}

.pain-closing p {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--lp-primary-dark);
}

.pain-closing .btn {
  white-space: normal;
  text-align: center;
}

/* --------------------------------------------------------- workflows */
.workflow-list {
  display: grid;
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}

body[data-page="home"] .workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(135deg, #ffffff 0%, #f1f7f2 100%);
  border: 1px solid var(--lp-border);
  border-radius: 22px;
  box-shadow: var(--lp-shadow-soft);
}

body[data-page="home"] .workflow-reverse .workflow-copy {
  order: 2;
}

.workflow-num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: var(--lp-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.workflow-copy h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  color: var(--lp-ink);
}

.workflow-copy p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.workflow-phone {
  width: min(100%, 200px);
  justify-self: center;
  box-shadow: 0 24px 50px rgba(13, 29, 22, 0.2);
}

/* ---------------------------------------------------------- features */
body[data-page="home"] .section-features {
  background: var(--lp-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: block;
  padding: 1.6rem;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow);
  border-color: rgba(11, 116, 73, 0.35);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-weight: 400;
}

.feature-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--lp-ink);
}

.feature-card p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.55;
}

/* ------------------------------------------------------------- steps */
body[data-page="home"] .section-guide {
  background: #ffffff;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  right: -22px;
  width: 22px;
  border-top: 2px dashed rgba(11, 116, 73, 0.4);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #ffffff;
  font-weight: 800;
}

.step h3::before {
  content: none;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  color: var(--lp-ink);
}

.step p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.55;
}

.full-guide {
  max-width: 980px;
  margin: 1.4rem auto 0;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 0.2rem 1.1rem;
}

.full-guide > summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 800;
  color: var(--lp-primary-dark);
}

.full-guide .guide-layout {
  padding-bottom: 1rem;
}

/* ----------------------------------------------------------- pricing */
body[data-page="home"] .section-pricing {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(11, 116, 73, 0.1), transparent 70%),
    linear-gradient(180deg, #eef5ef 0%, #f5f7f4 100%);
}

.price-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  box-shadow: var(--lp-shadow);
  overflow: hidden;
}

.price-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: linear-gradient(160deg, #0a5a3b 0%, #073f2c 100%);
  color: #ffffff;
}

.price-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
  font-weight: 800;
}

.price-main .plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  margin: 0;
}

.price-main .plan-price strong {
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  line-height: 1;
}

.price-main .plan-price span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.price-main .trial-scope {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  line-height: 1.5;
}

.price-main .btn {
  width: 100%;
  min-height: 52px;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--lp-primary-dark);
  text-align: center;
  white-space: normal;
}

.price-main .btn:hover {
  background: #f1f7f2;
}

.price-main .trial-charge {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.price-includes {
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.price-includes h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--lp-ink);
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.2rem;
}

.price-list li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.price-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lp-primary);
  font-weight: 800;
}

.price-payback {
  margin: 1.4rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--lp-primary-soft);
  border-radius: 12px;
  color: var(--lp-primary-dark);
  font-weight: 700;
  line-height: 1.5;
}

.price-billing {
  margin: 1rem 0 0;
  color: var(--lp-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------- faq */
body[data-page="home"] .section-faq {
  background: var(--lp-bg);
}

.faq-layout {
  max-width: 820px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 0 1.2rem;
  box-shadow: var(--lp-shadow-soft);
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: rgba(11, 116, 73, 0.35);
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 800;
  color: var(--lp-ink);
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin: 0;
  padding: 0 0 1.2rem;
  color: var(--lp-muted);
  line-height: 1.65;
}

/* ------------------------------------------------------- final cta */
body[data-page="home"] .section-final {
  background: #ffffff;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(7, 63, 44, 0.97), rgba(11, 116, 73, 0.95)),
    url("../img/hero-building.jpg") center / cover;
  color: #ffffff;
  box-shadow: var(--lp-shadow);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  color: #ffffff !important;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-banner p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.cta-banner .btn-primary {
  min-height: 54px;
  padding-inline: 1.6rem;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--lp-primary-dark);
  white-space: normal;
  text-align: center;
}

/* ------------------------------------------------------------ footer */
.site-footer {
  margin-top: 0;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0 2rem;
  background: #0d1d16;
  color: rgba(255, 255, 255, 0.78);
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 5vw, 4rem);
}

.footer-brand {
  display: inline-flex;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-note {
  margin: 0.7rem 0 1.2rem;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-title {
  margin: 0 0 0.3rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-col a {
  font-weight: 600;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.site-footer .store-badge {
  box-shadow: none;
}

/* ------------------------------------------------------- sticky cta */
.sticky-cta {
  display: none;
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .proof-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .screen-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .pain-list {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .workflow {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body[data-page="home"] .workflow-reverse .workflow-copy {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--lp-border);
    box-shadow: 0 -8px 24px rgba(13, 29, 22, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .sticky-cta.visible {
    transform: none;
  }

  .sticky-cta .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .price-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .pain-closing .btn,
  .cta-banner .btn-primary {
    width: 100%;
  }

  body[data-page="home"] h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.2rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Hero: the primary action must stand out on the dark photo. */
body[data-page="home"] .hero-actions .btn-primary {
  background: #e3b53f;
  border-color: #e3b53f;
  color: #1c1503;
}

body[data-page="home"] .hero-actions .btn-primary:hover {
  background: #efc455;
  box-shadow: 0 10px 24px rgba(227, 181, 63, 0.35);
}

body[data-page="home"] .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

body[data-page="home"] .hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}
