.foam-guide {
  width: 100%;
  padding: 68px 0 92px;
  background: var(--foam-paper);
}

.foam-guide__pair {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.foam-guide__inner {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.foam-advisor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 7px solid #128c4f;
  background: var(--white);
}

.foam-advisor__media {
  position: relative;
  height: 350px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #e6e1d8;
}

.foam-advisor__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 50%;
}

.foam-advisor__media figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 24, 32, .92);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.foam-advisor__media figcaption span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .18);
}

.foam-advisor__body {
  flex: 1;
  padding: 38px 40px 34px;
  display: flex;
  flex-direction: column;
}

.foam-advisor__eyebrow {
  color: var(--action);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.foam-advisor__body h2 {
  margin: 9px 0 0;
  color: var(--carbon);
  font: 700 34px/1.05 Poppins, sans-serif;
  letter-spacing: -.04em;
}

.foam-advisor__body > p {
  margin: 14px 0 0;
  color: #4f626b;
  font-size: 14px;
  line-height: 1.55;
}

.foam-advisor__body ol {
  margin: 22px 0 0;
  padding: 20px 0 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: advisor-step;
}

.foam-advisor__body li {
  position: relative;
  min-height: 35px;
  padding-left: 46px;
  counter-increment: advisor-step;
}

.foam-advisor__body li::before {
  content: counter(advisor-step);
  position: absolute;
  top: 1px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  border-radius: 50%;
  background: #eaf4f5;
  color: var(--action);
  font-size: 12px;
  font-weight: 900;
  place-items: center;
}

.foam-advisor__body li strong,
.foam-advisor__body li span { display: block; }
.foam-advisor__body li strong { font: 700 13px/1.35 Poppins, sans-serif; }
.foam-advisor__body li span { margin-top: 2px; color: #66757d; font-size: 12px; line-height: 1.4; }

.foam-advisor__button {
  width: 100%;
  min-height: 64px;
  margin-top: 22px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #128c4f;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(18, 140, 79, .2);
}

.foam-advisor__button:hover { background: #0d7040; }
.foam-advisor__button > span:last-child { margin-left: auto; }
.foam-advisor__whatsapp { width: 23px; height: 23px; margin-right: auto; display: grid; border-radius: 50%; background: #25d366; place-items: center; }
.foam-advisor__whatsapp svg { width: 14px; height: 14px; fill: var(--white); }
.foam-advisor__body > small { margin-top: 10px; color: #65747c; font-size: 10px; text-align: center; }

.foam-guide__head {
  min-height: 142px;
  padding: 34px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 26px;
  background: var(--carbon);
  color: var(--white);
}

.foam-guide__head h2 {
  max-width: 690px;
  margin: 0;
  font: 700 clamp(2rem, 3.25vw, 2.85rem)/1.04 Poppins, sans-serif;
  letter-spacing: -.04em;
}

.foam-guide__head p {
  max-width: 660px;
  margin: 13px 0 0;
  color: #cbd4d9;
  font-size: 15px;
  line-height: 1.55;
}

.foam-guide__progress { width: 100%; flex: 0 0 auto; }
.foam-guide__progress span { margin-bottom: 11px; display: block; color: #dbe3e7; font-size: 11px; font-weight: 800; text-align: left; }
.foam-guide__progress i { width: 100%; height: 4px; display: block; overflow: hidden; background: #39444d; }
.foam-guide__progress b { width: 100%; height: 100%; display: block; background: var(--blue); transform: scaleX(.33333); transform-origin: left; transition: transform .28s cubic-bezier(.16, 1, .3, 1); }

.foam-guide__workspace { display: block; }
.foam-guide__assistant { min-width: 0; display: flex; flex-direction: column; }
.foam-guide__stage { min-height: 470px; padding: 34px 30px 30px; }
.foam-question { max-width: 760px; margin: 0 auto; }
.foam-question__heading { margin-bottom: 24px; }
.foam-question__heading h3 { margin: 0; font: 700 clamp(1.65rem, 2.4vw, 2.25rem)/1.08 Poppins, sans-serif; letter-spacing: -.035em; }
.foam-question__heading p { margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.foam-answer-grid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.foam-answer-grid--visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foam-answer-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foam-answer-grid button {
  min-width: 0;
  min-height: 160px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--carbon);
  text-align: left;
  cursor: pointer;
}
.foam-answer-grid button:hover { background: #f8f7f2; }
.foam-answer-grid button:focus-visible {
  outline: 0;
  box-shadow: inset 0 -4px var(--action);
}
.foam-answer-grid button[aria-pressed="true"] { background: #eaf4f5; box-shadow: inset 0 -4px var(--action); }
.foam-answer__image { position: relative; height: 155px; display: block; overflow: hidden; background: #eceae3; }
.foam-answer__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.foam-answer-grid button:hover .foam-answer__image img { transform: scale(1.025); }
.foam-answer__copy { min-height: 112px; padding: 19px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.foam-answer__copy strong { display: block; font: 700 16px/1.22 Poppins, sans-serif; letter-spacing: -.025em; }
.foam-answer__copy small { margin-top: 7px; display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.foam-answer__copy b { margin-top: auto; padding-top: 14px; color: var(--action); font-size: 11px; font-weight: 800; }
.foam-answer-grid--three button { min-height: 230px; padding: 30px; justify-content: flex-end; }
.foam-answer-grid--three .foam-answer__copy { min-height: 0; padding: 0; }

.answer-foam { width: 138px; height: 68px; margin-bottom: 36px; display: block; background: var(--pink); box-shadow: 0 12px 22px rgba(16, 24, 32, .1); clip-path: polygon(0 24%, 45% 0, 100% 22%, 100% 100%, 0 100%); }
.answer-foam--balanced { background: var(--blue); clip-path: polygon(0 14%, 48% 4%, 100% 15%, 100% 100%, 0 100%); }
.answer-foam--stable { background: var(--green); clip-path: polygon(0 3%, 50% 1%, 100% 4%, 100% 100%, 0 100%); }

.foam-guide__actions { min-height: 76px; margin-top: auto; padding: 10px 34px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.foam-guide__actions button { min-height: 46px; padding: 0 22px; border: 1px solid var(--line); background: var(--white); color: var(--carbon); font-weight: 800; cursor: pointer; }
.foam-guide__actions button:disabled { color: #969da2; cursor: not-allowed; }
.foam-guide__actions p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.foam-guide__next { margin-left: auto; border-color: var(--action) !important; background: var(--action) !important; color: var(--white) !important; }
.foam-guide__next:disabled { border-color: #d9dde0 !important; background: #d9dde0 !important; color: #7a848a !important; }
.foam-guide__actions [data-guide-reset] { margin-left: auto; }

.sample-pack { width: 100%; min-width: 0; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #edf6f8; scroll-margin-top: 116px; }
.sample-pack figure { height: 350px; min-height: 0; margin: 0; overflow: hidden; background: #e6e1d8; }
.sample-pack figure img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 58%; }
.sample-pack__body { min-width: 0; flex: 1; padding: 38px 40px 34px; display: flex; flex-direction: column; }
.sample-pack__body > span { color: var(--action); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sample-pack__body h3 { margin: 9px 0 0; font: 700 28px/1.08 Poppins, sans-serif; letter-spacing: -.035em; }
.sample-pack__body > p { margin: 14px 0 0; color: #4f626b; font-size: 14px; line-height: 1.55; }
.sample-pack__body ul { margin: 19px 0 0; padding: 16px 0 0; display: grid; gap: 8px; border-top: 1px solid #c7d8dc; list-style: none; }
.sample-pack__body li { position: relative; padding-left: 17px; color: var(--carbon); font-size: 13px; font-weight: 700; }
.sample-pack__body li::before { content: ""; position: absolute; top: 6px; left: 0; width: 6px; height: 6px; background: var(--action); }
.sample-pack__price { margin-top: 26px; padding-top: 0; display: flex; align-items: baseline; gap: 7px; }
.sample-pack__price strong { font: 700 34px/1 Poppins, sans-serif; letter-spacing: -.035em; }
.sample-pack__price small { color: #4f626b; font-size: 12px; font-weight: 700; }
.ccg-home-v3 .sample-pack a.sample-pack__button,
.ccg-home-v3 .sample-pack .sample-pack__button { box-sizing: border-box; width: 100%; height: 54px; min-height: 54px; margin-top: 16px; padding: 0 24px; display: flex !important; align-items: center !important; justify-content: center !important; border: 0; background: var(--carbon); color: var(--white); font-size: 13px; font-weight: 800; line-height: 1.2 !important; text-align: center !important; text-decoration: none !important; cursor: pointer; }
.sample-pack a.added_to_cart { display: none !important; }
.sample-pack__button:hover { background: var(--action); }
.sample-pack__button:disabled { background: #53616a; cursor: default; }
.sample-pack__status { min-height: 36px; margin-top: 10px !important; font-size: 10px !important; }

.foam-guide__result { max-width: 930px; margin: 25px auto 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 58px; }
.foam-guide__result-visual { position: relative; height: 210px; display: grid; place-items: center; background: #eef6f7; }
.foam-guide__result-visual i, .foam-guide__result-visual span { position: absolute; width: 165px; height: 88px; background: var(--blue); clip-path: polygon(0 14%, 48% 4%, 100% 15%, 100% 100%, 0 100%); }
.foam-guide__result-visual span { margin: 25px 0 0 24px; background: #69b9d0; }
.foam-guide__result-visual i { z-index: 2; }
.foam-guide__label { color: var(--action); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.foam-guide__result h3 { margin: 7px 0 10px; font: 700 31px/1.1 Poppins, sans-serif; letter-spacing: -.035em; }
.foam-guide__result p { margin: 0; color: var(--muted); line-height: 1.55; }
.foam-guide__result ul { margin: 20px 0 24px; padding: 0; list-style: none; }
.foam-guide__result li { position: relative; padding: 7px 0 7px 24px; font-size: 13px; }
.foam-guide__result li::before { content: ""; position: absolute; top: 12px; left: 1px; width: 9px; height: 5px; border-bottom: 2px solid var(--action); border-left: 2px solid var(--action); transform: rotate(-45deg); }
.foam-guide__result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.foam-guide__result-actions a { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; background: var(--action); color: var(--white); font-size: 13px; font-weight: 800; text-decoration: none; }
.foam-guide__result-actions .foam-guide__result-secondary { border: 1px solid var(--action); background: transparent; color: var(--action); }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .foam-guide { padding: 72px 0 96px; }
  .foam-guide__pair { width: min(100% - 40px, 760px); grid-template-columns: 1fr; }
  .foam-guide__inner { width: 100%; }
  .foam-advisor { width: 100%; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
  .foam-advisor__media { height: auto; min-height: 430px; }
  .foam-advisor__body { padding: 38px 34px; }
  .foam-guide__head { padding: 38px 36px; align-items: flex-start; flex-direction: column; }
  .foam-guide__progress { width: 100%; }
  .foam-guide__progress span { text-align: left; }
  .foam-guide__stage { padding: 42px 36px 38px; }
  .foam-answer__image { height: 190px; }
  .foam-guide__actions { padding-right: 36px; padding-left: 36px; }
  .sample-pack { width: 100%; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); }
  .sample-pack figure { height: auto; min-height: 430px; }
  .sample-pack__body { padding: 38px 34px; }
}

@media (max-width: 620px) {
  .foam-guide { padding: 58px 0 72px; }
  .foam-guide__pair { width: calc(100% - 40px); gap: 24px; }
  .foam-guide__head { min-height: 0; padding: 30px 24px; gap: 32px; }
  .foam-guide__head h2 { font-size: clamp(2rem, 10vw, 2.65rem); }
  .foam-guide__stage { min-height: 560px; padding: 32px 24px 28px; }
  .foam-question__heading { margin-bottom: 26px; }
  .foam-answer-grid--visual, .foam-answer-grid--three { grid-template-columns: 1fr; }
  .foam-answer__image { height: 176px; }
  .foam-answer__copy { min-height: 112px; padding: 20px; }
  .foam-answer-grid--three button { min-height: 150px; padding: 24px; flex-direction: row; align-items: center; gap: 22px; }
  .foam-answer-grid--three .foam-answer__copy { flex: 1; }
  .answer-foam { width: 88px; height: 46px; margin: 0; flex: 0 0 auto; }
  .foam-guide__actions { min-height: 94px; padding: 12px 20px; flex-wrap: wrap; }
  .foam-guide__actions button { padding: 0 16px; }
  .foam-guide__actions p { order: 3; width: 100%; max-width: none; }
  .foam-guide__result { grid-template-columns: 1fr; gap: 28px; }
  .foam-guide__result-visual { height: 150px; }
  .foam-guide__result-actions { flex-direction: column; }
  .foam-guide__result-actions a { justify-content: center; }
  .sample-pack { width: 100%; display: flex; }
  .foam-advisor { width: 100%; display: flex; }
  .foam-advisor__media { height: 270px; min-height: 0; }
  .foam-advisor__body { padding: 30px 24px 26px; background: #f2fbf6; }
  .foam-advisor__body h2 { font-size: 32px; line-height: 1.04; }
  .foam-advisor__body > p { font-size: 15px; }
  .foam-advisor__button { min-height: 66px; font-size: 15px; }
  .foam-advisor__body ol { margin-top: 26px; }
  .sample-pack figure { height: 270px; min-height: 0; }
  .sample-pack__body { padding: 28px 24px 26px; }
  .sample-pack__body h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .foam-guide__progress b, .foam-answer__image img { transition: none; }
}
