/*
 * KetoTrainer Layout Final Polish V6
 * 30 October 2026
 * Purpose: complete visual system for the existing KetoTrainer homepage markup.
 * Brand: Deep teal #245C52, warm off-white #F7F5F0, soft sage #DCE6DF,
 *        charcoal #303231, muted sand #E8DFD2, white #FFFFFF.
 */

:root {
  --kt-teal: #245c52;
  --kt-teal-dark: #173f39;
  --kt-teal-soft: #edf4f1;
  --kt-cream: #f7f5f0;
  --kt-sage: #dce6df;
  --kt-charcoal: #303231;
  --kt-muted: #68706d;
  --kt-sand: #e8dfd2;
  --kt-white: #ffffff;
  --kt-line: rgba(48, 50, 49, 0.12);
  --kt-shadow-sm: 0 8px 24px rgba(34, 58, 51, 0.08);
  --kt-shadow-md: 0 18px 50px rgba(34, 58, 51, 0.12);
  --kt-shadow-lg: 0 28px 80px rgba(34, 58, 51, 0.16);
  --kt-radius-sm: 14px;
  --kt-radius-md: 22px;
  --kt-radius-lg: 32px;
  --kt-container: 1200px;
  --kt-header-height: 92px;
  --kt-transition: 180ms ease;
}

/* ---------- Reset / document ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kt-header-height) + 24px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--kt-cream);
  color: var(--kt-charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--kt-charcoal);
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3rem, 5.2vw, 5.15rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.15rem, 3.5vw, 3.55rem);
  font-weight: 650;
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 650;
}

h4 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin-bottom: 1.15rem;
}

.container {
  width: min(calc(100% - 48px), var(--kt-container));
  margin-inline: auto;
}

section {
  position: relative;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--kt-charcoal);
  color: var(--kt-white);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(36, 92, 82, 0.36);
  outline-offset: 4px;
}

/* ---------- Buttons ---------- */

.btn,
a.btn,
.menu-item-cta > a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
  transition:
    transform var(--kt-transition),
    box-shadow var(--kt-transition),
    background var(--kt-transition),
    border-color var(--kt-transition),
    color var(--kt-transition);
}

.btn-primary,
a.btn-primary,
.menu-item-cta > a {
  background: var(--kt-teal);
  color: var(--kt-white);
  box-shadow: 0 8px 22px rgba(36, 92, 82, 0.18);
}

.btn-primary:hover,
a.btn-primary:hover,
.menu-item-cta > a:hover {
  transform: translateY(-2px);
  background: var(--kt-teal-dark);
  box-shadow: 0 13px 30px rgba(36, 92, 82, 0.24);
}

.btn-secondary,
a.btn-secondary {
  border-color: rgba(36, 92, 82, 0.3);
  background: var(--kt-white);
  color: var(--kt-teal);
}

.btn-secondary:hover,
a.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--kt-teal);
  background: var(--kt-teal-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  min-height: var(--kt-header-height);
  border-bottom: 1px solid rgba(36, 92, 82, 0.08);
  background: rgba(247, 245, 240, 0.94);
  box-shadow: 0 6px 30px rgba(34, 58, 51, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: visible !important;
}

.site-header > .container,
.site-header .container {
  min-height: var(--kt-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-branding,
.site-header .brand {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 !important;
  padding: 8px 0 !important;
  overflow: visible !important;
}

.site-branding a,
.site-header .brand {
  display: inline-flex !important;
  height: 76px !important;
  max-height: 76px !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  text-decoration: none;
}

.site-branding img,
.site-header .brand img {
  display: block !important;
  width: auto !important;
  height: 72px !important;
  max-width: 154px !important;
  max-height: 72px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-navigation .menu,
.main-navigation ul,
.site-header .header-menu,
.site-header .main-nav,
.site-header .primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  margin: 0;
  list-style: none;
}

.main-navigation a:not(.btn),
.site-header .main-nav > a:not(.btn),
.site-header .primary-nav > a:not(.btn) {
  position: relative;
  padding: 10px 0;
  color: var(--kt-charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.main-navigation a:not(.btn)::after,
.site-header .main-nav > a:not(.btn)::after,
.site-header .primary-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--kt-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--kt-transition);
}

.main-navigation a:not(.btn):hover::after,
.site-header .main-nav > a:not(.btn):hover::after,
.site-header .primary-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 92, 82, 0.16);
  border-radius: 14px;
  background: var(--kt-white);
  color: var(--kt-charcoal);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero-section,
.hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 118px);
  background:
    radial-gradient(circle at 88% 16%, rgba(220, 230, 223, 0.75), transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, var(--kt-cream) 100%);
}

.hero-section .container,
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.hero-content,
.hero-copy {
  max-width: 650px;
  padding: 0 !important;
}

.hero-content h1:not(.hero-title) {
  margin-bottom: 18px;
  color: var(--kt-teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-content .sub-heading {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--kt-charcoal);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2.9rem, 4.9vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-title {
  max-width: 670px !important;
  margin: 0 0 24px !important;
  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, sans-serif !important;
  font-size: clamp(3rem, 5vw, 4.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.05em !important;
  line-height: 1.03 !important;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-title span:nth-child(2) {
  color: var(--kt-teal);
}

.hero-title + .sub-heading {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--kt-teal);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.hero-content .description,
.hero-copy p {
  max-width: 610px;
  color: #4f5754;
  font-size: 1.08rem;
}

.hero-content .btn,
.hero-copy .btn,
.hero-actions {
  margin-top: 12px;
}

.hero-image,
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-image::before,
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 9%;
  right: -6%;
  width: 66%;
  height: 80%;
  border-radius: 48px;
  background: var(--kt-sage);
  transform: rotate(3deg);
}

.hero-image img,
.hero-visual img,
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 560px;
  max-height: 680px;
  border-radius: var(--kt-radius-lg);
  box-shadow: var(--kt-shadow-lg);
  object-fit: cover;
  object-position: center 38%;
}

/* ---------- Intro ---------- */

.intro-section {
  padding: 0 0 72px;
  background: var(--kt-cream);
}

.intro-section .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 42px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--kt-shadow-sm);
}

.intro-section .intro-text {
  margin: 0;
  color: #4d5552;
}

.intro-section .intro-text:first-of-type {
  color: var(--kt-charcoal);
  font-weight: 620;
}

.intro-section .disclaimer {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--kt-line);
  color: var(--kt-muted);
  font-size: 0.9rem;
}

/* ---------- Shared section language ---------- */

