/* SimpleMed+ sales homepage: Grok composition with Fable product moments. */
/* Anchor nav always smooth (JS also drives a custom ease; keep CSS as fallback). */
html { scroll-behavior: smooth !important; }
/* While JS is mid-animation, kill native smooth so the two do not fight. */
html.smg-is-scrolling { scroll-behavior: auto !important; }

/* fable-fonttweak-20260722: homepage-only readability bump. This stylesheet is
   loaded solely when homePage == true, so bumping the root base ~+6%
   (16px -> 17px) scales every rem-sized homepage element proportionally. */
html { font-size: 106.25%; }

body {
  margin: 0;
  background: #f7f3eb;
}

/* The homepage owns its navigation and closing treatment. */
body > header,
body > footer.sm-site-footer,
body > .sm-side-switch {
  display: none !important;
}

.smp-layout-content { min-height: 100vh; }

.smp-home {
  --smg-cream: var(--sm-page);
  --smg-cream-deep: var(--sm-section);
  --smg-card: var(--sm-surface);
  --smg-ink: #18251f;
  --smg-copy: #3d4b45;
  --smg-muted: #55635c;
  --smg-line: #d9d0c0;
  --smg-green: var(--sm-brand-deep);
  --smg-green-mid: var(--sm-brand-mid);
  --smg-green-soft: var(--sm-brand-accent);
  --smg-green-pale: #e3efe9;
  --smg-gold: #c59a3c;
  --smg-red: #a54b43;
  --smg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --smg-sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: clip;
  color: var(--smg-ink);
  background: var(--smg-cream);
  font-family: var(--smg-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.smp-home img,
.smp-home svg { display: block; max-width: 100%; }
.smp-home button,
.smp-home a { font: inherit; }
.smp-home a { color: inherit; }
.smp-home :focus-visible { outline: 3px solid #329070; outline-offset: 3px; }

.smg-wrap {
  width: min(calc(100% - clamp(2rem, 6vw, 8rem)), 96rem);
  margin-inline: auto;
}

.smg-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.smg-skip {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--smg-green);
  border-radius: 0.6rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}
.smg-skip:focus { transform: translateY(0); }

.smg-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--smg-green-soft);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.smg-section-head {
  max-width: 44rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}
.smg-section-head h2,
.smg-final h2 {
  margin: 0;
  font-family: var(--smg-sans);
  font-size: clamp(2.15rem, 3.4vw, 3.25rem); /* fable-fonttweak-20260722: vw mid x1.0625 to match root bump */
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.smg-section-head > p:last-child {
  max-width: 39rem;
  margin: 0.85rem auto 0;
  color: var(--smg-muted);
}

#how-it-works,
#subjects,
#product,
#pricing { scroll-margin-top: 2rem; }

.smg-btn {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.smg-btn:hover { transform: translateY(-2px); }
.smg-btn--primary { color: #fff !important; background: var(--smg-green); box-shadow: 0 0.7rem 1.6rem rgba(15, 61, 46, 0.2); }
.smg-btn--primary:hover { background: var(--smg-green-mid); }
.smg-btn--ghost { color: var(--smg-green); background: rgba(255, 252, 246, 0.52); border-color: var(--smg-line); }
.smg-btn--large { min-height: 3.25rem; padding-inline: 1.35rem; }
.smg-btn--small { min-height: 2.45rem; padding: 0.55rem 0.95rem; font-size: 0.78rem; }

/* Integrated navigation and hero */
.smg-site-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 84% 10%, rgba(43, 123, 93, 0.15), transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 82%, rgba(197, 154, 60, 0.08), transparent 54%),
    linear-gradient(180deg, #e9f0eb 0%, var(--smg-cream) 64%);
  border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}
.smg-site-top::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 61, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 61, 46, 0.035) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(#000 0%, transparent 78%);
}

.smg-nav {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.smg-brand { display: inline-flex; align-items: center; color: var(--smg-green); text-decoration: none; }
.smg-brand img { width: 8.7rem; height: auto; object-fit: contain; }

.smg-nav-links { display: flex; gap: 0.25rem 1.25rem; align-items: center; padding: 0; margin: 0; list-style: none; }
.smg-nav-links a { color: #405049; font-size: 0.87rem; font-weight: 650; text-decoration: none; }
.smg-nav-links a:hover { color: var(--smg-green); }
.smg-nav-links .smg-nav-cta { display: inline-flex; min-height: 2.65rem; align-items: center; padding: 0.55rem 1rem; color: #fff; background: var(--smg-green); border-radius: 999px; box-shadow: 0 0.6rem 1.4rem rgba(15, 61, 46, 0.19); }
.smg-nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0.65rem; color: var(--smg-green); background: var(--smg-card); border: 1px solid var(--smg-line); border-radius: 0.65rem; }
.smg-nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; }

.smg-hero {
  display: grid;
  min-height: 42rem;
  grid-template-columns: minmax(0, 0.93fr) minmax(34rem, 1.07fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
/* fable-fonttweak-20260722: desktop only - pull the hero up slightly under the
   nav (~20% smaller visible nav->hero gap at 1440x900). The visible gap is
   top padding + the copy column's centring offset against the taller SBA card,
   so the padding carries the whole cut. min-height eased 42rem->40rem so the
   17px base doesn't grow the hero (40rem@17px ~= 42rem@16px). Mobile keeps its
   own padding-block override in the max-width block below. */
@media (min-width: 761px) {
  .smg-hero { min-height: 40rem; padding-block-start: clamp(1.7rem, 2.9vw, 3rem); }
}
.smg-hero-copy { max-width: 34rem; }
.smg-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--smg-sans);
  font-size: clamp(2.9rem, 3.98vw, 3.75rem); /* fable-fonttweak-20260722: vw mid x1.0625 to match root bump */
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.smg-hero-lead { max-width: 33rem; margin: 1.25rem 0 1.45rem; color: var(--smg-copy); font-size: 1.05rem; line-height: 1.65; }
.smg-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.smg-hero-proof { display: flex; flex-wrap: wrap; gap: 0.55rem 1.3rem; padding: 0; margin: 1.35rem 0 0; color: var(--smg-muted); font-size: 0.78rem; list-style: none; }
.smg-hero-proof li { position: relative; padding-left: 0.8rem; }
.smg-hero-proof li::before { content: ""; position: absolute; top: 0.62em; left: 0; width: 0.32rem; height: 0.32rem; background: var(--smg-green-soft); border-radius: 50%; }
.smg-hero-proof strong { color: var(--smg-ink); }

/* Fable-derived live SBA */
.smg-sba {
  width: 100%;
  overflow: hidden;
  background: var(--smg-card);
  border: 1px solid #d5cbb9;
  border-radius: 1rem;
  box-shadow: 0 1.6rem 4rem rgba(28, 42, 34, 0.11);
}
.smg-sba-top { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1.2rem; color: #d8e9e2; background: var(--smg-green); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.smg-sba-tag { display: inline-flex; gap: 0.55rem; align-items: center; color: #fff; }
.smg-sba-tag i { width: 0.48rem; height: 0.48rem; background: #ebca7d; border-radius: 50%; box-shadow: 0 0 0 0.3rem rgba(235, 202, 125, 0.12); }
.smg-sba-body { padding: clamp(1.2rem, 2vw, 1.75rem); }
.smg-sba-stem { margin: 0; font-family: var(--smg-serif); font-size: 0.94rem; line-height: 1.55; }
.smg-sba-question { margin: 1rem 0 0.75rem; color: var(--smg-green); font-size: 0.86rem; font-weight: 800; }
.smg-sba-options { display: grid; gap: 0.45rem; }
.smg-sba-options button { display: grid; min-height: 2.65rem; grid-template-columns: 1.7rem 1fr; gap: 0.65rem; align-items: center; width: 100%; padding: 0.42rem 0.7rem; color: #33453d; background: var(--sm-surface); border: 1px solid #d8ded9; border-radius: 0.58rem; text-align: left; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.smg-sba-options button:hover { border-color: var(--smg-green-soft); transform: translateX(2px); }
.smg-sba-options button > span { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: var(--smg-green-mid); background: var(--smg-green-pale); border-radius: 0.45rem; font-size: 0.68rem; font-weight: 850; }
.smg-sba-options button > strong { font-size: 0.79rem; font-weight: 600; }
.smg-sba-options button.is-selected { border-color: var(--smg-green-soft); background: #f0f8f4; }
.smg-sba-options button.is-correct { color: #0e5d42; background: #e1f4e9; border-color: #35a171; }
.smg-sba-options button.is-correct > span { color: #fff; background: #21815d; }
.smg-sba-options button.is-wrong { color: #852f2f; background: #fae9e6; border-color: #c96a62; }
.smg-sba-options button:disabled { cursor: default; }
.smg-sba-feedback { padding: 0.8rem 0.9rem; margin-top: 0.75rem; color: #32463d; background: #e8f3ed; border-left: 3px solid var(--smg-green-soft); border-radius: 0.35rem; }
.smg-sba-feedback[hidden] { display: none; }
.smg-sba-feedback > strong { display: block; color: var(--smg-green); font-size: 0.82rem; }
.smg-sba-feedback p { margin: 0.25rem 0 0.55rem; font-size: 0.76rem; line-height: 1.45; }
.smg-sba-feedback > span { display: block; padding-top: 0.55rem; color: var(--smg-green); border-top: 1px solid rgba(15, 61, 46, 0.13); font-size: 0.72rem; }
.smg-sba-foot { display: flex; min-height: 3.7rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; color: #4f5d55; background: #eee7d6; border-top: 1px solid #ddd2bc; font-size: 0.69rem; }

/* Proof band */
.smg-stats { color: #fff; background: var(--smg-green); }
.smg-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; }
.smg-stats-grid div { display: flex; min-height: 8.2rem; flex-direction: column; justify-content: center; padding: 1.2rem 1.5rem; text-align: center; }
.smg-stats-grid div + div { border-left: 1px solid rgba(255,255,255,0.13); }
.smg-stats-grid dd { order: -1; margin: 0; color: #f7f2e7; font-family: var(--smg-serif); font-size: clamp(2.1rem, 3.19vw, 3.05rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.smg-stats-grid dt { margin-top: 0.45rem; color: #a7c9bb; font-size: 0.69rem; letter-spacing: 0.03em; }

/* Closed loop */
.smg-loop { padding-block: clamp(4.75rem, 7vw, 7rem); background: var(--smg-cream-deep); border-bottom: 1px solid var(--smg-line); }
.smg-loop-shell { display: grid; grid-template-columns: minmax(17rem,.72fr) minmax(35rem,1.28fr); gap: clamp(2rem,4vw,4rem); align-items: center; }
.smg-loop-copy { max-width: 30rem; }
.smg-loop-copy h2 { margin: 0; font-family: var(--smg-sans); font-size: clamp(2.15rem,3.19vw,3.05rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; }
.smg-loop-copy header > p:last-child { margin: .9rem 0 0; color: var(--smg-muted); }
.smg-loop .smg-eyebrow { color: #1f6b51; }
.smg-loop-steps { display: grid; gap: .38rem; padding: 0; margin: 1.65rem 0 0; list-style: none; }
.smg-loop-step { display: grid; width: 100%; grid-template-columns: 1.8rem 1fr; gap: .7rem; align-items: start; padding: .72rem .78rem; color: #526058; background: transparent; border: 1px solid transparent; border-radius: .72rem; text-align: left; cursor: pointer; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.smg-loop-step[aria-current="step"] { color: var(--smg-green); background: rgba(255,252,246,.68); border-color: #cbbfab; transform: translateX(.2rem); }
.smg-loop-step > span:first-child { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: var(--smg-green-mid); background: #faf6ed; border: 1px solid #cfc4b2; border-radius: 50%; font-size: .7rem; font-weight: 800; }
.smg-loop-step[aria-current="step"] > span:first-child { color: #fff; background: var(--smg-green); border-color: var(--smg-green); }
.smg-loop-steps strong { display: block; font-size: .8rem; }
.smg-loop-steps small { display: block; margin-top: .16rem; font-size: .7rem; line-height: 1.35; }
.smg-loop-stage { position: relative; overflow: hidden; padding: clamp(.8rem,1.6vw,1.25rem); background: linear-gradient(168deg,#0f4436 0%,#0f3d2e 58%,#092c22 100%); border: 1px solid rgba(15,61,46,.55); border-radius: 1rem; box-shadow: 0 1.7rem 4rem rgba(28,42,34,.18); }
.smg-loop-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,252,246,.11) .8px,transparent .8px); background-size: 1.7rem 1.7rem; mask-image: linear-gradient(120deg,#000,transparent 78%); }
.smg-loop-flow { position: relative; display: grid; min-height: 27rem; grid-template-columns: 2.2rem minmax(0,1fr) 3rem minmax(0,1fr); grid-template-rows: minmax(8rem,1fr) 2.4rem minmax(8rem,1fr) auto; gap: .35rem; align-items: stretch; padding: .6rem .6rem .1rem; }
.smg-loop-module { position: relative; z-index: 1; display: grid; min-width: 0; align-content: center; gap: .38rem; padding: 1.05rem; color: #fffaf0; background: rgba(255,252,246,.065); border: 1px solid rgba(255,252,246,.18); border-radius: .75rem; opacity: .88; transition: opacity 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.smg-loop-module small { display: block; color: #e7cf9b; font-size: .61rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.smg-loop-module strong { display: block; font-family: var(--smg-serif); font-size: .95rem; line-height: 1.2; }
.smg-loop-module > span:not(.smg-gap-target) { width: fit-content; color: #ffd9cf; font-size: .65rem; font-weight: 750; }
.smg-loop-module--question { grid-column: 2; grid-row: 1; }
.smg-loop-module--gap { grid-column: 4; grid-row: 1; grid-template-columns: 3.25rem 1fr; align-items: center; }
.smg-loop-module--gap > span:last-child { display: grid; min-width: 0; gap: .38rem; }
.smg-loop-module--gap strong { font-size: .82rem; }
.smg-loop-module--card { grid-column: 4; grid-row: 3; color: var(--smg-green); background: #fffaf0; border-color: #d9caac; }
.smg-loop-module--card > span { color: var(--smg-green-soft) !important; }
/* Card 03 sits on cream, so the shared gold eyebrow (#e7cf9b) was ~1.46:1 and
   effectively invisible. Use the dark green for this card's eyebrow only. */
.smg-loop-module--card small { color: var(--smg-green); }
.smg-loop-module--schedule { grid-column: 2; grid-row: 3; }
.smg-loop-stage[data-step="1"] [data-loop-module="1"],
.smg-loop-stage[data-step="2"] [data-loop-module="2"],
.smg-loop-stage[data-step="3"] [data-loop-module="3"],
.smg-loop-stage[data-step="4"] [data-loop-module="4"] { opacity: 1; border-color: #e7cf9b; box-shadow: 0 0 0 1px rgba(231,207,155,.25),0 .75rem 1.8rem rgba(0,0,0,.13); transform: translateY(-2px); }
.smg-gap-target { position: relative; display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border: 1px solid rgba(255,252,246,.22); border-radius: 50%; box-shadow: 0 0 0 .55rem rgba(255,252,246,.055); }
.smg-gap-target::before,
.smg-gap-target i { content: ""; width: .75rem; height: .75rem; background: #e7cf9b; border: .2rem solid #b45f4f; border-radius: 50%; box-shadow: 0 0 .8rem rgba(231,207,155,.42); }
.smg-flow-arrow { position: relative; z-index: 0; display: grid; place-items: center; color: #e7cf9b; font-size: 1.25rem; font-style: normal; opacity: .66; }
.smg-flow-arrow--right { grid-column: 3; grid-row: 1; }
.smg-flow-arrow--down { grid-column: 4; grid-row: 2; }
.smg-flow-arrow--left { grid-column: 3; grid-row: 3; }
.smg-flow-arrow--return { grid-column: 2; grid-row: 2; }
.smg-loop-flow > p { grid-column: 2 / 5; grid-row: 4; margin: .55rem 4.6rem 0 0; color: #a7c9bb; font-size: .65rem; text-align: center; }
.smg-loop-timeline { position: relative; display: grid; grid-template-columns: repeat(4,1fr); margin-top: .5rem; }
.smg-loop-timeline::before { content: ""; position: absolute; top: .34rem; right: 8%; left: 8%; height: 1px; background: rgba(255,255,255,.28); }
.smg-loop-timeline span { position: relative; display: grid; gap: .35rem; justify-items: center; }
.smg-loop-timeline i { width: .7rem; height: .7rem; background: #4ba984; border: 2px solid #164b3a; border-radius: 50%; }
.smg-loop-timeline span:last-child i { background: #e7cf9b; }
.smg-loop-timeline b { color: #d5e6df; font-size: .66rem; }
.smg-loop-stage.is-flowing .smg-flow-arrow { animation: smg-loop-pulse 1.4s ease-in-out infinite; }
.smg-loop-replay { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; min-height: 2.25rem; gap: .4rem; align-items: center; padding: .38rem .7rem; color: #f7f2e7; background: rgba(255,252,246,.1); border: 1px solid rgba(255,252,246,.28); border-radius: 999px; font-size: .7rem; font-weight: 700; cursor: pointer; }
.smg-loop-replay:hover { background: rgba(255,252,246,.18); }
.smg-loop-replay svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smg-loop-mobile-visual { display: none; }

/* Subjects */
.smg-subjects { padding-block: clamp(4.5rem, 7vw, 6.75rem); background: var(--smg-cream); }
.smg-subject-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0.65rem; padding: 0; margin: 0; list-style: none; }
.smg-subject-grid li { min-height: 4.5rem; background: rgba(255,252,246,0.72); border: 1px solid var(--smg-line); border-radius: 0.65rem; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.smg-subject-grid a { display: grid; min-height: 4.5rem; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: center; padding: 0.8rem 0.9rem; text-decoration: none; }
.smg-subject-grid li:hover { background: var(--sm-surface); border-color: #a9bdb2; transform: translateY(-2px); }
.smg-subject-grid img { width: 1.85rem; height: 1.85rem; object-fit: contain; filter: saturate(0.78); }
.smg-subject-grid span { color: #34443d; font-size: 0.74rem; font-weight: 700; line-height: 1.25; }
.smg-subject-grid .smg-subject-osce { grid-column: 2 / span 2; }
.smg-subject-action { margin: 1.35rem 0 0; text-align: center; }

/* Coach */
.smg-coach { padding-block: clamp(4.5rem, 7vw, 6.75rem); color: #fff; background: var(--smg-green); }
.smg-section-head--light h2 { color: #fff; }
.smg-section-head--light .smg-eyebrow { color: #8fd1b9; }
.smg-section-head--light > p:last-child { color: #b7d2c7; }
.smg-coach-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 76rem; margin-inline: auto; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 0.9rem; }
.smg-coach-copy { padding: clamp(1.7rem, 3vw, 2.7rem); }
.smg-coach-copy h3 { margin: 0 0 0.65rem; font-family: var(--smg-sans); font-size: 1.65rem; }
.smg-coach-copy ul { display: grid; gap: 1rem; padding: 0; margin: 1.2rem 0 1.6rem; list-style: none; }
.smg-coach-copy li { display: grid; gap: 0.15rem; padding-left: 1.2rem; position: relative; }
.smg-coach-copy li::before { content: "✓"; position: absolute; left: 0; color: #8fd1b9; }
.smg-coach-copy li strong { color: #fff; font-size: 0.78rem; }
.smg-coach-copy li span { color: #b9d2c8; font-size: 0.72rem; }
.smg-text-link { color: #fff !important; font-size: 0.78rem; font-weight: 750; }
.smg-coach-demo { align-self: center; padding: clamp(1.4rem, 2.5vw, 2.2rem); margin: 1.2rem; color: var(--smg-ink); background: var(--smg-card); border-radius: 0.75rem; }
.smg-coach-demo > header { display: flex; justify-content: space-between; color: var(--smg-green-soft); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.smg-coach-demo > p { margin: 1.1rem 0; font-family: var(--smg-serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.smg-coach-demo details { padding: 0.7rem; background: #f0ece2; border-radius: 0.45rem; font-size: 0.75rem; }
.smg-coach-demo summary { color: var(--smg-green); cursor: pointer; font-weight: 750; }
.smg-coach-demo details strong { display: block; margin-top: 0.45rem; }
.smg-coach-demo > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.4rem; margin-top: 1rem; }
.smg-coach-demo button { display: grid; gap: 0.15rem; padding: 0.55rem 0.3rem; color: #693832; background: #f8e4e1; border: 1px solid #edcbc5; border-radius: 0.4rem; font-size: 0.68rem; font-weight: 750; }
.smg-coach-demo button:nth-child(2) { color: #6c5427; background: #f5ead1; border-color: #ead7aa; }
.smg-coach-demo button:nth-child(3) { color: #175b43; background: #dff1e7; border-color: #b7dbc9; }
.smg-coach-demo button:nth-child(4) { color: #1d5d4b; background: #dceeea; border-color: #b1d6cd; }
.smg-coach-demo button small { font-size: 0.68rem; opacity: 1; }

/* Real client product gallery */
.smg-product { padding-block: clamp(4.75rem, 7vw, 7rem); background: var(--smg-cream); }
.smg-gallery-tabs { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 0.8rem; overflow-x: auto; background: #ede7da; border: 1px solid var(--smg-line); border-radius: 999px; }
.smg-gallery-tabs button { min-height: 2.7rem; padding: 0.6rem 1.1rem; color: #526159; white-space: nowrap; background: transparent; border: 0; border-radius: 999px; font-size: 0.76rem; font-weight: 750; cursor: pointer; }
.smg-gallery-tabs button[aria-selected="true"] { color: #fff; background: var(--smg-green); box-shadow: 0 0.4rem 1rem rgba(15,61,46,0.18); }
.smg-gallery-frame { max-width: 76rem; min-height: 0; margin-inline: auto; padding: 0.75rem; background: var(--smg-card); border: 1px solid var(--smg-line); border-radius: 0.85rem; box-shadow: 0 1.4rem 3.5rem rgba(28,42,34,0.09); }
.smg-gallery-panel { margin: 0; }
.smg-gallery-panel[hidden] { display: none; }
.smg-gallery-panel picture { display: block; }
.smg-gallery-panel img { width: 100%; height: auto; object-fit: contain; object-position: top center; background: #eef2ef; border: 1px solid #dbe1de; border-radius: 0.55rem; }
.smg-gallery-panel figcaption { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; padding: 0.9rem 0.45rem 0.2rem; }
.smg-gallery-panel figcaption strong { color: var(--smg-green); font-family: var(--smg-serif); font-size: 1.05rem; }
.smg-gallery-panel figcaption span { max-width: 38rem; color: var(--smg-muted); font-size: 0.73rem; text-align: right; }
.smg-gallery-panel.is-entering img { animation: smg-gallery-in 360ms ease both; }

/* Mobile apps */
.smg-apps { padding-block: clamp(2.4rem, 4vw, 3.5rem); background: var(--smg-green-pale); border-block: 1px solid var(--smg-line); }
.smg-apps-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.smg-apps-copy { max-width: 38rem; }
.smg-apps-copy .smg-eyebrow { margin-bottom: 0.5rem; }
.smg-apps-copy h2 { margin: 0; font-family: var(--smg-serif); font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -0.025em; }
.smg-apps-copy > p:last-child { margin: 0.7rem 0 0; color: var(--smg-muted); font-size: 0.82rem; line-height: 1.65; }
.smg-apps-links { display: flex; align-items: stretch; }
.smg-apps-links a { display: grid; min-width: 8.75rem; min-height: 3.4rem; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.35rem 1.15rem; color: var(--smg-green); border-left: 1px solid var(--smg-line); text-decoration: none; transition: color 180ms ease,background-color 180ms ease; }
.smg-apps-links a:last-child { border-right: 1px solid var(--smg-line); }
.smg-apps-links a > span:first-child { display: grid; font-family: var(--smg-serif); font-size: 1rem; line-height: 1.1; }
.smg-apps-links a small { margin-bottom: 0.2rem; color: var(--smg-muted); font-family: var(--smg-sans); font-size: 0.59rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.smg-apps-links a > span:last-child { font-size: 0.82rem; transition: transform 180ms ease; }
.smg-apps-links a:hover { color: var(--smg-green-soft); background: rgba(255,252,246,0.5); }
.smg-apps-links a:hover > span:last-child { transform: translate(2px,-2px); }
.smg-apps-links a:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(45,126,95,0.35); outline-offset: 2px; }

/* Plans and close */
.smg-pricing { padding-block: clamp(4.5rem, 7vw, 6.5rem); background: var(--smg-cream); }
.smg-plan-grid { display: grid; max-width: 56rem; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.85rem; margin-inline: auto; }
.smg-plan { position: relative; display: flex; min-height: 0; flex-direction: column; padding: 1.7rem; background: var(--smg-card); border: 1px solid var(--smg-line); border-radius: 0.8rem; box-shadow: 0 0.8rem 2rem rgba(28,42,34,0.05); }
.smg-plan--premium { border-color: #68a68e; box-shadow: 0 1rem 2.5rem rgba(15,61,46,0.1); }
.smg-plan-tag { position: absolute; top: -0.65rem; right: 1.1rem; padding: 0.28rem 0.6rem; color: #fff; background: var(--smg-green); border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.smg-plan h3 { margin: 0; font-family: var(--smg-sans); font-size: 1.4rem; }
.smg-plan-price { margin: 0.45rem 0 0; font-family: var(--smg-serif); font-size: 2.3rem; line-height: 1; }
.smg-plan-price small { font-family: var(--smg-sans); font-size: 0.72rem; }
.smg-plan > small { color: var(--smg-muted); font-size: 0.72rem; }
.smg-plan ul { display: grid; gap: 0.7rem; padding: 0; margin: 1.5rem 0 1.8rem; color: #46564e; font-size: 0.73rem; list-style: none; }
.smg-plan li { position: relative; padding-left: 1.1rem; }
.smg-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--smg-green-soft); font-weight: 800; }
.smg-plan .smg-btn { width: 100%; margin-top: auto; }
.smg-final { padding-block: clamp(4rem, 6vw, 5.5rem); text-align: center; background: linear-gradient(135deg,#e7efe9,#f8f3e8 60%,#eee4cf); border-top: 1px solid var(--smg-line); }
.smg-final h2 { max-width: 17ch; margin-inline: auto; }
.smg-final > .smg-wrap > p:not(.smg-eyebrow) { max-width: 39rem; margin: 0.9rem auto 1.5rem; color: var(--smg-muted); }

.smg-footer { padding: 3rem 0 1.4rem; color: #b7cec4; background: #08291f; border-top: 1px solid rgba(255,255,255,.1); }
.smg-footer-inner { display: grid; grid-template-columns: minmax(13rem,1.4fr) repeat(3,minmax(8.5rem,.8fr)) auto; gap: 1.75rem 2.2rem; align-items: start; }
.smg-footer-brand .smg-brand img { width: 8.4rem; filter: brightness(0) invert(1); }
.smg-footer-brand p { max-width: 16rem; margin: .65rem 0 0; color: #91aea2; font-size: .72rem; }
.smg-footer h2 { margin: 0 0 .65rem; color: #fff; font-size: .78rem; font-weight: 750; letter-spacing: .03em; }
.smg-footer nav ul { display: grid; gap: .42rem; padding: 0; margin: 0; list-style: none; }
.smg-footer nav a,
.smg-footer nav button { padding: 0; color: #bdd1c8; background: transparent; border: 0; font-size: .72rem; text-align: left; text-decoration: none; cursor: pointer; }
.smg-footer nav a:hover,
.smg-footer nav button:hover { color: #fff; text-decoration: underline; }
.smg-footer-connect > div { display: flex; gap: .45rem; }
.smg-footer-connect a { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; color: #d3e2dc; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.smg-footer-connect a:hover { color: #fff; background: rgba(255,255,255,.13); transform: translateY(-2px); }
.smg-footer-connect svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smg-footer-legal { display: grid; gap: .55rem; padding-top: 1.4rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.11); text-align: center; }
.smg-footer-legal p { max-width: 68rem; margin: 0 auto; color: #78998b; font-size: .64rem; line-height: 1.55; }
.smg-footer-legal p:last-child { color: #a9c0b6; font-weight: 650; }

@keyframes smg-loop-draw { from { stroke-dashoffset: var(--smg-path); } to { stroke-dashoffset: 0; } }
@keyframes smg-loop-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes smg-loop-pop { from { opacity: 0; transform: scale(.84); } to { opacity: 1; transform: none; } }
@keyframes smg-loop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes smg-loop-pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes smg-gallery-in { from { opacity: 0; transform: translateY(0.35rem); clip-path: inset(0 0 5%); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes smg-hero-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

.smp-home.is-enhanced .smg-hero-copy { animation: smg-hero-in 650ms ease both; }
.smp-home.is-enhanced .smg-sba { animation: smg-hero-in 700ms 100ms ease both; }

@media (max-width: 980px) {
  .smg-hero { min-height: 0; grid-template-columns: 1fr; padding-top: 2.2rem; }
  .smg-hero-copy { max-width: 43rem; margin-inline: auto; text-align: center; }
  .smg-hero h1 { max-width: 14ch; margin-inline: auto; }
  .smg-hero-lead { margin-inline: auto; }
  .smg-actions,
  .smg-hero-proof { justify-content: center; }
  .smg-sba { max-width: 42rem; margin-inline: auto; }
  .smg-loop-shell { grid-template-columns: 1fr; }
  .smg-loop-copy { max-width: 47rem; margin-inline: auto; }
  .smg-loop-copy header { text-align: center; }
  .smg-loop-copy header > p:last-child { max-width: 40rem; margin-inline: auto; }
  .smg-loop-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .smg-loop-step { height: 100%; grid-template-columns: 1fr; }
  .smg-loop-step > span:first-child { margin-bottom: .15rem; }
  .smg-subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smg-subject-grid .smg-subject-osce { grid-column: 1 / -1; }
  .smg-footer-inner { grid-template-columns: 1.25fr repeat(2,1fr); }
}

@media (max-width: 760px) {
  html.smg-menu-open,
  html.smg-menu-open body { overflow: hidden; overscroll-behavior: none; }
  .smg-wrap { width: min(calc(100% - 1.25rem), 80rem); }
  .smg-nav { min-height: 4.6rem; }
  .smg-brand img { width: 7.75rem; }
  .smg-nav-toggle {
    position: fixed;
    z-index: 1201;
    top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
    right: calc(env(safe-area-inset-right, 0px) + 0.7rem);
    display: block;
    box-shadow: 0 .45rem 1.25rem rgba(15,61,46,.16);
  }
  .smg-nav-links { position: fixed; z-index: 1200; top: calc(env(safe-area-inset-top, 0px) + 4rem); right: calc(env(safe-area-inset-right, 0px) + 0.7rem); display: none; width: min(19rem, calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 1.4rem)); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 4.7rem); overflow-y: auto; gap: 0; align-items: stretch; padding: 0.6rem; background: var(--smg-card); border: 1px solid var(--smg-line); border-radius: 0.75rem; box-shadow: 0 1rem 3rem rgba(28,42,34,0.18); }
  .smg-nav-links.is-open { display: grid; }
  .smg-nav-links a { display: block; padding: 0.72rem; }
  .smg-nav-links .smg-nav-cta { justify-content: center; margin-top: 0.3rem; }
  .smg-hero { gap: 2rem; padding-block: 1.8rem 3rem; }
  .smg-hero h1 { font-size: clamp(2.55rem, 12.75vw, 3.3rem); }
  .smg-hero-lead { font-size: 0.96rem; }
  .smg-hero-proof { display: grid; justify-content: start; text-align: left; }
  .smg-sba-stem { font-size: 0.86rem; }
  .smg-sba-foot { align-items: flex-start; }
  .smg-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smg-stats-grid div { min-height: 6.6rem; }
  .smg-stats-grid div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,0.13); }
  .smg-stats-grid div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.13); }
  .smg-loop-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smg-loop-step { grid-template-columns: 1.7rem 1fr; }
  .smg-loop-stage { padding: 1rem; }
  .smg-loop-flow,
  .smg-loop-replay { display: none; }
  .smg-loop-mobile-visual { position: relative; display: grid; gap: .4rem; }
  .smg-loop-mobile-visual article { display: grid; gap: .2rem; padding: .9rem 1rem; color: #fffaf0; background: rgba(255,252,246,.07); border: 1px solid rgba(255,252,246,.18); border-radius: .65rem; opacity: .55; transition: opacity 180ms ease,border-color 180ms ease,box-shadow 180ms ease,transform 180ms ease; }
  .smg-loop-stage[data-step="1"] .smg-loop-mobile-visual [data-loop-module="1"],
  .smg-loop-stage[data-step="2"] .smg-loop-mobile-visual [data-loop-module="2"],
  .smg-loop-stage[data-step="3"] .smg-loop-mobile-visual [data-loop-module="3"],
  .smg-loop-stage[data-step="4"] .smg-loop-mobile-visual [data-loop-module="4"] { opacity: 1; border-color: #e7cf9b; box-shadow: 0 0 0 1px rgba(231,207,155,.22),0 .65rem 1.3rem rgba(0,0,0,.14); transform: translateY(-2px); }
  .smg-loop-mobile-visual article small { color: #e7cf9b; font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
  .smg-loop-mobile-visual article strong { font-family: var(--smg-serif); font-size: .9rem; }
  .smg-loop-mobile-visual article span { width: fit-content; color: #ffd9cf; font-size: .65rem; font-weight: 700; }
  .smg-loop-mobile-visual .smg-loop-mobile-card { color: var(--smg-green); background: #fffaf0; }
  .smg-loop-mobile-visual .smg-loop-mobile-card span { color: var(--smg-green-soft); }
  .smg-loop-mobile-visual > i { color: #e7cf9b; font-size: .8rem; font-style: normal; text-align: center; line-height: 1; }
  .smg-subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smg-coach-grid,
  .smg-plan-grid { grid-template-columns: 1fr; }
  .smg-plan { min-height: 0; }
  .smg-gallery-panel figcaption { display: grid; gap: 0.25rem; }
  .smg-gallery-panel figcaption span { text-align: left; }
  .smg-gallery-tabs { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; border-radius: 0.65rem; }
  .smg-gallery-tabs button { min-width: 0; padding-inline: 0.45rem; border-radius: 0.55rem; white-space: normal; }
  .smg-apps-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .smg-apps-links { width: fit-content; max-width: 100%; }
  .smg-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .smg-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .smg-actions { display: grid; }
  .smg-actions .smg-btn { width: 100%; }
  .smg-sba-top { align-items: flex-start; }
  .smg-sba-body { padding: 1rem; }
  .smg-sba-options button { min-height: 3rem; }
  .smg-sba-foot { display: grid; }
  .smg-sba-foot .smg-btn { width: 100%; }
  .smg-section-head h2,
  .smg-final h2 { font-size: 2rem; }
  .smg-loop-steps { grid-template-columns: 1fr; }
  .smg-loop-step { padding: 0.55rem; }
  .smg-subject-grid li { min-height: 5.2rem; }
  .smg-subject-grid a { min-height: 5.2rem; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .smg-coach-demo > div { grid-template-columns: repeat(2,1fr); }
  .smg-apps-links { width: 100%; }
  .smg-apps-links a { min-width: 0; flex: 1; padding-inline: 0.75rem; }
  .smg-footer-inner { grid-template-columns: 1fr; }
  .smg-footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  /* Do NOT disable homepage scroll-behavior - menu anchor scroll must stay calm/smooth. */
  html { scroll-behavior: smooth !important; }
  .smp-home *,
  .smp-home *::before,
  .smp-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .smg-loop-draw { stroke-dashoffset: 0 !important; }
  .smg-loop-replay { display: none; }
}
