/* The panel system (RULEBOOK 47). Loaded after every component sheet, so one change here moves every panel together.
   Three layers: the panel on the page, a raised surface inside it, a pill on that surface. */
:root{--gloss-ink:white;--panel-edge:color-mix(in srgb,var(--accent) 34%,var(--line));--panel-radius:18px;--panel-shadow:0 18px 44px rgb(0 0 0/.44),0 0 24px color-mix(in srgb,var(--accent) 8%,transparent);--layer:color-mix(in srgb,var(--ink) 4.5%,var(--panel));--layer-edge:color-mix(in srgb,var(--ink) 10%,transparent);--layer-lift:inset 0 1px 0 color-mix(in srgb,white 5%,transparent);--layer-radius:12px}
html[data-theme=light]{--gloss-ink:var(--accent);--panel-shadow:0 12px 30px rgb(0 0 0/.14),0 0 18px color-mix(in srgb,var(--accent) 12%,transparent);--layer-lift:inset 0 1px 0 color-mix(in srgb,white 70%,transparent)}
/* Layer zero: the page (RULEBOOK 49). Dark themes sit on near black, the way the campaign images do, and light themes on a light grey at the same contrast,
   so every panel stands off the page. The theme's own Background (--canvas) stays for inputs, wells and text on accent buttons.
   theme-boot.js and themes.js paint the phone browser bar with the same two mixes. */
:root{--page:color-mix(in srgb,var(--canvas) 20%,black)}
html[data-theme=light]{--page:color-mix(in srgb,var(--canvas) 93%,var(--ink))}
html{scrollbar-color:var(--accent) var(--page)}
html::-webkit-scrollbar-track{background:var(--page)}
html::-webkit-scrollbar-thumb{border-color:var(--page)}
/* On a light page, the controls that sit straight on it are lifted white like the panels, the way dark themes lift theirs off near black.
   Inside a panel, a popup or a menu they keep the theme's control grey (--control-well). A new white surface joins this list,
   or its fields and buttons turn white as well: tests/page-color.test.mjs checks every panel-colored rule against it. */
