/* styles/sections/guide-landing.css
 * Lead-magnet guide pages (/get-the-guide/, /enterprise-ai-adoption/, /founder-decision-making/):
 * the shared landing frame moved off css/get-the-guide.css onto tokens. Hero (on .surface--inverse),
 * the download form band with its embedded form frame, quotes, benefits, preview cards, author
 * card, the FAQ column (shared accordion), and the closing download box. The guides' navy and gold
 * palette is re-based on fern, mint and orange tokens; sizes follow the shared type roles.
 * The 768px query is the pages' own pre-swap switch. */
@layer sections {
  /* Headings break greedily, as the pre-swap guide headings did: these pages had no component
     loader, so the heading roles' balanced wrap never reached them. */
  .campaign-page :is(h1, h2, h3, h4) {
    text-wrap: wrap;
  }

  .guide-hero, .guide-form, .guide-social, .guide-benefits, .guide-preview, .guide-author, .guide-faq, .guide-cta {
    padding: var(--space-96) 0;
  }

  .guide-hero__grid, .guide-form__grid, .guide-benefits__grid, .guide-author__grid, .guide-cta__box {
    display: grid;
    gap: var(--space-64);
  }

  .guide-hero__grid, .guide-form__grid, .guide-benefits__grid, .guide-author__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .eyebrow {
    color: var(--mint);
    margin-bottom: var(--space-8);
  }

  .guide-hero h1 {
    margin-bottom: var(--space-24);
    color: var(--white);
  }

  .guide-hero__grid {
    align-items: center;
  }

  /* The lead was 20px before the swap: the body-lg role's 900px step (campaign-frame.css). */
  .guide-hero .lead {
    --t-body-lg-size: 20px;

    font-size: var(--t-body-lg-size);
    color: var(--white-85);
    margin-bottom: var(--space-32);
    line-height: 1.7;
    font-weight: 400;
  }

  .guide-hero__highlights {
    margin: 0 0 var(--space-24);
    padding-left: var(--space-24);
    color: var(--white-85);
  }

  .guide-hero__highlights li::marker {
    color: var(--mint);
  }

  .guide-hero .cta-pair {
    justify-content: flex-start;
    margin-bottom: var(--space-16);
  }

  .guide-hero .cta-pair .btn {
    min-width: 0;
  }

  .cta-pair.single-cta {
    flex-wrap: nowrap;
  }

  .guide-hero__visual {
    position: relative;
  }

  .guide-hero__visual img {
    width: 100%;
    height: auto;
    border-radius: var(--space-24);
    box-shadow: var(--elevation-window);
    transition: transform 0.3s ease;
  }

  .guide-hero__visual:hover img {
    transform: translateY(-4px);
    box-shadow: var(--elevation-window);
  }

  .guide-meta {
    display: flex;
    gap: var(--space-24);
    color: var(--white-70);
    font-size: 15px;
    flex-wrap: wrap;
    margin-top: var(--space-16);
  }

  .guide-form {
    background: var(--white);
    color: var(--ink);
    scroll-margin-top: 120px;
    position: relative;
  }

  .guide-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fern-30), transparent);
  }

  .guide-form .eyebrow {
    color: var(--orange-ink);
  }

  .guide-form h2 {
    color: var(--ink);
    margin-bottom: var(--space-24);
  }

  .guide-form p {
    color: var(--ink-2);
    font-size: var(--t-body-lg-size);
    line-height: 1.7;
    margin-bottom: var(--space-24);
  }

  .guide-checklist {
    color: var(--ink-2);
    font-size: var(--t-body-size);
    line-height: 1.7;
    margin-top: var(--space-24);
    padding-left: var(--space-32);
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
  }

  .guide-form__grid {
    align-items: stretch;
  }

  .guide-form__embed {
    position: relative;
  }

  .form-frame-wrapper {
    position: relative;
    border-radius: var(--space-24);
    border: 1px solid var(--line-2);
    background: var(--white);
    overflow: hidden;
    min-height: 780px;
    box-shadow: var(--elevation-low);
  }

  .form-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 780px;
    border: none;
    display: block;
  }

  .form-frame-mask {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, var(--white) 0%, var(--white) 60%, transparent 100%);
    pointer-events: none;
  }

  .form-reload {
    text-align: center;
    margin: var(--space-24) 0 0;
    color: var(--ink-2);
    font-size: 15px;
  }

  .form-reload-text {
    margin-right: 0.35rem;
  }

  .guide-checklist li {
    padding-left: var(--space-16);
    position: relative;
  }

  .guide-checklist li::marker {
    color: var(--orange-ink);
    font-weight: 700;
  }

  .guide-checklist li::before {
    content: "→";
    position: absolute;
    left: -1.5rem;
    color: var(--orange);
    font-weight: 700;
  }

  .guide-social {
    background: var(--white);
    color: var(--ink);
    position: relative;
  }

  .guide-social::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fern-30), transparent);
  }

  .guide-social__intro {
    max-width: 640px;
    margin-bottom: var(--space-64);
  }

  .guide-social h2 {
    color: var(--ink);
    margin-bottom: var(--space-24);
  }

  .guide-social p {
    color: var(--ink-2);
    font-size: var(--t-body-lg-size);
    line-height: 1.7;
  }

  .guide-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-24);
  }

  .guide-quote {
    border: 1px solid var(--line-2);
    border-radius: var(--space-24);
    padding: var(--space-24);
    background: var(--white);
    box-shadow: var(--elevation-subtle);
    margin: var(--space-16) var(--space-40);
  }

  .guide-quote blockquote {
    margin: 0 0 var(--space-16);
    font-size: var(--t-body-size);
    color: var(--ink);
    font-style: italic;
  }

  .guide-quote figcaption {
    color: var(--ink-2);
    font-weight: 500;
  }

  .guide-benefits {
    background: var(--fern);
    color: var(--white);
  }

  .guide-benefits .eyebrow {
    color: var(--mint);
  }

  .guide-benefits h2 {
    color: var(--white);
  }

  .guide-benefits ul {
    color: var(--white-85);
  }

  .guide-benefits li::marker {
    color: var(--mint);
  }

  .guide-preview {
    background: var(--white);
    color: var(--ink);
  }

  .guide-preview h2 {
    color: var(--ink);
  }

  .guide-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-24);
    margin-top: var(--space-48);
  }

  .guide-preview__grid .preview-card {
    height: 100%;
  }

  .preview-card {
    border: 1px solid var(--line-2);
    border-radius: var(--space-24);
    padding: var(--space-24);
    background: var(--white);
    box-shadow: var(--elevation-subtle);
  }

  .preview-label {
    display: inline-block;
    margin-bottom: var(--space-8);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--orange-ink);
    font-weight: 600;
  }

  .preview-card p {
    color: var(--ink-2);
  }

  .guide-author {
    background: var(--white);
    color: var(--ink);
  }

  .guide-author__grid {
    align-items: center;
  }

  .guide-author .eyebrow {
    color: var(--orange-ink);
  }

  .guide-author h2 {
    color: var(--ink);
  }

  .guide-author p {
    color: var(--ink-2);
  }

  .author-card {
    border: 1px solid var(--line-2);
    border-radius: var(--space-24);
    padding: var(--space-32);
    background: var(--white);
  }

  .author-name {
    font-weight: 600;
    font-size: var(--t-body-lg-size);
    color: var(--ink);
  }

  .muted {
    color: var(--ink-55);
  }

  .guide-faq {
    background: var(--white);
    color: var(--ink);
    position: relative;
  }

  .guide-faq::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fern-30), transparent);
  }

  .guide-faq h2 {
    margin-bottom: var(--space-48);
    color: var(--ink);
    text-align: center;
  }

  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  .guide-cta {
    background: var(--white);
    color: var(--ink);
    scroll-margin-top: 120px;
  }

  /* The action column keeps the pre-swap button's width (223px; 272px on the kit), so the copy
     beside it holds its pre-swap measure; the shared button, narrower, sits at the column's end. */
  .guide-cta__box {
    --cta-action-col: 223px;

    align-items: center;
    grid-template-columns: minmax(0, 2fr) minmax(var(--cta-action-col), auto);
    background: var(--fern);
    color: var(--white);
    border-radius: var(--space-32);
    padding: var(--space-96);
    box-shadow: var(--elevation-window);
    position: relative;
    overflow: hidden;
  }

  /* Before the swap the hero h1 scaled from 36px at 900 to 48px at 1200 (4vw). Between them it
     takes the h3 role's 40px, inside that range; from 1200 the h2 role's 48px. */
  @media (900px <= width < 1200px) {
    .guide-hero h1 {
      font-size: var(--t-h3-size);
      letter-spacing: var(--t-h3-ls);
    }
  }

  :where(.guide--kit) .guide-cta__box {
    --cta-action-col: 272px;
  }

  .guide-cta__box > .btn {
    justify-self: end;
  }

  .guide-cta__box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--mint), transparent);
  }

  .guide-cta__box h2 {
    color: var(--white);
    margin-bottom: var(--space-16);
  }

  .guide-cta__box p {
    color: var(--white-85);
    font-size: var(--t-body-lg-size);
    line-height: 1.7;
  }

  .guide-cta__box .eyebrow {
    color: var(--mint);
  }

  @media (width <= 768px) {
    .guide-meta {
      flex-direction: column;
      gap: var(--space-8);
    }

    /* The copy column stays the box's content width; below 332px the button's label runs wider than
       that, and the button stays centred on the column over the box padding. */
    .guide-cta__box {
      grid-template-columns: minmax(0, 1fr);
      text-align: center;
      padding: var(--space-64);
    }

    .guide-cta__box .btn {
      width: 100%;
      min-width: max-content;
      justify-self: center;
      justify-content: center;
    }

    .guide-faq h2, .guide-social h2, .guide-qualification h2 {
      text-align: center;
    }

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

    .guide-hero .cta-pair {
      width: 100%;
    }

    .guide-hero .cta-pair .btn {
      flex: 1 1 auto;
      justify-content: center;
    }
  }
}
