/* =============================================================================
   Family Edition — Shared Stylesheet
   Referenced by all pages under familyedition.co.
   Page-specific styles live in each page's own <style> block.
   ============================================================================= */

/* FONTS */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-v24-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-v24-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-v24-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-v24-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-v24-latin-700.woff2') format('woff2'); }

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #000; background: #fff; -webkit-font-smoothing: antialiased; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: #1C7FF2; padding: 0 32px; height: 54px; display: flex; align-items: center; justify-content: space-between; }
.nav img { height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }

/* Nav hamburger button */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: .2s; }

.nav-logo { display: flex; align-items: center; gap: 8px; outline: none; }

/* Nav link variants — plain text link */
.nav-link { font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; transition: color .15s; padding: 6px 0; background: none; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; }
.nav-link:hover { color: #fff; text-decoration: underline; }

/* Nav link variants — divider emphasis */
.nav-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.3); align-self: center; flex-shrink: 0; }


/* HERO */
.hero { background: #000; padding: 0 24px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 280px; background: radial-gradient(ellipse, rgba(28,127,242,.4) 0%, transparent 70%); pointer-events: none; }
.compact-hero { padding-top: 64px; padding-bottom: 56px; min-height: 0; }
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,127,242,.15);
  border: 1px solid rgba(28,127,242,.3);
  color: #1C7FF2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  animation: fadeUp .45s ease both;
}.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 720px;
  margin: 20px auto 0;
  animation: fadeUp .5s .07s ease both;
}
em { color: #1C7FF2; font-style: normal; }
.hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  /* line-height: 1.7; */
  max-width: 600px;
  margin: 16px auto 0;
  animation: fadeUp .5s .13s ease both;
}
.hero-date { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* FORM */
.form-wrap { max-width: 520px; width: 100%; margin: 0 auto; animation: fadeUp .5s .19s ease both; }
.hero .form-wrap { margin-top: 44px; }
.hero .form-row button { font-size: 14px; padding: 14px 20px; }
.compact-hero h1 { font-size: clamp(28px, 5vw, 42px); margin-top: 14px; }
.form-row {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 4px 4px 20px;
  box-shadow: 0 8px 48px rgba(28,127,242,0.35);
}
.form-row input[type=email] {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #000;
  background: transparent;
  min-width: 0;
}
.form-row input::placeholder { color: #bbb; }
.form-row button {
  background: #1C7FF2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.form-row button:hover { background: #1568d4; }
.form-legal {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* FORM MESSAGE STATES */
.msg-div { display: none; margin-top: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.msg-div.success { color: #4ade80; }
.msg-div.error { color: #f87171; }

/* SECTIONS */
.section { padding: 80px 24px; }
.section.off { background: #f7f8fa; }
.inner { max-width: 960px; margin: 0 auto; }
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #1C7FF2;
  display: block;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-top: 10px;
  display: inline-block;
  max-width: 700px;
}
.section h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-top: 10px;
}
.section p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #444;
  max-width: 620px;
  margin-top: 20px;
}

/* BOTTOM CTA */
.cta-section { padding: 88px 24px; text-align: center; }
.cta-section.blue { background: #1C7FF2; }
.cta-section.dark { background: #000; position: relative; overflow: hidden; }
.cta-section.dark::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 300px; background: radial-gradient(ellipse, rgba(28,127,242,.3) 0%, transparent 70%); pointer-events: none; }
.cta-section.dark .inner { position: relative; z-index: 1; }
.cta-section.dark p:not(.form-legal) { color: rgba(255,255,255,0.5); }
.cta-section.dark .cta-kicker { color: #1C7FF2; }
.cta-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; }
.cta-section h2 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; color: #fff; line-height: 1.1; letter-spacing: -.02em; max-width: 60%; margin: 16px auto 0; }
.cta-section p:not(.form-legal) { font-size: 16px; color: rgba(255,255,255,0.72); margin-top: 14px; line-height: 1.65; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-section .form-wrap,
.cta-section form,
.cta-section .btn-primary,
.cta-section .btn-ghost,
.cta-section .btn-dark { margin-top: 40px; }

/* POLICY PAGE */
body.policy-page { background: #f7f8fa; padding-top: 54px; }
.content-wrap { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.intro { background: #f0f6ff; border: 1.5px solid #c5ddfb; border-radius: 10px; padding: 24px 28px; margin-bottom: 32px; font-size: 14px; line-height: 1.8; color: rgba(0,0,0,0.6); }
.intro strong { color: #000; font-weight: 600; }

/* POLICY CARD */
.policy-card { background: #fff; border: 1.5px solid #e8e8e6; border-radius: 10px; padding: 32px 36px; margin-bottom: 10px; }
.policy-card-num { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1C7FF2; display: block; margin-bottom: 8px; }
.policy-card h2 { font-size: 17px; font-weight: 700; color: #000; margin-bottom: 14px; line-height: 1.2; }
.policy-card p { font-size: 14px; line-height: 1.8; color: rgba(0,0,0,0.6); margin-bottom: 12px; }
.policy-card p:last-child { margin-bottom: 0; }
.policy-card a { color: #1C7FF2; font-weight: 600; text-decoration: none; }
.policy-card a:hover { text-decoration: underline; }
.policy-card strong { color: #000; font-weight: 600; }

/* BUTTON */
.btn-primary {
  display: inline-block;
  background: #1C7FF2;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: #1568d4; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-dark {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.btn-dark:hover { background: #222; }

/* SHARE BLOCK */
.share-block { background: #000; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.share-block p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.7); margin: 0; max-width: 720px; }
.share-block p strong { color: #fff; font-weight: 600; }
.share-block .share-note { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 10px; }
.share-block .share-note a { color: #1C7FF2; font-weight: 600; text-decoration: none; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; background: #1C7FF2; color: #fff; border: none; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; padding: 12px 24px; border-radius: 4px; cursor: pointer; white-space: nowrap; transition: background .15s; text-decoration: none; flex-shrink: 0; }
.share-btn:hover { background: #1568d4; }
.share-btn.copied { background: #1a9e6e; }

/* FOOTER NOTE */
.footer-note {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  animation: fadeUp .5s .65s ease both;
  opacity: 0;
}

/* FOOTER */
footer { background: #000; min-height: 80px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer p { font-size: 12px; color: #555; line-height: 1.7; margin: 0; }
footer a { color: #555; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-bird { height: 36px; opacity: .25; filter: brightness(0) invert(1); }
.footer-submit {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #1C7FF2;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.footer-submit:hover { background: #1568d4; color: #fff; }

.wrap-together { white-space: nowrap; }

/* MOBILE NAV OPEN STATE */
.nav-links.open { display: flex; flex-direction: column; position: absolute; top: 54px; left: 0; right: 0; background: #1C7FF2; padding: 14px 20px 20px; border-top: 1px solid rgba(255,255,255,0.15); gap: 0; z-index: 199; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
.nav-links.open .nav-link { display: flex; justify-content: center; width: 100%; padding-top: 14px; padding-bottom: 14px; font-size: 16px; }
.nav-links.open .nav-divider { display: block; width: 300px; height: 1px; margin: 4px auto; }

@media (max-width: 768px) {
  .section h2 { max-width: 600px; }
}

/* MOBILE */
@media (max-width: 640px) {
  .nav { padding: 0 12px; }
  .nav img { height: 17px; }
  .nav img:first-child { display: none; }
  .nav img:last-child { height: 21px; }
  .nav-link { font-size: 14px; }
  .nav-divider { display: none; }
  .hero { padding: 64px 24px 72px; }
  .compact-hero { padding-top: 52px; padding-bottom: 44px; }
  .form-row { flex-direction: column; padding: 4px; gap: 4px; max-width: 400px; margin: 0 auto; }
  .form-row input[type=email] { font-size: 16px; padding: 12px 0 12px 8px; }
  .form-row button { width: 100%; padding: 12px; }
  .section { padding: 52px 20px; }
  .section p { font-size: 15px; }
  .content-wrap { padding: 40px 16px 72px; }
  .policy-card { padding: 24px 20px; }
  .cta-section { padding: 60px 20px; }
  .cta-section h2 { max-width: 352px; }
  .share-block { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .share-btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 14px; }
  footer { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  footer p { font-size: 11px; }
  .footer-submit { width: 100%; text-align: center; padding: 12px 20px; font-size: 13px; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-ghost { margin: 0 auto; text-align: center; }
}

/* TABLET */
@media (max-width: 860px) and (min-width: 641px) {
  /* hero padding handled per-page at tablet */
  .section { padding: 64px 32px; }
}

/* SCROLL HINT */
.scroll-hint { position: absolute; bottom: 24px; left: 50%; color: #fff; font-size: 18px; opacity: 0; animation: scrollBounce 1.8s ease-in-out infinite; pointer-events: none; transition: opacity 0.4s ease; }

/* ANIMATIONS */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flyIn { from { opacity: 0; transform: translateY(40px) rotate(-8deg); } to { opacity: 1; transform: translateY(0) rotate(0deg); } }
