:root {
  --fy-navy: #16324f;
  --fy-navy-deep: #0f2940;
  --fy-teal: #2ec4b6;
  --fy-teal-dark: #1d8f87;
  --fy-teal-soft: #e8f8f6;
  --fy-coral: #ff7f50;
  --fy-coral-soft: #fff0eb;
  --fy-canvas: #f5f8fa;
  --fy-surface: #ffffff;
  --fy-ink: #102a3e;
  --fy-muted: #5d7283;
  --fy-line: #d7e1e8;
  --fy-success: #15805d;
  --fy-warning: #b7791f;
  --fy-danger: #b42318;
  --fy-focus: rgba(46, 196, 182, 0.24);
  --fy-shadow-low: 0 8px 24px rgba(16, 42, 62, 0.08);
  --fy-shadow-high: 0 18px 48px rgba(16, 42, 62, 0.14);
  --fy-font: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --fy-motion-fast: 140ms;
  --fy-motion-base: 220ms;
  --fy-motion-slow: 420ms;
  --fy-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  color-scheme: light;
}

body {
  color: var(--fy-ink);
  background: var(--fy-canvas);
  font-family: var(--fy-font);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #ffffff;
  background: var(--fy-teal-dark);
}

button,
input,
select,
textarea {
  font-family: inherit;
  letter-spacing: 0;
}

:focus-visible {
  outline: 3px solid var(--fy-focus);
  outline-offset: 2px;
}

.atlas-presence {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  color: var(--fy-ink);
  background: var(--fy-teal-soft);
  border: 1px solid #c6e9e5;
  border-left: 4px solid var(--fy-teal);
  border-radius: 6px;
  transform-origin: left center;
  transition:
    opacity var(--fy-motion-base) ease,
    transform var(--fy-motion-base) var(--fy-ease-out),
    border-color var(--fy-motion-fast) ease;
}

.atlas-presence.is-leaving {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px) scale(0.99);
}

.atlas-presence.on-dark {
  color: #ffffff;
  background: rgba(15, 41, 64, 0.94);
  border-color: rgba(255, 255, 255, 0.22);
  border-left-color: var(--fy-teal);
}

.atlas-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--fy-navy-deep);
  background: var(--fy-teal);
  border-radius: 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--fy-motion-base) var(--fy-ease-out);
}

.atlas-mark::before,
.atlas-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: 0.55;
}

.atlas-mark::before {
  width: 28px;
  height: 1px;
}

.atlas-mark::after {
  width: 1px;
  height: 28px;
}

.atlas-presence strong,
.atlas-presence p {
  display: block;
  margin: 0;
}

.atlas-presence strong {
  margin: 1px 0 5px;
  font-size: 14px;
}

.atlas-presence p {
  color: var(--fy-muted);
  font-size: 14px;
  line-height: 1.5;
}

.atlas-presence.on-dark p {
  color: #d6e4ed;
}

.atlas-dismiss {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition:
    color var(--fy-motion-fast) ease,
    background-color var(--fy-motion-fast) ease,
    transform var(--fy-motion-fast) ease;
}

.atlas-dismiss:hover {
  background: rgba(22, 50, 79, 0.08);
}

.atlas-presence.on-dark .atlas-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
}

.atlas-dismiss:active {
  transform: scale(0.92);
}

.atlas-presence.is-welcoming .atlas-mark,
.atlas-presence.is-celebrating .atlas-mark {
  transform: translateY(-1px);
}

.atlas-presence.is-assuring {
  border-left-color: var(--fy-success);
}

[data-atlas-key][hidden] {
  display: none !important;
}

.experience-kicker {
  margin: 0 0 8px;
  color: var(--fy-teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.button,
button,
.nav-item,
.text-link,
summary {
  transition:
    color var(--fy-motion-fast) ease,
    background-color var(--fy-motion-fast) ease,
    border-color var(--fy-motion-fast) ease,
    box-shadow var(--fy-motion-fast) ease,
    transform var(--fy-motion-fast) var(--fy-ease-out);
}

.button:not(:disabled):active,
button:not(:disabled):active {
  transform: translateY(1px);
}

.button.is-busy,
button.is-busy {
  cursor: wait;
}

.button.is-busy::after,
button.is-busy::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: experience-spin 700ms linear infinite;
}

.experience-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: rgba(46, 196, 182, 0.18);
  transition: opacity var(--fy-motion-fast) ease;
}

