/* Blue palette tokens (replaces old green theme) */
:root{--green:#4C9EEA;--ink:#2F5890;--lime:#2F5890;--line:#CFE2F5;--page:#F7FBFF}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color-scheme: light; color: var(--ink) }
a { text-decoration: none; color: inherit }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
.wrap { max-width: 1180px; margin: auto; padding-left: 22px; padding-right: 22px }
.grid { display: grid }
.gap-10 { gap: 2.5rem }
.gap-12 { gap: 3rem }
.items-center { align-items: center }
.text-center { text-align: center }
.mx-auto { margin-left: auto; margin-right: auto }
.mt-12 { margin-top: 3rem }
.max-w-4xl { max-width: 56rem }
.max-w-5xl { max-width: 64rem }
.justify-center { justify-content: center }
.nav { position: sticky; top: 0; z-index: 50 }
.navin { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px }
.logo { width: 132px; height: auto }
.links { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 800 }
.links>a:not(.navcta) { padding: 10px 4px; position: relative }
.links>a:not(.navcta):after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s }
.links>a:not(.navcta):hover:after { transform: scaleX(1) }
.navcta, .cta, .ghost { display: inline-flex; align-items: center; justify-content: center; font-weight: 900; transition: transform .25s, box-shadow .25s, background .25s, color .25s; position: relative; overflow: hidden; isolation: isolate }
.navcta { min-width: 104px; min-height: 42px; padding: 11px 13px }
.cta, .ghost { min-width: 150px; min-height: 52px; padding: 14px 22px }
.cta:hover, .ghost:hover, .navcta:hover { transform: translateY(-3px) }
.actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px }
.hero { padding: 86px 0 74px; overflow: hidden }
h1 { font-size: clamp(2.45rem, 6vw, 5rem) !important; line-height: 1; letter-spacing: 0; font-weight: 950; margin: 18px 0 22px }
.lead { font-size: 18px; line-height: 1.75; opacity: .78; max-width: 680px }
.pill { display: inline-flex; padding: 8px 13px; border: 1px solid currentColor; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .9 }
.visual { position: relative }
.visual img { width: 100%; display: block }
section { padding: 88px 0 }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; opacity: .68 }
h2 { font-size: clamp(2rem, 4vw, 3.4rem) !important; letter-spacing: 0; line-height: 1.08; font-weight: 950; margin: 10px 0 16px }
.sectionlead { max-width: 650px; opacity: .72; line-height: 1.75 }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px }
.card { padding: 28px; min-height: 210px; transition: .3s }
.card:hover { transform: translateY(-7px) }
.num { font-size: 12px; font-weight: 900; opacity: .55 }
.card h3 { font-size: 21px; font-weight: 900; margin: 30px 0 9px }
.card p { opacity: .7; line-height: 1.65 }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center }
.about-grid img { width: 100% }
.faq-list { margin-top: 36px }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-size: 17px; font-weight: 900 }
.faq-q b { display: grid; place-items: center; flex: 0 0 auto; transition: .25s }
.faq-a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .32s ease, opacity .22s ease }
.faq-a p { line-height: 1.7 }
.faq-item.open .faq-a { max-height: 190px; opacity: 1 }
.footer { padding: 60px 0 30px }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px }
.footgrid p { opacity: .72; line-height: 1.7; max-width: 460px }
.footlinks a { display: block; margin: 10px 0; opacity: .78 }
.footlinks a:hover { opacity: 1 }
.copy { margin-top: 38px; padding-top: 22px; font-size: 13px; opacity: .68 }
#toTop { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; font-size: 22px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s; z-index: 60 }
#toTop.show { opacity: 1; pointer-events: auto; transform: none }
#menuBtn { display: none }
#mobileMenu { display: none }

@media(max-width:800px) {
  .links { display: none }
  #menuBtn { display: grid; place-items: center; width: 44px; height: 44px; font-size: 25px }
  #mobileMenu { position: absolute; top: 78px; left: 14px; right: 14px; padding: 18px; box-shadow: 0 18px 50px #0002 }
  #mobileMenu:not(.hidden) { display: grid; gap: 14px }
  .hero { padding-top: 54px }
  .feature-grid { grid-template-columns: 1fr }
  .about-grid { grid-template-columns: 1fr }
  .footgrid { grid-template-columns: 1fr }
  section { padding: 64px 0 }
  .card:nth-child(2), .feature-grid .card:nth-child(even) { transform: none; margin-top: 0 }
}

@media(min-width:1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) }
  .lg\:col-span-2 { grid-column: span 2/span 2 }
  .lg\:col-span-3 { grid-column: span 3/span 3 }
  .lg\:col-span-5 { grid-column: span 5/span 5 }
  .lg\:col-span-7 { grid-column: span 7/span 7 }
}

@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