.assessment-section,
.why-section,
.process-section,
.real-food-section,
.starting-diet-section,
.progress-section,
.purchase-section,
.faq-section {
  padding: clamp(76px, 8vw, 112px) 0;
}

.assessment-section,
.process-section,
.starting-diet-section,
.purchase-section {
  background: var(--kt-white);
}

.why-section,
.progress-section {
  background: var(--kt-cream);
}

.real-food-section,
.faq-section {
  background: var(--kt-teal-soft);
}

.assessment-section h2,
.why-section h2,
.process-section h2,
.real-food-section h2,
.starting-diet-section h2,
.progress-section h2,
.purchase-section h2,
.faq-section h2 {
  max-width: 820px;
  margin-bottom: 18px;
}

.assessment-section .container > p,
.process-section .container > p,
.starting-diet-section .container > p,
.purchase-section .container > p,
.faq-section .container > p {
  max-width: 760px;
  color: var(--kt-muted);
  font-size: 1.05rem;
}

/* ---------- Assessment ---------- */

.assessment-section {
  overflow: hidden;
}

.assessment-block {
  max-width: 820px;
  margin-bottom: 34px;
}

.assessment-block + .assessment-block {
  margin-top: -10px;
}

.assessment-block h2 + p,
.assessment-block h3 + p {
  color: var(--kt-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.step-item {
  position: relative;
  min-height: 220px;
  padding: 30px 26px 28px;
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: var(--kt-cream);
  box-shadow: 0 8px 25px rgba(34, 58, 51, 0.05);
  transition: transform var(--kt-transition), box-shadow var(--kt-transition);
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--kt-shadow-md);
}

.step-number {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--kt-teal);
  color: var(--kt-white);
  font-size: 0.88rem;
  font-weight: 800;
}

.step-item h3,
.step-item h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.step-item p {
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.96rem;
}

/* ---------- Shared split sections ---------- */

.section-content,
.why-section .section-content,
.real-food-section .section-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.section-content .text-content {
  min-width: 0;
}

.section-content .text-content p {
  color: #505855;
}

.section-content .image-content {
  position: relative;
  min-width: 0;
}

.section-content .image-content img {
  width: 100%;
  min-height: 440px;
  max-height: 590px;
  border-radius: var(--kt-radius-lg);
  box-shadow: var(--kt-shadow-md);
  object-fit: cover;
}

.why-section .text-content > h3,
.real-food-section .text-content > h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--kt-teal);
}

.why-section .text-content > p:last-child,
.real-food-section .text-content > p:last-child {
  margin-bottom: 0;
}

/* ---------- Process ---------- */

.process-section {
  overflow: hidden;
}

.process-section .process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 48px 0 42px;
}

.process-item {
  overflow: hidden;
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: var(--kt-cream);
  box-shadow: var(--kt-shadow-sm);
}

.process-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.process-item > div,
.process-item .content,
.process-item .process-content {
  padding: 26px;
}

.process-item h3,
.process-item h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.process-item p {
  margin: 0;
  color: var(--kt-muted);
  font-size: 0.96rem;
}

.process-section .btn {
  margin-top: 8px;
}

/* Fallback when process text is direct child rather than wrapped */
.process-item > h3,
.process-item > h4 {
  padding: 24px 24px 0;
}
.process-item > p {
  padding: 0 24px 26px;
}

/* ---------- Real food ---------- */

.real-food-section .section-content {
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
}

.real-food-section .image-content {
  order: -1;
}

.real-food-section .image-content img {
  min-height: 510px;
}

/* ---------- Starting diet / classifications ---------- */

.classification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.classification-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: var(--kt-cream);
  box-shadow: var(--kt-shadow-sm);
}

.classification-item img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.classification-item > div,
.classification-item .content {
  padding: 28px 28px 26px;
}

.classification-item .number,
.classification-item .step-number {
  width: auto;
  height: auto;
  margin: 0 0 18px;
  background: transparent;
  color: var(--kt-teal);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.classification-item h3,
.classification-item h4 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.classification-item p {
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.95rem;
}

.classification-note {
  margin: 32px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--kt-teal);
  border-radius: 0 12px 12px 0;
  background: var(--kt-teal-soft);
  color: var(--kt-muted);
  font-size: 0.91rem;
}

/* ---------- Progress ---------- */

.progress-content {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(50px, 7vw, 92px);
}

.progress-content > .image-content img {
  width: 100%;
  min-height: 520px;
  border-radius: var(--kt-radius-lg);
  box-shadow: var(--kt-shadow-md);
  object-fit: cover;
}

.progress-item {
  position: relative;
  margin: 18px 0;
  padding: 24px 24px 24px 72px;
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: var(--kt-white);
}

.progress-item .icon {
  position: absolute;
  top: 24px;
  left: 22px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--kt-sage);
  color: var(--kt-teal);
  font-weight: 800;
}

.progress-item h3,
.progress-item h4 {
  margin-bottom: 6px;
  font-size: 1.13rem;
}

.progress-item p {
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.95rem;
}

/* ---------- Purchase ---------- */

.purchase-section {
  background:
    linear-gradient(180deg, var(--kt-white) 0%, #faf9f6 100%);
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 46px 0 62px;
}

.purchase-item {
  overflow: hidden;
  border: 1px solid rgba(36, 92, 82, 0.1);
  border-radius: var(--kt-radius-md);
  background: var(--kt-white);
  box-shadow: var(--kt-shadow-sm);
}

.purchase-item > img,
.purchase-item .details > img,
.purchase-item img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.purchase-item .details,
.purchase-item > div {
  padding: 26px;
}

.purchase-item h3,
.purchase-item h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.purchase-item p {
  margin-bottom: 0;
  color: var(--kt-muted);
  font-size: 0.95rem;
}

.purchase-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 34px;
}

.option-item {
  position: relative;
  min-height: 260px;
  padding: 32px;
  border: 1px solid rgba(36, 92, 82, 0.13);
  border-radius: var(--kt-radius-md);
  background: var(--kt-cream);
}

.option-item:first-child {
  border-color: rgba(36, 92, 82, 0.36);
  box-shadow: 0 10px 30px rgba(36, 92, 82, 0.08);
}

