/* IQ Max site. Layout and rhythm modelled on a single-page brain-training app landing; all copy and art are IQ Max's own. */
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/nunito-900.woff") format("woff"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/nunito-800.woff") format("woff"); }

:root {
  --navy-900: #08163F; --navy-800: #0C2160; --navy-700: #123A8C;
  --sky: #4FA3FF; --sky-2: #2F7BFF; --sky-soft: #EAF3FF; --sky-mist: #F5F9FF;
  --yellow: #FFD640; --yellow-deep: #E8B800;
  --ink: #0E1B3D; --ink-2: #4C5B7E; --ink-3: #8592B0; --line: #E3E9F4;
  --on-dark: #FFFFFF; --on-dark-2: #BED4FF;
  --radius: 24px; --max: 1120px;
  --head: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
main { overflow-x: clip; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-2); }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.hl { color: var(--yellow); }
.hl-blue { color: var(--sky-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 22, 63, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 21px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-dark-2); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--yellow); color: var(--navy-900); text-decoration: none; font-family: var(--head); font-weight: 900; font-size: 15px; padding: 9px 16px; border-radius: 999px; box-shadow: 0 3px 0 var(--yellow-deep); }

/* App Store badge (drawn in CSS so it stays crisp and costs no request) */
.appstore { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid #A6A6A6; border-radius: 12px; padding: 9px 20px 9px 14px; min-height: 58px; transition: transform .15s; }
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 30px; height: 30px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore small { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.appstore b { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.fine { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; }
.dark .fine { color: var(--on-dark-2); opacity: .85; }

/* hero */
.dark { background: radial-gradient(90% 70% at 85% 0%, rgba(79, 163, 255, .35), transparent 60%), linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%); color: var(--on-dark); }
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero .container { display: grid; gap: 36px; align-items: end; position: relative; z-index: 1; }
.hero-copy { text-align: center; }
.hero-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.hero h1 { font-size: clamp(38px, 9.6vw, 60px); }
.hero .lede { font-size: 18px; color: var(--on-dark-2); max-width: 520px; margin: 16px auto 26px; }
.hero-phone { position: relative; width: min(300px, 76vw); margin: 0 auto; }
.hero-phone .phone { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); margin-bottom: -38%; }
.hero-phone .pal { position: absolute; width: 40%; left: -18%; bottom: 34%; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters img { position: absolute; width: 56px; opacity: .9; animation: bob 6s ease-in-out infinite; }
.floaters img:nth-child(1) { top: 9%; left: 5%; }
.floaters img:nth-child(2) { top: 7%; right: 6%; animation-delay: -1s; }
.floaters img:nth-child(3) { top: 40%; left: 3%; animation-delay: -2s; display: none; }
.floaters img:nth-child(4) { top: 38%; right: 3%; animation-delay: -3s; display: none; }
.floaters img:nth-child(5) { top: 70%; left: 10%; animation-delay: -4s; display: none; }
.floaters img:nth-child(6) { top: 66%; right: 10%; animation-delay: -5s; display: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .floaters img { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section { padding: 72px 0; }
.center { text-align: center; }
.kicker { font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-2); margin: 0 0 10px; }
.dark .kicker { color: var(--yellow); }
h2 { font-size: clamp(32px, 7vw, 48px); }
.sub { font-size: 18px; color: var(--ink-2); max-width: 620px; margin: 14px auto 0; }
.dark .sub { color: var(--on-dark-2); }

/* how it works: skill tiles */

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; list-style: none; padding: 0; }
.skills li { background: var(--sky-mist); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 14px; text-align: center; }
.skills img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.skills h3 { font-size: 18px; }
.skills p { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }

/* alternating feature rows */
.feature .container { display: grid; gap: 36px; align-items: center; }
.feature.tint { background: var(--sky-mist); }
.feature-copy h2 { font-size: clamp(30px, 6.4vw, 44px); }
.feature-copy p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; }
.feature-media { position: relative; width: min(290px, 74vw); margin: 0 auto; }
.feature-media .phone { filter: drop-shadow(0 24px 40px rgba(14, 27, 61, .22)); }
.feature-media .pal { position: absolute; width: 38%; right: -16%; bottom: 8%; filter: drop-shadow(0 10px 16px rgba(14, 27, 61, .2)); }
.feature-media .pal.left { right: auto; left: -16%; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-size: 16px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-family: var(--head); font-weight: 800; font-size: 14px; color: var(--ink); }
.note { margin-top: 20px; background: #FFF8DC; border: 1.5px solid #F3DE8A; border-radius: 16px; padding: 14px 16px; font-size: 15px; color: #5B4A0B; }

/* Pal band */
.pal-band { overflow: hidden; }
.pals { display: flex; gap: 18px; justify-content: center; align-items: flex-end; margin-top: 36px; flex-wrap: wrap; }
.pals img { width: 96px; transition: transform .2s; }
.pals img:hover { transform: translateY(-6px) rotate(-3deg); }

/* steps (referral) */
.steps-row { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.steps-row li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; font-size: 16px; }
.steps-row li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-family: var(--head); font-weight: 900; display: grid; place-items: center; }

/* proof strip */
.proof { padding: 56px 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 16px; list-style: none; margin: 0; padding: 0; text-align: center; }
.stats b { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(40px, 9vw, 60px); color: var(--yellow); line-height: 1; }
.stats span { display: block; margin-top: 6px; color: var(--on-dark-2); font-family: var(--head); font-weight: 800; font-size: 15px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq-list details { border: 1.5px solid var(--line); border-radius: 18px; background: #fff; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-family: var(--head); font-weight: 900; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--sky-2); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: 16px; }

/* final CTA */
.cta-band .container { text-align: center; }
.cta-band img.pal { width: 150px; margin: 0 auto 10px; }
.cta-band .appstore { margin-top: 26px; }

/* footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-2); padding: 48px 0 32px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
.foot-grid h4 { font-family: var(--head); font-weight: 900; color: #fff; font-size: 15px; margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--on-dark-2); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand p { margin: 10px 0 0; max-width: 320px; }
.copyright { border-top: 1px solid rgba(190, 212, 255, .18); margin-top: 32px; padding-top: 20px; font-size: 13px; opacity: .8; }

/* simple pages (privacy, terms, support, invite) */
.page { max-width: 720px; margin: 0 auto; padding: 36px 16px 64px; }
.page h1 { font-size: clamp(34px, 8vw, 46px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 6px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); }
.doc li { margin: 6px 0; }

/* invite page */
.invite-hero { text-align: center; padding: 28px 16px 8px; }
.invite-hero img { width: 220px; margin: 0 auto; }
.invite .lead { font-size: 18px; color: var(--ink-2); }
.code { font-family: var(--head); font-size: 38px; font-weight: 900; letter-spacing: 6px; padding: 18px; border: 2px dashed #C9DCFF; border-radius: 20px; background: var(--sky-mist); text-align: center; margin: 18px 0; }
.btn { display: block; width: 100%; text-align: center; background: var(--sky-2); color: #fff; font-family: var(--head); font-weight: 900; font-size: 18px; padding: 17px; border-radius: 16px; text-decoration: none; box-shadow: 0 4px 0 #1B5FD9; border: 0; cursor: pointer; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1B5FD9; }
.ghost { display: block; text-align: center; margin-top: 14px; color: var(--sky-2); font-family: var(--head); font-weight: 800; text-decoration: none; }
.steps { border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 18px 6px 38px; margin-top: 24px; }
.steps li { margin: 12px 0; color: var(--ink-2); }

@media (min-width: 640px) {
  .skills { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .floaters img:nth-child(n+3) { display: block; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .hero { padding-top: 56px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; }
  .hero-copy { text-align: left; padding-bottom: 96px; align-self: center; }
  .hero-icon { margin-left: 0; }
  .hero .lede { margin-left: 0; }
  .floaters img { width: 64px; }
  .floaters img:nth-child(1) { top: 9%; left: 50%; }
  .floaters img:nth-child(2) { top: 8%; right: 5%; }
  .floaters img:nth-child(3) { top: 46%; left: auto; right: 3%; }
  .floaters img:nth-child(4) { top: 78%; right: 5%; }
  .floaters img:nth-child(5) { display: none; }
  .floaters img:nth-child(6) { display: none; }
  .hero-phone .pal { left: -30%; }
  .feature-media .pal { right: -24%; }
  .feature-media .pal.left { left: -24%; }
  .feature .container { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature.flip .feature-media { order: -1; }
  .feature-copy { max-width: 500px; }
  .feature.flip .feature-copy { justify-self: end; }
  section { padding: 96px 0; }
  .pals img { width: 140px; }
}
