/* ================================================================
   landing-page.css — SEO job-title landing pages
   Route /employment-contract/{slug}. Loaded after homepage1.css, which
   supplies the design tokens (:root vars), fonts, header/footer and the
   form field / button / price banner classes reused inside the card.

   Desktop (> 900px): two-column grid. Article left (~65%), form card
   right (~32%) and sticky. Mobile (<= 900px): one column, intro first,
   THEN the form card, then the rest of the article; a sticky bottom bar
   scrolls back to the form. There is exactly ONE form on the page.
   ================================================================ */

.landing-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px clamp(16px, 4vw, 48px) 72px;
}

/* homepage1.css sets overflow-x: hidden on BOTH html and body. With html clipped, body's
   overflow is not propagated to the viewport, so body becomes its own scroll container and
   position: sticky inside it never pins. overflow-x: clip clips without making body a
   scroll container, so the form card can stick. Scoped to this page (this file only). */
body { overflow-x: clip; }

/* ---------- grid ---------- */
.landing-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(300px, 32fr);
  grid-template-areas:
    "intro form"
    "body  form";
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 0;
  align-items: start;
}
.landing-intro    { grid-area: intro; min-width: 0; }
.landing-body     { grid-area: body;  min-width: 0; }
.landing-form-col { grid-area: form;  min-width: 0; align-self: stretch; }

/* ---------- article card (white, like the homepage card) ----------
   Intro and body are separate grid items so the form can slot between them on
   mobile. On desktop they stack with no gap and share one card: the intro takes
   the top corners, the body takes the bottom corners and the shadow. */
.landing-intro,
.landing-body {
  background: #ffffff;
  border: 1px solid #dbdbdb;
  padding: 0 clamp(24px, 3.2vw, 48px);
}
.landing-intro {
  border-radius: 30px 30px 0 0;
  border-bottom: none;
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: 8px;
}
.landing-body {
  border-radius: 0 0 30px 30px;
  border-top: none;
  padding-bottom: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 40px 90px -40px rgba(20, 50, 40, 0.35),
              0 2px 6px rgba(20, 50, 40, 0.06);
}
.landing-body > h2:first-child { margin-top: 8px; }

/* ---------- sticky card ---------- */
.landing-form-card {
  position: sticky;
  top: 24px;
  background: linear-gradient(113deg, #eae8e2 0%, #fbfaf8 50%, #e6e3dc 100%);
  border: 1px solid #dbdbdb;
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 40px 90px -40px rgba(20, 50, 40, 0.35),
              0 2px 6px rgba(20, 50, 40, 0.06);
}
.landing-form-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.landing-form-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.landing-form-title em,
.landing-form-title strong {
  font-style: normal;
  color: var(--amber);
}

/* compact versions of the homepage form pieces so the card fits in one viewport */
.landing-price-banner { margin-top: 16px; padding: 12px 16px; border-radius: 14px; }
.landing-price-banner .price-amount-v2 { font-size: 2.1em; }
.landing-field-group { margin-top: 18px; gap: 14px; }
.landing-form-card .field-question-v2 { font-size: 15px; }
.landing-form-card .field-label-row-v2 { margin-bottom: 6px; }
.landing-form-card .form-input-v2 { height: 48px; font-size: 15px; }
.landing-form-card .state-search-wrapper { position: relative; }
.landing-submit { margin-top: 18px; height: 54px; font-size: 17px; padding: 0 28px; width: 100%; }

/* collapsed promo field */
.landing-promo-details { margin-top: -2px; }
.landing-promo-summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-promo-summary::-webkit-details-marker { display: none; }
.landing-promo-details[open] .landing-promo-summary { margin-bottom: 8px; }
.landing-promo-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.landing-promo-prompt { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.landing-promo-prompt a { color: var(--green-deep); font-weight: 700; cursor: pointer; }

.landing-trust-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(20, 50, 40, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.landing-trust-list li { padding-left: 22px; position: relative; }
.landing-trust-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.6-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- article ---------- */
.landing-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.landing-breadcrumb a { color: var(--green-deep); text-decoration: none; }
.landing-breadcrumb a:hover { text-decoration: underline; }

.landing-h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.landing-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.landing-intro .landing-disclaimer {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: #8a948f;
  max-width: 70ch;
}

.landing-quick-answer {
  margin: 26px 0 8px;
  background: var(--mint-card);
  border: 1.5px solid var(--mint-border);
  border-radius: 16px;
  padding: 18px 22px;
}
.landing-quick-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.landing-quick-answer p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.landing-quick-answer p + p { margin-top: 0; }

.landing-intro h2,
.landing-body h2 {
  margin: 40px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--green-deep);
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--green-ink);
}
.landing-body h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}
.landing-intro p,
.landing-body p,
.landing-intro li,
.landing-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.landing-intro p, .landing-body p { margin: 0 0 16px; }
.landing-intro ul, .landing-body ul { margin: 0 0 18px; padding-left: 26px; }
.landing-intro li, .landing-body li { margin-bottom: 8px; }
.landing-body a { color: var(--green-deep); font-weight: 700; }

