.structured-page .structured-content {
  padding: var(--space-12) 0 var(--space-10);
}

.structured-page .structured-content *,
.structured-page .structured-content *::before,
.structured-page .structured-content *::after {
  min-width: 0;
}

.structured-page .structured-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: var(--space-8);
}

.structured-page .structured-hero--no-media {
  grid-template-columns: 1fr;
  width: min(900px, calc(100% - var(--space-8)));
}

.structured-page .structured-hero__copy {
  display: grid;
  gap: var(--space-2);
}

.structured-page .structured-eyebrow {
  width: max-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(166, 116, 255, 0.28);
  border-radius: 8px;
  background: rgba(166, 116, 255, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.structured-page h1,
.structured-page h2,
.structured-page h3 {
  margin: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.structured-page h1 {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
}

.structured-page h1 span,
.structured-page h1 strong {
  display: block;
}

.structured-page h1 strong {
  color: var(--accent);
}

.structured-page h2 {
  color: var(--accent);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
}

.structured-page h3 {
  color: #171717;
  font-size: 20px;
  font-weight: 800;
}

.structured-page p {
  margin: 0;
  color: var(--body);
  font-size: 17px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.structured-page .structured-hero__copy > p {
  max-width: 700px;
  font-size: 18px;
}

.structured-page .structured-hero__media,
.structured-page .structured-section__image {
  margin: 0;
}

.structured-page .structured-hero__media {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: var(--space-3);
  border: 1px solid rgba(166, 116, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(166, 116, 255, 0.08), rgba(35, 130, 95, 0.08));
}

.structured-page .structured-hero__media img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.structured-page .structured-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-2);
}

.structured-page .structured-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.structured-page .structured-button:hover,
.structured-page .structured-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(52, 32, 88, 0.12);
}

.structured-page .structured-button--primary {
  background: var(--accent);
  color: #fff;
}

.structured-page .structured-button--secondary {
  background: #fff;
  color: var(--accent);
}

.structured-page .structured-answer {
  width: min(760px, calc(100% - var(--space-8)));
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px solid rgba(166, 116, 255, 0.26);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  background: rgba(166, 116, 255, 0.08);
  color: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
}

.structured-page .structured-section {
  padding-top: var(--space-12);
}

.structured-page .structured-section--media {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
}

.structured-page .structured-section__body {
  display: grid;
  gap: var(--space-3);
}

.structured-page .structured-section__image {
  padding: var(--space-2);
  border: 1px solid rgba(166, 116, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.structured-page .structured-section__image img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.structured-page .structured-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.structured-page .structured-card-grid article,
.structured-page .structured-subsection,
.structured-page .structured-bullet-list {
  border: 1px solid rgba(166, 116, 255, 0.24);
  border-bottom: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.structured-page .structured-card-grid article {
  min-height: 180px;
  padding: var(--space-3);
}

.structured-page .structured-card-grid h3 {
  margin-bottom: var(--space-1);
  color: var(--accent);
}

.structured-page .structured-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.structured-page .structured-card-link article {
  height: 100%;
}

.structured-page .structured-card-link:hover article {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.structured-page .structured-card-link h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.structured-page .structured-card-link h3::after {
  content: "\2192";
  font-weight: 600;
}

.structured-page .structured-subsection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.structured-page .structured-section--process .structured-subsection-grid {
  grid-template-columns: 1fr;
}

.structured-page .structured-subsection {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-3);
}

.structured-page .structured-subsection--plain {
  display: block;
}

.structured-page .structured-step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.structured-page .structured-subsection p {
  margin-top: var(--space-1);
}

.structured-page .structured-bullet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--space-3);
  margin: 0;
  padding: var(--space-3);
  color: var(--body);
  list-style: none;
}

.structured-page .structured-subsection .structured-bullet-list {
  grid-template-columns: 1fr;
  margin-top: var(--space-2);
  padding: 0;
  border: 0;
  box-shadow: none;
}

.structured-page .structured-bullet-list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.55;
}

.structured-page .structured-bullet-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.structured-page .structured-faq {
  width: min(760px, calc(100% - var(--space-8)));
  padding-top: var(--space-12);
  text-align: center;
}

.structured-page .structured-faq .faq-list {
  margin-top: var(--space-4);
  text-align: left;
}

.structured-page .structured-final-cta {
  width: min(760px, calc(100% - var(--space-8)));
  padding-top: var(--space-6);
}

/* Resource article pages (Figma): clean single-column article layout */
.resource-article-page .structured-content {
  padding-top: var(--space-10);
}

.resource-article-page .structured-hero--no-media,
.resource-article-page .structured-answer,
.resource-article-page .structured-section {
  width: min(1150px, calc(100% - var(--space-8)));
}

.resource-article-page .structured-hero__copy {
  max-width: none;
}

.resource-article-page h1 {
  color: var(--accent);
  font-size: clamp(30px, 3.4vw, 36px);
  line-height: 1.14;
}

/* Answer block renders as the lead paragraph, not a callout box */
.resource-article-page .structured-answer {
  margin-top: var(--space-3);
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #383737;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.resource-article-page .structured-section {
  padding-top: var(--space-8);
}

.resource-article-page .structured-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.14;
}

