/* ==========================================================================
   MPN — Making People Native — Shared Stylesheet
   ========================================================================== */

:root{
  --blue: #3d38f5;
  --blue-dark: #2f2bd1;
  --blue-darker: #1e1e1e;
  --white: #ffffff;
  --ink: #14132b;
  --muted: #6b6b76;
  --muted-2: #757575;
  --border: #d9d9d9;
  --surface: #f5f5f7;
  --blue-soft: rgba(61,56,245,0.08);

  --font-sans: 'cofo-sans-variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'roca', Georgia, serif;

  --container: 1280px;
  --radius-lg: 40px;
  --radius-md: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 60px rgba(20, 19, 43, 0.08);
  --shadow-card: 0 24px 48px rgba(61, 56, 245, 0.18);

  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-padding-top: 110px; }
body{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-variation-settings: "wght" 500;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.italic{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}

section{ position: relative; }

.corner-mark{
  display: block;
  color: var(--white);
}
.corner-mark.blue{ color: var(--blue); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep-color, var(--blue-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
  pointer-events: none;
}
.btn:hover::before{ transform: scaleX(1); }
.btn:hover{ transform: scale(1.045); }
.btn:active{ transform: scale(.97); transition-duration: .15s; }

.btn-primary{
  --sweep-color: var(--blue-dark);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(61,56,245,.28);
}
.btn-primary:hover{ box-shadow: 0 16px 32px rgba(61,56,245,.4); }

.btn-outline{
  --sweep-color: var(--blue);
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover{ color: var(--white); }

.btn-white{
  --sweep-color: #e4e2fd;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.btn-white:hover{ box-shadow: 0 16px 28px rgba(0,0,0,.14); }

.btn-white-outline{
  --sweep-color: rgba(255,255,255,.22);
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-white-outline:hover{ border-color: var(--white); }

.btn-ghost-blue{
  --sweep-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}

.btn-sm{ padding: 11px 22px; font-size: 13px; }

.badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--blue);
}
.badge-on-white{
  background: var(--blue);
  color: var(--white);
}

/* ==========================================================================
   Navbar — "Apple glass" style
   ========================================================================== */

.nav-wrap{
  position: sticky;
  top: 20px;
  z-index: 1000;
  padding: 0 24px;
  margin-bottom: -1px;
}

.navbar{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px 9px 26px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 34px rgba(30,27,160,.32), inset 0 1px 0 rgba(255,255,255,.22);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}

.nav-wrap.scrolled .navbar{
  background: var(--blue);
  box-shadow: 0 18px 44px rgba(30,27,160,.42), inset 0 1px 0 rgba(255,255,255,.22);
}

.nav-logo{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img{ height: 36px; width: auto; filter: brightness(0) invert(1); }

.nav-links{
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.nav-links a{
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-pill);
  transition: color .35s ease;
}
.nav-links a.under{ color: var(--blue); }
.nav-pill-indicator{
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .35s ease;
  z-index: 1;
}

.nav-cta{ flex-shrink: 0; }
.nav-actions{ display: flex; align-items: center; gap: 10px; }
.nav-btn{
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  height: 48px; min-width: 136px; justify-content: center; padding: 0 24px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
  white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease, background .35s ease, border-color .35s ease;
}
.nav-btn svg{ width: 17px; height: 17px; flex-shrink: 0; }
/* Log in — frosted glass */
.nav-login{
  color: var(--white);
  background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 16px rgba(255,255,255,.05), 0 6px 16px rgba(10,8,90,.22);
}
.nav-login:hover{ transform: translateY(-2px); background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.14)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 22px rgba(10,8,90,.3); }
/* Sign up — bright glass pill with arrow chip + shine */
.nav-signup{
  color: var(--blue); font-weight: 700; justify-content: space-between; padding: 0 7px 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #e9e8ff 100%);
  border: 1px solid #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.2), inset 0 1px 0 #fff, 0 10px 26px rgba(10,8,90,.35);
}
.nav-signup::before{
  content:""; position:absolute; top:0; left:-60%; width:45%; height:100%; z-index:-1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.95), transparent);
  transform: skewX(-20deg); animation: navShine 4.2s ease-in-out infinite;
}
@keyframes navShine{ 0%,55%{ left:-60%; } 85%,100%{ left:130%; } }
.nav-signup-arrow{
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: var(--white); transition: transform .35s var(--ease);
}
.nav-signup-arrow svg{ width: 16px; height: 16px; }
.nav-signup:hover{ transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 5px rgba(255,255,255,.28), inset 0 1px 0 #fff, 0 14px 30px rgba(10,8,90,.45); }
.nav-signup:hover .nav-signup-arrow{ transform: translateX(3px); }
.mobile-auth{ display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; margin-top: 14px; }
.mobile-menu .mobile-auth .btn{ width: 100%; padding: 16px 24px; font-size: 16px; font-weight: 600; }
.mobile-menu .mobile-auth .btn-white{ color: var(--blue); }

.nav-burger{
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
}
.nav-burger span, .nav-burger::before, .nav-burger::after{ display:none; }
.nav-burger svg{ width: 20px; height: 20px; }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(45, 41, 214, 0.55);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.mobile-menu.open{ opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a{
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
}
.mobile-menu a.active{ font-family: var(--font-serif); font-style: italic; font-weight: 700; }
.mobile-menu-close{
  position: absolute;
  top: 34px; right: 34px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close svg{ width: 18px; height: 18px; }

/* ==========================================================================
   Hero blue notch shape (used across pages)
   ========================================================================== */

.notch-blue{
  background: var(--blue);
  color: var(--white);
  clip-path: polygon(0% 0%, 85.9% 0%, 90.6% 15.7%, 95.3% 15.7%, 95.3% 31.8%, 100% 47.6%, 100% 100%, 14.1% 100%, 9.4% 84.3%, 4.7% 84.3%, 4.7% 68.2%, 0% 52.4%);
}
@media (max-width: 980px){
  .notch-blue{ clip-path: none; border-radius: var(--radius-lg); }
}
.notch-blue-simple{
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-blue{
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.card-outline{
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 72px 0 32px;
  margin-top: 0;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}
.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 320px;
}
.footer-logo{ display: flex; align-items: center; gap: 10px; }
.footer-logo img{ height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-actions{ display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-cols{
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ font-size: 14.5px; color: rgba(255,255,255,.85); transition: color .3s; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.footer-socials{ display: flex; gap: 12px; }
.footer-socials a{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.footer-socials a:hover{ background: rgba(255,255,255,.28); transform: translateY(-2px); }
.footer-socials svg{ width: 16px; height: 16px; }

/* ==========================================================================
   Reveal-on-scroll (subtle)
   ========================================================================== */

.reveal{ opacity: 1; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.flow > * + *{ margin-top: 1em; }

@media (max-width: 980px){
  .container{ padding: 0 24px; }
  .nav-links, .nav-cta{ display: none; }
  .nav-logo img{ height: 32px; }
  .nav-burger{ display: flex; }
  .footer-cols{ gap: 40px; }
}

/* ==========================================================================
   Newsletter popup (shown once per visitor)
   ========================================================================== */

.newsletter-popup-overlay{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 19, 43, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.newsletter-popup-overlay.open{ opacity: 1; pointer-events: auto; }
.newsletter-popup{
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  width: 100%;
  max-width: 840px;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(20,19,60,.35);
  transform: translateY(14px) scale(.97);
  transition: transform .4s var(--ease);
}
.newsletter-popup-overlay.open .newsletter-popup{ transform: translateY(0) scale(1); }
.newsletter-popup-img{ position: relative; height: 100%; min-height: 420px; }
.newsletter-popup-img img{ width: 100%; height: 100%; object-fit: cover; }
.newsletter-popup-body{ padding: 48px 42px; display: flex; flex-direction: column; justify-content: center; }
.newsletter-popup-body h3{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 36px;
  color: var(--blue);
  margin: 21px 0 15px;
  line-height: 1.2;
}
.newsletter-popup-body h3 em{ font-family: var(--font-serif); font-style: italic; font-weight: 700; }
.newsletter-popup-body p{ font-size: 21px; line-height: 1.55; color: var(--muted); margin-bottom: 27px; }
.newsletter-popup-close{
  position: absolute;
  top: 18px; right: 18px;
  width: 45px; height: 45px;
  border-radius: 50%;
  background: rgba(20,19,43,.06);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  transition: background .25s ease;
}
.newsletter-popup-close:hover{ background: rgba(20,19,43,.12); }
.newsletter-popup-close svg{ width: 22px; height: 22px; }
.newsletter-popup-form{ display: flex; flex-direction: column; gap: 15px; }
.newsletter-popup-form input{
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-family: inherit;
  font-size: 21px;
  color: var(--ink);
  background: transparent;
  transition: border-color .3s ease;
}
.newsletter-popup-form input:focus{ outline: none; border-color: var(--blue); }
.newsletter-popup-form .btn{ width: 100%; padding: 18px 30px; font-size: 21px; }
.newsletter-popup-success{
  display: none;
  font-size: 21px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 9px;
}
.newsletter-popup-form.submitted{ display: none; }
.newsletter-popup-form.submitted ~ .newsletter-popup-success{ display: block; }

@media (max-width: 760px){
  .newsletter-popup{ grid-template-columns: 1fr; max-width: 460px; }
  .newsletter-popup-img{ min-height: 180px; }
  .newsletter-popup-body{ padding: 34px 30px; }
  .newsletter-popup-body h3{ font-size: 28px; }
  .newsletter-popup-body p{ font-size: 16px; }
  .newsletter-popup-form input, .newsletter-popup-form .btn{ font-size: 16px; }
}

/* navbar fit on mid-size screens */
.nav-links a{ white-space: nowrap; }
@media (max-width: 1240px){
  .navbar{ gap: 10px; padding-left: 20px; }
  .nav-logo img{ height: 34px; }
  .nav-links a{ padding: 10px 14px; font-size: 14px; }
  .nav-btn{ height: 44px; min-width: 118px; padding: 0 16px; font-size: 14px; }
  .nav-signup{ padding: 0 6px 0 18px; }
  .nav-signup-arrow{ width: 32px; height: 32px; }
}

.newsletter-consent{ display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.newsletter-consent input{ margin-top: 3px; accent-color: var(--blue); flex-shrink: 0; }
.newsletter-consent a{ color: var(--blue); text-decoration: underline; }

.footer-company{ margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.7); }
