/* Landing page — refined marketing layout */

body.landing {
  background: var(--surface);
  color: var(--text);
}

/* Header */
.landing .site-header--landing {
  position: fixed;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing .site-header--landing.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing .header-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.nav-links {
  gap: 1.75rem;
}

/* Hero */
.lp-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(194, 65, 12, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.lp-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lp-eyebrow--light {
  color: #fdba74;
}

.lp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 14em;
}

.lp-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.lp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.lp-metrics li strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.lp-metrics li span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lp-hero__visual {
  position: relative;
}

.lp-hero__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.lp-hero__photo img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.lp-estimate-card {
  position: absolute;
  left: -2rem;
  bottom: -1.5rem;
  width: min(300px, 78%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.25rem;
}

.lp-estimate-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.7rem;
  margin-bottom: 0.65rem;
  border-bottom: 2px solid var(--bg-dark);
}

.lp-estimate-card__brand {
  font-weight: 700;
  font-size: 0.88rem;
}

.lp-estimate-card__brand em {
  font-style: normal;
  color: var(--accent);
}

.lp-estimate-card__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lp-estimate-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.28rem 0;
}

.lp-estimate-card__row--highlight {
  margin: 0.35rem -0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.lp-estimate-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lp-estimate-card__foot strong {
  font-size: 0.95rem;
  color: var(--accent);
}

/* Sections */
.lp-section {
  padding: 5.5rem 0;
}

.lp-section--muted {
  background: var(--bg);
}

.lp-section--dark {
  background: var(--bg-dark);
  color: #fafaf9;
}

.lp-section__header {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.lp-section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.lp-section__header h2,
.lp-split__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.lp-section__sub {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lp-split--reverse .lp-split__media {
  order: 2;
}

.lp-split--reverse .lp-split__content {
  order: 1;
}

.lp-split__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.lp-split__media img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.lp-split__media figcaption {
  padding: 0.9rem 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.lp-split__content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.lp-split__content p:last-child {
  margin-bottom: 0;
}

.lp-callout {
  margin-top: 1.25rem !important;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem !important;
}

.lp-callout strong {
  color: var(--text);
}

/* Trades */
.lp-trades {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.lp-trade {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lp-trade img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.lp-trade:hover img {
  transform: scale(1.03);
}

.lp-trade h3 {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 2.75rem 1rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.82));
}

/* Steps */
.lp-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.lp-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lp-step__img {
  height: 180px;
  overflow: hidden;
}

.lp-step__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-step__body {
  padding: 1.5rem;
}

.lp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.lp-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.lp-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Features */
.lp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.lp-feature {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lp-feature__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 108px;
}

.lp-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-feature h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.lp-feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PDF showcase */
.lp-pdf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.lp-pdf__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lp-pdf__copy > p {
  color: #d6d3d1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.lp-checklist {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.lp-checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 0.93rem;
  color: #e7e5e4;
}

.lp-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.lp-pdf-doc {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.lp-pdf-doc__company {
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 0.65rem;
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--bg-dark);
}

.lp-pdf-doc__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lp-pdf-doc__tier {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.lp-pdf-doc__tier h4 {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.lp-pdf-doc__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.1rem 0;
}

.lp-pdf-doc__total {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.lp-pdf-doc__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Pricing */
.lp-pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.lp-price {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.lp-price--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.lp-price__badge {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.lp-price h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.lp-price__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lp-price__amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.lp-price__amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.lp-price__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.lp-price__list li {
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.lp-price__list li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

.lp-price .btn {
  width: 100%;
  text-align: center;
}

.lp-pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Feedback */
.lp-feedback {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lp-feedback__header {
  margin-bottom: 1.5rem;
}

.lp-feedback__header h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.65rem;
}

.lp-feedback__header p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.lp-feedback__form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 8rem;
  background: var(--surface);
}

.lp-feedback__form textarea:focus {
  outline: 2px solid rgba(194, 65, 12, 0.25);
  border-color: var(--accent);
}

.lp-feedback__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.feedback-status {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1 1 12rem;
}

.feedback-status--ok {
  color: var(--success);
  font-weight: 600;
}

.feedback-status--err {
  color: #991b1b;
}

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

/* CTA */
.lp-cta {
  background: var(--accent-soft);
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
  padding: 4.5rem 0;
}

.lp-cta__inner {
  text-align: center;
  max-width: 36rem;
}

.lp-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.lp-cta p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}

.lp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Footer */
.lp-footer {
  background: var(--bg-dark);
  color: #a8a29e;
  padding: 4rem 0 2rem;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.lp-footer__brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fafaf9;
  margin-bottom: 0.75rem;
}

.lp-footer__brand span {
  color: #fdba74;
}

.lp-footer__brand-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.lp-footer h4 {
  color: #e7e5e4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lp-footer ul {
  list-style: none;
}

.lp-footer li {
  margin-bottom: 0.45rem;
}

.lp-footer a {
  color: #a8a29e;
  font-size: 0.9rem;
  text-decoration: none;
}

.lp-footer a:hover {
  color: #fafaf9;
}

.lp-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.lp-footer__credit {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.lp-footer__credit a {
  color: #fdba74;
}

/* Auth visibility */
body.landing .authed-only[hidden],
body.landing .nav-authed-only[hidden],
body.landing .guest-only[hidden],
body.landing .nav-guest-only[hidden] {
  display: none !important;
}

body.landing.logged-in .nav-authed-only:not([hidden]) {
  display: list-item;
}

body.landing.logged-in .lp-hero__actions.authed-only:not([hidden]),
body.landing.logged-in .lp-cta__actions.authed-only:not([hidden]) {
  display: flex;
}

body.landing.logged-in li.authed-only:not([hidden]) {
  display: list-item;
}

body.landing.logged-in #user-menu-mount {
  display: list-item;
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-hero__grid,
  .lp-split,
  .lp-pdf,
  .lp-features,
  .lp-trades,
  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-split--reverse .lp-split__media,
  .lp-split--reverse .lp-split__content {
    order: unset;
  }

  .lp-hero h1 {
    max-width: none;
  }

  .lp-hero__visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .lp-estimate-card {
    left: auto;
    right: -0.5rem;
  }

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

  .lp-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .lp-section {
    padding: 4rem 0;
  }

  .lp-hero {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .landing .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .landing .nav-links.open {
    display: flex;
  }

  .landing .nav-links .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.35rem;
  }

  .lp-hero__photo img {
    height: 280px;
  }

  .lp-estimate-card {
    position: relative;
    width: calc(100% - 2rem);
    left: auto;
    right: auto;
    bottom: auto;
    margin: -2rem auto 0;
  }

  .lp-trades {
    grid-template-columns: 1fr;
  }

  .lp-feature {
    grid-template-columns: 1fr;
  }

  .lp-feature__img {
    height: 160px;
  }

  .lp-pricing {
    grid-template-columns: 1fr;
  }

  .lp-feedback {
    padding: 1.5rem;
  }

  .lp-split__media img {
    height: 280px;
  }
}