/* ==========================================================================
   PAGE — AI Licensing (ai-licensing.html)
   Figma: mon-k-website › "AI Licensing" (node 73:8562), 1440 desktop frame.
   Namespace `ai-licensing-` for every class and token, so this block cannot
   reach any other page in the file — or the live theme's stylesheet.
   ========================================================================== */

:root {
  /* Brand */
  --ai-licensing-yellow:      #ffc600;
  --ai-licensing-amber:       #edb000;   /* eyebrow on the grey band */
  --ai-licensing-tile:        rgba(251, 191, 36, .23);
  --ai-licensing-btn-hover:   #ffd23d;

  /* Darks */
  --ai-licensing-navy:        #060f1e;   /* hero + product cards */

  /* Type */
  --ai-licensing-ink:         #0f0f35;   /* section headings */
  --ai-licensing-heading:     #282525;   /* workflow heading */
  --ai-licensing-card-ink:    #1c1c1c;
  --ai-licensing-body:        #272729;
  --ai-licensing-muted:       #8c8585;
  --ai-licensing-icon-ink:    #333333;
  --ai-licensing-on-dark:     #ffffff;
  --ai-licensing-on-dark-soft:#d7d7d7;
  --ai-licensing-rule-dark:   rgba(217, 217, 217, .25);

  /* Surfaces */
  --ai-licensing-white:       #ffffff;
  --ai-licensing-card:        #fefefe;
  --ai-licensing-grey:        #f2f2f2;

  /* Face — local stack after the web font so the page still reads offline */
  --ai-licensing-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Metrics */
  --ai-licensing-max:      1240px;
  --ai-licensing-gutter:   20px;
  --ai-licensing-header-h: 76px;   /* the fixed site header */
}


/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.ai-licensing-page,
.ai-licensing-page *,
.ai-licensing-page *::before,
.ai-licensing-page *::after {
  box-sizing: border-box;
}

.ai-licensing-page {
  /* Flush under the fixed header — the hero is a dark band, and any gap
     would show as a stripe of body background. */
  padding-top: var(--ai-licensing-header-h);
  margin: 0;
  background: var(--ai-licensing-white);
  font-family: var(--ai-licensing-font);
  color: var(--ai-licensing-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;   /* Safari < 16 fallback */
  overflow-x: clip;
}

/* :where() keeps the reset at (0,1,0) so every component rule below wins on
   source order instead of being out-specified by an element selector. */
.ai-licensing-page :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
  padding: 0;
}

.ai-licensing-page :where(ul, ol) {
  list-style: none;
}

.ai-licensing-page :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.ai-licensing-page :focus-visible {
  outline: 3px solid var(--ai-licensing-yellow);
  outline-offset: 3px;
}

.ai-licensing-container {
  width: 100%;
  max-width: calc(var(--ai-licensing-max) + var(--ai-licensing-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--ai-licensing-gutter);
}


/* --------------------------------------------------------------------------
   Shared — eyebrow with its 40px accent rule, and the section heading
   -------------------------------------------------------------------------- */

.ai-licensing-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;   /* 17px */
  line-height: 1.5;
  color: var(--ai-licensing-yellow);
}

.ai-licensing-eyebrow::before {
  content: "";
  flex: none;
  width: 40px;
  height: 2px;
  background: currentColor;
}

.ai-licensing-eyebrow--amber {
  color: var(--ai-licensing-amber);
}

.ai-licensing-section-title {
  font-weight: 700;
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.1875rem);   /* 26 → 35px */
  line-height: 1.29;
  color: var(--ai-licensing-ink);
}


/* ==========================================================================
   1. HERO
   ========================================================================== */

.ai-licensing-hero {
  background-color: var(--ai-licensing-navy);
  background-image: radial-gradient(
    1504px 444px at 50% 20%,
    rgba(245, 158, 11, .15) 0%,
    rgba(245, 158, 11, 0) 70%
  );
  /* Same band geometry as the Publishing and Delivery heroes: shared top
     padding and a fixed band height per breakpoint (420 / 440 / 488px). */
  min-height: 420px;
  padding-block: 56px;
  color: var(--ai-licensing-on-dark);
}