.option-item .price {
  margin: 16px 0 12px;
  color: var(--kt-teal);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.option-item p:last-child {
  margin-bottom: 0;
  color: var(--kt-muted);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 34px 0;
  padding: 20px 22px;
  border: 1px solid var(--kt-line);
  border-radius: var(--kt-radius-sm);
  background: var(--kt-white);
}

.process-steps > div,
.process-steps > strong {
  color: var(--kt-charcoal);
  font-size: 0.9rem;
  font-weight: 700;
}

.process-steps > span {
  color: var(--kt-teal);
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-section .container {
  max-width: 980px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.faq-item,
details.faq-item {
  overflow: hidden;
  border: 1px solid rgba(36, 92, 82, 0.12);
  border-radius: 18px;
  background: var(--kt-white);
  box-shadow: 0 5px 18px rgba(34, 58, 51, 0.04);
}

details.faq-item > summary,
.faq-item .question {
  position: relative;
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 22px 24px;
  color: var(--kt-charcoal);
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

details.faq-item > summary::-webkit-details-marker {
  display: none;
}

details.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--kt-teal);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

details.faq-item[open] > summary::after {
  content: "−";
}

.faq-item .answer,
details.faq-item > div {
  padding: 0 24px 22px;
  color: var(--kt-muted);
}

.faq-item .answer p:last-child,
details.faq-item > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */

.cta-section {
  padding: clamp(70px, 8vw, 104px) 0;
  overflow: hidden;
  background: var(--kt-teal);
  color: var(--kt-white);
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.cta-section h2,
.cta-section h3 {
  max-width: 720px;
  margin-bottom: 10px;
  color: var(--kt-white);
}

.cta-section h2 {
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.cta-section h3 {
  color: rgba(255, 255, 255, 0.76);
  font-family: Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.cta-section .btn-primary,
.cta-section a.btn-primary {
  background: var(--kt-white);
  color: var(--kt-teal);
  box-shadow: none;
}

.cta-section .btn-primary:hover,
.cta-section a.btn-primary:hover {
  background: var(--kt-cream);
  color: var(--kt-teal-dark);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 68px 0 0;
  background: #242827;
  color: rgba(255, 255, 255, 0.72);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1.35fr;
  gap: 38px;
  padding-bottom: 56px;
}

.site-footer .widget h3,
.site-footer .widget h4 {
  margin-bottom: 18px;
  color: var(--kt-white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.65;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--kt-white);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.footer-logo,
.site-footer .footer-logo img {
  width: auto;
  max-width: 130px;
  max-height: 86px;
  margin-bottom: 20px;
  object-fit: contain;
}

.site-info {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.site-info,
.site-info a,
.site-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}

/* ---------- Utility / disclaimers ---------- */

.disclaimer,
.classification-note,
.purchase-section small,
.important-information {
  color: var(--kt-muted);
}

strong {
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root {
    --kt-header-height: 84px;
  }

  .container {
    width: min(calc(100% - 40px), var(--kt-container));
  }

  .site-branding a,
  .site-header .brand {
    height: 68px !important;
    max-height: 68px !important;
  }

  .site-branding img,
  .site-header .brand img {
    height: 64px !important;
    max-height: 64px !important;
    max-width: 138px !important;
  }

  .main-navigation .menu,
  .main-navigation ul,
  .site-header .header-menu,
  .site-header .main-nav,
  .site-header .primary-nav {
    gap: 22px;
  }

  .hero-section .container,
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.95fr);
    gap: 50px;
  }

  .hero-image img,
  .hero-visual img,
  .hero-photo {
    min-height: 510px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-section .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --kt-header-height: 78px;
  }

  html {
    scroll-padding-top: 94px;
  }

  .site-header > .container,
  .site-header .container {
    min-height: var(--kt-header-height);
  }

  .site-branding a,
  .site-header .brand {
    height: 62px !important;
    max-height: 62px !important;
  }

  .site-branding img,
  .site-header .brand img {
    height: 58px !important;
    max-height: 58px !important;
    max-width: 126px !important;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1003;
  }

  .main-navigation {
    margin-left: auto;
  }

  .main-navigation .menu,
  .main-navigation ul,
  .site-header .header-menu,
  .site-header .main-nav,
  .site-header .primary-nav {
    position: absolute;
    z-index: 1002;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid rgba(36, 92, 82, 0.1);
    border-radius: 18px;
    background: var(--kt-white);
    box-shadow: var(--kt-shadow-lg);
  }

  .site-header.menu-open .main-navigation .menu,
  .site-header.menu-open .main-navigation ul,
  .site-header.menu-open .header-menu,
  body.nav-open .main-navigation .menu,
  body.nav-open .main-navigation ul,
  body.nav-open .site-header .header-menu,
  body.nav-open .site-header .main-nav,
  body.nav-open .site-header .primary-nav {
    display: flex;
  }

  .main-navigation a:not(.btn),
  .site-header .main-nav > a:not(.btn),
  .site-header .primary-nav > a:not(.btn) {
    display: block;
    padding: 12px 10px;
  }

  .main-navigation .menu-item-cta > a,
  .site-header .header-cta {
    width: 100%;
    margin-top: 6px;
  }

  .hero-section,
  .hero {
    padding-top: 46px;
  }

  .hero-section .container,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-content,
  .hero-copy {
    max-width: 720px;
  }

  .hero-image,
  .hero-visual {
    max-width: 720px;
  }

  .hero-image img,
  .hero-visual img,
  .hero-photo {
    min-height: 460px;
    max-height: 560px;
  }

  .intro-section .container {
    grid-template-columns: 1fr;
  }

  .intro-section .disclaimer {
    grid-column: auto;
  }

  .section-content,
  .why-section .section-content,
  .real-food-section .section-content,
  .progress-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .real-food-section .image-content {
    order: 0;
  }

  .section-content .image-content img,
  .real-food-section .image-content img,
  .progress-content > .image-content img {
    min-height: 390px;
    max-height: 510px;
  }

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

  .purchase-options {
    grid-template-columns: 1fr;
  }

  .cta-section .container {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-section .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--kt-container));
  }

  .hero-section,
  .hero {
    padding: 38px 0 72px;
  }

  .hero-content .sub-heading,
  .hero-title {
    font-size: clamp(2.45rem, 11.4vw, 3.35rem) !important;
    letter-spacing: -0.045em !important;
  }

  .hero-title + .sub-heading {
    font-size: 1.12rem !important;
  }

  .hero-image img,
  .hero-visual img,
  .hero-photo {
    min-height: 390px;
    border-radius: 24px;
  }

  .hero-image::before,
  .hero-visual::before {
    right: -3%;
    border-radius: 30px;
  }

  .intro-section {
    padding-bottom: 58px;
  }

  .intro-section .container {
    width: min(calc(100% - 28px), var(--kt-container));
    padding: 24px 20px;
  }

  .assessment-section,
  .why-section,
  .process-section,
  .real-food-section,
  .starting-diet-section,
  .progress-section,
  .purchase-section,
  .faq-section {
    padding: 68px 0;
  }

  .steps-grid,
  .process-section .process-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    min-height: 0;
  }

  .step-number {
    margin-bottom: 22px;
  }

  .section-content .image-content img,
  .real-food-section .image-content img,
  .progress-content > .image-content img {
    min-height: 320px;
    border-radius: 24px;
  }

  .classification-item {
    grid-template-columns: 1fr;
  }

  .classification-item img {
    height: 220px;
    min-height: 220px;
  }

  .progress-item {
    padding: 22px 20px 22px 66px;
  }

  .purchase-item > img,
  .purchase-item .details > img,
  .purchase-item img {
    height: 200px;
  }

  .option-item {
    min-height: 0;
    padding: 26px 22px;
  }

  .process-steps {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-steps > span {
    transform: rotate(90deg);
    margin-left: 8px;
  }

  details.faq-item > summary,
  .faq-item .question {
    padding: 19px 18px;
    font-size: 0.98rem;
  }

  .faq-item .answer,
  details.faq-item > div {
    padding: 0 18px 19px;
  }

  .cta-section {
    padding: 64px 0;
  }

  .cta-section .btn {
    width: 100%;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 44px;
  }
}

@media (max-width: 420px) {
  .site-branding img,
  .site-header .brand img {
    max-width: 112px !important;
  }

  .hero-content .sub-heading,
  .hero-title {
    font-size: clamp(2.25rem, 11.6vw, 2.8rem) !important;
  }

  .hero-image img,
  .hero-visual img,
  .hero-photo {
    min-height: 350px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ============================================================
   V6 LIVE-DOM COMPATIBILITY / FINAL POLISH
   Targets the actual production BEM classes observed after V5.
   ============================================================ */

/* Actual live header structure */
.site-header__container {
  min-height: var(--kt-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-header__logo-wrapper {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}

.site-header__logo-link {
  display: inline-flex;
  height: 78px;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  width: auto !important;
  height: 72px !important;
  max-width: 158px !important;
  max-height: 72px !important;
  object-fit: contain;
  object-position: left center;
}

.site-header__nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-item {
  margin: 0;
  list-style: none;
}

.site-header__nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  color: var(--kt-charcoal);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
}

.site-header__nav-item:not(:last-child) .site-header__nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--kt-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--kt-transition);
}

.site-header__nav-item:not(:last-child) .site-header__nav-link:hover::after,
.site-header__nav-item:not(:last-child) .site-header__nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-header__nav-item:last-child .site-header__nav-link {
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--kt-teal);
  color: var(--kt-white);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(36,92,82,.18);
}

.site-header__nav-item:last-child .site-header__nav-link:hover {
  transform: translateY(-2px);
  background: var(--kt-teal-dark);
  box-shadow: 0 13px 30px rgba(36,92,82,.24);
}

/* Existing live mobile button */
.site-header__mobile-menu-button {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(36,92,82,.16);
  border-radius: 14px;
  background: var(--kt-white);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(34,58,51,.06);
}

.site-header__mobile-menu-button::before,
.site-header__mobile-menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: var(--kt-charcoal);
  transform: translateX(-50%);
  transition: transform var(--kt-transition), box-shadow var(--kt-transition);
}

.site-header__mobile-menu-button::before {
  top: 50%;
  box-shadow: 0 -7px 0 var(--kt-charcoal), 0 7px 0 var(--kt-charcoal);
}

.site-header__mobile-menu-button::after {
  top: 50%;
  opacity: 0;
}

.site-header.menu-open .site-header__mobile-menu-button::before,
body.nav-open .site-header__mobile-menu-button::before {
  box-shadow: none;
  transform: translateX(-50%) rotate(45deg);
}

.site-header.menu-open .site-header__mobile-menu-button::after,
body.nav-open .site-header__mobile-menu-button::after {
  opacity: 1;
  transform: translateX(-50%) rotate(-45deg);
}

/* Footer compatibility aliases seen across KetoTrainer builds */
.site-footer__grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr 1.35fr;
  gap: 38px;
  padding-bottom: 56px;
}

.site-footer__bottom,
.footer-bottom {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.site-footer__bottom .container,
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Defensive grid aliases from current/previous KetoTrainer homepage builds */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-grid,
.site-footer__grid,
.pillars-grid,
.classification-grid,
.purchase-grid,
.purchase-options,
.process-grid,
.steps-grid {
  min-width: 0;
}

@media (max-width: 1080px) {
  .site-header__logo-link {
    height: 70px;
  }

  .site-header__logo {
    height: 64px !important;
    max-height: 64px !important;
    max-width: 145px !important;
  }

  .site-header__nav-list {
    gap: 22px;
  }

  .site-footer__grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header__container {
    position: relative;
    min-height: 78px;
    gap: 16px;
  }

  .site-header__logo-link {
    height: 62px;
  }

  .site-header__logo {
    height: 58px !important;
    max-height: 58px !important;
    max-width: 128px !important;
  }

  .site-header__mobile-menu-button {
    display: inline-flex;
    z-index: 1004;
    margin-left: auto;
  }

  .site-header__nav-wrapper {
    position: absolute;
    z-index: 1003;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding-top: 10px;
  }

  .site-header.menu-open .site-header__nav-wrapper,
  body.nav-open .site-header__nav-wrapper {
    display: block;
  }

  .site-header__nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(36,92,82,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.99);
    box-shadow: var(--kt-shadow-lg);
  }

  .site-header__nav-item {
    width: 100%;
  }

  .site-header__nav-link {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 10px;
  }

  .site-header__nav-item:not(:last-child) .site-header__nav-link::after {
    display: none;
  }

  .site-header__nav-item:last-child .site-header__nav-link {
    justify-content: center;
    margin-top: 6px;
    padding: 13px 18px;
  }

  /* Explicit phone/tablet stacking for current page grids */
  .hero-grid,
  .section-content,
  .progress-content,
  .purchase-options,
  .purchase-grid,
  .classification-grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer__grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__container {
    gap: 12px;
  }

  .site-header__logo {
    max-width: 118px !important;
  }

  .pillars-grid,
  .process-grid,
  .steps-grid,
  .classification-grid,
  .purchase-grid,
  .purchase-options,
  .site-footer__grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer__bottom .container,
  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-header__nav-wrapper {
    right: -2px;
    left: -2px;
  }
}
/* === KETOTRAINER V8 SECTION TITLE OVERRIDE START ===
   Major section titles: one line, slightly smaller, consistent.
   Hero headline is intentionally excluded.
*/
main section:not(.hero-section):not(.hero) h2,
.assessment-section h2,
.why-section h2,
.process-section h2,
.real-food-section h2,
.starting-diet-section h2,
.progress-section h2,
.purchase-section h2,
.faq-section h2,
.cta-section h2,
.section-title,
.section-heading {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 18px;
  font-size: clamp(0.92rem, 4.55vw, 2.70rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

/* Keep smaller internal card/subsection headings unchanged. */
main section h3,
main section h4 {
  white-space: normal;
  text-wrap: pretty;
}

/* At very wide screens, keep headings refined rather than oversized. */
@media (min-width: 1280px) {
  main section:not(.hero-section):not(.hero) h2,
  .assessment-section h2,
  .why-section h2,
  .process-section h2,
  .real-food-section h2,
  .starting-diet-section h2,
  .progress-section h2,
  .purchase-section h2,
  .faq-section h2,
  .cta-section h2,
  .section-title,
  .section-heading {
    font-size: 2.7rem !important;
  }
}

/* Ultra-narrow phones: preserve one line without horizontal overflow. */
@media (max-width: 380px) {
  main section:not(.hero-section):not(.hero) h2,
  .assessment-section h2,
  .why-section h2,
  .process-section h2,
  .real-food-section h2,
  .starting-diet-section h2,
  .progress-section h2,
  .purchase-section h2,
  .faq-section h2,
  .cta-section h2,
  .section-title,
  .section-heading {
    font-size: 0.88rem !important;
    letter-spacing: -0.045em !important;
  }
}
/* === KETOTRAINER V8 SECTION TITLE OVERRIDE END === */
/* === KETOTRAINER V9 REAL SECTION TITLES START ===
   IMPORTANT:
   The production homepage uses the custom <heading> element for section
   titles, not h2. These rules target the actual live DOM.
*/

/* Major content-section titles only. Hero and footer are intentionally excluded. */
main #why-different heading,
main #how-it-works heading.section-heading,
main #real-food heading,
main #starting-diet heading,
main #after-12-weeks heading,
main #faqs heading,
main #final-cta heading,
main section[id] > .container > heading,
main section[id] .section-heading.centered {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 18px !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.45rem, 2.55vw, 2.20rem) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

/* The purchase area contains major headings inside nested content. */
main section heading.section-heading,
main .purchase-section heading,
main #purchase heading {
  max-width: none !important;
  font-size: clamp(1.45rem, 2.55vw, 2.20rem) !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

/* Do not force card/item titles to inherit the section-title treatment. */
main .step-item heading,
main .process-item heading,
main .classification-item heading,
main .purchase-item heading,
main .option-item heading,
main .progress-item heading,
main .faq-item heading {
  white-space: normal !important;
  text-wrap: pretty !important;
}

/*
 * Small phones: readability wins over microscopic text.
 * Desktop/tablet titles remain single-line down to 641px.
 */
@media (max-width: 640px) {
  main #why-different heading,
  main #how-it-works heading.section-heading,
  main #real-food heading,
  main #starting-diet heading,
  main #after-12-weeks heading,
  main #faqs heading,
  main #final-cta heading,
  main section[id] > .container > heading,
  main section[id] .section-heading.centered,
  main section heading.section-heading,
  main .purchase-section heading,
  main #purchase heading {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}
/* === KETOTRAINER V9 REAL SECTION TITLES END === */
/* === KETOTRAINER V10 CENTERED SECTION TITLES START ===
   One clear rule:
   - every major section title sits at the top of its section
   - centered across the full container
   - one line
   - slightly smaller / cleaner than before
*/

/* Exact live homepage section-title selectors */
.assessment-details__header,
.why-keto-trainer__heading,
.selection__heading,
.sequencing__heading,
.safety__heading,
.adaptation__heading,
.how-it-works__heading,
.real-food__heading,
.starting-diet__heading,
.progress-check__heading,
.purchase-options__heading,
.choose-how-to-purchase__heading,
.faqs__heading,
.ready__heading,

/* Robust fallback for the current heading system */
main section > .container > h2.heading--secondary,
main section > .container > heading.heading--secondary,
main section > .container > heading.section-heading {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.05rem, 3.05vw, 2.35rem) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;

  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

/* Assessment First is an h3 in the live DOM, but functions as a section title. */
.assessment-details__header {
  text-align: center !important;
}
.assessment-details__header > .heading--tertiary,
.assessment-details__header > h3,
.assessment-details__header > heading {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 18px !important;
  font-size: clamp(1.05rem, 3.05vw, 2.35rem) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

/* Secondary subtitles sit neatly under the centered title. */
.how-it-works__subheading,
.real-food__subheading,
.starting-diet__subheading,
.progress-check__subheading,
.purchase-options__subheading,
.choose-how-to-purchase__subheading,
.faqs__subheading,
.ready__subheading,
main section > .container > h3.heading--tertiary {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto 34px !important;
  text-align: center !important;
}

/* Keep internal card/item headings normal. */
.how-it-works-step .heading--tertiary,
.starting-diet-classification .heading--tertiary,
.progress-check-step .heading--tertiary,
.purchase-option .heading--tertiary,
.choose-how-to-purchase-option .heading--tertiary,
.faq .heading--tertiary,
.step-item .heading--tertiary,
.process-item .heading--tertiary,
.classification-item .heading--tertiary,
.purchase-item .heading--tertiary,
.option-item .heading--tertiary,
.progress-item .heading--tertiary {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  text-wrap: pretty !important;
}

/* Prevent the hero from inheriting section-title styling. */
.hero h1,
.hero-section h1,
.hero-title {
  text-align: left !important;
  white-space: normal !important;
}

/* Long titles need a little more horizontal room, not a second line. */
.purchase-options__heading,
.progress-check__heading,
.why-keto-trainer__heading {
  font-size: clamp(1rem, 2.75vw, 2.20rem) !important;
}

/* Phone sizing: still one line, but scales down enough to fit. */
@media (max-width: 640px) {
  .why-keto-trainer__heading,
  .selection__heading,
  .sequencing__heading,
  .safety__heading,
  .adaptation__heading,
  .how-it-works__heading,
  .real-food__heading,
  .starting-diet__heading,
  .progress-check__heading,
  .purchase-options__heading,
  .choose-how-to-purchase__heading,
  .faqs__heading,
  .ready__heading,
  main section > .container > h2.heading--secondary,
  main section > .container > heading.heading--secondary,
  main section > .container > heading.section-heading,
  .assessment-details__header > .heading--tertiary,
  .assessment-details__header > h3,
  .assessment-details__header > heading {
    font-size: clamp(0.92rem, 4.45vw, 1.55rem) !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
  }
}
/* === KETOTRAINER V10 CENTERED SECTION TITLES END === */
/* === KETOTRAINER V11 HERO SECTION 1 START ===
   Section 1 structure:
   eyebrow
   full-width centered one-line headline
   generous breathing space
   supporting copy left + hero visual right
*/

.hero .hero-grid,
.hero-section .hero-grid,
section.hero > .container.hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr) !important;
  column-gap: clamp(46px, 6vw, 86px) !important;
  row-gap: 0 !important;
  align-items: start !important;
}

/*
 * Let hero-copy's children participate directly in the parent grid.
 * This lets the eyebrow/headline span both columns without rewriting
 * the business copy or image HTML.
 */
.hero .hero-copy,
.hero-section .hero-copy {
  display: contents !important;
}

/* Eyebrow: full-width, centered at top. */
.hero .hero-copy > .eyebrow,
.hero-section .hero-copy > .eyebrow {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
}

/* Main Section 1 title: one complete sentence, one centered line. */
.hero .hero-title,
.hero-section .hero-title,
section.hero heading.hero-title {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto clamp(48px, 5.5vw, 74px) !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.72rem, 2.35vw, 2.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.042em !important;

  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

/* The three existing headline spans become one continuous sentence. */
.hero .hero-title > span,
.hero-section .hero-title > span {
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

/* Guarantee a visible word-space between the three spans. */
.hero .hero-title > span + span::before,
.hero-section .hero-title > span + span::before {
  content: " " !important;
}

/* Preserve the visual brand emphasis on the middle phrase. */
.hero .hero-title > span:nth-child(2),
.hero-section .hero-title > span:nth-child(2) {
  color: var(--kt-teal) !important;
}

/* Start the actual section copy below the centered title. */
.hero .hero-lead,
.hero-section .hero-lead {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 0 24px !important;
}

/* All remaining copy stays in the left column in source order. */
.hero .hero-copy > p:not(.eyebrow):not(.hero-lead),
.hero-section .hero-copy > p:not(.eyebrow):not(.hero-lead),
.hero .hero-actions,
.hero-section .hero-actions {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 650px !important;
}

/* Image remains on the right, starting beneath the headline gap. */
.hero .hero-visual,
.hero-section .hero-visual {
  grid-column: 2 !important;
  grid-row: 3 / span 8 !important;
  align-self: start !important;
  width: 100% !important;
  margin: 0 !important;
}

.hero .hero-visual img,
.hero-section .hero-visual img,
.hero .hero-photo {
  width: 100% !important;
  min-height: 500px !important;
  max-height: 620px !important;
  object-fit: cover !important;
  object-position: center 38% !important;
}

/* Tablet: keep the exact requested structure and one-line headline. */
@media (max-width: 1080px) and (min-width: 761px) {
  .hero .hero-grid,
  .hero-section .hero-grid,
  section.hero > .container.hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr) !important;
    column-gap: 38px !important;
  }

  .hero .hero-title,
  .hero-section .hero-title,
  section.hero heading.hero-title {
    font-size: clamp(1.45rem, 2.35vw, 1.72rem) !important;
    margin-bottom: 46px !important;
  }

  .hero .hero-visual img,
  .hero-section .hero-visual img {
    min-height: 440px !important;
  }
}

/*
 * Phones cannot fit the full sentence legibly on one line.
 * Keep the title centered at the top, but allow a controlled wrap.
 */
@media (max-width: 760px) {
  .hero .hero-grid,
  .hero-section .hero-grid,
  section.hero > .container.hero-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  .hero .hero-copy,
  .hero-section .hero-copy {
    display: contents !important;
  }

  .hero .hero-copy > .eyebrow,
  .hero-section .hero-copy > .eyebrow,
  .hero .hero-title,
  .hero-section .hero-title,
  .hero .hero-lead,
  .hero-section .hero-lead,
  .hero .hero-copy > p:not(.eyebrow):not(.hero-lead),
  .hero-section .hero-copy > p:not(.eyebrow):not(.hero-lead),
  .hero .hero-actions,
  .hero-section .hero-actions,
  .hero .hero-visual,
  .hero-section .hero-visual {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .hero .hero-title,
  .hero-section .hero-title,
  section.hero heading.hero-title {
    max-width: 650px !important;
    margin-bottom: 36px !important;
    font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    line-height: 1.06 !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  .hero .hero-title > span,
  .hero-section .hero-title > span {
    white-space: normal !important;
  }

  .hero .hero-visual,
  .hero-section .hero-visual {
    margin-top: 28px !important;
  }

  .hero .hero-visual img,
  .hero-section .hero-visual img {
    min-height: 360px !important;
  }
}
/* === KETOTRAINER V11 HERO SECTION 1 END === */
/* === KETOTRAINER V12 WHY SECTION START ===
   WHY KETOTRAINER IS DIFFERENT
   Full-width centered eyebrow + one-line title
   Gap
   Text left / image right
   Principle cards unchanged below
*/

#why-different .split-media {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr) !important;
  column-gap: clamp(48px, 6vw, 86px) !important;
  row-gap: 0 !important;
  align-items: start !important;
}

/* Promote the split-copy children into the section grid. */
#why-different .split-copy {
  display: contents !important;
}

/* Eyebrow spans full width at the top. */
#why-different .split-copy > p.eyebrow {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
}

/* Main long title spans full width and stays on one line. */
#why-different .split-copy > heading:nth-of-type(1) {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto clamp(46px, 5vw, 68px) !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.55rem, 2.15vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;

  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

/* Main explanatory paragraph stays in the left column. */
#why-different .split-copy > p:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 0 24px !important;
}

/* Secondary heading remains with the left-column content. */
#why-different .split-copy > heading:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 4 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 0 14px !important;
  text-align: left !important;
  white-space: normal !important;
  text-wrap: pretty !important;
}

