/* ============================================================
   Method.AI Foundations - page-specific design

   Loaded only by offers/method-ai-foundations-workshop.html,
   alongside /styles.css, scoped under `.foundations-page`.

   Same two reasons as the other two designed offer pages:
   generic class names that already mean something in styles.css
   (.hero, .section, .eyebrow, .faq, .fit-grid), and a palette
   whose token names collide while the values differ - this
   design's --ink is #102b28, not the brand #0B1533, and --line
   differs too. Prefixed --f-* and declared on .foundations-page
   so they stop at the edges of the main content.

   Anything this design does not declare is restated here where
   styles.css would otherwise fill the gap. Those are marked.
   ============================================================ */

.foundations-page {
  --f-forest:  #163c35;
  --f-forest2: #24594d;
  --f-ink:     #102b28;
  --f-cream:   #f7f5eb;
  --f-muted:   #5d6d66;
  --f-line:    #d8ded2;
  --f-mint:    #d9e9d7;
  --f-sage:    #9fbd9d;
  --f-gold:    #edc77a;
  --f-rust:    #d77656;
  --f-white:   #fffefa;

  color: var(--f-ink);
  background: var(--f-cream);
  font: 400 16px/1.65 Inter, "Avenir Next", system-ui, sans-serif;
  display: block;
}

.foundations-page *,
.foundations-page *::before,
.foundations-page *::after { box-sizing: border-box; }

.foundations-page a { color: inherit; }

.foundations-page h1,
.foundations-page h2,
.foundations-page h3 {
  font-family: Poppins, "Avenir Next", system-ui, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.08;
  /* styles.css pins headings to var(--ink). This design sets no heading
     colour, so headings take their section's colour - white on the forest
     hero and the forest programme band. Without `inherit` they are dark
     on dark. */
  color: inherit;
  font-weight: 700;
  text-transform: none;
}
.foundations-page h1 {
  font-size: clamp(3.1rem, 6.4vw, 6rem);
  margin: 22px 0;
  max-width: 770px;
  letter-spacing: -.065em;
}
.foundations-page h2 { font-size: clamp(2.25rem, 4.3vw, 3.85rem); margin: 0 0 18px; }
.foundations-page h3 { font-size: 1.14rem; margin: 0 0 9px; }
.foundations-page p  { margin: 0 0 18px; color: var(--f-muted); }

.foundations-page .wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }

.foundations-page .eyebrow {
  font: 500 .72rem "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--f-forest2);
  margin-bottom: 0;        /* styles.css gives .eyebrow a bottom margin */
}

