/* Aurora motion shared by marketing, editorial, legal and workspace pages. */
:root {
  --yl-aurora-ease: cubic-bezier(.2,.72,.23,1);
  --yl-aurora-enter: 860ms;
  --yl-aurora-travel: 48px;
  --yl-aurora-side: 76px;
  --yl-aurora-shine: 4.6s;
}
body[data-aurora-intensity], [data-aurora-zone] { isolation: isolate; }
[data-aurora-zone] { position: relative; }
.yl-atmosphere {
  --yl-glow-a: #22c79d70;
  --yl-glow-b: #7870e56b;
  --yl-glow-c: #78dec349;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  inset: 0;
  z-index: -1;
}
.yl-atmosphere.yl-page-atmosphere { position: fixed; }
.yl-atmosphere i {
  position: absolute;
  inset-block-start: -8%;
  inset-inline-end: -7%;
  inline-size: min(110%, 1040px);
  block-size: min(110%, 720px);
}
.yl-atmosphere i:nth-child(1) {
  background: radial-gradient(ellipse 48% 46% at 78% 62%, var(--yl-glow-a), transparent 75%);
  animation: yl-tide-mint 8.8s ease-in-out -3s infinite alternate paused;
}
.yl-atmosphere i:nth-child(2) {
  background: radial-gradient(ellipse 43% 49% at 69% 41%, var(--yl-glow-b), transparent 77%);
  animation: yl-tide-indigo 10.8s ease-in-out -5s infinite alternate paused;
}
.yl-atmosphere i:nth-child(3) {
  background: radial-gradient(ellipse 35% 20% at 73% 63%, var(--yl-glow-c), transparent 80%);
  animation: yl-tide-violet 7.6s ease-in-out -2s infinite alternate paused;
}
[data-aurora-intensity="cinematic"] .aurora-dark > .yl-atmosphere {
  --yl-glow-a: #1cca968f;
  --yl-glow-b: #6452e8a3;
  --yl-glow-c: #98e8cf63;
}
[data-aurora-intensity="cinematic"] .aurora-dark > .yl-atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, #081423d4, #0c18288f 65%, #0c182881),
    radial-gradient(circle at 1px 1px, #edfff91e 1px, transparent 1.5px) 0 0 / 23px 23px;
}
[data-aurora-intensity="professional"] > .yl-atmosphere {
  --yl-glow-a: #31b99457;
  --yl-glow-b: #6b68e04f;
  --yl-glow-c: #8bcdd848;
}
[data-aurora-intensity="focused"] > .yl-atmosphere {
  --yl-glow-a: #30b59235;
  --yl-glow-b: #7870e133;
  --yl-glow-c: #9ddccb2e;
}
[data-aurora-intensity="focused"] > .yl-atmosphere i:nth-child(3) { display: none; }
body[data-aurora-motion="playing"][data-aurora-hidden="false"][data-aurora-light-owner="true"] > .yl-page-atmosphere i:nth-child(-n+2),
body[data-aurora-motion="playing"][data-aurora-hidden="false"] [data-aurora-light-owner="true"] > .yl-atmosphere i:nth-child(-n+2),
body[data-aurora-motion="playing"][data-aurora-hidden="false"] :is(.aurora-hero, .founding-section)[data-aurora-light-owner="true"] > .yl-atmosphere i:nth-child(3) {
  animation-play-state: running;
}
@keyframes yl-tide-mint {
  from { transform: translate3d(-22%, 7%, 0) rotate(-13deg) scale(1.06); }
  to { transform: translate3d(15%, -13%, 0) rotate(12deg) scale(1.22); }
}
@keyframes yl-tide-indigo {
  from { transform: translate3d(14%, -15%, 0) rotate(15deg) scale(1.21); }
  to { transform: translate3d(-25%, 17%, 0) rotate(-12deg) scale(1.04); }
}
@keyframes yl-tide-violet {
  from { transform: translate3d(-15%, 12%, 0) rotate(-18deg) scale(1.2); }
  to { transform: translate3d(18%, -10%, 0) rotate(17deg) scale(1.03); }
}
body[data-aurora-intensity]:not(.aurora-home) :is(.page-hero, .public-hero, .site-hero, .section.tint, .section.lavender) {
  background-color: #fafdfbbb;
}
/* Keep working surfaces opaque. The perimeter behind them carries the movement. */
.aurora-workspace .content-main, .aurora-workspace .content { background-color: transparent; }