html[data-theme=light]{--control-well:var(--control)}
html[data-theme=light] body{--control:var(--panel)}
html[data-theme=light] :is(.ax-modal-panel,.product-card,.price-card,.evo,.policy-callout,.contact-grid article,.login-panel,.panel,.help-card,.license-card,.hero-visual,.product-detail figure,.product-specs,.product-plan,.prose,.help-article,.section.compact,.stat,.user-card,.email-card,.aff-card,.aff-stat,.am-section,.ax-table-wrap,.sm-detail,.sm-list,.preview section,.preview details,.partner-agreement,.campaign-card,.kit-card,.schedule-card,.cart-drawer,.code-prompt,.code-ask,.theme-picker,.workspace-sheet,.ax-select-options,.ax-date-pop,.search-suggestions,.chat-panel,.chat-heading,.consent-banner,.help-nav>div,.workspace-nav-group,.am-confirm,.ax-ask,.kit-viewer-bar,footer,.platform-reference,.account-promo,.aff-alert,.ax-row,.ax-subnav,.ax-table-search,.ax-detail td,.billing-toggle,.gallery-stage,[data-product-gallery],.help-figure,.install-path>div,.install-visual,.product-prices,.release-summary,.schedule-day,.schedule-menu-cell,.schedule-setup dl,.sm-comment.is-reply){--control:var(--control-well)}
@media(max-width:760px){html[data-theme=light] body>header #public-navigation{--control:var(--control-well)}}

/* Layer one: the panel. Solid theme fill so the moving backdrop stays behind it, accent rim, soft shadow. */
.product-card,.price-card,.evo,.policy-callout,.contact-grid article,.login-panel,.panel,.help-card,.license-card,.hero-visual,.product-detail figure,.product-specs,.product-plan,.prose,.help-article,.section.compact{background:var(--panel);border:1px solid var(--panel-edge);border-radius:var(--panel-radius);box-shadow:var(--panel-shadow)}
.product-specs,.product-plan,.prose,.help-article,.section.compact,.policy-callout{padding:clamp(20px,2.6vw,32px);box-sizing:border-box}
.price-card.featured{border-color:var(--accent);box-shadow:var(--panel-shadow),0 0 30px color-mix(in srgb,var(--accent) 18%,transparent)}

/* The same surface in My Axium and the admin hub. Lists that can run to hundreds of cards take the rim only: no shadow to paint on a phone (RULEBOOK 2). */
.stat,.user-card,.email-card,.aff-card,.aff-stat,.am-section,.ax-table-wrap,.sm-detail,.sm-list,.preview section,.preview details,.partner-agreement{background:var(--panel);border:1px solid var(--panel-edge);box-shadow:var(--panel-shadow)}
.account-promo{box-shadow:var(--panel-shadow)}
.campaign-card,.kit-card,.schedule-card{border-color:var(--panel-edge)}
.user-card:hover{border-color:var(--accent)}

.contact-grid p.eyebrow{color:var(--accent)}

/* Panels you can act on: accent edge, and a glow that is prepainted and faded in (RULEBOOK 1). */
.product-card,.price-card,.help-card{position:relative}
.product-card::after,.price-card::after,.help-card::after{content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;box-shadow:0 0 30px color-mix(in srgb,var(--accent) 24%,transparent);opacity:0;transition:opacity .16s}
.product-card:hover,.price-card:hover,.help-card:hover{border-color:var(--accent);box-shadow:var(--panel-shadow)}
.product-card:hover::after,.price-card:hover::after,.help-card:hover::after{opacity:1}

/* Layer two: a raised surface inside a panel, for a row, a tile or a block of copy. */
.ax-layer,.prose-layer,.policy-callout>p,.two-col>div,.install-visual{background:var(--layer);border:1px solid var(--layer-edge);border-radius:var(--layer-radius);box-shadow:var(--layer-lift);color:inherit}

/* Rows: the info on the left, its pill on the right. A list fills its card, so cards with the same number of rows line up to the pixel. */
.ax-layers{display:grid;grid-auto-rows:1fr;gap:8px;margin:0;padding:0}
.ax-layers li{padding:10px 12px 10px 14px;font-size:inherit;line-height:inherit}
.ax-layers li:before{content:none}
.ax-layer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.ax-layer-copy{display:grid;gap:2px;min-width:0}
.ax-layer-copy b{font-size:15px;font-weight:650;line-height:1.3;color:var(--ink)}
.ax-layer-copy span{font-size:13.5px;line-height:1.35;color:var(--muted)}
/* Layer three: the pill. */
.ax-tag{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:94px;min-height:24px;padding:2px 9px;border:1px solid color-mix(in srgb,var(--accent) 78%,transparent);border-radius:7px;background:color-mix(in srgb,var(--accent) 8%,var(--panel));color:var(--accent);font-size:12px;font-weight:650;letter-spacing:.02em;line-height:1.2;white-space:nowrap;box-shadow:0 0 9px color-mix(in srgb,var(--accent) 26%,transparent)}
html[data-theme=light] .ax-tag{color:color-mix(in srgb,var(--accent) 58%,var(--ink))}

/* Tiles: the same row with room for the full detail under its title and pill. */
.ax-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ax-tiles[data-count="2"],.ax-tiles[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.ax-tiles li{padding:14px 16px}
.ax-tiles .ax-layer{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:start;gap:8px 12px}
.ax-tiles .ax-layer-copy{display:contents}
.ax-tiles .ax-layer-copy b{grid-column:1;grid-row:1;align-self:center;font-size:16px}
.ax-tiles .ax-tag{grid-column:2;grid-row:1}
.ax-tiles .ax-layer-copy span{grid-column:1/-1;grid-row:2;font-size:14.5px;line-height:1.5}

/* Product cards. Titles and lines take the same height, so the rows of all three cards share their lines. */
.card-copy{gap:0}
.card-copy .ax-layers{flex:1 1 auto;min-height:0;margin-bottom:0}
.card-price{display:block;margin:0 0 8px;padding:10px 14px}
.card-price p{margin:0}
.card-copy .card-price .product-price-summary{font-size:15px;font-weight:650;line-height:1.3;color:var(--accent)}
.card-copy .card-price .trial-note{font-size:13.5px;font-weight:500;line-height:1.35;color:var(--muted)}
@media(min-width:801px){.product-grid .card-copy h3{min-height:2.5em}.product-grid .card-copy>p:not(.eyebrow){min-height:3.3em}}

/* Price cards. */
.price-card p.eyebrow{font-size:13px;letter-spacing:.12em;line-height:1.5;color:var(--accent)}
.price-card>p:not(.eyebrow){min-height:3.3em}
.price-box{display:grid;justify-content:stretch;gap:2px;margin:8px 0 8px;padding:14px 16px}
.price-box p{margin:0;font-size:14px;line-height:1.4}
.price-box p.trial-note{color:var(--accent)}
.price-box .price{margin:0;line-height:1.1}
.price-card>.ax-layers{flex:1 1 auto;margin-bottom:22px}

/* Product page: the gallery, then every fact once, then one plan panel, all on one column. */
.product-detail{padding-bottom:0}
.product-specs,.product-plan{width:min(100%,calc(80vh*1920/1032));max-width:none;margin:28px auto 0}
.product-plan{margin-bottom:clamp(48px,7vw,90px)}
.product-specs>h2,.product-plan>h2,.section.compact>h2{margin:0;font-size:28px}
.spec-group{margin-top:22px}
.spec-group>h3{margin:0 0 10px;font-size:13px;font-weight:650;letter-spacing:.12em;line-height:1.5;text-transform:uppercase;color:var(--accent)}
.product-specs p.spec-note{max-width:820px;margin:-4px 0 12px;font-size:15px;line-height:1.5;color:var(--muted)}
.plan-layers{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:16px}
.plan-layers .ax-layer{display:grid;gap:2px;justify-content:start;padding:14px 18px}
.plan-layers span{font-size:14px;color:var(--muted)}
.plan-layers strong{font-size:30px;font-weight:650;line-height:1.15;color:var(--ink)}
.plan-layers small{font-size:15px;font-weight:500;color:var(--muted)}
.product-plan p.plan-note{max-width:820px;margin:14px 0 0;font-size:15px;line-height:1.5;color:var(--muted)}
.product-plan .cta-group{margin:18px 0 10px}
.product-plan .micro{margin:0;color:var(--muted)}
.product-plan .micro a{color:var(--accent)}

/* Copy in layers: text pages, help articles, policy notes and the plan comparison. */
.prose,.help-body{display:grid;gap:10px}
.prose{margin-bottom:clamp(48px,7vw,90px)}
.prose>p,.help-body>p{margin:0 4px 4px}
.prose-layer{min-width:0;padding:18px 22px}
.prose-layer>h2{margin:0 0 8px;font-size:21px;line-height:1.25}
.prose-layer>:last-child{margin-bottom:0}
.prose-layer p,.prose-layer li{font-size:16px;line-height:1.6;color:var(--muted)}
.prose-layer strong{color:var(--ink)}
.policy-callout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
.policy-callout>h2{grid-column:1/-1;margin:0 0 6px;font-size:26px}
.policy-callout>p{margin:0;padding:16px 18px;font-size:16px;line-height:1.6;color:var(--muted)}
.policy-callout strong,.two-col strong{color:var(--ink)}
.policy-callout p a,.prose-layer a,.two-col a{color:var(--accent)}
.policy-callout>p:last-of-type:nth-of-type(odd){grid-column:1/-1}
.policy-callout>.text-link{display:flex;align-items:center;justify-content:center;min-height:46px;padding:6px 12px;text-align:center}
.section.compact{margin-bottom:clamp(48px,7vw,90px)}
.section.compact .two-col{gap:10px;margin-top:14px}
.section.compact .two-col>div{padding:16px 18px}
.two-col>div>h3{margin:0 0 6px;font-size:20px}
.two-col>div>p{margin:0;font-size:16px;line-height:1.6;color:var(--muted)}
.section.compact>.micro{margin:14px 4px 0}
.install-visual{margin:0}
/* The AX EVO strip reads at the same size as every other panel, with the same pill on the right. */
.evo p:not(.eyebrow){font-size:16px;line-height:1.55;color:var(--muted)}
.evo .pill{display:inline-flex;align-items:center;justify-content:center;min-width:94px;min-height:24px;padding:2px 9px;border:1px solid color-mix(in srgb,var(--accent) 78%,transparent);border-radius:7px;background:color-mix(in srgb,var(--accent) 8%,var(--panel));font-size:12px;font-weight:650;letter-spacing:.02em;box-shadow:0 0 9px color-mix(in srgb,var(--accent) 26%,transparent)}

/* Product card picture. The frame holds the picture, its motion layers and the gloss, so they open as one. */
/* Visible overflow lets a grid item refuse to shrink, so the card gives that up explicitly. */
.product-card{overflow:visible;min-width:0}
.card-art{z-index:1;overflow:visible;border-radius:17px 17px 0 0;background:var(--panel)}
.card-art-frame{position:absolute;inset:0;display:block;border-radius:inherit}
.card-art-frame img{display:block;opacity:1;border-radius:inherit}
/* The films' sheen: a third of the picture wide, white at 18 percent in the middle, crossing left to right in 1.2 s (render-action-films-v9 plate_assets). White does not show on a light picture, so light themes sweep in the accent. */
.card-gloss{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.card-gloss::before{content:'';position:absolute;top:0;bottom:0;left:0;width:33.4%;visibility:hidden;will-change:transform;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--gloss-ink) 1.1%,transparent) 12.5%,color-mix(in srgb,var(--gloss-ink) 4.5%,transparent) 25%,color-mix(in srgb,var(--gloss-ink) 10.1%,transparent) 37.5%,color-mix(in srgb,var(--gloss-ink) 18%,transparent) 50%,color-mix(in srgb,var(--gloss-ink) 10.1%,transparent) 62.5%,color-mix(in srgb,var(--gloss-ink) 4.5%,transparent) 75%,color-mix(in srgb,var(--gloss-ink) 1.1%,transparent) 87.5%,transparent)}
@keyframes card-gloss{from{visibility:visible;transform:translateX(-100%)}to{visibility:visible;transform:translateX(300%)}}
/* Touch screens have no hover: the gloss runs when the card reaches the reading area (site.js scroll-panel-active). */
html[data-axium-motion=playing] .scroll-panel-active .card-gloss::before{animation:card-gloss 1.2s linear}
@media(hover:hover) and (pointer:fine) and (max-width:800px){
 html[data-axium-motion=playing] .card-art:hover .card-gloss::before{animation:card-gloss 1.2s linear .16s}
}
/* A real pointer on a wide screen. The resting frame is laid out at twice its size, held there with will-change and scaled down, which keeps the thumbnail as
   sharp as a clean render. Never scale a picture up: it is drawn from the small copy and comes out soft. */