.experience-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  background: var(--fy-teal);
}

body[data-experience-busy="true"] .experience-progress {
  opacity: 1;
}

body[data-experience-busy="true"] .experience-progress::after {
  animation: experience-progress 1.1s var(--fy-ease-out) infinite;
}

.experience-skeleton {
  position: relative;
  display: inline-block;
  min-width: 96px;
  overflow: hidden;
  color: transparent !important;
  background: #e5edf2;
  border-radius: 3px;
}

.experience-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-100%);
  animation: experience-shimmer 1.25s ease-in-out infinite;
}

.experience-empty {
  max-width: 620px;
  padding: 30px;
  color: var(--fy-ink);
  background: var(--fy-surface);
  border: 1px solid var(--fy-line);
  border-left: 4px solid var(--fy-teal);
  border-radius: 6px;
  box-shadow: var(--fy-shadow-low);
}

.experience-empty strong,
.experience-empty p {
  display: block;
  margin: 0;
}

.experience-empty strong {
  font-size: 19px;
}

.experience-empty p {
  margin-top: 8px;
  color: var(--fy-muted);
  line-height: 1.55;
}

.experience-empty a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--fy-navy);
  font-weight: 800;
  text-underline-offset: 4px;
}

.experience-milestone {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 13px;
  align-items: start;
  padding: 17px;
  color: var(--fy-ink);
  background: var(--fy-surface);
  border: 1px solid #bfe5df;
  border-left: 4px solid var(--fy-teal);
  border-radius: 6px;
  box-shadow: var(--fy-shadow-high);
  animation: milestone-arrival var(--fy-motion-slow) var(--fy-ease-out) both;
}

.experience-milestone.is-leaving {
  animation: milestone-departure var(--fy-motion-base) ease both;
}

.milestone-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--fy-navy-deep);
  background: var(--fy-teal);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.experience-milestone strong,
.experience-milestone p {
  display: block;
  margin: 0;
}

.experience-milestone p {
  margin-top: 4px;
  color: var(--fy-muted);
  font-size: 14px;
  line-height: 1.45;
}

.milestone-dismiss {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--fy-muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.experience-ready [data-experience-reveal] {
  opacity: 0;
  transform: translateY(8px);
}

.experience-ready [data-experience-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--fy-motion-slow) ease,
    transform var(--fy-motion-slow) var(--fy-ease-out);
}

@media (hover: hover) {
  .summary-panel,
  .plan-card,
  .content-panel,
  .registration-panel,
  .selected-plan,
  .product-figure,
  .benefit-grid article,
  .feature-list article {
    transition:
      opacity var(--fy-motion-slow) ease,
      transform var(--fy-motion-base) var(--fy-ease-out),
      border-color var(--fy-motion-fast) ease,
      box-shadow var(--fy-motion-fast) ease;
  }

  .summary-panel:hover,
  .plan-card:hover,
  .content-panel:hover,
  .registration-panel:hover,
  .selected-plan:hover {
    border-color: #b9d5d2;
    box-shadow: var(--fy-shadow-low);
    transform: translateY(-2px);
  }
}

@keyframes experience-spin {
  to { transform: rotate(360deg); }
}

@keyframes experience-progress {
  to { transform: translateX(390%); }
}

@keyframes experience-shimmer {
  to { transform: translateX(100%); }
}

@keyframes milestone-arrival {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes milestone-departure {
  to { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: no-preference) {
  .atlas-presence:not([hidden]) {
    animation: atlas-arrival var(--fy-motion-slow) var(--fy-ease-out) both;
  }

  .atlas-presence:not([hidden]) > div {
    animation: atlas-copy-arrival 360ms ease-out 90ms both;
  }

  .atlas-presence:not([hidden]) .atlas-mark {
    animation: atlas-breathe 3.8s ease-in-out 700ms infinite;
  }

  @keyframes atlas-arrival {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes atlas-copy-arrival {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes atlas-breathe {
    0%, 88%, 100% { transform: translateY(0); }
    92% { transform: translateY(-2px); }
    96% { transform: translateY(0); }
  }
}

@media (max-width: 560px) {
  .atlas-presence {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 14px;
  }

  .atlas-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .experience-milestone {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
