/* Motion and interaction, in one place. Tokens: slow things ease out, small answers overshoot a little.
   foundation.css switches all of it off under reduced motion; motion.js does not run there either. */
.ar-site { --ar-ease: cubic-bezier(.22, 1, .36, 1); --ar-spring: cubic-bezier(.34, 1.56, .64, 1); --ar-spot: color-mix(in srgb, var(--ar-accent) 13%, transparent); }
.ar-site [id] { scroll-margin-top: 96px; }

/* In-page links glide natively, so focus, history and :target stay the browser's. */
@media (prefers-reduced-motion: no-preference) { html:has(.ar-site) { scroll-behavior: smooth; } }

/* Pages cross-fade and the header stays put. Chrome and Safari; others just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .ar-site .ar-header { view-transition-name: ar-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
/* Colour scheme: the new one opens as a circle from the toggle (shell.js). */
html.ar-vt-theme .ar-site .ar-header { view-transition-name: none; }
html.ar-vt-theme::view-transition-old(root) { animation: none; }
html.ar-vt-theme::view-transition-new(root) { animation: ar-theme-open .6s var(--ar-vt-ease, cubic-bezier(.22, 1, .36, 1)) both; mix-blend-mode: normal; }
@keyframes ar-theme-open { from { clip-path: circle(0 at var(--ar-vt-x) var(--ar-vt-y)); } to { clip-path: circle(var(--ar-vt-r) at var(--ar-vt-x) var(--ar-vt-y)); } }

/* First screen: one orchestrated moment, then it rests. */
@keyframes ar-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ar-word { from { transform: translateY(110%); } }
.ar-site .ar-word { display: inline-block; overflow: clip; padding: .1em .08em .14em; margin: -.1em -.08em -.14em; vertical-align: top; }
.ar-site .ar-word > span { display: inline-block; animation: ar-word .9s var(--ar-ease) backwards; animation-delay: calc(var(--i) * 70ms + 60ms); }
.ar-site .ar-hero__copy .ar-lead { animation: ar-rise .7s var(--ar-ease) .42s backwards; }
.ar-site .ar-hero__copy .ar-hero__price { animation: ar-rise .7s var(--ar-ease) .48s backwards; }
.ar-site .ar-hero__copy .ar-actions { animation: ar-rise .7s var(--ar-ease) .54s backwards; }
.ar-site .ar-hero__claims li { animation: ar-rise .7s var(--ar-ease) backwards; animation-delay: calc(var(--i) * 70ms + .68s); }
/* The four lines fill once, one after the other, then go quiet until the pointer asks. */
@keyframes ar-claim-sweep { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.ar-site .ar-hero__claims a::before { content: ""; position: absolute; inset: -1px 0 auto; height: 2px; background: var(--ar-accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ar-ease); animation: ar-claim-sweep 1.2s ease-out backwards; animation-delay: calc(var(--i, 0) * 280ms + 1s); }
.ar-site .ar-hero__claims a { transition: color .2s ease-out, transform .3s var(--ar-ease); }
.ar-site .ar-hero__claims a:is(:hover, :focus-visible) { color: var(--ar-accent-strong); }
.ar-site .ar-hero__claims a:is(:hover, :focus-visible)::before { transform: scaleX(1); }

/* The glow follows the pointer; the hero fades a little as it leaves. */
.ar-site [data-ar-glow] { position: relative; }
.ar-site [data-ar-glow]::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease-out; background: radial-gradient(520px circle at var(--ar-gx, 50%) var(--ar-gy, 30%), var(--ar-glow, var(--ar-spot)), transparent 70%); }
.ar-site [data-ar-glow] > * { position: relative; z-index: 1; }
.ar-site .ar-closing { --ar-glow: rgb(255 255 255 / .14); }
@media (hover: hover) and (pointer: fine) { .ar-site [data-ar-glow]:hover::before { opacity: 1; } }
@supports (animation-timeline: view()) {
  @keyframes ar-hero-leave { to { opacity: .35; transform: translateY(-28px); } }
  .ar-site .ar-hero__copy { animation: ar-hero-leave linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
}

/* Sections coming up. */
/* Important: for this moment it outranks a row's or a button's own transform and transition. */
.ar-site .ar-reveal { opacity: 0 !important; transform: translateY(18px) !important; }
.ar-site .ar-reveal.is-in { opacity: 1 !important; transform: none !important; transition: opacity .6s ease-out, transform .8s var(--ar-ease) !important; transition-delay: calc(var(--ar-i, 0) * 65ms) !important; }

/* Buttons: lift, a sheen on the primary, a ripple where the press landed. */
.ar-site .ar-button:not(.ar-dock__jump) { position: relative; overflow: hidden; isolation: isolate; transition: background-color .15s ease-out, transform .3s var(--ar-ease), box-shadow .3s ease-out; transform: translate(var(--ar-mx, 0), var(--ar-my, 0)); }
.ar-site .ar-button:not(.ar-button--secondary, .ar-button--link, .ar-dock__jump)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%); transform: translateX(-110%); }
.ar-site .ar-button:not(.ar-dock__jump):active { transform: translate(var(--ar-mx, 0), var(--ar-my, 0)) scale(.97); transition-duration: .08s; }
@media (hover: hover) and (pointer: fine) {
  .ar-site .ar-button:not(.ar-dock__jump):hover { transform: translate(var(--ar-mx, 0), calc(var(--ar-my, 0px) - 1px)); }
  .ar-site .ar-button:not(.ar-dock__jump, .ar-button--link):hover { box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--ar-text) 55%, transparent); }
  .ar-site .ar-button:hover::after { transform: translateX(110%); transition: transform .7s var(--ar-ease); }
}
@keyframes ar-ripple { from { opacity: .28; transform: scale(0); } to { opacity: 0; transform: scale(1); } }
.ar-site .ar-ripple { position: absolute; z-index: -1; border-radius: 50%; background: currentColor; pointer-events: none; animation: ar-ripple .6s ease-out forwards; }
.ar-site :is(.ar-color-toggle, .ar-menu-toggle) { position: relative; overflow: hidden; isolation: isolate; transition: background-color .15s ease-out, transform .3s var(--ar-spring); }
.ar-site :is(.ar-color-toggle, .ar-menu-toggle):active { transform: scale(.9); }