/* Disclaimer remains beneath the secondary heading. */
#why-different .split-copy > p:nth-of-type(3) {
  grid-column: 1 !important;
  grid-row: 5 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 !important;
}

/* Image stays on the right and aligns with the body copy, not the title. */
#why-different .split-media > div:not(.split-copy) {
  grid-column: 2 !important;
  grid-row: 3 / span 3 !important;
  align-self: start !important;
  width: 100% !important;
  margin: 0 !important;
}

#why-different .split-media > div:not(.split-copy) > img.rounded-image {
  display: block !important;
  width: 100% !important;
  min-height: 300px !important;
  max-height: 420px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Principle cards remain below the split-media area. */
#why-different .pillars-grid {
  margin-top: clamp(52px, 6vw, 76px) !important;
}

/* Tablet: keep the same centered one-line title structure. */
@media (max-width: 1080px) and (min-width: 761px) {
  #why-different .split-media {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr) !important;
    column-gap: 36px !important;
  }

  #why-different .split-copy > heading:nth-of-type(1) {
    font-size: clamp(1.30rem, 2.15vw, 1.65rem) !important;
    margin-bottom: 42px !important;
  }
}

/* Phones: centered title stays at top, controlled wrap for readability. */
@media (max-width: 760px) {
  #why-different .split-media {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  #why-different .split-copy {
    display: contents !important;
  }

  #why-different .split-copy > p.eyebrow,
  #why-different .split-copy > heading:nth-of-type(1),
  #why-different .split-copy > p:nth-of-type(2),
  #why-different .split-copy > heading:nth-of-type(2),
  #why-different .split-copy > p:nth-of-type(3),
  #why-different .split-media > div:not(.split-copy) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  #why-different .split-copy > heading:nth-of-type(1) {
    max-width: 680px !important;
    margin-bottom: 34px !important;
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  #why-different .split-media > div:not(.split-copy) {
    margin-top: 26px !important;
  }

  #why-different .split-media > div:not(.split-copy) > img.rounded-image {
    min-height: 260px !important;
  }
}
/* === KETOTRAINER V12 WHY SECTION END === */
/* === KETOTRAINER V12 WHY SECTION START ===
   WHY KETOTRAINER IS DIFFERENT
   Full-width centered eyebrow + one-line title
   Gap
   Text left / image right
   Principle cards unchanged below
*/