.ai-licensing-hero-title {
  margin-top: 12px;
  max-width: 988px;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem);   /* 28 → 40px */
  line-height: 1.25;
  color: var(--ai-licensing-on-dark);
}

/* Figma sets "AI economy" on a line of its own. */
.ai-licensing-hero-accent {
  display: block;
  color: var(--ai-licensing-yellow);
}

.ai-licensing-hero-lead {
  margin-top: 14px;
  max-width: 692px;
  font-size: clamp(1rem, .92rem + .4vw, 1.125rem);   /* 16 → 18px */
  line-height: 1.67;
  color: var(--ai-licensing-on-dark);
}


/* ==========================================================================
   2. A CONNECTED PATH — Forge + Meter product cards
   ========================================================================== */

.ai-licensing-path {
  padding-block: clamp(56px, 7vw, 91px) clamp(56px, 7vw, 100px);
  text-align: center;
}

/* Narrower than the 1040px Figma box so it breaks onto two lines as drawn —
   Poppins sets a little tighter than Figma's render and fitted on one. */
.ai-licensing-path-title {
  max-width: 820px;
  margin-inline: auto;
}

.ai-licensing-path-lead {
  max-width: 987px;
  margin: 12px auto 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ai-licensing-body);
}

.ai-licensing-products {
  display: grid;
  gap: 25px;
  max-width: 1063px;
  margin: 32px auto 0;
  text-align: left;
}

.ai-licensing-product {
  min-height: 223px;
  padding: 39px 38px 48px;
  border-radius: 10px;
  background: var(--ai-licensing-navy);
  box-shadow: 0 0 15px -2px rgba(0, 0, 0, .1);
  color: var(--ai-licensing-on-dark-soft);
}

.ai-licensing-product-head {
  display: flex;
  align-items: center;
  gap: 19px;
}

.ai-licensing-product-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 61px;
  border-radius: 4px;
  background: var(--ai-licensing-tile);
}

.ai-licensing-product-brand {
  display: flex;
  flex-direction: column;
  font-weight: 300;
}

.ai-licensing-product-logo {
  width: 96px;
}

/* The wordmark PNG carries empty space under the letters; Figma tucks the
   product name up into it. */
.ai-licensing-product-name {
  margin-top: -8px;
  padding-left: 3px;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ai-licensing-yellow);
}

.ai-licensing-product-rule {
  display: block;
  width: 190px;
  max-width: 100%;
  height: 1px;
  margin-top: 31px;
  background: var(--ai-licensing-rule-dark);
}

.ai-licensing-product-text {
  margin-top: 21px;
  font-size: 1rem;
  line-height: 1.42;
}


/* ==========================================================================
   3. KAI FOR AI LICENSING
   ========================================================================== */

.ai-licensing-kai {
  background: var(--ai-licensing-grey);
  padding-block: clamp(56px, 6vw, 85px);
}

.ai-licensing-kai-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.ai-licensing-kai-title {
  margin-top: 12px;
  line-height: 1.37;
}

.ai-licensing-kai-text {
  margin-top: 12px;
  max-width: 473px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ai-licensing-body);
}

/* Inline, not flex: the arrow is joined to the last word by a no-break
   space, so on a narrow screen it wraps together with "agents" instead of
   dropping onto a line by itself. Block padding keeps the tap target ≥ 44px. */
.ai-licensing-kai-link {
  display: inline-block;
  padding-block: 10px;
  margin-top: 3px;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #000000;
  text-decoration: none;
}

.ai-licensing-kai-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: from-font;
}

/* `left`, not transform — transforms don't apply to inline boxes. */
.ai-licensing-kai-link-arrow {
  position: relative;
  left: 0;
  font-weight: 900;
  transition: left .18s ease;
}

