/* Abiyx 2026 design layer. Loaded after theme.css: re-maps shared tokens (inner pages pick them up)
   and adds the home page (ax-*) components.
   Palette: abyss plum #2B1A4F · ink #160F24 · signal lime #D6FF4D · shell #F4F1EA */
:root {
  --md-primary: #4A2A8C;
  --md-primary-dark: #2B1A4F;
  --md-primary-soft: #7A5BC9;
  --md-primary-container: #ECE6F8;
  --md-secondary: #D6FF4D;
  --md-secondary-dark: #B9E62A;
  --md-on-secondary: #160F24;
  --md-tertiary: #2B1A4F;
  --md-surface: #F4F1EA;
  --md-surface-low: #ECE7DD;
  --md-surface-container: #FFFFFF;
  --md-outline: #E2DCCF;
  --md-outline-strong: #C8BFAE;
  --md-on-surface: #160F24;
  --md-on-surface-variant: #5B5468;
  --md-radius: 12px;
  --md-radius-lg: 18px;
  --md-radius-xl: 26px;
  --md-elev-1: 0 1px 2px rgba(22, 15, 36, .06);
  --md-elev-2: 0 20px 44px -26px rgba(22, 15, 36, .4);
  --md-font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ax-display: "Unbounded", "Onest", system-ui, sans-serif;
  --ax-abyss: #2B1A4F;
  --ax-deep: #160F24;
  --ax-lime: #D6FF4D;
  --md-max: 1200px;
  --tone: #4A2A8C; --tone-soft: #ECE6F8; --tone-ink: #3A2170;
}
.ax-tone[data-tone="metab"]  { --tone: #E2412B; --tone-soft: #FCE7E2; --tone-ink: #A52C1B; }
.ax-tone[data-tone="glyco"]  { --tone: #05707F; --tone-soft: #DDF0F2; --tone-ink: #045460; }
.ax-tone[data-tone="neuro"]  { --tone: #6A4FE0; --tone-soft: #ECE8FF; --tone-ink: #4A33B0; }
.ax-tone[data-tone="sound"]  { --tone: #17738F; --tone-soft: #E0EFF4; --tone-ink: #0F566C; }
.ax-tone[data-tone="smile"]  { --tone: #00897A; --tone-soft: #DCF4EF; --tone-ink: #00675C; }
.ax-tone[data-tone="gut"]    { --tone: #5B7A2B; --tone-soft: #ECF1DF; --tone-ink: #435B1F; }
.ax-tone[data-tone="vigor"]  { --tone: #A3122A; --tone-soft: #F8E1E5; --tone-ink: #7C0D20; }
.ax-tone[data-tone="flow"]   { --tone: #2A6496; --tone-soft: #E1ECF6; --tone-ink: #1E4B71; }
.ax-tone[data-tone="glow"]   { --tone: #A24E62; --tone-soft: #F7E5E9; --tone-ink: #7C3A4A; }
.ax-tone[data-tone="vision"] { --tone: #B9770A; --tone-soft: #FBF0DA; --tone-ink: #845507; }
.ax-tone[data-tone="motion"] { --tone: #4B3BD1; --tone-soft: #E8E6FB; --tone-ink: #3528A0; }
.ax-tone[data-tone="paw"]    { --tone: #D06A14; --tone-soft: #FDEBD8; --tone-ink: #9B4E0E; }

.md-body { background: var(--md-surface); font-family: var(--md-font); color: var(--md-on-surface); font-size: 17px; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--ax-display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.md-body :focus-visible { outline: 3px solid var(--md-primary); outline-offset: 3px; }
.md-container { width: min(var(--md-max), calc(100% - 40px)); max-width: none; margin-inline: auto; padding-inline: 0; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons + inputs */
.md-btn { border-radius: 12px; min-height: 48px; padding: 0 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.md-btn:hover { transform: translateY(-1px); }
.md-btn--gold { background: var(--ax-lime); color: var(--ax-deep); box-shadow: 0 10px 24px -14px rgba(120, 150, 0, .9); }
.md-btn--gold:hover { background: #E3FF7A; }
.md-btn--teal { background: var(--ax-abyss); color: #fff; }
.md-btn--teal:hover { background: var(--ax-deep); }
.md-btn--ghost { background: transparent; color: var(--md-on-surface); box-shadow: inset 0 0 0 1.5px var(--md-outline-strong); }
.md-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--md-on-surface); }
.md-input { border-radius: 12px; border: 1.5px solid var(--md-outline); background: #fff; min-height: 48px; padding: 0 16px; font: inherit; }
.md-input:focus { border-color: var(--md-primary); outline: none; box-shadow: 0 0 0 4px var(--md-primary-container); }

/* header */
.md-sticky { position: sticky; top: 0; z-index: 50; }
.md-header { background: rgba(244, 241, 234, .88); 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; }
.md-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--md-on-surface); font-family: var(--ax-display); font-weight: 700; font-size: 24px; letter-spacing: -0.04em; }
.md-logo::before { display: none; content: none; }
.md-logo .ax-mark { flex: 0 0 auto; border-radius: 10px; }
.md-logo--light { color: #fff; }
.md-nav-link { color: var(--md-on-surface-variant); font-weight: 600; border-radius: 10px; padding: 8px 14px; text-decoration: none; }
.md-nav-link:hover { color: var(--md-on-surface); background: rgba(43, 26, 79, .07); }
.md-icon-btn { border-radius: 12px; }

/* product cards */
.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 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; }
.md-product-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(22, 15, 36, .55); }
.md-product-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); z-index: 1; }
.md-product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--tone-soft), #fff); padding: 18px; }
.md-product-card__media img { width: 100%; height: 100%; 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: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px dashed var(--md-outline); }
.md-product-card__body h2 { font-size: 19px; margin: 0; line-height: 1.2; }
.md-product-card__body h2 a { text-decoration: none; color: inherit; }
.md-product-card__body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.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: 8px; font-size: 14px; font-weight: 700; color: var(--md-on-surface); display: inline-flex; align-items: center; gap: 6px; }
.md-product-card:hover .md-product-card__go { color: var(--tone-ink); }

/* inner pages */
.md-main { padding-top: 40px; padding-bottom: 80px; }
.md-page-title { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
.md-bc { font-size: 14px; color: var(--md-on-surface-variant); }
.md-pager a, .md-pager span { border-radius: 10px; }
.md-pager .is-current { background: var(--ax-abyss); color: #fff; }

/* footer */
.md-footer.ax-footer { background: var(--ax-deep); color: #B8B0C9; border: 0; padding: 72px 0 36px; margin-top: 0; }
.ax-footer a { color: #EDE8F7; text-decoration: none; }
.ax-footer a:hover { color: var(--ax-lime); }
.ax-footer__top { display: grid; grid-template-columns: 1.2fr .7fr 1.6fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ax-footer__brand p, .ax-footer .md-footer-cms { margin: 18px 0 0; max-width: 24rem; line-height: 1.6; }
.ax-footer__col { display: flex; flex-direction: column; gap: 10px; }
.ax-footer .md-kicker { color: var(--ax-lime); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.ax-footer__cats div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.ax-footer__legal { font-size: 13.5px; line-height: 1.6; margin: 28px 0 10px; max-width: 70rem; }
.ax-footer .md-copy { font-size: 13.5px; margin: 0; }

/* ---------------- home ---------------- */
.ax-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--md-primary); }
.ax-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }

.ax-hero { position: relative; overflow: hidden; padding: 72px 0 40px; color: #F2EEFA;
  background: radial-gradient(900px 500px at 85% 20%, rgba(122, 91, 201, .45), transparent 65%), linear-gradient(180deg, #2B1A4F 0%, #1D1236 70%, #160F24 100%); }
.ax-hero .ax-eyebrow { color: var(--ax-lime); }
.ax-hero__grid > * { min-width: 0; }
.ax-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.ax-hero h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; margin: 0 0 22px; font-weight: 600; color: #fff; }
.ax-lead { font-size: 19px; color: #CFC6E3; max-width: 34rem; margin: 0 0 30px; }
.ax-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px; max-width: 560px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .7); color: var(--md-on-surface); }
.ax-search:focus-within { box-shadow: 0 0 0 4px rgba(214, 255, 77, .5), 0 24px 50px -28px rgba(0, 0, 0, .7); }
.ax-search__icon { color: var(--md-on-surface-variant); display: grid; }
.ax-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; min-height: 46px; }
.ax-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ax-quick a { text-decoration: none; padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); color: #EDE8F7; font-size: 14px; font-weight: 600; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.ax-quick a:hover { background: var(--ax-lime); color: var(--ax-deep); border-color: var(--ax-lime); }

.ax-sonar { position: relative; aspect-ratio: 1; width: min(500px, 100%); justify-self: center; }
.ax-sonar__rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ax-lime); }
.ax-sonar::after { content: ""; position: absolute; inset: 2%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(214, 255, 77, .22), transparent 22%); animation: ax-sweep 8s linear infinite; pointer-events: none; }
@keyframes ax-sweep { to { transform: rotate(360deg); } }
.ax-sonar__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--ax-lime); color: var(--ax-deep); display: grid; place-content: center; text-align: center; z-index: 2; box-shadow: 0 0 0 10px rgba(214, 255, 77, .15); }
.ax-sonar__core strong { font-family: var(--ax-display); font-size: clamp(22px, 2.6vw, 34px); line-height: 1; }
.ax-sonar__core span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
.ax-sonar__dot { position: absolute; z-index: 3; width: 21%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #fff; transform: translate(-50%, -50%); transition: transform .25s ease; }
.ax-sonar__dot img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 50%; padding: 12%; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); }
.ax-sonar__dot span { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.15; background: rgba(22, 15, 36, .7); padding: 3px 8px; border-radius: 6px; }
.ax-sonar__dot:hover { transform: translate(-50%, -50%) scale(1.07); }
.ax-sonar__dot--1 { left: 50%; top: 12%; }
.ax-sonar__dot--2 { left: 86%; top: 32%; }
.ax-sonar__dot--3 { left: 80%; top: 76%; }
.ax-sonar__dot--4 { left: 44%; top: 89%; }
.ax-sonar__dot--5 { left: 13%; top: 66%; }
.ax-sonar__dot--6 { left: 16%; top: 25%; }

.ax-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.ax-stats div { padding: 22px 22px 0 0; }
.ax-stats div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ax-stats dt { font-family: var(--ax-display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--ax-lime); }
.ax-stats dd { margin: 8px 0 0; color: #CFC6E3; font-size: 14px; }

.ax-main { padding: 0; }
.ax-section { padding: 100px 0 0; }
.ax-head { max-width: 46rem; margin: 0 0 40px; }
.ax-head h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.06; margin: 0; }
.ax-head p:not(.ax-eyebrow) { font-size: 18px; color: var(--md-on-surface-variant); margin: 14px 0 0; }
.ax-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.ax-head--split > p { margin: 0 !important; }
.ax-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.ax-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 2px solid var(--md-on-surface); }
.ax-index__row { display: grid; grid-template-columns: 44px 44px 1fr auto 28px; gap: 14px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--md-outline); text-decoration: none; color: var(--md-on-surface); transition: background .18s ease, padding .18s ease; }
.ax-index__row:hover { background: var(--tone-soft); padding-left: 14px; }
.ax-index__no { font-family: var(--ax-display); font-size: 14px; color: var(--md-on-surface-variant); }
.ax-index__row .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone-ink); }
.ax-index__row .ci svg { width: 22px; height: 22px; }
.ax-index__title { font-weight: 700; font-size: 18px; }
.ax-index__count { font-size: 14px; color: var(--md-on-surface-variant); font-variant-numeric: tabular-nums; }
.ax-index__go { color: var(--tone); display: grid; transition: transform .18s ease; }
.ax-index__row:hover .ax-index__go { transform: translateX(4px); }

.ax-depth { margin-top: 100px; padding: 96px 0; background: var(--ax-abyss); color: #EDE8F7; position: relative; overflow: hidden; }
.ax-depth .ax-eyebrow { color: var(--ax-lime); }
.ax-depth h2 { color: #fff; }
.ax-layers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ax-layers li { padding: 28px 30px 32px; border-left: 1px solid rgba(255, 255, 255, .16); position: relative; }
.ax-layers li:nth-child(2) { margin-top: 36px; }
.ax-layers li:nth-child(3) { margin-top: 72px; }
.ax-layers__lvl { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-deep); background: var(--ax-lime); padding: 4px 10px; border-radius: 6px; }
.ax-layers h3 { font-size: 26px; margin: 18px 0 10px; color: #fff; }
.ax-layers p { margin: 0; color: #CFC6E3; }

.ax-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 48px; border-radius: var(--md-radius-xl); background: var(--ax-lime); color: var(--ax-deep); }
.ax-cta h2 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 8px; }
.ax-cta p { margin: 0; font-size: 17px; }
.ax-search--light { box-shadow: none; border: 2px solid var(--ax-deep); }
.ax-search--light .md-btn--gold { background: var(--ax-deep); color: var(--ax-lime); box-shadow: none; }
.ax-disclosure { margin: 26px 0 96px; font-size: 14px; color: var(--md-on-surface-variant); max-width: 64rem; }

@media (max-width: 1000px) {
  .ax-hero__grid, .ax-head--split, .ax-cta { grid-template-columns: 1fr; }
  .ax-sonar { max-width: 420px; }
  .ax-stats { grid-template-columns: 1fr 1fr; }
  .ax-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ax-index { grid-template-columns: 1fr; }
  .ax-layers { grid-template-columns: 1fr; }
  .ax-layers li:nth-child(n) { margin-top: 0; }
  .ax-footer__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .ax-hero { padding-top: 44px; }
  .ax-search { width: 100%; }
  .ax-sonar { width: 84%; }
  .ax-sonar__dot { width: 22%; }
  .ax-sonar__dot span { font-size: 11px; }
  .ax-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ax-search .md-btn { padding: 0 14px; }
  .ax-index__row { grid-template-columns: 32px 40px 1fr auto; }
  .ax-index__go { display: none; }
  .ax-section { padding-top: 72px; }
  .ax-cta { padding: 30px 22px; }
  .md-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-product-card__body h2 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-sonar::after { animation: none; }
  .ax-index__row, .ax-sonar__dot, .md-product-card, .md-product-card__media img, .md-btn { transition: none; }
}