/* Header. */
.ar-site .ar-header__inner { transition: width .45s var(--ar-ease), box-shadow .3s ease-out; }
/* Width only: changing the height of a sticky header would move the page and could loop at the threshold. */
.ar-site .ar-header[data-ar-scrolled] .ar-header__inner { width: min(880px, 100%); box-shadow: var(--ar-shadow); }
.ar-site .ar-logo { transition: transform .4s var(--ar-spring); }
@media (min-width: 981px) {
  .ar-site .ar-nav { position: relative; }
  .ar-site .ar-nav ul { position: relative; z-index: 1; }
  .ar-site .ar-nav__pill { position: absolute; top: 50%; left: 0; height: 34px; margin-top: -17px; border-radius: 999px; background: var(--ar-surface-raised); opacity: 0; pointer-events: none; transition: transform .35s var(--ar-ease), width .35s var(--ar-ease), opacity .2s ease-out; }
  .ar-site .ar-nav__pill[data-on] { opacity: 1; }
}
.ar-site .ar-nav__pill { display: none; }
@media (min-width: 981px) { .ar-site .ar-nav__pill { display: block; } }
@keyframes ar-toggle-in { from { opacity: 0; transform: rotate(-70deg) scale(.6); } }
.ar-site .ar-color-toggle svg { animation: ar-toggle-in .5s var(--ar-spring); transition: transform .4s var(--ar-spring); }
.ar-site .ar-menu-line { transform-origin: 12px 12px; transition: transform .35s var(--ar-ease); }
.ar-site .ar-menu-toggle[aria-expanded="true"] .ar-menu-line:first-child { transform: rotate(45deg) translateY(4px); }
.ar-site .ar-menu-toggle[aria-expanded="true"] .ar-menu-line:last-child { transform: rotate(-45deg) translateY(-4px); }
@media (max-width: 980px) {
  @keyframes ar-drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
  .ar-site .ar-nav:not([hidden]) { animation: ar-drop .35s var(--ar-ease); transform-origin: top; }
  .ar-site .ar-nav:not([hidden]) li { animation: ar-rise .45s var(--ar-ease) backwards; }
  .ar-site .ar-nav:not([hidden]) li:nth-child(2) { animation-delay: 40ms; }
  .ar-site .ar-nav:not([hidden]) li:nth-child(3) { animation-delay: 80ms; }
  .ar-site .ar-nav:not([hidden]) li:nth-child(4) { animation-delay: 120ms; }
  .ar-site .ar-nav:not([hidden]) li:nth-child(5) { animation-delay: 160ms; }
}
.ar-site .ar-read-line { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 50; height: 2px; background: var(--ar-accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Tabs: the open row shows its text, and a panel eases in. */
@keyframes ar-panel-in { from { opacity: 0; transform: translateY(10px) scale(.992); } }
.ar-site [role="tabpanel"]:not([hidden]) { animation: ar-panel-in .5s var(--ar-ease); }
.ar-site .ar-listing[data-ar-ready] .ar-listing__row { grid-template-rows: auto 0fr; gap: 0; transition: box-shadow .15s ease-out, grid-template-rows .45s var(--ar-ease), padding .3s var(--ar-ease); }
.ar-site .ar-listing[data-ar-ready] .ar-listing__row[aria-selected="true"] { grid-template-rows: auto 1fr; }
.ar-site .ar-listing[data-ar-ready] .ar-listing__text { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s ease-out; }
.ar-site .ar-listing[data-ar-ready] .ar-listing__row[aria-selected="true"] .ar-listing__text { padding-top: 6px; opacity: 1; }
.ar-site .ar-listing__name { display: block; transition: color .2s ease-out, transform .35s var(--ar-ease); }
.ar-site .ar-video-toggle { transition: opacity .2s ease-out, transform .3s var(--ar-spring); }
.ar-site .ar-video-toggle:active { transform: scale(.88); }

/* Product pieces assemble when they appear. */
@keyframes ar-line-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ar-pop { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.06); } }
.ar-site .ar-piece--wait:not(.is-live) :is(.ar-piece__thread > *, .ar-piece__rows > *, .ar-piece__stats > *, .ar-piece__ok, .ar-piece__action) { opacity: 0; }
.ar-site .ar-piece.is-live :is(.ar-piece__rows > *, .ar-piece__stats > *) { animation: ar-line-in .55s var(--ar-ease) backwards; }
.ar-site .ar-piece.is-live .ar-piece__thread > * { animation: ar-line-in .5s var(--ar-ease) backwards; }
.ar-site .ar-piece.is-live :is(.ar-piece__thread, .ar-piece__rows, .ar-piece__stats) > :nth-child(2) { animation-delay: .45s; }
.ar-site .ar-piece.is-live :is(.ar-piece__thread, .ar-piece__rows, .ar-piece__stats) > :nth-child(3) { animation-delay: .9s; }
.ar-site .ar-piece.is-live :is(.ar-piece__thread, .ar-piece__rows, .ar-piece__stats) > :nth-child(4) { animation-delay: 1.35s; }
.ar-site .ar-piece.is-live :is(.ar-piece__ok, .ar-piece__action) { animation: ar-pop .5s var(--ar-spring) .35s backwards; }
.ar-site .ar-capability .ar-piece { transform: perspective(900px) rotateX(var(--ar-rx, 0deg)) rotateY(var(--ar-ry, 0deg)); transition: transform .35s var(--ar-ease); }