@media(hover:hover) and (pointer:fine) and (min-width:801px){
 .card-art{--open:2}
 .card-art-frame{inset:auto;top:0;left:0;width:calc(100%*var(--open));height:calc(100%*var(--open));border-radius:calc(17px*var(--open)) calc(17px*var(--open)) 0 0;transform:scale(calc(1/var(--open)));transform-origin:left top;will-change:transform}
}
/* The picture window (card-peek.js): the whole picture, one image pixel to one device pixel. Sizes and positions land on whole device pixels, and the rim is a shadow so it takes no room. It never takes the pointer, or it would sit between the mouse and the other cards. */
.card-peek{position:fixed;left:0;top:0;z-index:70;display:block;pointer-events:none;overflow:hidden;border-radius:14px;background:var(--panel);box-shadow:0 0 0 1px var(--accent),0 28px 70px rgb(0 0 0/.62),0 0 34px color-mix(in srgb,var(--accent) 30%,transparent);transform-origin:left top}
.card-peek[hidden]{display:none}
.card-peek img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none}
html[data-axium-motion=playing] .card-peek.is-open .card-gloss::before{animation:card-gloss 1.2s linear .1s}

/* The AX EVO panel: the card picture at the window's own portrait shape, opened to about half its native size. */
.evo-art,.home-page .evo-art{width:300px;max-width:100%;height:auto;min-height:0;aspect-ratio:952/1308;border:0;border-radius:7px;background:transparent;box-shadow:0 16px 40px rgb(0 0 0/.42)}
.evo-art .card-art-frame{border-radius:7px}
.evo-art .card-art-frame img{width:100%;max-width:none;height:100%;object-fit:contain;box-shadow:none}
.evo-included .evo-cta{display:inline-flex;align-items:center;justify-content:center;min-width:220px;min-height:54px;margin-top:18px;padding:12px 24px;font-size:17px;font-weight:600;color:var(--accent);border-color:var(--accent);background:var(--control)}
@media(min-width:761px){.evo-included{grid-template-columns:minmax(0,1fr) auto}}
@media(hover:hover) and (pointer:fine) and (min-width:801px){
 .evo-art .card-art-frame{inset:auto;top:calc(50% - 327px);right:0;left:auto;width:476px;height:654px;pointer-events:none;border-radius:10.5px;transform:scale(calc(300/476));transform-origin:right center;transition:transform .28s cubic-bezier(.22,.61,.36,1)}
 html[data-axium-motion=playing] .evo-art .card-art-frame{transition:transform .28s cubic-bezier(.22,.61,.36,1)!important}
 .evo-art .card-art-frame::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 26px 64px rgb(0 0 0/.62),0 0 28px color-mix(in srgb,var(--accent) 30%,transparent);opacity:0;transition:opacity .2s}
 .evo-art:hover{z-index:6}
 .evo-art:hover .card-art-frame{transform:none;transition-delay:.1s!important}
 .evo-art:hover .card-art-frame::after{opacity:1}
 html[data-axium-motion=playing] .evo-art:hover .card-gloss::before{animation:card-gloss 1.2s linear .16s}
}