#why-different .split-media {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr) !important;
  column-gap: clamp(48px, 6vw, 86px) !important;
  row-gap: 0 !important;
  align-items: start !important;
}

/* Promote the split-copy children into the section grid. */
#why-different .split-copy {
  display: contents !important;
}

/* Eyebrow spans full width at the top. */
#why-different .split-copy > p.eyebrow {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
}

/* Main long title spans full width and stays on one line. */
#why-different .split-copy > heading:nth-of-type(1) {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto clamp(46px, 5vw, 68px) !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.55rem, 2.15vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;

  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  overflow: visible !important;
}

/* Main explanatory paragraph stays in the left column. */
#why-different .split-copy > p:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 3 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 0 24px !important;
}

/* Secondary heading remains with the left-column content. */
#why-different .split-copy > heading:nth-of-type(2) {
  grid-column: 1 !important;
  grid-row: 4 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 0 14px !important;
  text-align: left !important;
  white-space: normal !important;
  text-wrap: pretty !important;
}

/* Disclaimer remains beneath the secondary heading. */
#why-different .split-copy > p:nth-of-type(3) {
  grid-column: 1 !important;
  grid-row: 5 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 !important;
}

/* Image stays on the right and aligns with the body copy, not the title. */
#why-different .split-media > div:not(.split-copy) {
  grid-column: 2 !important;
  grid-row: 3 / span 3 !important;
  align-self: start !important;
  width: 100% !important;
  margin: 0 !important;
}

