/* The castomo ecosystem and tools shelves, below the footer of the home and Cyber Monday pages (Maciej 2026-11-29:
   "add castomo ecosystem and tools after the footer"). Ported from saunas-ai public/app/footer.css, which ported
   castomo.com's footer: the products, marks, order and hues must stay exactly as on castomo.com. Its tokens are
   mapped to bf.css's here, on .eco only. js/eco.js adds the faint marks, the endless scroll and prev/next. */
.eco {
  --ink-2: var(--ink); --ink-3: var(--muted); --rule: var(--line); --rule-w: 1px; --field: var(--soft);
  --accent: var(--ember); --accent-ink: var(--ember);
  --shadow: 0 1px 2px rgba(13, 13, 13, .06), 0 12px 32px -16px rgba(13, 13, 13, .25);
  --radius: 14px; --radius-pill: 999px;
  --t-1: calc(.875 * 17px); --t2: calc(1.5625 * 17px); --t3: calc(1.95 * 17px);
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: .18s;
  padding: 8px 0 clamp(48px, 7vw, 80px); background: var(--bg); color: var(--ink); overflow-x: clip;
  content-visibility: auto; contain-intrinsic-size: auto 1100px;
}
.eco a { color: var(--ink-2); text-decoration: none; }
.eco ul { list-style: none; margin: 0; padding: 0; }
.eco .ci { width: var(--ci-size, 24px); height: var(--ci-size, 24px); flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: var(--ci-stroke, 1.6); stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 50%; }
.eco .ci[data-motion="wiggle"] { --ci-anim: eco-wiggle; --ci-dur: .6s; }
.eco .ci[data-motion="float"] { --ci-anim: eco-float; --ci-dur: 1.8s; --ci-timing: ease-in-out; }
.eco .ci[data-motion]:hover { animation: var(--ci-anim) var(--ci-dur, .7s) var(--ci-timing, var(--ease)) both; }
.eco-js .ci-draw:not(.ci-in) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.eco .ci-draw.ci-in { stroke-dasharray: 1; animation: eco-draw 1.4s var(--ease) both; }
@keyframes eco-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes eco-wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes eco-float { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes eco-mk-pop { 0% { opacity: 0; transform: scale(.45); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
.foot-fam-ico { color: var(--accent-ink); --ci-stroke: .8; }
/* the two shelves: centred headings, then a full-bleed row of product cards that scrolls round endlessly */
.foot-family { position: relative; margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 48px); border-top: var(--rule-w) solid var(--rule); text-align: center; }
.foot-family + .foot-family { margin-top: clamp(8px, 2vw, 24px); padding-top: 0; border-top: 0; }
/* castomo.com's card-mark rule (.foot-family svg) also sizes these, so they are as big as the marks, not 40px */
.foot-family .foot-fam-ico { display: block; width: clamp(96px, 11vw, 100px); height: auto; aspect-ratio: 1; margin: 0 auto 6px; }
.foot-family h2 { font-size: var(--t3); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; text-transform: none; color: var(--ink); margin: 0 0 clamp(16px, 2.5vw, 28px); text-wrap: balance; }
.foot-family h2 span { display: block; margin-top: 6px; color: var(--ink-3); }
.foot-family ul { display: flex; gap: 20px; margin: 0 calc(50% - 50vw); padding: 12px calc(50vw - 50%) 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none; }
.foot-family ul::-webkit-scrollbar { display: none; }
.foot-family li { flex: 0 0 min(298px, 65.6vw); margin: 0; scroll-snap-align: center; }
.foot-family li + li { margin-top: 0; }
.foot-family a { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; height: 100%; min-height: clamp(304px, 40vh, 368px); padding: clamp(24px, 3vw, 34px); overflow: hidden; color: var(--ink-2); background: rgba(1, 1, 1, .001); border: var(--rule-w) solid rgba(1, 1, 1, .001); box-shadow: var(--shadow); border-radius: calc(var(--radius) * 1.5); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.foot-family strong { grid-row: 1; justify-self: center; font-size: var(--t-1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--hue, var(--accent-ink)) 55%, #000); }
.foot-family span { grid-row: 2; margin-top: 10px; font-size: var(--t2); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.foot-family a > svg { grid-row: 3; align-self: center; justify-self: center; width: clamp(96px, 11vw, 100px); height: auto; aspect-ratio: 1; margin: 24px 0; }
.foot-family small { grid-row: 4; justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: var(--rule-w) solid var(--rule); border-radius: var(--radius-pill); font-size: var(--t-1); font-weight: 500; line-height: 1.2; color: var(--ink-2); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.foot-family small::after { content: ""; display: inline-block; flex: none; width: .9em; height: .9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--dur) var(--ease); }
/* hover: the card lifts, the product's hue bar grows along its top, the domain pill fills with the hue and the mark's
   parts pop in one after another */
.foot-family a:hover, .foot-family a:focus-visible { color: var(--ink-2); transform: translateY(-4px); background: rgba(1, 1, 1, .031); border-color: rgba(1, 1, 1, .031); }
.foot-family a::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--hue, var(--accent)); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur) var(--ease); pointer-events: none; }
.foot-family a:hover::before, .foot-family a:focus-visible::before { transform: scaleX(1); }
.foot-family a:hover small, .foot-family a:focus-visible small { background: var(--hue, var(--accent-ink)); border-color: var(--hue, var(--accent-ink)); color: #fff; font-weight: 700; }
.foot-family a:hover small::after, .foot-family a:focus-visible small::after { transform: translateX(3px); }
.foot-family a > svg:not(.shelf-bg) > * { transform-box: fill-box; transform-origin: center; }
:is(.foot-family a:hover, .foot-family a:focus-visible) > svg:not(.shelf-bg) > * { animation: eco-mk-pop .64s cubic-bezier(.2, .7, .3, 1) both; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(2):nth-last-child(1) { animation-delay: .42s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(2):nth-last-child(2) { animation-delay: .21s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(3):nth-last-child(1) { animation-delay: .42s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(2):nth-last-child(3) { animation-delay: .14s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(3):nth-last-child(2) { animation-delay: .28s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(4):nth-last-child(1) { animation-delay: .42s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(2):nth-last-child(4) { animation-delay: .105s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(3):nth-last-child(3) { animation-delay: .21s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(4):nth-last-child(2) { animation-delay: .315s; }
.foot-family a > svg:not(.shelf-bg) > :nth-child(5):nth-last-child(1) { animation-delay: .42s; }
/* the mark again, large and faint in the card's far corner (app/footer.js clones it) */
.foot-family .shelf-bg { position: absolute; inset-block-end: -18%; inset-inline-end: -18%; width: 74%; height: auto; aspect-ratio: 1; margin: 0; opacity: .08; transform: rotate(-14deg); transition: transform .6s var(--ease), opacity var(--dur) var(--ease); pointer-events: none; }
.foot-family a > :not(.shelf-bg) { position: relative; }
.foot-family a:hover .shelf-bg, .foot-family a:focus-visible .shelf-bg { opacity: .14; transform: rotate(-6deg) scale(1.06); }
@media (prefers-contrast: more) { .foot-family a { --hue: var(--accent-ink) !important; } .foot-family .shelf-bg { display: none; } }
@media (max-width: 600px) { .foot-family ul { gap: 12px; } .foot-family a { min-height: 272px; } }
/* the shelves' previous / next buttons (app/footer.js adds them) */
.shelf-nav { display: flex; justify-content: flex-end; gap: 12px; }
.shelf-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-w) solid var(--rule); border-radius: var(--radius-pill); background: var(--field); color: var(--ink); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.shelf-nav button::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.shelf-nav .shelf-prev::before { transform: scaleX(-1); }
.shelf-nav button:hover { background: var(--ink); color: var(--bg); }

/* right to left: the arrows point the other way and the hue bar grows from the right */
.foot-family a:dir(rtl)::before { transform-origin: 100% 50%; }
.foot-family small:dir(rtl)::after { transform: scaleX(-1); }
.foot-family a:hover small:dir(rtl)::after, .foot-family a:focus-visible small:dir(rtl)::after { transform: scaleX(-1) translateX(3px); }
.shelf-nav .shelf-next:dir(rtl)::before { transform: scaleX(-1); }
.shelf-nav .shelf-prev:dir(rtl)::before { transform: none; }
.foot-family:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .eco *, .eco *::before, .eco *::after { transition: none !important; animation: none !important; } .eco .ci-draw { stroke-dashoffset: 0 !important; } }
@media print { .eco { display: none !important; } }