.foundations-page .button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 11px; text-decoration: none; font-weight: 600;
  background: var(--f-gold); color: var(--f-ink);
  padding: 15px 22px; border-radius: 4px; border: 1px solid #c49e50;
  font-size: .92rem;
  transition: background .2s, transform .2s;
}
.foundations-page .button:hover { background: #f4d690; transform: translateY(-2px); }

/* ─────────────── Hero ─────────────── */

.foundations-page .hero {
  background: var(--f-forest); color: #fff;
  position: relative; overflow: hidden; padding: 70px 0 76px;
}
.foundations-page .hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, #3d736155 0, transparent 44%),
    radial-gradient(ellipse at 4% 100%, #081f1c 0, transparent 48%);
}
.foundations-page .hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center;
}
.foundations-page .hero .eyebrow { color: var(--f-gold); }
.foundations-page .hero h1 { max-width: 710px; }
.foundations-page .hero h1 em { font-style: normal; color: var(--f-sage); }
.foundations-page .hero-copy > p { max-width: 650px; color: #dce8df; font-size: 1.12rem; line-height: 1.75; }
.foundations-page .hero-actions {
  display: flex; align-items: center; gap: 21px; margin-top: 29px;
  flex-wrap: nowrap;       /* styles.css wraps .hero-actions */
}
.foundations-page .hero-link {
  font-size: .9rem; color: #fff; text-decoration: none;
  border-bottom: 1px solid #ffffff63; padding-bottom: 3px;
}
.foundations-page .hero-note { margin-top: 25px; font-size: .78rem; color: #b5cac0; }
.foundations-page .hero-note strong { color: var(--f-gold); }

/* the working-agreement canvas, drawn in CSS so there is no image to ship */
.foundations-page .alignment { position: relative; min-height: 455px; display: grid; place-items: center; }
.foundations-page .alignment-orbit {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; border: 1px solid #d7c89855; right: 4%; top: 21px;
}
.foundations-page .alignment-orbit::before,
.foundations-page .alignment-orbit::after {
  content: ""; position: absolute;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--f-gold); top: 68px; left: 52px;
}
.foundations-page .alignment-orbit::after {
  width: 8px; height: 8px; background: var(--f-sage);
  left: auto; top: auto; right: 37px; bottom: 94px;
}
.foundations-page .canvas {
  position: relative; z-index: 1; width: min(450px, 100%);
  border: 1px solid #d5ddce59; background: #fbf9ef; color: var(--f-ink);
  padding: 23px; border-radius: 3px;
  box-shadow: 14px 18px 0 #0c2b2645; transform: rotate(-1deg);
}
.foundations-page .canvas-top {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #d8ded2; padding-bottom: 15px;
}
.foundations-page .canvas-title {
  font: 500 .63rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .09em;
}
.foundations-page .canvas-stamp {
  background: var(--f-mint); color: var(--f-forest);
  font: 500 .58rem "DM Mono", monospace; padding: 5px 8px; border-radius: 2px;
}
.foundations-page .canvas h3 { font-size: 1.15rem; margin: 17px 0 19px; }
.foundations-page .lane {
  display: grid; grid-template-columns: 94px 1fr 94px; gap: 8px;
  align-items: center; padding: 12px 0; border-top: 1px solid #e4e5db;
}
.foundations-page .lane-label {
  font: 500 .6rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em;
}
.foundations-page .lane-label.product { color: #996442; }
.foundations-page .lane-label.eng { color: #3f7253; }
.foundations-page .lane-box {
  padding: 7px 9px; border-radius: 2px; background: #efe8d8;
  font-size: .65rem; line-height: 1.4; text-align: center;
}
.foundations-page .lane-box.eng { background: #e1ecdf; }
.foundations-page .shared {
  margin-top: 12px; padding: 12px; background: var(--f-forest); color: #fff; text-align: center;
}
.foundations-page .shared b {
  display: block; color: var(--f-gold);
  font: 500 .62rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em;
}
.foundations-page .shared span { font: 500 .74rem Inter, sans-serif; }
.foundations-page .canvas-foot {
  display: flex; justify-content: space-between; margin-top: 12px;
  color: #68786c; font: 400 .58rem "DM Mono", monospace;
}
.foundations-page .join-note {
  position: absolute; z-index: 2; right: -3px; bottom: 22px;
  background: var(--f-gold); color: var(--f-ink);
  padding: 13px 16px; border: 1px solid #b38f48;
  font: 500 .63rem "DM Mono", monospace;
  text-transform: uppercase; letter-spacing: .05em; transform: rotate(3deg);
}

/* ─────────────── Stats bar ─────────────── */

.foundations-page .stats { background: var(--f-gold); color: var(--f-ink); border-bottom: 1px solid #c4a258; }
.foundations-page .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.foundations-page .stat { padding: 20px; border-right: 1px solid #102b2838; }
.foundations-page .stat:first-child { padding-left: 0; }
.foundations-page .stat:last-child { border: 0; }
.foundations-page .stat b { display: block; font: 600 .9rem Poppins, sans-serif; }
.foundations-page .stat span { font-size: .76rem; color: #4f5548; }

/* ─────────────── Sections ─────────────── */

.foundations-page .section { padding: 100px 0; }
.foundations-page .intro { max-width: 760px; }
.foundations-page .intro p { font-size: 1.03rem; }

.foundations-page .friction { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: start; }
.foundations-page .friction .intro { position: sticky; top: 36px; }
.foundations-page .quote {
  margin-top: 25px; border-left: 2px solid var(--f-rust);
  padding: 9px 0 9px 20px;
  font: 500 1.08rem/1.55 Poppins, sans-serif;
  color: var(--f-ink); letter-spacing: -.025em;
}
.foundations-page .stall-list { border-top: 1px solid var(--f-line); }
.foundations-page .stall {
  padding: 19px 0; border-bottom: 1px solid var(--f-line);
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
}
.foundations-page .stall-no {
  font: 500 .68rem "DM Mono", monospace; color: var(--f-rust); padding-top: 4px;
}
.foundations-page .stall p { margin: 0; font-size: .88rem; }
.foundations-page .stall strong { color: var(--f-ink); }

.foundations-page .principles { background: #e9eee2; }
.foundations-page .principles-head {
  display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px;
}
.foundations-page .principles-head p { max-width: 410px; margin: 0; }
.foundations-page .principle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #cbd5c7; border: 1px solid #cbd5c7;
}
.foundations-page .principle { background: var(--f-cream); padding: 25px; min-height: 190px; }
.foundations-page .principle .num {
  display: block; color: var(--f-forest2);
  font: 500 .66rem "DM Mono", monospace; letter-spacing: .1em; margin-bottom: 24px;
}
.foundations-page .principle p { font-size: .82rem; margin: 0; }

.foundations-page .program { background: var(--f-forest); color: #fff; }
.foundations-page .program .eyebrow { color: var(--f-gold); }
.foundations-page .program .intro p { color: #d3e0d6; }
.foundations-page .program-grid { display: grid; grid-template-columns: .77fr 1.23fr; gap: 75px; }
.foundations-page .program-list { border-top: 1px solid #ffffff44; }
.foundations-page .program-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid #ffffff44;
}
.foundations-page .program-step .num {
  font: 500 .68rem "DM Mono", monospace; color: var(--f-gold); padding-top: 4px;
}
.foundations-page .program-step h3 { font-size: 1rem; }
.foundations-page .program-step p { font-size: .83rem; color: #d3e0d6; margin: 0; }
.foundations-page .followup {
  margin-top: 22px; background: #244a41; padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; border-left: 2px solid var(--f-gold);
}
.foundations-page .followup b {
  font: 500 .68rem "DM Mono", monospace; text-transform: uppercase;
  color: var(--f-gold); min-width: 115px;
}
.foundations-page .followup span { font-size: .8rem; color: #e4ece3; }

/* ─────────────── Fit ─────────────── */

.foundations-page .fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.foundations-page .fit-card { padding: 28px; background: var(--f-white); border: 1px solid var(--f-line); }
.foundations-page .fit-card.no { background: #efeee6; }
.foundations-page .fit-card h3 { margin-bottom: 14px; }
.foundations-page .fit-card ul { list-style: none; padding: 0; margin: 0; }
.foundations-page .fit-card li {
  padding: 8px 0 8px 24px; position: relative; font-size: .86rem; color: #58685f;
}
.foundations-page .fit-card li::before {
  content: "+"; position: absolute; left: 1px; color: var(--f-forest2); font-weight: 700;
}
.foundations-page .fit-card.no li::before { content: "\2013"; color: #8c8e85; }

/* ─────────────── Investment ─────────────── */

.foundations-page .investment { background: var(--f-mint); }
.foundations-page .investment-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.foundations-page .investment p { font-size: 1rem; }
.foundations-page .investment-card {
  background: var(--f-white); padding: 26px;
  border-top: 3px solid var(--f-forest); box-shadow: 0 12px 35px #163c3512;
}
.foundations-page .investment-card .eyebrow { font-size: .65rem; }
.foundations-page .investment-card h3 { font-size: 1.25rem; margin: 12px 0; }
.foundations-page .investment-card p { font-size: .84rem; }
.foundations-page .investment-card .button { width: 100%; }

/* ─────────────── FAQ ─────────────── */

.foundations-page .faq-wrap { max-width: 850px; margin: auto; }
/* This design styles .faq-wrap and leaves the inner .faq div unstyled, but
   styles.css has its own `.faq { max-width: 760px; margin-top: 10px }` for the
   other offer pages. Unreset it narrows the whole FAQ and every row in it. */
.foundations-page .faq { max-width: none; margin: 0; }
.foundations-page .faq-wrap .intro { margin-bottom: 30px; }
.foundations-page .faq details {
  border-top: 1px solid var(--f-line); padding: 20px 0;
  border-bottom: 0;        /* styles.css gives every details a bottom border */
}
.foundations-page .faq details:last-child { border-bottom: 1px solid var(--f-line); }
.foundations-page .faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  font: 600 1rem Poppins, sans-serif;
  padding: 0; position: static; color: inherit;
}
.foundations-page .faq summary::-webkit-details-marker { display: none; }
.foundations-page .faq summary::after {
  content: "+"; font-size: 1.2rem; color: var(--f-forest2);
  /* styles.css positions this absolutely and pins line-height to 1 */
  position: static; transform: none; line-height: normal;
}
.foundations-page .faq details[open] summary::after { content: "\2212"; }
.foundations-page .faq details p {
  padding: 13px 35px 0 0; margin: 0; font-size: .89rem; max-width: none;
  color: var(--f-muted);   /* styles.css recolours these to --ink-soft */
}
.foundations-page .faq summary:focus-visible { outline: 2px solid var(--f-forest2); outline-offset: 3px; }

/* ─────────────── Final ─────────────── */

.foundations-page .final { background: var(--f-gold); padding: 70px 0; border-top: 1px solid #c4a258; }
.foundations-page .final-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.foundations-page .final h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); max-width: 700px; margin: 10px 0; }
.foundations-page .final p { margin: 0; color: #4e554c; }

/* ─────────────── Responsive ─────────────── */

@media (max-width: 850px) {
  .foundations-page .hero-grid,
  .foundations-page .friction,
  .foundations-page .program-grid,
  .foundations-page .investment-grid { grid-template-columns: 1fr; gap: 30px; }
  .foundations-page .alignment { min-height: 405px; }
  .foundations-page .alignment-orbit { right: 15%; }
  .foundations-page .friction .intro { position: static; }
  .foundations-page .section { padding: 78px 0; }
  .foundations-page .principles-head { align-items: start; flex-direction: column; gap: 8px; }
  .foundations-page .program-grid { gap: 24px; }
}

@media (max-width: 600px) {
  .foundations-page .wrap { width: calc(100% - 34px); }
  .foundations-page .hero { padding: 48px 0 42px; }
  .foundations-page .hero-grid { gap: 0; }
  .foundations-page .hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .foundations-page .hero-copy > p { font-size: 1rem; }
  .foundations-page .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .foundations-page .alignment { min-height: 360px; margin-top: 8px; }
  .foundations-page .alignment-orbit { width: 300px; height: 300px; right: 4%; top: 28px; }
  .foundations-page .canvas { width: calc(100% - 12px); padding: 17px; }
  .foundations-page .lane { grid-template-columns: 76px 1fr 76px; gap: 5px; }
  .foundations-page .lane-box { font-size: .58rem; }
  .foundations-page .join-note { right: -2px; bottom: 10px; font-size: .55rem; }
  .foundations-page .stats-grid { grid-template-columns: 1fr 1fr; }
  .foundations-page .stat { padding: 14px 9px; border-bottom: 1px solid #102b2838; }
  .foundations-page .stat:nth-child(2) { border-right: 0; }
  .foundations-page .stat:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .foundations-page .stat:nth-child(4) { border-bottom: 0; }
  .foundations-page .stat:first-child { padding-left: 0; }
  .foundations-page .section { padding: 65px 0; }
  .foundations-page .principle-grid { grid-template-columns: 1fr; }
  .foundations-page .principle { min-height: auto; padding: 19px; }
  .foundations-page .principle .num { margin-bottom: 14px; }
  .foundations-page .program-step { grid-template-columns: 38px 1fr; }
  .foundations-page .followup { align-items: flex-start; flex-direction: column; gap: 6px; }
  .foundations-page .fit-grid { grid-template-columns: 1fr; }
  .foundations-page .investment-grid { gap: 24px; }
  .foundations-page .final-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .foundations-page *,
  .foundations-page *::before,
  .foundations-page *::after { transition: none !important; }
}