#why-different .split-media > div:not(.split-copy) > img.rounded-image {
  display: block !important;
  width: 100% !important;
  min-height: 300px !important;
  max-height: 420px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Principle cards remain below the split-media area. */
#why-different .pillars-grid {
  margin-top: clamp(52px, 6vw, 76px) !important;
}

/* Tablet: keep the same centered one-line title structure. */
@media (max-width: 1080px) and (min-width: 761px) {
  #why-different .split-media {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr) !important;
    column-gap: 36px !important;
  }

  #why-different .split-copy > heading:nth-of-type(1) {
    font-size: clamp(1.30rem, 2.15vw, 1.65rem) !important;
    margin-bottom: 42px !important;
  }
}

/* Phones: centered title stays at top, controlled wrap for readability. */
@media (max-width: 760px) {
  #why-different .split-media {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  #why-different .split-copy {
    display: contents !important;
  }

  #why-different .split-copy > p.eyebrow,
  #why-different .split-copy > heading:nth-of-type(1),
  #why-different .split-copy > p:nth-of-type(2),
  #why-different .split-copy > heading:nth-of-type(2),
  #why-different .split-copy > p:nth-of-type(3),
  #why-different .split-media > div:not(.split-copy) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  #why-different .split-copy > heading:nth-of-type(1) {
    max-width: 680px !important;
    margin-bottom: 34px !important;
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  #why-different .split-media > div:not(.split-copy) {
    margin-top: 26px !important;
  }

  #why-different .split-media > div:not(.split-copy) > img.rounded-image {
    min-height: 260px !important;
  }
}
/* === KETOTRAINER V12 WHY SECTION END === */
/* === KETOTRAINER V15 WHY SECTION CLEAN REBUILD START === */