.resource-article-page .structured-section__body {
  gap: var(--space-2);
}

.resource-article-page .structured-section p {
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

/* Bullet lists: plain single-column list, no card */
.resource-article-page .structured-bullet-list {
  display: block;
  margin-top: var(--space-2);
  padding: 0 0 0 var(--space-3);
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #383737;
}

.resource-article-page .structured-bullet-list li {
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.5;
}

.resource-article-page .structured-bullet-list li + li {
  margin-top: 6px;
}

.resource-article-page .structured-bullet-list li::before {
  content: "\2022";
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

/* Subsections/steps render as plain stacked blocks, not cards */
.resource-article-page .structured-subsection-grid {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.resource-article-page .structured-subsection {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.resource-article-page .structured-subsection h3 {
  color: #171717;
  font-size: 20px;
  font-weight: 700;
}

.resource-article-page .structured-subsection p {
  margin-top: 6px;
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

.resource-article-page .structured-step-number {
  display: none;
}

.resource-article-page .structured-faq {
  width: min(1000px, calc(100% - var(--space-8)));
}

/* Case study pages (Figma template): text-only hero, Client Overview card,
   accent headings, text-left/image-right sections, plain bullets */
.case-study-page .structured-hero,
.case-study-page .structured-hero--no-media {
  width: min(1100px, calc(100% - var(--space-8)));
}

.case-study-page h1 {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.12;
}

.case-study-page h1 span {
  color: var(--accent);
}

.case-study-page h1 strong {
  color: #383737;
}

.case-study-page .structured-hero__copy > p {
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

.case-study-page .structured-button {
  font-size: 14px;
  font-weight: 500;
}

/* Hero image sits on the right with no gradient box */
.case-study-page .structured-hero__media {
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.case-study-page .structured-hero__media img {
  max-height: 340px;
  mix-blend-mode: multiply;
}

/* Client Overview: gray card with purple glow */
.case-study-page .structured-answer {
  width: min(1100px, calc(100% - var(--space-8)));
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: none;
  border-radius: 17px;
  background: rgba(217, 217, 217, 0.22);
  box-shadow: 0 4px 4px 0 var(--accent);
  color: #2f2f2f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.case-study-page .structured-answer__title {
  margin: 0 0 var(--space-2);
  color: var(--accent);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

/* Sections: text on the left, image on the right */
.case-study-page .structured-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
}

.case-study-page .structured-section p {
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

.case-study-page .structured-section--case-section {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
  gap: var(--space-8);
}

.case-study-page .structured-section--case-section .structured-section__body {
  order: 1;
}

.case-study-page .structured-section--case-section .structured-section__image {
  order: 2;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.case-study-page .structured-section--case-section .structured-section__image img {
  max-height: 280px;
  mix-blend-mode: multiply;
}

/* Plain bullet list (no card) */
.case-study-page .structured-bullet-list {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.case-study-page .structured-bullet-list li {
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.5;
}

.case-study-page .structured-bullet-list li + li {
  margin-top: 6px;
}

.case-study-page .structured-bullet-list li::before {
  content: "\2022";
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #383737;
  font-size: 18px;
  line-height: 1.5;
}

/* Final CTA card matches the Figma (gray card, purple glow, larger title) */
.case-study-page .structured-final-cta .consultation-cta {
  border: none;
  border-radius: 17px;
  background: rgba(217, 217, 217, 0.22);
  box-shadow: 0 4px 4px 0 var(--accent);
}

.case-study-page .structured-final-cta .consultation-cta__title {
  color: #2f2f2f;
  font-size: 24px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .structured-page .structured-content {
    padding-top: var(--space-10);
  }

  .structured-page .structured-hero,
  .structured-page .structured-section--media {
    grid-template-columns: 1fr;
  }

  .structured-page .structured-hero {
    gap: var(--space-5);
  }

  .structured-page .structured-hero__media {
    min-height: 260px;
  }

  .case-study-page .structured-section--case-section .structured-section__image {
    order: 0;
  }

  .structured-page .structured-card-grid,
  .structured-page .structured-subsection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .structured-page .structured-card-grid,
  .structured-page .structured-subsection-grid,
  .structured-page .structured-bullet-list {
    grid-template-columns: 1fr;
  }

  .structured-page .structured-card-grid article {
    min-height: 0;
  }

  .structured-page .structured-section {
    padding-top: var(--space-10);
  }
}

@media (max-width: 680px) {
  .structured-page .structured-content {
    padding: var(--space-6) 0 var(--space-8);
  }

  .structured-page .structured-hero,
  .structured-page .structured-hero--no-media,
  .structured-page .structured-answer,
  .structured-page .structured-section,
  .structured-page .structured-faq,
  .structured-page .structured-final-cta,
  .resource-article-page .structured-section {
    width: calc(100% - var(--space-4));
  }

  .structured-page h1 {
    font-size: clamp(30px, 9.6vw, 42px);
    line-height: 1.08;
  }

  .structured-page h2 {
    font-size: clamp(24px, 7.4vw, 32px);
  }

  .structured-page h3 {
    font-size: 18px;
  }

  .structured-page p,
  .structured-page .structured-hero__copy > p {
    font-size: 16px;
    line-height: 1.6;
  }

  .structured-page .structured-card-grid,
  .structured-page .structured-subsection-grid,
  .structured-page .structured-bullet-list {
    grid-template-columns: 1fr;
  }

  .structured-page .structured-hero {
    gap: var(--space-4);
  }

  .structured-page .structured-hero__media {
    min-height: 0;
    padding: var(--space-2);
  }

  .structured-page .structured-hero__media img {
    max-height: 240px;
  }

  .structured-page .structured-section__image img {
    max-height: 230px;
  }

  .structured-page .structured-answer {
    margin-top: var(--space-4);
    padding: var(--space-3);
    border-left-width: 4px;
    font-size: 16px;
    line-height: 1.58;
  }

  .structured-page .structured-button-row {
    gap: 10px;
  }

  .structured-page .structured-button {
    width: 100%;
    min-height: 46px;
    padding-inline: var(--space-2);
  }

  .structured-page .structured-card-grid article,
  .structured-page .structured-subsection,
  .structured-page .structured-bullet-list {
    padding: var(--space-2);
  }

  .structured-page .structured-subsection--process {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .structured-page .structured-step-number {
    width: 34px;
    height: 34px;
  }

  .structured-page .structured-bullet-list li {
    font-size: 15px;
  }

  .structured-page .structured-final-cta {
    padding-top: var(--space-5);
  }
}

@media (max-width: 420px) {
  .structured-page .structured-hero,
  .structured-page .structured-hero--no-media,
  .structured-page .structured-answer,
  .structured-page .structured-section,
  .structured-page .structured-faq,
  .structured-page .structured-final-cta,
  .resource-article-page .structured-section {
    width: calc(100% - var(--space-3));
  }

  .structured-page .structured-content {
    padding-top: var(--space-5);
  }

  .structured-page h1 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .structured-page h2 {
    font-size: clamp(23px, 7vw, 29px);
  }

  .structured-page .structured-answer,
  .structured-page .structured-card-grid article,
  .structured-page .structured-subsection,
  .structured-page .structured-bullet-list,
  .structured-page .structured-section__image,
  .structured-page .structured-hero__media {
    border-radius: 8px;
  }
}