.yl-motion-control {
  position: fixed;
  z-index: 28;
  inset-block-end: max(14px, env(safe-area-inset-bottom));
  inset-inline-end: max(14px, env(safe-area-inset-right));
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  min-width: 44px;
  padding: 0 .86em;
  border: 1px solid #bedbd0;
  border-radius: 28px;
  background: #f8fffc;
  color: #0b493e;
  box-shadow: 0 3px 14px #11182720;
  font: 720 .875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.yl-motion-control[hidden] { display: none; }
.yl-motion-icon {
  display: block;
  inline-size: 12px;
  block-size: 12px;
  background: currentColor;
  clip-path: polygon(13% 10%, 37% 10%, 37% 90%, 13% 90%, 13% 10%, 63% 10%, 87% 10%, 87% 90%, 63% 90%, 63% 10%);
}
.yl-motion-control[aria-pressed="true"] .yl-motion-icon {
  clip-path: polygon(22% 6%, 94% 50%, 22% 94%);
}
.yl-motion-control:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }
.yl-motion-control[aria-pressed="true"] { border-color: #7771dd; }
body.workspace-sign-in .yl-motion-control { inset-block-end: max(14px, env(safe-area-inset-bottom)); }

[data-aurora-shine] { position: relative; isolation: isolate; overflow: hidden; }
[data-aurora-shine]::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(112deg, transparent 26%, #ffffff16 44%, #f4fff722 50%, #ffffff12 57%, transparent 73%);
  transform: translate3d(-122%,0,0);
  animation: yl-light-sweep var(--yl-aurora-shine) var(--yl-aurora-ease) -1.4s infinite paused;
}
.aurora-dark [data-aurora-shine]::before {
  background: linear-gradient(112deg, transparent 26%, #ffffff38 44%, #f4fff77a 50%, #ffffff2b 57%, transparent 73%);
}
body[data-aurora-intensity="professional"] { --yl-aurora-shine: 5.6s; }
body[data-aurora-intensity="focused"] { --yl-aurora-shine: 6.6s; }
body[data-aurora-motion="playing"][data-aurora-hidden="false"] [data-aurora-shine][data-aurora-in-view="true"]:not(:disabled):not([aria-disabled="true"])::before {
  animation-play-state: running;
}
@keyframes yl-light-sweep {
  0%, 49% { opacity: 0; transform: translate3d(-122%,0,0); }
  55% { opacity: .9; }
  78% { opacity: .8; transform: translate3d(122%,0,0); }
  86%, 100% { opacity: 0; transform: translate3d(122%,0,0); }
}
body[data-aurora-motion="paused"] [data-aurora-shine]::before,
body[data-aurora-hidden="true"] [data-aurora-shine]::before { animation: none; }

@media (max-width: 900px) {
  .aurora-workspace body:not(.workspace-sign-in) .yl-motion-control { inset-block-end: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
  :root { --yl-aurora-enter: 660ms; --yl-aurora-travel: 40px; --yl-aurora-side: 26px; }
  .yl-atmosphere i:nth-child(3) { display: none; }
  .yl-atmosphere i { block-size: min(108%, 530px); }
  .yl-motion-control > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .yl-motion-control { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .yl-atmosphere i, [data-aurora-shine]::before { animation: none !important; transform: none; }
  [data-aurora-shine]::before { display: none; }
}
@media print {
  .yl-motion-control, .yl-atmosphere { display: none !important; }
}

/* Wider colour fields belong to presentation surfaces, outside reading and form panels. */
body.marketing-page[data-aurora-intensity]:not(.aurora-home) {
  --paper: #e0eeed;
  background: linear-gradient(170deg, #d1eae6, #e2e0f6 56%, #d4eae7);
}
body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) {
  isolation: isolate;
  position: relative;
  overflow: clip;
  border: 1px solid #406467;
  border-radius: clamp(13px, 1.65vw, 23px);
  margin-block: clamp(.65rem, 2vw, 1.65rem) .6rem;
  padding: clamp(1.3rem, 3.65vw, 3.5rem) clamp(1rem, 4.25vw, 3.65rem);
  background: linear-gradient(111deg, #102238, #182c44 51%, #342c60);
  color: #f6fbff;
}
body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) .yl-atmosphere {
  --yl-glow-a: #22c09872;
  --yl-glow-b: #8677f48f;
  --yl-glow-c: #98ebd263;
}
body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) :is(h1, h2, strong) { color: #f6fbff; }
body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) :is(.eyebrow, a:not(.button)) { color: #b6f7de; }
body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) :is(p:not(.eyebrow), .lede, .muted) { color: #dce9f5; }
body.marketing-page[data-aurora-intensity="focused"] :is(.page-intro, .support-intro) {
  isolation: isolate;
  position: relative;
  overflow: clip;
  padding: clamp(1.1rem, 2.4vw, 2.3rem);
  border: 1px solid #9abcd7;
  border-radius: 15px;
  background: linear-gradient(130deg, #cae9e2, #dce0f9 72%);
}
body.marketing-page[data-aurora-intensity] :is(.section.tint, .section.lavender, .section.light, .tools-pricing-band) {
  background: linear-gradient(112deg, #cde9e1, #d6ddf6 85%);
}
body.marketing-page[data-aurora-intensity] .section { padding-block: clamp(1.6rem, 3.5vw, 3.65rem); }
body.marketing-page[data-aurora-intensity] :is(.site-footer, .support-footer) {
  background: linear-gradient(117deg, #10342f, #17263d 60%, #272449);
}
.aurora-workspace body[data-aurora-intensity="professional"] { background: #dcece9; }
.aurora-workspace body[data-aurora-intensity="focused"] { background: #e8eeed; }

body:not(.aurora-home)[data-aurora-motion="playing"][data-aurora-hidden="false"] [data-revealed="true"]:not(:focus-within) {
  animation: yl-scene-reveal 570ms var(--yl-aurora-ease) both;
}
@keyframes yl-scene-reveal {
  from { transform: translateY(25px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-aurora-intensity] [data-revealed="true"] { animation: none !important; }
}
.aurora-workspace body[data-aurora-intensity="professional"] .v22-home-top {
  isolation: isolate;
  position: relative;
  overflow: clip;
  background: linear-gradient(112deg, #0d2337, #174340 57%, #29254d);
  color: #f7fcff;
}
.aurora-workspace .v22-home-top .yl-atmosphere {
  --yl-glow-a: #2ac49f66;
  --yl-glow-b: #8275f071;
  --yl-glow-c: #8edec266;
}
.aurora-workspace body[data-aurora-intensity="professional"] .v22-home-copy :is(h1, p) { color: #f0f8fd; }
.aurora-workspace body[data-aurora-intensity="professional"] .v22-home-copy :is(.v22-kicker, a) { color: #b7f3dd; }
.aurora-workspace .v22-action-box { color: #18263b; }
@media (max-width: 320px) {
  body.marketing-page[data-aurora-intensity] .site-mobile-actions { gap: 3px; }
  body.marketing-page[data-aurora-intensity] .site-mobile-actions .button { padding-inline: 4px; }
  body.marketing-page[data-aurora-intensity] .mobile-menu summary { padding-inline: 4px; }
}

@media (max-width: 620px) {
  /* The mobile atlases have six rows matching the luminance and falloff of the
     authored gradients. Their transform, timing and visibility rules are shared. */
  .yl-atmosphere { --yl-mobile-light-row: 0%; }
  [data-aurora-intensity="cinematic"] .aurora-dark > .yl-atmosphere { --yl-mobile-light-row: 20%; }
  [data-aurora-intensity="professional"] > .yl-atmosphere { --yl-mobile-light-row: 40%; }
  [data-aurora-intensity="focused"] > .yl-atmosphere { --yl-mobile-light-row: 60%; }
  body.marketing-page[data-aurora-intensity="professional"] :is(.page-intro, .demo-banner, .article-wrap > header) .yl-atmosphere {
    --yl-mobile-light-row: 80%;
  }
  .aurora-workspace .v22-home-top .yl-atmosphere { --yl-mobile-light-row: 100%; }
  .yl-atmosphere i:nth-child(-n+2) {
    background-size: 100% 600%;
    background-position: center var(--yl-mobile-light-row);
    background-repeat: no-repeat;
  }
  .yl-atmosphere i:nth-child(1) { background-image: url("../assets/marketing/aurora-mobile-mint.png"); }
  .yl-atmosphere i:nth-child(2) { background-image: url("../assets/marketing/aurora-mobile-indigo.png"); }

  /* A fixed field spans the largest viewport without tracking browser chrome. */
  @supports (height: 100lvh) {
    .yl-atmosphere.yl-page-atmosphere {
      inset-block-end: auto;
      block-size: 100lvh;
    }
  }
}