/* Cards lift, and a soft light follows the pointer inside them. */
.ar-site :is(.ar-strip__plan, .ar-route, .ar-capability, .ar-plan, .ar-contact__form, .ar-question) { position: relative; transition: background-color .15s ease-out, transform .4s var(--ar-ease), box-shadow .4s ease-out; }
.ar-site :is(.ar-strip__plan, .ar-route, .ar-capability, .ar-plan, .ar-contact__form, .ar-question)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease-out; background: radial-gradient(320px circle at var(--ar-sx, 50%) var(--ar-sy, 50%), var(--ar-spot), transparent 70%); }
.ar-site .ar-tag { display: inline-block; transition: transform .35s var(--ar-spring); }
@media (hover: hover) and (pointer: fine) {
  .ar-site :is(.ar-strip__plan, .ar-route, .ar-capability, .ar-plan, .ar-contact__form, .ar-question):hover::after { opacity: 1; }
  .ar-site :is(.ar-strip__plan, .ar-route):hover { transform: translateY(-4px); box-shadow: var(--ar-shadow); }
  .ar-site .ar-strip__plan:hover .ar-tag { transform: rotate(-3deg) scale(1.06); }
  .ar-site .ar-brand:hover .ar-logo { transform: scale(1.1) rotate(-5deg); }
  .ar-site .ar-color-toggle:hover svg { transform: rotate(18deg); }
  .ar-site .ar-listing__row:hover .ar-listing__name,
  .ar-site .ar-faq summary:hover { transform: translateX(4px); }
  .ar-site .ar-extras > div:hover .ar-icon { transform: scale(1.14) rotate(-4deg); }
  .ar-site .ar-footer__column a:hover { transform: translateX(3px); }
  .ar-site .ar-rows a:hover { padding-left: 10px; }
  .ar-site .ar-results li:hover { transform: translateX(4px); }
  .ar-site .ar-cover:hover { transform: translateY(-4px); box-shadow: var(--ar-shadow); }
  .ar-site .ar-chips a:hover { transform: translateY(-2px); }
  .ar-site .ar-social-labels a:hover { transform: translateY(-1px); }
  .ar-site .ar-not-found__code:hover { animation: ar-wobble .6s var(--ar-spring); }
}
.ar-site .ar-extras .ar-icon { transition: transform .4s var(--ar-spring); }
.ar-site .ar-footer__column a { display: inline-block; transition: color .15s ease-out, transform .3s var(--ar-ease); }
.ar-site .ar-rows a { transition: color .15s ease-out, padding .35s var(--ar-ease); }
.ar-site .ar-results li { transition: transform .35s var(--ar-ease); }
.ar-site .ar-cover { transition: background-color .2s ease-out, transform .4s var(--ar-ease), box-shadow .4s ease-out; }
.ar-site .ar-table :is(th, td) { transition: background-color .3s ease-out; }
.ar-site .ar-chips a, .ar-site .ar-social-labels a { display: inline-block; transition: color .15s ease-out, transform .3s var(--ar-ease); }
@keyframes ar-wobble { 25% { transform: rotate(-3deg) scale(1.03); } 60% { transform: rotate(2deg); } }
.ar-site .ar-not-found__code { display: inline-block; }