#why-different.kt-why-v15 {
  overflow: hidden !important;
}

/* Header is its own full-width block above everything else. */
#why-different .kt-why-v15__header {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 64px !important;
  padding: 0 !important;
  text-align: center !important;
}

#why-different .kt-why-v15__eyebrow {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto 16px !important;
  text-align: center !important;
}

#why-different .kt-why-v15__title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.55rem, 2.15vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;

  text-align: center !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

/* Clean two-column body starts AFTER the header block. */
#why-different .kt-why-v15__content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr) !important;
  gap: clamp(48px, 6vw, 86px) !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}

#why-different .kt-why-v15__copy {
  min-width: 0 !important;
  width: 100% !important;
}

#why-different .kt-why-v15__copy > p {
  width: 100% !important;
  max-width: 720px !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

#why-different .kt-why-v15__secondary {
  display: block !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 30px 0 14px !important;
  padding: 0 !important;

  color: var(--kt-charcoal) !important;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.35rem, 1.85vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;

  text-align: left !important;
  white-space: normal !important;
  text-wrap: pretty !important;
}

#why-different .kt-why-v15__media {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

#why-different .kt-why-v15__image {
  display: block !important;
  width: 100% !important;
  min-height: 310px !important;
  max-height: 430px !important;
  margin: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 28px !important;
}

