/* Endpa 2026 design layer. Loaded after app.css + theme.css; styles every public page and the home page (eh-*). */
:root {
  --md-primary: #13231B;
  --md-primary-dark: #08120D;
  --md-primary-soft: #2D4A3B;
  --md-primary-container: #E6F6B8;
  --md-secondary: #C9F04B;
  --md-secondary-dark: #B2DB2E;
  --md-on-secondary: #13231B;
  --md-tertiary: #13231B;
  --md-surface: #F3F1EA;
  --md-surface-container: #FFFFFF;
  --md-outline: #DEDBD0;
  --md-outline-strong: #BEB9AA;
  --md-on-surface: #13231B;
  --md-on-surface-variant: #55615A;
  --md-radius: 10px;
  --md-radius-lg: 16px;
  --md-radius-xl: 24px;
  --md-font: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ep-display: "Syne", "Rethink Sans", system-ui, sans-serif;
  --md-max: 1220px;
  --lime: #C9F04B;
  --ink: #13231B;
  --paper: #F3F1EA;
  --tone: #2F7D5B;
  --tone-soft: #E2F0E8;
  --tone-ink: #1F5A40;
}

/* goal tones: one colour per goal, echoed on the product cards */
.eh-tone[data-tone="ember"]  { --tone: #E2541B; --tone-soft: #FDE8DD; --tone-ink: #A3390C; }
.eh-tone[data-tone="teal"]   { --tone: #0F8F80; --tone-soft: #DDF2EE; --tone-ink: #0A665B; }
.eh-tone[data-tone="indigo"] { --tone: #4D52D6; --tone-soft: #E8E8FC; --tone-ink: #3438A6; }
.eh-tone[data-tone="bronze"] { --tone: #A9701A; --tone-soft: #F5EBD7; --tone-ink: #754C0F; }
.eh-tone[data-tone="mint"]   { --tone: #12998B; --tone-soft: #DCF4F0; --tone-ink: #0B6D63; }
.eh-tone[data-tone="sage"]   { --tone: #5A7A34; --tone-soft: #ECF1DF; --tone-ink: #3E5622; }
.eh-tone[data-tone="rose"]   { --tone: #B4566B; --tone-soft: #F8E4E9; --tone-ink: #853A4C; }
.eh-tone[data-tone="sky"]    { --tone: #2F68DD; --tone-soft: #E3ECFC; --tone-ink: #1E49A6; }
.eh-tone[data-tone="clay"]   { --tone: #BC5428; --tone-soft: #F9E6DC; --tone-ink: #8A3A18; }
.eh-tone[data-tone="lagoon"] { --tone: #0B7486; --tone-soft: #DCEFF2; --tone-ink: #075563; }
.eh-tone[data-tone="sun"]    { --tone: #D9731A; --tone-soft: #FDEEDA; --tone-ink: #934C0B; }
.eh-tone[data-tone="forest"] { --tone: #2F7D5B; --tone-soft: #E2F0E8; --tone-ink: #1F5A40; }

.md-body { background: var(--md-surface); font-family: var(--md-font); color: var(--md-on-surface); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--ep-display); letter-spacing: -0.025em; text-wrap: balance; color: inherit; }
.md-body p, .md-body li { text-wrap: pretty; }
.md-body :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
.md-container { width: min(var(--md-max), calc(100% - 40px)); max-width: none; margin-inline: auto; padding-inline: 0; }
.md-skip { position: absolute; left: 12px; top: -80px; z-index: 90; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.md-skip:focus { top: 12px; }

/* buttons + inputs */
.md-btn { border-radius: 10px; min-height: 50px; padding: 0 22px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.md-btn:hover { transform: translateY(-2px); }
.md-btn--gold { background: var(--lime); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.md-btn--gold:hover { background: #D8F76E; }
.md-btn--teal { background: var(--ink); color: #fff; }
.md-btn--teal:hover { background: var(--md-primary-soft); }
.md-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.md-btn--ghost:hover { background: var(--ink); color: #fff; }
.md-btn.is-disabled { opacity: .45; pointer-events: none; }
.md-input, .md-textarea { border-radius: 10px; border: 2px solid var(--md-outline); background: #fff; min-height: 50px; padding: 0 16px; font: inherit; color: var(--ink); width: 100%; }
.md-textarea { padding: 14px 16px; min-height: 160px; }
.md-input:focus, .md-textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--md-primary-container); }
.md-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.md-form { display: grid; gap: 18px; margin-top: 32px; }
.md-alert { border-radius: 12px; padding: 14px 18px; margin: 20px 0; list-style: none; }
.md-alert--ok { background: #E6F6B8; }
.md-alert--err { background: #FDE3DC; }
.md-alert--warn { background: #FFF1CC; }

/* header */
.md-sticky { position: sticky; top: 0; z-index: 50; }
.md-header { background: rgba(243, 241, 234, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--md-outline); box-shadow: none; }
.md-header__bar { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.md-logo { font-family: var(--ep-display); font-weight: 800; font-size: 28px; letter-spacing: -0.05em; text-transform: lowercase; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; }
.md-logo::after { content: ""; width: 11px; height: 11px; border-radius: 3px; background: #9CC51A; transform: rotate(45deg); margin-left: 8px; align-self: center; flex: 0 0 auto; }
.md-nav-desktop { display: flex; gap: 4px; margin-left: auto; }
.md-nav-link { color: var(--md-on-surface-variant); font-weight: 600; border-radius: 8px; padding: 9px 14px; text-decoration: none; }
.md-nav-link:hover { color: var(--ink); background: rgba(19, 35, 27, .07); }
.md-icon-btn { border-radius: 10px; color: var(--ink); }
.md-suggest { border-radius: 12px; border: 1px solid var(--md-outline); box-shadow: 0 20px 40px -24px rgba(19, 35, 27, .5); }

/* product cards (all listing pages) */
.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.md-product-card { position: relative; background: #fff; border: 1px solid var(--md-outline); border-radius: var(--md-radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.md-product-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 6px 6px 0 var(--tone); }
.md-product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--tone-soft); padding: 18px; position: relative; }
.md-product-card__media::after { content: ""; position: absolute; left: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.md-product-card__media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); max-width: none; object-fit: contain; transition: transform .3s ease; }
.md-product-card:hover .md-product-card__media img { transform: scale(1.05) rotate(-1.5deg); }
.md-product-card__badge { display: none; }
.md-product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--md-outline); }
.md-product-card__body h2 { font-size: 21px; margin: 0; line-height: 1.15; letter-spacing: -0.03em; }
.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: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.md-product-card__go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.md-product-card__go::after { content: "→"; transition: transform .2s ease; }
.md-product-card:hover .md-product-card__go::after { transform: translateX(4px); }

/* inner pages */
.md-main { padding-top: 44px; padding-bottom: 80px; width: min(var(--md-max), calc(100% - 40px)); margin-inline: auto; }
.md-main--narrow { max-width: 780px; }
.md-page-title { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 12px; }
.md-muted { color: var(--md-on-surface-variant); }
.md-bc { font-size: 14px; color: var(--md-on-surface-variant); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.md-bc a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime); }
.md-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.md-search-inline { display: flex; gap: 10px; }
.md-search-inline .md-input { min-width: 260px; }
.md-empty { padding: 40px; text-align: center; background: #fff; border-radius: 16px; border: 1px dashed var(--md-outline-strong); }
.md-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.md-pager a, .md-pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--md-outline); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.md-pager a:hover { border-color: var(--ink); }
.md-pager .is-current { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.md-prose { font-size: 17px; line-height: 1.75; }
.md-prose h2 { font-size: 28px; margin-top: 1.8em; }
.md-prose a { color: var(--ink); text-decoration-color: var(--tone); text-decoration-thickness: 2px; }
.md-404 { text-align: center; padding: 80px 0; }
.md-404 h1 { font-size: clamp(44px, 7vw, 88px); }
.md-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tone-ink); }
.md-review-card, .md-feature-product { background: #fff; border: 1px solid var(--md-outline); border-radius: 16px; }

/* footer */
.md-footer { background: var(--ink); color: #B8C4BC; border: 0; padding: 64px 0 36px; margin-top: 0; }
.md-footer a { color: #EEF3EF; }
.md-footer a:hover { color: var(--lime); }
.md-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.md-footer__brand { font-family: var(--ep-display); font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -0.05em; text-transform: lowercase; margin: 0 0 12px; }
.md-footer__brand::after { content: "."; color: var(--lime); }
.md-footer .md-kicker { color: var(--lime); }
.md-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.md-footer__cats { columns: 3 180px; column-gap: 28px; font-size: 15px; }
.md-footer__cats a { display: block; padding: 4px 0; text-decoration: none; break-inside: avoid; }
.md-footer-cms { font-size: 14px; max-width: 34rem; }
.md-copy { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; }

/* ================= home (eh-*) ================= */
.eh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eh-hero { background: var(--ink); color: #EEF3EF; padding: 72px 0 0; position: relative; overflow: hidden; }
.eh-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 92% 10%, rgba(201, 240, 75, .18) 0, transparent 70%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 56px; pointer-events: none; }
.eh-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.eh-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0 0 22px; }
.eh-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(201, 240, 75, .6); animation: eh-pulse 2.4s ease-out infinite; }
@keyframes eh-pulse { to { box-shadow: 0 0 0 12px rgba(201, 240, 75, 0); } }
.eh-hero h1 { font-size: clamp(46px, 6.6vw, 92px); line-height: .95; letter-spacing: -0.05em; margin: 0; color: #fff; }
.eh-lead { font-size: 19px; color: #B8C4BC; max-width: 36rem; margin: 24px 0 30px; }
.eh-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 560px; box-shadow: 0 0 0 4px rgba(201, 240, 75, .25); }
.eh-search__icon { color: var(--md-on-surface-variant); display: grid; }
.eh-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; min-height: 46px; }
.eh-search .md-btn { min-height: 46px; }
.eh-search--light { box-shadow: none; border: 2px solid var(--ink); }
.eh-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; }
.eh-stats div { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.eh-stats div:first-child { padding-left: 0; border-left: 0; }
.eh-stats dt { font-family: var(--ep-display); font-size: 40px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.04em; }
.eh-stats dd { margin: 6px 0 0; font-size: 14px; color: #95A49B; }
.eh-board { background: #1B2E24; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px 22px; }
.eh-board__top { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #95A49B; }
.eh-board ol { list-style: none; margin: 0; padding: 0; }
.eh-board li a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); text-decoration: none; color: #EEF3EF; }
.eh-board li a:hover .eh-board__t { color: var(--lime); }
.eh-board__n { font-family: var(--ep-display); font-weight: 700; color: var(--tone); filter: brightness(1.5) saturate(.9); }
.eh-board__t { font-weight: 600; transition: color .15s; }
.eh-board__c { font-family: var(--ep-display); font-weight: 800; font-size: 20px; min-width: 44px; text-align: center; background: rgba(255, 255, 255, .07); border-radius: 8px; padding: 2px 8px; }
.eh-board__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--lime); font-weight: 700; text-decoration: none; }
.eh-rail { position: relative; margin-top: 64px; padding-bottom: 0; }
.eh-rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--paper); }
.eh-rail__row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.eh-rail__item { background: #fff; border-radius: 16px; padding: 14px 14px 12px; text-decoration: none; color: var(--ink); border: 1px solid var(--md-outline); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.eh-rail__item:hover { transform: translateY(-6px); box-shadow: 6px 6px 0 var(--lime), 6px 6px 0 2px var(--ink); }
.eh-rail__item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.eh-rail__item span { font-family: var(--ep-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; text-align: center; }
.eh-main { padding-bottom: 40px; }
.eh-section { padding: 96px 0 0; }
.eh-head { max-width: 44rem; margin-bottom: 40px; }
.eh-head h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.045em; margin: 0; }
.eh-head p { color: var(--md-on-surface-variant); font-size: 18px; margin: 16px 0 0; }
.eh-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.eh-head--row > div { max-width: 44rem; }
.eh-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--md-on-surface-variant); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eh-kicker::before { content: ""; width: 22px; height: 10px; border-radius: 5px; background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.eh-goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eh-goal { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 20px; background: #fff; border: 1px solid var(--md-outline); border-radius: 16px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.eh-goal::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--tone); transform: scaleX(.18); transform-origin: left; transition: transform .3s ease; }
.eh-goal:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 22px 40px -28px rgba(19, 35, 27, .55); }
.eh-goal:hover::before { transform: scaleX(1); }
.eh-goal__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--tone-soft); color: var(--tone-ink); display: grid; place-items: center; }
.eh-goal__ic > * { margin: 0 !important; }
.eh-goal__c { position: absolute; right: 18px; top: 10px; font-family: var(--ep-display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.06em; color: var(--tone-soft); -webkit-text-stroke: 1.5px var(--tone); }
.eh-goal h3 { font-size: 21px; line-height: 1.15; margin: auto 0 6px; padding-top: 18px; letter-spacing: -0.03em; }
.eh-goal__go { font-size: 14px; font-weight: 700; color: var(--tone-ink); display: inline-flex; align-items: center; gap: 6px; }
.eh-how { margin-top: 96px; padding: 88px 0; background: var(--lime); }
.eh-how .eh-kicker { color: var(--ink); }
.eh-how .eh-kicker::before { background: var(--ink); }
.eh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.eh-steps li { padding: 28px 28px 8px 0; border-right: 2px solid var(--ink); margin-right: 28px; }
.eh-steps li:last-child { border-right: 0; margin-right: 0; }
.eh-steps span { display: block; font-family: var(--ep-display); font-weight: 800; font-size: 76px; line-height: .9; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 18px; }
.eh-steps h3 { font-size: 25px; margin: 0 0 8px; }
.eh-steps p { margin: 0; color: #2E3F35; }
.eh-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 40px; box-shadow: 10px 10px 0 var(--ink); }
.eh-cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 8px; letter-spacing: -0.04em; }
.eh-cta p { margin: 0; color: var(--md-on-surface-variant); }
.eh-cta .eh-search { max-width: none; }
.eh-disclosure { margin: 44px 0 0; font-size: 14px; color: var(--md-on-surface-variant); max-width: 62rem; }

@media (max-width: 1080px) {
  .eh-goals { grid-template-columns: repeat(3, 1fr); }
  .eh-rail__row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .md-nav-desktop { display: none; }
  .eh-hero { padding-top: 48px; }
  .eh-hero__grid, .eh-cta, .md-footer__grid { grid-template-columns: 1fr; }
  .eh-goals { grid-template-columns: repeat(2, 1fr); }
  .eh-steps { grid-template-columns: 1fr; }
  .eh-steps li { border-right: 0; margin-right: 0; border-bottom: 2px solid var(--ink); padding-bottom: 24px; }
  .eh-steps li:last-child { border-bottom: 0; }
  .eh-section { padding-top: 64px; }
  .eh-how { margin-top: 64px; padding: 64px 0; }
  .eh-cta { padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
  .md-search-inline { width: 100%; }
  .md-search-inline .md-input { min-width: 0; }
}
@media (max-width: 560px) {
  .eh-goals { grid-template-columns: 1fr; }
  .eh-goal { min-height: 150px; }
  .eh-rail__row { grid-template-columns: repeat(2, 1fr); }
  .eh-stats div { padding: 0 16px; }
  .eh-stats dt { font-size: 32px; }
  .eh-search { flex-wrap: wrap; padding: 8px; }
  .eh-search .md-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after { animation: none !important; transition: none !important; }
}