/* Wide screens only: on narrow ones the first column is sticky and needs its solid ground. */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .ar-site .ar-table tbody tr:hover :is(th, td) { background-color: color-mix(in srgb, var(--ar-text) 4%, transparent); }
  .ar-site .ar-table tbody tr:hover .ar-table__on { background-color: var(--ar-surface-accent); }
}

/* Links: the line grows from the left instead of snapping on. */
.ar-site :is(.ar-lead-post h2 a, .ar-post-card :is(h2, h3) a, .ar-results h2 a, .ar-footer__email, .ar-text-link) { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .4s var(--ar-ease), color .15s ease-out; }
.ar-site :is(.ar-lead-post h2 a, .ar-post-card :is(h2, h3) a, .ar-results h2 a, .ar-footer__email, .ar-text-link):is(:hover, :focus-visible) { background-size: 100% 1.5px; text-decoration: none; }

/* Questions open and close, in the browsers that can animate it; the others just open. */
.ar-site .ar-faq { interpolate-size: allow-keywords; }
.ar-site .ar-faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .4s var(--ar-ease), opacity .3s ease-out, content-visibility .4s allow-discrete; }
.ar-site .ar-faq details[open]::details-content { block-size: auto; opacity: 1; }
.ar-site .ar-faq summary { cursor: pointer; transition: transform .35s var(--ar-ease), color .15s ease-out; }
.ar-site .ar-faq summary:hover { color: var(--ar-accent-strong); }
.ar-site .ar-faq summary::after { content: "+"; display: inline-block; transition: transform .35s var(--ar-spring); }
.ar-site .ar-faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Prezzi: the slider's track fills, the billing pill slides, plans and ticks arrive. */
.ar-site .ar-slider input { -webkit-appearance: none; appearance: none; cursor: grab; --ar-track: linear-gradient(to right, var(--ar-accent) var(--ar-fill, 48%), var(--ar-line) var(--ar-fill, 48%)); }
.ar-site .ar-slider input:active { cursor: grabbing; }
.ar-site .ar-slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--ar-track); }
.ar-site .ar-slider input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--ar-track); }
.ar-site .ar-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--ar-accent); box-shadow: 0 0 0 0 var(--ar-spot); transition: transform .25s var(--ar-spring), box-shadow .25s ease-out; }
.ar-site .ar-slider input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--ar-accent); transition: transform .25s var(--ar-spring), box-shadow .25s ease-out; }
.ar-site .ar-slider input:is(:hover, :focus-visible)::-webkit-slider-thumb { box-shadow: 0 0 0 8px var(--ar-spot); }
.ar-site .ar-slider input:is(:hover, :focus-visible)::-moz-range-thumb { box-shadow: 0 0 0 8px var(--ar-spot); }
.ar-site .ar-slider input:active::-webkit-slider-thumb { transform: scale(1.15); }
.ar-site .ar-slider input:active::-moz-range-thumb { transform: scale(1.15); }
.ar-site .ar-billing { position: relative; }
.ar-site .ar-billing label { position: relative; z-index: 1; }
.ar-site .ar-billing span { transition: color .2s ease-out; }
.ar-site .ar-billing__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ar-surface); transition: transform .4s var(--ar-ease), width .4s var(--ar-ease); }
.ar-site .ar-billing[data-ar-pill] input:checked + span { background: none; }
@keyframes ar-draw { from { stroke-dashoffset: 28; } }
.ar-site .ar-plan__body:not([hidden]) { animation: ar-panel-in .45s var(--ar-ease); }
.ar-site .ar-plan__body:not([hidden]) .ar-checks .ar-icon * { stroke-dasharray: 28; animation: ar-draw .6s ease-out .1s backwards; }