/* Cards are a separate block below body content. */
#why-different .kt-why-v15__pillars {
  margin-top: clamp(58px, 6vw, 84px) !important;
}

#why-different .kt-why-v15__card-title {
  margin: 14px 0 12px !important;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
  white-space: normal !important;
}

/* Tablet */
@media (max-width: 1080px) and (min-width: 761px) {
  #why-different .kt-why-v15__header {
    margin-bottom: 52px !important;
  }

  #why-different .kt-why-v15__title {
    font-size: clamp(1.28rem, 2.15vw, 1.62rem) !important;
  }

  #why-different .kt-why-v15__content {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr) !important;
    gap: 36px !important;
  }
}

/* Phone */
@media (max-width: 760px) {
  #why-different .kt-why-v15__header {
    margin-bottom: 38px !important;
  }

  #why-different .kt-why-v15__title {
    max-width: 680px !important;
    font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }

  #why-different .kt-why-v15__content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  #why-different .kt-why-v15__image {
    min-height: 260px !important;
  }
}

/* === KETOTRAINER V15 WHY SECTION CLEAN REBUILD END === */


/* KetoTrainer 31-Oct-2026: center How It Works six-card grid + number badges */
#how-it-works .steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#how-it-works .step-copy .step-number {
  display: flex !important;
  margin: 0 auto 13px !important;
}

/* KetoTrainer 31-Oct-2026: contain and center Your Starting Diet */
#starting-diet {
  overflow-x: clip !important;
}

#starting-diet > .container {
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#starting-diet .section-heading {
  width: 100% !important;
  max-width: 900px !important;
  min-width: 0 !important;
  margin: 0 auto 42px !important;
}

#starting-diet .section-heading .eyebrow,
#starting-diet .section-heading h2,
#starting-diet .section-heading > p {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

#starting-diet .section-heading h2 {
  width: 100% !important;
  font-size: clamp(2.15rem, 3.5vw, 3.55rem) !important;
  line-height: 1.12 !important;
}

#starting-diet .section-heading > p:not(.eyebrow) {
  width: 100% !important;
  max-width: 820px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  line-height: 1.7 !important;
  color: #505855 !important;
}

#starting-diet .nonketo-callout {
  width: 100% !important;
  max-width: 900px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#starting-diet .classification-grid {
  width: 100% !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#starting-diet .classification-card,
#starting-diet .classification-copy {
  min-width: 0 !important;
  max-width: 100% !important;
}

#starting-diet .classification-copy p,
#starting-diet .classification-copy h3 {
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* KetoTrainer 31-Oct-2026: restore After 12 Weeks heading above content */
#after-12-weeks {
  overflow-x: clip !important;
}

#after-12-weeks > .container {
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#after-12-weeks .after-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr) !important;
  align-items: center !important;
  column-gap: clamp(48px, 7vw, 92px) !important;
  row-gap: 34px !important;
}

#after-12-weeks .after-layout > .split-copy {
  display: contents !important;
}

#after-12-weeks .after-layout .eyebrow {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 auto 4px !important;
  text-align: center !important;
}

#after-12-weeks .after-layout h2 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto 12px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

#after-12-weeks .after-layout .split-copy > p:not(.eyebrow) {
  grid-column: 1 !important;
  grid-row: 3 !important;
  align-self: center !important;
  max-width: 560px !important;
  margin: 0 !important;
}

#after-12-weeks .after-layout > div:last-child {
  grid-column: 2 !important;
  grid-row: 3 !important;
  min-width: 0 !important;
}

#after-12-weeks .after-layout .rounded-image {
  width: 100% !important;
  max-width: 100% !important;
}

/* KetoTrainer 31-Oct-2026: contain and center What's Included section */
#included {
  overflow-x: clip !important;
}

#included > .container {
  width: min(calc(100% - 48px), 1180px) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#included .section-heading {
  width: 100% !important;
  max-width: 980px !important;
  min-width: 0 !important;
  margin: 0 auto 42px !important;
  text-align: center !important;
}

#included .section-heading .eyebrow,
#included .section-heading h2,
#included .section-heading > p {
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

#included .section-heading h2 {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#included .section-heading > p:not(.eyebrow) {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  line-height: 1.7 !important;
  color: #505855 !important;
}

#included .included-banner,
#included .resources-grid,
#included .purchase-heading,
#included .purchase-grid,
#included .purchase-flow {
  width: 100% !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* KetoTrainer 31-Oct-2026: show the real footer logo instead of a white silhouette */
.site-footer .footer-brand img {
  filter: none !important;
  opacity: 1 !important;
  width: 145px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  #how-it-works .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px !important;
  }

  #starting-diet > .container {
    width: min(calc(100% - 34px), 1180px) !important;
  }

  #starting-diet .section-heading {
    max-width: 760px !important;
    margin-bottom: 34px !important;
  }

  #after-12-weeks > .container {
    width: min(calc(100% - 34px), 1180px) !important;
  }

  #after-12-weeks .after-layout {
    grid-template-columns: 1fr !important;
    row-gap: 24px !important;
  }

  #after-12-weeks .after-layout .eyebrow,
  #after-12-weeks .after-layout h2,
  #after-12-weeks .after-layout .split-copy > p:not(.eyebrow),
  #after-12-weeks .after-layout > div:last-child {
    grid-column: 1 !important;
  }

  #after-12-weeks .after-layout .eyebrow { grid-row: 1 !important; }
  #after-12-weeks .after-layout h2 { grid-row: 2 !important; }
  #after-12-weeks .after-layout .split-copy > p:not(.eyebrow) {
    grid-row: 3 !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #after-12-weeks .after-layout > div:last-child { grid-row: 4 !important; }

  #included > .container {
    width: min(calc(100% - 34px), 1180px) !important;
  }

  #included .section-heading {
    max-width: 760px !important;
    margin-bottom: 34px !important;
  }
}

@media (max-width: 620px) {
  #how-it-works .steps-grid {
    grid-template-columns: 1fr !important;
    max-width: 430px !important;
  }

  #starting-diet > .container {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  #starting-diet .section-heading h2 {
    font-size: clamp(2rem, 10vw, 2.7rem) !important;
  }

  #starting-diet .section-heading > p:not(.eyebrow) {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  #after-12-weeks > .container {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  #after-12-weeks .after-layout h2 {
    font-size: clamp(2rem, 10vw, 2.7rem) !important;
  }

  #included > .container {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  #included .section-heading h2 {
    font-size: clamp(2rem, 10vw, 2.7rem) !important;
  }

  #included .section-heading > p:not(.eyebrow) {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
}