.landing-example {
  background: #fff7ea;
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
}

.landing-key-areas li { margin-bottom: 14px; }
.landing-key-areas strong { color: var(--green-ink); }

.landing-faq h3 { font-size: 18px; margin-top: 22px; }
.landing-faq p { margin-bottom: 10px; }

.landing-related { list-style: none; padding-left: 0 !important; }
.landing-related li { padding: 10px 0; border-bottom: 1px solid rgba(20, 50, 40, 0.1); }
.landing-related li:last-child { border-bottom: none; }
.landing-related small { color: var(--ink-soft); font-weight: 600; }

/* ---------- sample contract PDF (viewer capped at 450px; image on phones) ---------- */
/* pdf.js canvas viewer (.pcv-root is added by createPdfViewer). Hard cap: 450px tall. */
.landing-sample-viewer,
.landing-sample-viewer.pcv-root {
  margin: 4px 0 10px;
  height: 450px;
  min-height: 0;
  max-height: 450px;
  border: 1px solid #dbdbdb;
  border-radius: 14px;
  overflow: hidden;
}
.landing-sample-viewer noscript a { display: block; padding: 24px; }
/* page-1 image is for search engines and the schema, not shown (the viewer renders the pages) */
.landing-sample-image { display: none; }
.landing-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--ink-soft);
}
.landing-sample-band {
  margin: 18px 0 8px;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--green-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.landing-sample-band p { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.landing-sample-band strong { color: #ffd08a; }
.landing-sample-band .landing-cta-btn { height: 46px; }
.landing-sample-band-btn { width: 100%; display: flex; justify-content: center; }

/* 2-second flashing red box around #job_title after any scroll-to-form button click */
@keyframes landing-flash-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); border-color: #e74c3c; }
  50%      { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.55); border-color: #e74c3c; }
}
.form-input-v2.landing-flash-field {
  border: 2px solid #e74c3c !important;
  animation: landing-flash-red 0.5s ease-in-out 4;
}

/* ---------- CTA blocks (buttons that scroll to the one form) ---------- */
.landing-cta-block {
  margin: 32px 0 8px;
  background: linear-gradient(113deg, #eae8e2 0%, #fbfaf8 50%, #e6e3dc 100%);
  border: 1px solid #e0ddd5;
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.landing-cta-block p { margin: 0; font-weight: 700; color: var(--green-ink); }
.landing-cta-btn,
.landing-sticky-btn {
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffac33, var(--amber-deep));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  padding: 0 24px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 14px 26px -10px rgba(224, 124, 0, 0.6);
  transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.landing-cta-btn:hover, .landing-sticky-btn:hover { transform: translateY(-1px); }
.landing-cta-bottom { margin-top: 36px; }

/* ---------- mobile sticky bottom bar (hidden on desktop) ---------- */
.landing-sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(20, 50, 40, 0.12);
  box-shadow: 0 -8px 24px rgba(20, 50, 40, 0.10);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.landing-sticky-bar.is-visible { transform: translateY(0); }
.landing-sticky-btn { width: 100%; }

/* ================================================================
   MOBILE / NARROW (<= 900px): one column, intro → form → body
   ================================================================ */
@media (max-width: 900px) {
  .landing-stage { padding: 24px 16px 96px; }
  .landing-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "form"
      "body";
  }
  .landing-form-col { align-self: auto; margin: 16px 0; }
  .landing-intro,
  .landing-body {
    border: 1px solid #dbdbdb;
    border-radius: 22px;
    padding: 22px 18px 20px;
    box-shadow: 0 2px 6px rgba(20, 50, 40, 0.06);
  }
  .landing-intro { padding-bottom: 6px; }
  .landing-body > h2:first-child { margin-top: 4px; }
  .landing-form-card { position: static; top: auto; }
  .landing-sticky-bar { display: block; }
  .landing-cta-block { padding: 16px 18px; }
  .landing-cta-btn { width: 100%; }

  /* same canvas viewer on phones (pdf.js works on iOS); keep the 450px cap */
  .landing-sample-viewer.pcv-root { max-height: 450px; }
  .landing-sample-band { padding: 16px 18px; }
}

@media (max-width: 400px) {
  .landing-h1 { font-size: 27px; }
  .landing-form-card { padding: 20px 16px 18px; border-radius: 18px; }
  .landing-intro p, .landing-body p, .landing-intro li, .landing-body li { font-size: 16px; }
}