/* Index: one bar travels between the links. */
.ar-site .ar-toc[data-ar-ready] { position: relative; padding-left: 14px; }
.ar-site .ar-toc[data-ar-ready]::before { content: ""; position: absolute; top: 0; left: 0; width: 2px; height: var(--ar-toc-h, 0); border-radius: 2px; background: var(--ar-accent); transform: translateY(var(--ar-toc-y, 0)); transition: transform .45s var(--ar-ease), height .45s var(--ar-ease); }

/* Forms. */
@keyframes ar-shake { 25% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 85% { transform: translateX(-2px); } }
.ar-site .wpcf7 :is(input:not([type="submit"]), textarea, select), .ar-site .ar-search-form input { transition: box-shadow .25s ease-out, background-color .2s ease-out; }
.ar-site .wpcf7 :is(input:not([type="submit"]), textarea, select):focus, .ar-site .ar-search-form input:focus { box-shadow: 0 0 0 3px var(--ar-spot); }
.ar-site .wpcf7 .wpcf7-not-valid { animation: ar-shake .4s ease-out; }
.ar-site .wpcf7-response-output { animation: ar-rise .45s var(--ar-ease); }

/* Reduced motion: foundation.css covers elements and ::before/::after, not these. Separate rules, because a
   browser that does not know one of these selectors would drop a whole list. */
@media (prefers-reduced-motion: reduce) {
  .ar-site .ar-faq details::details-content { transition: none; }
  .ar-site .ar-slider input::-webkit-slider-thumb { transition: none; }
  .ar-site .ar-slider input::-moz-range-thumb { transition: none; }
}

/* Paper shows everything, at rest. */
@media print {
  .ar-site *, .ar-site *::before, .ar-site *::after { animation: none !important; transition: none !important; }
  .ar-site .ar-reveal, .ar-site .ar-piece--wait * { opacity: 1 !important; transform: none !important; }
  .ar-site .ar-listing[data-ar-ready] .ar-listing__row { grid-template-rows: auto 1fr; }
  .ar-site .ar-listing[data-ar-ready] .ar-listing__text { opacity: 1; }
  .ar-site :is(.ar-read-line, .ar-nav__pill) { display: none; }
}