/* The Discord button beside the hero buttons. Phones hide the other two for the compact storefront, and keep this one. */
.hero .actions{flex-wrap:wrap;gap:7px}
.hero .actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 12px;box-sizing:border-box;white-space:nowrap}
.hero .actions .button>span:empty:not(.social-icon){display:none}
.hero .actions .discord-cta{min-width:0;gap:7px;font-size:15px}
@media(max-width:760px){
 .home-page .hero-copy>.actions{display:flex;margin:18px 0 0}
 .home-page .hero-copy>.actions>.button:not(.discord-cta){display:none}
 .hero .actions .discord-cta{width:100%;min-height:52px;font-size:16px}
}

/* Below three columns the card stacks, so the picture takes the card's width. Side by side, the picture sizes itself from the tall text column and runs off the page. */
@media(max-width:800px){.product-grid .product-card{display:flex;flex-direction:column}}
/* Narrow cards put the short line under the title and pill, with the same shape as a tile. */
@media(max-width:1500px){
 .card-copy .ax-layers .ax-layer,.price-card .ax-layers .ax-layer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}
 .card-copy .ax-layers .ax-layer-copy,.price-card .ax-layers .ax-layer-copy{display:contents}
 .card-copy .ax-layers .ax-layer-copy b,.price-card .ax-layers .ax-layer-copy b{grid-column:1;grid-row:1;align-self:center}
 .card-copy .ax-layers .ax-tag,.price-card .ax-layers .ax-tag{grid-column:2;grid-row:1}
 .card-copy .ax-layers .ax-layer-copy span,.price-card .ax-layers .ax-layer-copy span{grid-column:1/-1;grid-row:2}
}
/* Too narrow for three columns of rows: one card to a row, its picture beside its title, and the rows across the card in two columns. */
@media(min-width:801px) and (max-width:1240px){
 .product-grid,.pricing-grid{grid-template-columns:minmax(0,1fr)}
 .product-grid .product-card{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:start;padding-bottom:24px}
 .product-grid .product-card .card-copy{display:contents}
 .product-grid .card-art{grid-column:1;grid-row:1/span 5;border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:17px 0 17px 0}
 .product-grid .card-copy>*{grid-column:2;margin-right:26px;margin-left:26px}
 .product-grid .card-copy>.eyebrow{margin-top:24px}
 .product-grid .card-copy>.ax-layers,.product-grid .card-copy>.product-card-actions{grid-column:1/-1;margin-top:20px;margin-left:24px;margin-right:24px}
 .product-grid .card-copy>.ax-layers{grid-template-columns:repeat(2,minmax(0,1fr))}
 .product-grid .card-copy h3,.product-grid .card-copy>p:not(.eyebrow),.price-card>p:not(.eyebrow),.price-card h2{min-height:0}
 .price-card>.ax-layers{grid-template-columns:repeat(2,minmax(0,1fr))}
 .price-card>.ax-layers>li:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:1000px){.ax-tiles,.ax-tiles[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 :root{--panel-shadow:0 10px 24px rgb(0 0 0/.42),0 0 14px color-mix(in srgb,var(--accent) 8%,transparent)}
 html[data-theme=light]{--panel-shadow:0 8px 20px rgb(0 0 0/.12),0 0 12px color-mix(in srgb,var(--accent) 10%,transparent)}
 .ax-tiles,.ax-tiles[data-count="2"],.ax-tiles[data-count="4"]{grid-template-columns:minmax(0,1fr)}
 .ax-layers{grid-auto-rows:auto}
 .policy-callout{grid-template-columns:minmax(0,1fr)}
 .policy-callout>h2{font-size:24px}
 .prose-layer{padding:16px}
 .product-specs>h2,.product-plan>h2,.section.compact>h2{font-size:26px}
}

/* On a phone the AX EVO card is one column, and its Explore Product button closes it, centred under the picture (owner, 11-07).
   The copy block lets its lines into the card's grid, so the button can take its place after the picture. The one column is
   minmax(0,1fr), and so is the picture's own one-column grid: a plain 1fr or auto column could not shrink below the picture's
   resting 300 px, so on a 390 px phone the card ran 8 px into its right padding and sat 4 px right of centre. */
@media(max-width:760px){
 .evo-included{grid-template-columns:minmax(0,1fr);row-gap:0}
 .evo-included>div{display:contents}
 .evo-included>.evo-shot{order:1;margin-top:22px;grid-template-columns:minmax(0,1fr)}
 .evo-included .evo-cta{order:2;justify-self:center;margin-top:24px}
}
