@font-face {
  font-family: "Rum Raisin";
  src: url("../fonts/rum-raisin-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Gabarito";
  src: url("../fonts/gabarito-variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Radio Canada Big";
  src: url("../fonts/radio-canada-big-variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --purple: #7864cb;
  --purple-dark: #382871;
  --ink: #211c1b;
  --cream: #fdf2e1;
  --paper: #fffaf1;
  --red: #be3c37;
  --yellow: #f3b349;
  --green: #97bd45;
  --sky: #86b9f7;
  --line: rgba(33, 28, 27, .15);
}

/* Shared hamburger navigation */
.menu-toggle {
  position: relative;
  z-index: 103;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-lines { display: grid; gap: 5px; width: 20px; }
.menu-toggle-lines span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
nav.is-open .menu-toggle-lines span:first-child { transform: translateY(7px) rotate(45deg); }
nav.is-open .menu-toggle-lines span:nth-child(2) { opacity: 0; }
nav.is-open .menu-toggle-lines span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav-links { display: none !important; }

.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-family: "Gabarito", sans-serif; font-weight: 700; }
.desktop-nav > a, .nav-overflow summary { color: var(--ink); text-decoration: none; cursor: pointer; transition: color .2s ease; }
.desktop-nav > a:hover, .desktop-nav > a:focus-visible, .nav-overflow summary:hover, .nav-overflow summary:focus-visible { color: var(--purple); outline: none; }
.desktop-nav [aria-current="page"] { color: var(--purple); }
.nav-overflow { position: relative; }
.nav-overflow summary { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-overflow summary::-webkit-details-marker { display: none; }
.nav-overflow summary::after { content: "▾"; font-size: .7em; transition: transform .2s ease; }
.nav-overflow[open] summary::after { transform: rotate(180deg); }
.nav-overflow-menu { position: absolute; top: calc(100% + 14px); right: 0; display: grid; gap: 3px; width: 190px; padding: 10px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 7px 7px 0 var(--purple-dark); }
.nav-overflow-menu a { padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-overflow-menu a:hover, .nav-overflow-menu a:focus-visible { background: rgba(120,100,203,.12); outline: none; }
.nav-inner .nav-apply, .inner-page .nav-inner .nav-apply { flex: 0 0 auto; min-height: 42px; padding-inline: 18px; margin-left: 0; font-size: .9rem; }

.menu-backdrop {
  position: fixed;
  z-index: 101;
  inset: 0;
  visibility: hidden;
  background: rgba(33, 28, 27, .38);
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}

.nav-menu {
  position: fixed;
  z-index: 102;
  top: 90px;
  right: max(20px, calc((100vw - 1180px) / 2));
  display: grid;
  gap: 4px;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--purple-dark);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-family: "Gabarito", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a::after { content: "↗"; color: var(--purple); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(120, 100, 203, .12); outline: none; }
.nav-menu .menu-apply { margin-top: 8px; background: var(--ink); color: white; }
.nav-menu .menu-apply::after { color: var(--yellow); }
nav.is-open .menu-backdrop, nav.is-open .nav-menu { visibility: visible; opacity: 1; }
nav.is-open .nav-menu { transform: translateY(0) scale(1); }
body.menu-open { overflow: hidden; }

/* Price references are always visible and always lead to the transparency page. */
.price-link {
  display: inline;
  padding: .08em .24em;
  border: 2px solid currentColor;
  border-radius: .25em;
  background: var(--yellow);
  color: var(--ink);
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.price-link:hover, .price-link:focus-visible { background: white; outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Founding subscription counter */
.founding-counter {
  width: min(310px, 100%);
  margin-top: 20px;
  padding: 14px 16px 15px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 250, 241, .82);
}

.hero-actions .button { width: min(310px, 100%); }

.counter-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; font-family: "Gabarito", sans-serif; font-size: .86rem; font-weight: 800; }
.counter-copy strong { color: var(--purple-dark); font-size: 1rem; }
.counter-track { height: 12px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: white; }
.counter-fill { display: block; width: 28.4%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--green)); animation: counter-load 1.1s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes counter-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Standalone pages */
body.inner-page { margin: 0; color: var(--ink); background: var(--cream); font-family: "Radio Canada Big", system-ui, sans-serif; line-height: 1.5; }
.inner-page * { box-sizing: border-box; }
.inner-page img { display: block; width: 100%; }
.inner-page a { color: inherit; }
.inner-page .shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.inner-page .section { padding: 96px 0; }
.inner-page h1, .inner-page h2, .inner-page h3, .inner-page p { margin-top: 0; }
.inner-page h1, .inner-page h2 { font-family: "Rum Raisin", "Gabarito", sans-serif; font-weight: 400; letter-spacing: -.025em; line-height: .96; }
.inner-page h1 { margin-bottom: 24px; font-size: clamp(4.2rem, 8vw, 8rem); }
.inner-page h2 { margin-bottom: 24px; font-size: clamp(3.1rem, 5vw, 5.7rem); }
.inner-page h3 { font-family: "Gabarito", sans-serif; font-size: 1.35rem; line-height: 1.1; }
.inner-page .lede { max-width: 720px; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.6; }
.inner-page .eyebrow { margin: 0 0 18px; color: var(--red); font-family: "Gabarito", sans-serif; font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.inner-page nav { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; min-height: 80px; padding: 10px 0; border-bottom: 1px solid rgba(33,28,27,.1); background: rgba(253,242,225,.96); box-shadow: 0 8px 28px rgba(33,28,27,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.inner-page .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.inner-page .logo { display: block; width: 104px; height: 60px; text-decoration: none; }
.inner-page .logo img { width: 100%; height: 100%; object-fit: contain; }
.page-main { padding-top: 80px; }
.page-hero { padding: clamp(84px, 10vw, 132px) 0 80px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: end; }
.page-hero h1 { margin-bottom: 0; }
.page-hero-copy { padding-bottom: 10px; }

/* Pricing page */
.pricing-learning-hero { display: grid; align-items: center; min-height: calc(100svh - 80px); background: var(--cream); }
.pricing-learning-grid { display: grid; grid-template-columns: .82fr 1.18fr; grid-template-areas: "title visual" "copy visual"; gap: 28px clamp(46px, 6vw, 84px); align-items: start; }
.pricing-learning-title { grid-area: title; align-self: end; }
.pricing-learning-title h1 { max-width: 560px; margin-bottom: 0; font-size: clamp(5.2rem, 8vw, 8.5rem); }
.transparency-copy { display: grid; gap: 18px; }
.pricing-learning-grid > .transparency-copy { grid-area: copy; }
.transparency-copy p { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.transparency-note { padding: 22px; border: 2px solid var(--ink); border-radius: 20px; background: var(--sky); font-family: "Gabarito", sans-serif; font-weight: 800; }
.pricing-box-visual { grid-area: visual; position: relative; align-self: center; min-width: 0; margin: 0; border: 2px solid var(--ink); border-radius: 34px; background: #ececec; box-shadow: 12px 12px 0 var(--purple-dark); }
.pricing-box-visual img { aspect-ratio: 1672 / 941; border-radius: 32px; object-fit: cover; }
.pricing-cta { background: var(--purple-dark); color: white; text-align: center; }
.pricing-cta .shell, .pricing-cta .eyebrow { text-align: center; }
.inner-page .pricing-cta .eyebrow { width: 100%; max-width: none; margin-inline: 0; color: var(--yellow); }
.pricing-cta h2, .pricing-cta p { max-width: 760px; margin-inline: auto; }

/* Team page */
.team-page-hero { background: var(--cream); }
.team-page-content { background: var(--paper); }
.team-tier + .team-tier { margin-top: 46px; }
.team-tier-label { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; color: var(--purple); font-family: "Gabarito", sans-serif; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.team-tier-label::before, .team-tier-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: grid; gap: 18px; }
.founders-grid { grid-template-columns: repeat(6, 1fr); }
.founders-grid .person { grid-column: span 2; }
.founders-grid .person:first-child { grid-column: 2 / span 2; }
.specialists-grid { grid-template-columns: repeat(3, 1fr); }
.person { overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); }
.person img { aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center top; filter: saturate(.86); }
.person-info { padding: 18px; text-align: center; }
.person-info h3 { margin-bottom: 4px; }
.person-info b { color: var(--purple); font-family: "Gabarito", sans-serif; font-size: .86rem; }
.person-info p { margin: 10px 0 0; font-size: .82rem; }

/* FAQ page */
.faq-page-hero { background: var(--sky); }
.faq-page-content { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); }
.faq-list summary { padding: 24px 0; font-family: "Gabarito", sans-serif; font-size: 1.16rem; font-weight: 800; cursor: pointer; }
.faq-list details p { max-width: 760px; padding-bottom: 24px; margin: 0; line-height: 1.7; }

/* Shared buttons and footer for standalone pages */
.inner-page .button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font-family: "Gabarito", sans-serif; font-weight: 800; text-decoration: none; }
.inner-page .button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--purple); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.inner-page footer { padding: 52px 0 28px; background: var(--ink); color: white; }
.inner-page .footer-inner { display: grid; gap: 34px; }
.inner-page .footer-main { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
.inner-page .footer-logo { display: grid; place-items: center; width: 126px; height: 70px; padding: 8px 12px; border-radius: 16px; background: white; }
.inner-page .footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.inner-page .footer-copy { max-width: 420px; margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: .85rem; }
.inner-page .footer-company { margin-top: 28px; }
.inner-page .footer-company-label { margin-bottom: 3px; color: rgba(255,255,255,.6); font-size: .78rem; }
.inner-page .footer-company-name { color: var(--yellow); font-family: "Gabarito", sans-serif; font-size: 1.12rem; font-weight: 800; }
.inner-page .footer-gst { margin-top: 3px; color: rgba(255,255,255,.78); font-size: .82rem; }
.inner-page .footer-contact { display: grid; grid-template-columns: 1.45fr .72fr .9fr; gap: 30px; margin: 0; padding: 4px 0 0; font-style: normal; }
.inner-page .footer-detail { display: grid; align-content: start; gap: 8px; color: rgba(255,255,255,.76); font-size: .88rem; line-height: 1.55; }
.inner-page .footer-detail strong { color: white; font-family: "Gabarito", sans-serif; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.inner-page .footer-detail a { width: fit-content; color: inherit; text-decoration-color: rgba(255,255,255,.38); text-underline-offset: 4px; }
.inner-page .footer-status { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: var(--yellow); font-family: "Gabarito", sans-serif; font-size: .75rem; font-weight: 800; text-align: right; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 950px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav .nav-tablet-hide { display: none; }
  .page-hero-grid, .faq-layout { grid-template-columns: 1fr; gap: 38px; }
  .pricing-learning-hero { min-height: auto; }
  .pricing-learning-grid { grid-template-columns: 1fr; grid-template-areas: "title" "visual" "copy"; gap: 34px; }
  .pricing-learning-title, .pricing-learning-grid > .transparency-copy { max-width: 760px; }
  .faq-intro { position: static; }
  .founders-grid, .specialists-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid .person, .founders-grid .person:first-child { grid-column: auto; }
  .specialists-grid .person:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; }
  .nav-inner .nav-apply { min-height: 38px; padding-inline: 13px; margin-left: auto; font-size: .8rem; }
  .nav-menu { top: 76px; right: 14px; width: calc(100vw - 28px); }
  .founding-counter { padding: 12px 13px 13px; }
  .counter-copy { font-size: .78rem; }
  .counter-copy strong { font-size: .88rem; }
  .inner-page .shell { width: min(100% - 28px, 1180px); }
  .inner-page .section { padding: 72px 0; }
  .inner-page nav { min-height: 68px; padding-block: 6px; }
  .inner-page .nav-inner { min-height: 56px; }
  .inner-page .logo { width: 86px; height: 50px; }
  .page-main { padding-top: 68px; }
  .page-hero { padding: 70px 0 62px; }
  .inner-page h1 { font-size: clamp(3.8rem, 18vw, 5.4rem); }
  .page-hero-grid { gap: 28px; }
  .pricing-learning-title h1 { font-size: clamp(4.4rem, 20vw, 6rem); }
  .pricing-box-visual { border-radius: 24px; box-shadow: 8px 8px 0 var(--purple-dark); }
  .pricing-box-visual img { border-radius: 22px; }
  .founders-grid, .specialists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .specialists-grid .person:last-child { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
  .person { border-radius: 18px; }
  .person img { aspect-ratio: 1 / 1; }
  .person-info { padding: 13px 10px 14px; }
  .person-info h3 { font-size: 1rem; }
  .person-info b { font-size: .72rem; line-height: 1.25; }
  .person-info p { margin-top: 8px; font-size: .7rem; line-height: 1.4; }
  .inner-page footer { padding: 42px 0 24px; }
  .inner-page .footer-inner { gap: 26px; }
  .inner-page .footer-main, .inner-page .footer-contact { grid-template-columns: 1fr; }
  .inner-page .footer-main { gap: 30px; }
  .inner-page .footer-contact { gap: 22px; }
  .inner-page .footer-status { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .counter-fill { animation: none; }
  .menu-toggle-lines span, .menu-backdrop, .nav-menu { transition: none; }
}