.ai-licensing-kai-link:hover .ai-licensing-kai-link-text,
.ai-licensing-kai-link:focus-visible .ai-licensing-kai-link-text {
  text-decoration-color: var(--ai-licensing-amber);
}

.ai-licensing-kai-link:hover .ai-licensing-kai-link-arrow,
.ai-licensing-kai-link:focus-visible .ai-licensing-kai-link-arrow {
  left: 4px;
}

.ai-licensing-kai-figure img {
  width: 100%;
}


/* ==========================================================================
   4. AI LICENSING WORKFLOW — heading cell + five step cards
   ========================================================================== */

.ai-licensing-workflow {
  padding-block: clamp(56px, 7vw, 100px);
}

.ai-licensing-workflow-grid {
  display: grid;
  gap: 24px;
}

.ai-licensing-workflow-intro {
  padding-bottom: 8px;
}

.ai-licensing-workflow-title {
  margin-top: 14px;
  max-width: 420px;
  color: var(--ai-licensing-heading);
}

.ai-licensing-step {
  display: flex;
  flex-direction: column;
  min-height: 334px;
  padding: 21px 24px 24px 28px;
  border-radius: 20px;
  background: var(--ai-licensing-card);
  box-shadow: 0 4px 5px 2px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ai-licensing-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px 2px rgba(0, 0, 0, .08);
}

/* A circle asset with the glyph centred on top — both at intrinsic size. */
.ai-licensing-step-icon {
  position: relative;
  flex: none;
  width: 59px;
  height: 59px;
}

.ai-licensing-step-circle {
  position: absolute;
  inset: 0;
}

.ai-licensing-step-glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* The "AI" sits on the licensing document glyph as live text in the Figma. */
.ai-licensing-step-icon-label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-weight: 700;
  font-size: .75rem;
  line-height: 24px;
  color: var(--ai-licensing-icon-ink);
}

.ai-licensing-step-title {
  margin-top: 17px;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ai-licensing-card-ink);
}

.ai-licensing-step-sub {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--ai-licensing-muted);
}

.ai-licensing-step-text {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ai-licensing-card-ink);
}

/* The Figma runs these together ("BooksJournalsArticlesData"); a middle dot
   restores the separators. */
.ai-licensing-step-tags {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2px;
  margin-top: auto;
  padding-top: 24px;
  font-size: .875rem;
  line-height: 1.3;
  color: var(--ai-licensing-muted);
}

/* On the trailing side, so a wrapped line never starts with a stray dot. */
.ai-licensing-step-tags li:not(:last-child)::after {
  content: "\00b7";
  margin-inline: 6px;
}


/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 480px) {
  :root { --ai-licensing-gutter: 24px; }
}

@media (min-width: 768px) {
  /* Same ramp as --site-gutter: 32px at 768 → 100px at 1440, then holds.
     Keep the two identical, or the logo drifts out of line with the page. */
  :root { --ai-licensing-gutter: clamp(32px, 10.119vw - 45.71px, 100px); }

  .ai-licensing-hero { min-height: 440px; padding-top: 88px; }

  .ai-licensing-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-licensing-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-licensing-workflow-intro {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .ai-licensing-hero { min-height: 488px; padding-top: 113px; }   /* Figma band: 488px */

  .ai-licensing-kai-grid {
    grid-template-columns: minmax(0, 500fr) minmax(0, 713fr);
    gap: 37px;
  }

  /* 397 / 391 / 397 columns, as in the frame; the heading takes cell one. */
  .ai-licensing-workflow-grid {
    grid-template-columns: minmax(0, 397fr) minmax(0, 391fr) minmax(0, 397fr);
    column-gap: 29px;
  }

  .ai-licensing-workflow-intro {
    grid-column: auto;
    align-self: center;
    padding-bottom: 0;
  }

  .ai-licensing-workflow-title {
    max-width: 367px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-licensing-page *,
  .ai-licensing-page *::before,
  .ai-licensing-page *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }

  .ai-licensing-step:hover {
    transform: none;
  }
}
