/* Fitgag 2026: brand layer. Loaded after theme.css; restyles every public page and adds the home page (fg-*). */
:root {
  --fg-ground: #F1F2EC;
  --fg-paper: #FFFFFF;
  --fg-ink: #0F1512;
  --fg-soft: #3E4741;
  --fg-lime: #DDF247;
  --fg-lime-2: #C9E22C;
  --fg-deep: #0F1512;
  --fg-step: #E4E6DD;
  --fg-step-2: #D6D9CC;
  --fg-r: 999px;
  --fg-font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fg-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --fg-max: 1280px;
  --md-primary: #0F1512;
  --md-surface: var(--fg-ground);
  --md-on-surface: var(--fg-ink);
  --md-on-surface-variant: var(--fg-soft);
  --md-outline: var(--fg-step-2);
  --tone: #1E6B4A; --tone-soft: #DCEBE2; --tone-ink: #154D35;
}
/* goal tones: shared with the product page families */
.fg-tone[data-tone="ember"]  { --tone: #C2410C; --tone-soft: #F8E3D6; --tone-ink: #8A2C06; }
.fg-tone[data-tone="teal"]   { --tone: #0B7A6C; --tone-soft: #D8EFEA; --tone-ink: #075A4F; }
.fg-tone[data-tone="indigo"] { --tone: #2C4A8C; --tone-soft: #DFE6F3; --tone-ink: #1F3566; }
.fg-tone[data-tone="bronze"] { --tone: #8A5A14; --tone-soft: #F1E6D2; --tone-ink: #644009; }
.fg-tone[data-tone="mint"]   { --tone: #0E7C74; --tone-soft: #D7F0EC; --tone-ink: #095C56; }
.fg-tone[data-tone="sage"]   { --tone: #4D6B2C; --tone-soft: #E5ECD8; --tone-ink: #384F1F; }
.fg-tone[data-tone="rose"]   { --tone: #A4405A; --tone-soft: #F5E0E5; --tone-ink: #7A2D41; }
.fg-tone[data-tone="sky"]    { --tone: #1F5FA8; --tone-soft: #DCE8F5; --tone-ink: #16467C; }
.fg-tone[data-tone="clay"]   { --tone: #9A4A23; --tone-soft: #F2E1D6; --tone-ink: #723619; }
.fg-tone[data-tone="lagoon"] { --tone: #0A6F80; --tone-soft: #D6ECEF; --tone-ink: #07525F; }
.fg-tone[data-tone="sun"]    { --tone: #A35A06; --tone-soft: #F6E6CC; --tone-ink: #7A4304; }
.fg-tone[data-tone="cobalt"] { --tone: #1E6B4A; --tone-soft: #DCEBE2; --tone-ink: #154D35; }

.md-body { background: var(--fg-ground); font-family: var(--fg-font); color: var(--fg-ink); font-size: 18px; line-height: 1.55; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--fg-display); letter-spacing: -0.03em; text-wrap: balance; font-weight: 700; }
.md-body p, .md-body li { text-wrap: pretty; }
.md-body :focus-visible { outline: 3px solid var(--fg-ink); outline-offset: 3px; }
.md-skip { position: absolute; left: 16px; top: -80px; z-index: 99; background: var(--fg-ink); color: var(--fg-lime); padding: 10px 16px; }
.md-skip:focus { top: 12px; }
.md-container { width: min(var(--fg-max), calc(100% - 48px)); max-width: none; margin-inline: auto; padding-inline: 0; }

.md-btn { border-radius: var(--fg-r); min-height: 52px; padding: 0 24px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; box-shadow: none; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.md-btn:hover { transform: translateY(-2px); }
.md-btn:active { transform: none; }
.md-btn--gold { background: var(--fg-lime); color: var(--fg-ink); box-shadow: none; }
.md-btn--gold:hover { background: var(--fg-lime-2); }
.md-btn--teal { background: var(--fg-ink); color: #fff; }
.md-btn--teal:hover { background: #26302A; }
.md-btn--ghost, .md-btn--ghost:visited { background: var(--fg-step) !important; color: var(--fg-ink) !important; box-shadow: none; border: 0; }
.md-btn--ghost:hover { background: var(--fg-step-2); box-shadow: none; }
.md-input { border-radius: var(--fg-r); border: 2px solid transparent; background: var(--fg-paper); min-height: 52px; padding: 0 20px; font: inherit; color: var(--fg-ink); }
.md-input:focus { border-color: var(--fg-ink); outline: none; box-shadow: none; }

.md-sticky { position: sticky; top: 0; z-index: 50; }
.md-header { background: var(--fg-ground); border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.md-header__bar { min-height: 76px; }
.md-logo { font-family: var(--fg-display); font-weight: 800; font-size: 30px; letter-spacing: -0.05em; color: var(--fg-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.md-logo::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--fg-lime); box-shadow: inset 0 0 0 6px var(--fg-ink); }
.md-nav-link { color: var(--fg-soft); font-weight: 500; border-radius: var(--fg-r); padding: 10px 16px; text-decoration: none; transition: background-color .2s, color .2s; }
.md-nav-link:hover { color: var(--fg-ink); background: var(--fg-step); }
.md-icon-btn { border-radius: var(--fg-r); }

.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.md-product-card { position: relative; background: var(--fg-paper); border: 0; border-radius: 0; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: none; transition: background-color .2s ease; }
.md-product-card:hover { background: var(--tone-soft); transform: none; box-shadow: none; }
.md-product-card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--tone-soft); padding: 24px; }
.md-product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.md-product-card:hover .md-product-card__media img { transform: scale(1.06) translateY(-4px); }
.md-product-card__badge { display: none; }
.md-product-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.md-product-card__body h2 { font-size: 26px; margin: 0; line-height: 1.05; }
.md-product-card__body h2 a { text-decoration: none; color: inherit; }
.md-product-card__body h2 a::after { content: ""; position: absolute; inset: 0; }
.md-product-card .md-chip { align-self: flex-start; margin: 0; background: transparent; color: var(--tone-ink); border: 0; padding: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.md-product-card__go { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--fg-ink); }

.md-main { padding-block: 56px 120px; }
.md-page-title { font-size: clamp(44px, 6vw, 88px); line-height: .95; margin: 0 0 12px; }
.md-muted { color: var(--fg-soft); }
.md-bc { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--fg-soft); margin-bottom: 24px; }
.md-bc a { color: var(--fg-ink); }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.md-search-inline { display: flex; gap: 10px; }
.md-search-inline .md-input { flex: 1; min-width: 0; }
.md-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.md-pager a, .md-pager span { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--fg-r); background: var(--fg-paper); text-decoration: none; color: var(--fg-ink); font-weight: 600; border: 0; }
.md-pager a:hover { background: var(--fg-step-2); }
.md-pager .is-current { background: var(--fg-ink); color: var(--fg-lime); }
.md-empty { padding: 48px; background: var(--fg-paper); }
.md-prose { font-size: 18px; max-width: 46em; }
.md-prose h1 { display: none; }
.md-prose h2, .md-prose h3 { margin-top: 1.6em; }
.md-prose a { color: var(--fg-ink); }
.md-404 { padding: 80px 0; }
.md-404 h1 { font-size: clamp(56px, 9vw, 140px); line-height: .9; margin: 0 0 16px; }

/* footer: a designed close */
.md-footer { background: var(--fg-deep); color: #E9ECE3; padding: 96px 0 40px; border: 0; margin-top: 0; }
.md-footer a { color: #fff; text-decoration: none; }
.md-footer a:hover { color: var(--fg-lime); }
.fg-foot__word { font-family: var(--fg-display); font-weight: 800; font-size: clamp(96px, 22vw, 340px); line-height: .78; letter-spacing: -0.07em; color: var(--fg-lime); margin: 0 0 56px; }
.fg-foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.fg-foot__grid h2 { font-size: 22px; margin: 0 0 18px; color: #fff; }
.fg-foot__grid p { margin: 0 0 16px; max-width: 30em; }
.fg-foot__nav { display: grid; gap: 10px; }
.fg-foot__cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.md-footer-cms p { margin: 0 0 12px; }
.md-copy { margin: 64px 0 0; font-size: 15px; color: #B9C0B3; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* -------- home -------- */
.fg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fg-hero { padding: 40px 0 0; }
.fg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: stretch; }
.fg-hero__copy { padding: 56px 0 72px; }
.fg-hero h1 { font-size: clamp(56px, 7.4vw, 124px); line-height: .9; letter-spacing: -0.055em; margin: 0; }
.fg-lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 30em; margin: 28px 0 0; }
.fg-search { margin-top: 36px; display: flex; align-items: center; gap: 8px; background: var(--fg-paper); border-radius: var(--fg-r); padding: 8px 8px 8px 22px; max-width: 36rem; border: 2px solid transparent; transition: border-color .2s; }
.fg-search:focus-within { border-color: var(--fg-ink); }
.fg-search svg { flex: none; color: var(--fg-soft); }
.fg-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--fg-ink); padding: 12px 4px; outline: none; }
.fg-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fg-quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--fg-r); background: var(--fg-step); color: var(--fg-ink); text-decoration: none; font-weight: 500; font-size: 16px; transition: background-color .2s, color .2s; }
.fg-quick a:hover { background: var(--tone); color: #fff; }
.fg-shelf { background: var(--fg-deep); color: #fff; padding: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; grid-auto-rows: 1fr; gap: 10px; position: relative; }
.fg-shelf__item { background: #1C2520; display: grid; grid-template-rows: 1fr auto; padding: 16px; text-decoration: none; color: #fff; transition: background-color .25s; min-height: 0; }
.fg-shelf__item:hover { background: var(--fg-lime); color: var(--fg-ink); }
.fg-shelf__item img { width: 100%; height: 100%; max-height: 170px; object-fit: contain; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.fg-shelf__item:hover img { transform: translateY(-6px) scale(1.04); }
.fg-shelf__item span { font-family: var(--fg-display); font-weight: 700; font-size: 19px; margin-top: 10px; letter-spacing: -0.02em; }
.fg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 auto; background: var(--fg-lime); }
.fg-stats div { padding: 34px 32px; }
.fg-stats div + div { background: var(--fg-lime-2); }
.fg-stats div:last-child { background: #B8D11E; }
.fg-stats dt { font-family: var(--fg-display); font-weight: 800; font-size: clamp(48px, 5vw, 80px); line-height: .9; letter-spacing: -0.05em; }
.fg-stats dd { margin: 10px 0 0; font-size: 18px; font-weight: 500; }

.fg-section { padding: 160px 0; }
.fg-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.fg-head h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: .95; margin: 0; }
.fg-head p { margin: 0; font-size: 20px; max-width: 32em; }
.fg-goals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.fg-goal { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; margin-bottom: 8px; background: var(--fg-paper); text-decoration: none; color: var(--fg-ink); transition: background-color .25s, color .25s; }
.fg-goal:hover { background: var(--tone); color: #fff; }
.fg-goal .ci { width: 52px; height: 52px; border-radius: 50%; background: var(--tone-soft); color: var(--tone-ink); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.fg-goal:hover .ci { background: #fff; color: var(--tone); }
.fg-goal .ci svg { width: 26px; height: 26px; }
.fg-goal h3 { font-size: clamp(24px, 2.2vw, 34px); margin: 0; line-height: 1.05; }
.fg-goal__n { font-weight: 600; font-size: 16px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.fg-goal__n svg { transition: transform .25s; }
.fg-goal:hover .fg-goal__n svg { transform: translateX(4px); }

.fg-how { background: var(--fg-deep); color: #fff; padding: 160px 0; }
.fg-how h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: .95; margin: 0 0 64px; max-width: 12em; }
.fg-how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fg-how li { background: #1C2520; padding: 40px 36px 44px; }
.fg-how li:nth-child(2) { background: #26312A; }
.fg-how li:last-child { background: var(--fg-lime); color: var(--fg-ink); }
.fg-how h3 { font-size: 30px; margin: 0 0 14px; }
.fg-how p { margin: 0; font-size: 18px; }

.fg-feature-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.fg-feature-head h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: .95; margin: 0; }
.fg-feature-head p { margin: 16px 0 0; font-size: 20px; max-width: 32em; }

.fg-cta { background: var(--fg-lime); padding: 72px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: center; }
.fg-cta h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: .95; margin: 0; }
.fg-cta p { margin: 16px 0 0; font-size: 20px; }
.fg-cta .fg-search { margin: 0; max-width: none; }
.fg-disclosure { margin: 40px 0 0; font-size: 16px; color: var(--fg-soft); max-width: 60em; }

.js .fg-rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .fg-rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { .fg-shelf__item { animation: fgUp .8s cubic-bezier(.2,.7,.2,1) both; } .fg-shelf__item:nth-child(2){animation-delay:.07s}.fg-shelf__item:nth-child(3){animation-delay:.14s}.fg-shelf__item:nth-child(4){animation-delay:.21s}.fg-shelf__item:nth-child(5){animation-delay:.28s}.fg-shelf__item:nth-child(6){animation-delay:.35s} @keyframes fgUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } } }
@media (prefers-reduced-motion: reduce) { .js .fg-rv { opacity: 1; transform: none; transition: none; } .fg-shelf__item, .md-product-card__media img, .md-btn, .fg-goal { transition: none; animation: none; } }

@media (max-width: 1000px) {
  .fg-hero__grid, .fg-head, .fg-cta, .fg-foot__grid { grid-template-columns: minmax(0, 1fr); }
  .fg-search { max-width: 100%; }
  .fg-hero__copy { padding: 24px 0 48px; }
  .fg-goals { grid-template-columns: 1fr; }
  .fg-how ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .md-container { width: calc(100% - 40px); }
  .fg-shelf { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .fg-shelf__item:nth-child(n+5) { display: none; }
  .fg-stats { grid-template-columns: 1fr; }
  .fg-section, .fg-how { padding: 96px 0; }
  .fg-goal { padding: 18px; gap: 14px; }
  .fg-goal .ci { width: 44px; height: 44px; }
  .fg-cta { padding: 40px 24px; }
  .fg-search .md-btn { padding: 0 18px; }
  .md-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .md-product-card__body { padding: 14px; }
  .md-product-card__body h2 { font-size: 20px; }
  .fg-foot__cats { grid-template-columns: 1fr 1fr; }
}