/* ---- Theme colors (blue) ---- */
body { background: linear-gradient(180deg, #F7FBFF, #ffffff); color: #334155 }
.nav { background: rgba(247, 251, 255, .94); backdrop-filter: blur(16px); border-bottom: 1px solid #CFE2F5 }
.navin { min-height: 82px }
.links { padding: 8px; border: 1px solid #CFE2F5; border-radius: 999px; background: #fff }
.links>a:not(.navcta) { border-radius: 999px; padding: 10px 14px }
.links>a:not(.navcta):hover { background: #EAF4FD; color: #2F5890 }
.navcta, .cta, .ghost { border-radius: 999px }
.navcta { background: #EAF4FD; color: #2F5890; border: 1px solid #CFE2F5 }
.navcta.register, .cta { background: #2F5890; color: #fff; box-shadow: 0 10px 0 #CFE2F5, 0 20px 35px #2F589022 }
.cta:before, .navcta.register:before { content: ""; position: absolute; width: 18px; height: 160%; background: #ffffff70; transform: rotate(20deg) translateX(-68px); animation: leafFlash 3.4s infinite }
@keyframes leafFlash { 50%, 100% { transform: rotate(20deg) translateX(190px) } }
.ghost { background: #fff; border: 1px solid #CFE2F5; color: #2F5890 }
.hero { background: linear-gradient(160deg, #F7FBFF 0, #EAF4FD 100%) }
.pill { border-radius: 999px; background: #EAF4FD; color: #2F5890; border-color: #CFE2F5 }
.visual img { border-radius: 34px 10px 34px 10px; box-shadow: 0 24px 50px #2F589020 }
.card { background: #fff; border: 1px solid #CFE2F5; border-radius: 24px 8px 24px 8px }
.card:hover { box-shadow: 0 18px 34px #2F589018 }
.faq { background: #F2F8FE }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: none }
.faq-item { background: #fff; border: 1px solid #CFE2F5; border-radius: 24px 8px 24px 8px }
.faq-q { padding: 20px }
.faq-q b { width: 34px; height: 34px; border-radius: 999px; background: #EAF4FD; color: #2F5890 }
.faq-a p { padding: 0 20px 20px }
.faq-item.open .faq-q b { transform: rotate(45deg); background: #2F5890; color: #fff }
.footer { background: #F2F8FE; color: #2F5890; border-top: 1px solid #CFE2F5 }
.footgrid { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid #CFE2F5 }
.copy { border-top: 1px solid #CFE2F5 }
#toTop { border-radius: 999px; background: #2F5890; color: #fff; box-shadow: 0 10px 0 #CFE2F5 }
#menuBtn, #mobileMenu { background: #fff; border: 1px solid #CFE2F5; border-radius: 24px }

@media(max-width:800px) {
  .links { padding: 0; border: 0 }
  .faq-list { grid-template-columns: 1fr }
}

/* Content-fit additions: layout/typography only; original theme tokens and components remain unchanged. */
.hero-visual { max-width: 1024px; margin: 48px auto 0 }
.hero-extra { margin: 42px auto 0; max-width: 940px; text-align: left }
.section-visual { max-width: 980px; margin: 30px 0 34px }
.doc-content { max-width: 940px; line-height: 1.78; font-size: 16px }
.doc-content p { margin: 0 0 16px; opacity: .82 }
.doc-content h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.3; font-weight: 900; margin: 30px 0 11px }
.doc-content ul, .doc-content ol { margin: 12px 0 22px; padding-left: 26px }
.doc-content ul { list-style: disc }
.doc-content ol { list-style: decimal }
.doc-content li { margin: 7px 0; line-height: 1.7; opacity: .84 }
.doc-content table { width: 100%; border-collapse: collapse; min-width: 640px }
.doc-content .table-wrap { width: 100%; overflow-x: auto; margin: 24px 0 }
.doc-content th, .doc-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top }
.faq-answer { padding: 0 20px 20px; line-height: 1.7; opacity: .82 }
.faq-answer p { margin: 0 0 10px }
.faq-answer p:last-child { margin-bottom: 0 }
.faq-answer ul, .faq-answer ol { padding-left: 22px; margin: 8px 0 }
.faq-item.open .faq-a { max-height: 1200px }

@media(max-width:800px) {
  .hero-extra { margin-top: 30px }
  .section-visual { margin-top: 24px; margin-bottom: 28px }
  .doc-content { font-size: 15.5px }
  .doc-content ul, .doc-content ol { padding-left: 22px }
  .hero-visual { margin-top: 34px }
}

/* Requested CTA visibility + motion enhancements */
.mobile-cta-bar { display: none }
@keyframes ctaFlow { 0% { background-position: 0% 50% } 50% { background-position: 100% 50% } 100% { background-position: 0% 50% } }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .12) } 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .22) } }
.cta, .ghost, .navcta { background-size: 220% 220%; animation: ctaFlow 4.5s ease infinite }
.cta, .navcta.register { animation: ctaFlow 4s ease infinite, ctaGlow 2.8s ease-in-out infinite }
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform }
.reveal-on-scroll.revealed { opacity: 1; transform: none }

@media(max-width:800px) {
  body { padding-bottom: 78px }
  .mobile-cta-bar { position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 44px rgba(0, 0, 0, .18) }
  .mobile-cta-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 900; position: relative; overflow: hidden; isolation: isolate; background-size: 220% 220%; animation: ctaFlow 4s ease infinite }
  #toTop { bottom: 96px }
}

@media(prefers-reduced-motion:reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important }
  .cta, .ghost, .navcta, .mobile-cta-bar a { animation: none !important }
}

/* Blue animated CTA surfaces */
.cta, .navcta.register, .mobile-cta-bar .mobile-register { background: linear-gradient(120deg, #2F5890, #4C9EEA, #A9D0F5, #2F5890); color: #fff }
.ghost, .navcta.login, .mobile-cta-bar .mobile-login { background: linear-gradient(120deg, #EAF4FD, #DCEBFA, #ffffff, #EAF4FD); color: #2F5890; border: 1px solid #CFE2F5 }
.mobile-cta-bar { background: rgba(247, 251, 255, .94); border: 1px solid #CFE2F5 }

.promo-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; display: flex; width: 1250px; margin: auto; justify-content: center }
.banner-item img { width: 100%; display: block }

@media (max-width:767px) {
  .promo-banner { display: block; background: #fff; width: 100%; margin: auto }
}