:root {
  --bg: #fbfaf7;
  --ink: #11172b;
  --muted: rgba(17, 23, 43, 0.68);
  --line: rgba(17, 23, 43, 0.08);
  --accent: #7a81ff;
  --navy: #101827;
  --shadow-soft: 0 18px 40px rgba(40, 48, 88, 0.08);
  --content-width: 1120px;
  --section-gap: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Serif Pro", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 129, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #fbfaf7 100%);
}

.page-shell {
  overflow-x: hidden;
  overflow-y: visible;
}

.site-header,
.section-shell,
.pricing-hero {
  width: 100%;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 2.2vw, 32px) 8px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  opacity: 0;
  transform: translateY(-32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  box-shadow: none;
}

.site-header.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(242, 245, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 10px 30px rgba(27, 35, 74, 0.08);
  backdrop-filter: blur(28px) saturate(1.8) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.05);
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: "Radio Canada", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.main-nav a:focus-visible {
  outline: none;
  color: var(--accent);
}

.nav-language {
  position: relative;
  margin-left: 10px;
}

.nav-language summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-language summary::-webkit-details-marker {
  display: none;
}

.nav-language summary:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-language[open] summary {
  color: var(--accent);
}

.nav-language-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-language-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 23, 43, 0.08);
  box-shadow: 0 16px 36px rgba(17, 23, 43, 0.1);
}

.nav-language-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: "Radio Canada", sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-language-menu button:hover {
  background: rgba(122, 129, 255, 0.08);
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-cta:hover {
  color: var(--accent);
}

.nav-cta:focus-visible {
  outline: none;
}

.nav-cta-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease;
}

.nav-cta:hover .nav-cta-arrow,
.nav-cta:focus-visible .nav-cta-arrow {
  transform: translateX(3px);
}

.pricing-hero {
  position: relative;
  padding: 116px 16px 8px;
}

.pricing-hero-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(circle at 50% 0%, rgba(122, 129, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.pricing-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  text-align: center;
}

.pricing-hero h1,
.pricing-toggle,
.pricing-card {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.pricing-page-loaded .pricing-hero h1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.82s ease, transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-page-loaded .pricing-toggle {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.72s ease 0.12s, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.pricing-page-loaded .pricing-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.pricing-page-loaded .pricing-card:nth-child(1) {
  transition-delay: 0.2s, 0.2s, 0s, 0s;
}

.pricing-page-loaded .pricing-card:nth-child(2) {
  transform: translateY(-18px);
  transition-delay: 0.3s, 0.3s, 0s, 0s;
}

.pricing-page-loaded .pricing-card:nth-child(3) {
  transition-delay: 0.4s, 0.4s, 0s, 0s;
}

.pricing-page-loaded .pricing-card:hover,
.pricing-page-loaded .pricing-card:focus-within {
  transform: translateY(-10px);
}

.pricing-page-loaded .pricing-card-featured:hover,
.pricing-page-loaded .pricing-card-featured:focus-within {
  transform: translateY(-28px);
}

.pricing-hero h1 {
  margin: 0;
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.pricing-hero h1 {
  font-size: clamp(2.7rem, 4vw, 4.4rem);
}

.pricing-hero h1 strong {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.94em;
  line-height: inherit;
  letter-spacing: inherit;
}

.pricing-lead {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--muted);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17, 23, 43, 0.05);
}

.pricing-toggle-option {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 23, 43, 0.9);
  font-family: "Radio Canada", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.pricing-toggle-option.is-active {
  background: #dfff55;
}

.pricing-toggle-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 129, 255, 0.2);
}

.pricing-section {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.pricing-section {
  padding: 40px 0 120px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.16fr 0.92fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 24px;
  border-radius: 14px;
  border: 1px solid rgba(17, 23, 43, 0.08);
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease;
}

.pricing-card-featured {
  padding: 34px 30px 30px;
  border-color: rgba(17, 23, 43, 0.14);
  box-shadow: 0 18px 36px rgba(30, 38, 72, 0.08);
}

.pricing-card:hover,
.pricing-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(17, 23, 43, 0.16);
  box-shadow: 0 18px 34px rgba(30, 38, 72, 0.1);
}

.pricing-card-featured:hover,
.pricing-card-featured:focus-within {
  transform: translateY(-28px);
  box-shadow: 0 24px 40px rgba(30, 38, 72, 0.12);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(223, 255, 85, 0.92);
  color: var(--ink);
  font-family: "Radio Canada", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card h2,
.pricing-card h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.pricing-card-featured h2,
.pricing-card-featured h3 {
  font-size: 2rem;
}

.pricing-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.38;
}

.pricing-divider {
  width: calc(100% + 48px);
  height: 1px;
  margin: 26px 0;
  margin-left: -24px;
  background: rgba(17, 23, 43, 0.08);
}

.pricing-price {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.8rem, 3.8vw, 3.6rem);
  font-weight: 400;
  line-height: 0.9;
}

.pricing-card-featured .pricing-price {
  font-size: clamp(3.2rem, 4.4vw, 4rem);
}

.pricing-price-value {
  font: inherit;
}

.pricing-price > span:not(.pricing-price-value) {
  margin-left: 2px;
  font-family: "Radio Canada", sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  color: rgba(17, 23, 43, 0.58);
}

.pricing-meta {
  margin: 10px 0 0;
  color: rgba(17, 23, 43, 0.72);
  font-family: "Radio Canada", sans-serif;
  font-size: 0.84rem;
}

.pricing-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: rgba(17, 23, 43, 0.86);
  font-family: "Source Serif Pro", "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.3;
}

.pricing-features li {
  position: relative;
  padding-left: 18px;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: "Radio Canada", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(19, 28, 47, 0.14);
}

.button-dark-alt {
  background: #172238;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pricing-hero h1,
  .pricing-toggle,
  .pricing-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pricing-card-featured,
  .pricing-page-loaded .pricing-card:nth-child(2) {
    transform: translateY(-18px);
  }
}

@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured,
  .pricing-page-loaded .pricing-card:nth-child(2) {
    transform: none;
    padding: 26px 24px 24px;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .site-header,
  .pricing-hero {
    width: 100%;
  }

  .pricing-hero {
    padding: 118px 10px 28px;
  }

  .pricing-lead {
    max-width: 360px;
    font-size: clamp(1rem, 4.6vw, 1.12rem);
    line-height: 1.34;
  }

  .pricing-section,
  .final-cta-inner {
    width: 100%;
    max-width: var(--content-width);
  }

  .pricing-section {
    padding-bottom: 72px;
  }

  .button-dark {
    width: 100%;
  }
}
