/* Boli Buddies public landing page — approved v21 design system. */
:root {
  --ink: #001a46;
  --sky: #1faef3;
  --sun: #fdcb27;
  --red: #e93033;
  --grass: #4da146;
  --paper: #ffffff;
  --canvas: #f2f7fc;
  --muted: #40506f;
  --line: #001a4624;
  --display: "Nunito", sans-serif;
  --body: "Nunito", sans-serif;
  --shell: min(1080px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 10px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 16px; }

/* Navigation and wordmark */
.site-header { position: sticky; top: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: var(--shell); min-height: 68px; margin-top: 16px; padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 92%); box-shadow: 0 8px 28px rgb(0 26 70 / 8%); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 900 23px/1 var(--display); letter-spacing: -.075em; text-decoration: none; word-spacing: .11em; }
.brand span { color: var(--sky); letter-spacing: -.075em; }
.brand-mascot { display: block; width: 32px; height: 32px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 27px; }
nav a { color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.nav-cta { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 999px; background: var(--sun); }

/* Shared typography and actions */
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.045em; line-height: 1.12; }
h1 { font-size: clamp(48px, 5.5vw, 74px); font-weight: 800; }
h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.kicker { margin: 0 0 14px; color: var(--ink); font: 900 12px/1 var(--display); letter-spacing: .105em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; gap: 15px; padding: 13px 19px; border: 1px solid var(--ink); border-radius: 999px; background: var(--sun); color: var(--ink); font: 900 15px var(--display); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.button:hover, .button:focus-visible, .nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 0 #001a4626; }
.button span, .nav-cta span { transition: transform 180ms ease; }
.button:hover span, .button:focus-visible span, .nav-cta:hover span, .nav-cta:focus-visible span { transform: translateX(3px); }
.quiet-link { color: var(--ink); border-bottom: 2px solid transparent; font-weight: 800; text-decoration: none; }
.quiet-link:hover, .quiet-link:focus-visible { border-bottom-color: var(--sky); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(44px, 8vw, 110px); min-height: 610px; padding: 66px 0 86px; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-copy h1 em { color: var(--sky); font-style: normal; }
.hero-lede { max-width: 480px; margin: 25px 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-founder { margin: 23px 0 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.hero-photo { position: relative; grid-column: 2; grid-row: 1; }
.hero-photo::before { position: absolute; top: 18px; left: -16px; width: 10px; height: 74%; background: var(--sun); content: ""; }
.hero-photo img { display: block; width: 100%; height: clamp(300px, 31vw, 390px); border-radius: 35px 35px 12px 12px; object-fit: cover; object-position: center 62%; box-shadow: 10px 10px 0 var(--sun); }
.photo-note { position: absolute; bottom: 30px; left: -28px; display: grid; gap: 3px; width: 270px; padding: 16px 19px; border-left: 5px solid var(--sun); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 22px #001a4618; }
.photo-note span { font: 800 19px/1.3 var(--display); }
.photo-note small { color: var(--muted); }

/* Problem, founder, and solution */
.problem-band { background: var(--ink); color: var(--paper); }
.problem-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 44px 80px; padding-block: 90px; }
.problem-band .kicker { color: var(--sky); }
.problem-band h2 { color: var(--paper); }
.problem-band h2 em { color: var(--sky); font-style: normal; }
.problem-flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ffffff3b; border-bottom: 1px solid #ffffff3b; }
.problem-flow div { min-height: 118px; padding: 24px 22px 24px 0; border-right: 1px solid #ffffff24; }
.problem-flow div + div { padding-left: 22px; }
.problem-flow div:last-child { border-right: 0; }
.problem-flow span, .solution-cards span { display: block; margin-bottom: 18px; color: var(--sun); font: 800 14px/1 var(--display); }
.problem-flow strong { display: block; max-width: 230px; font: 800 18px/1.25 var(--display); }
.problem-close { grid-column: 2; max-width: 560px; margin: -14px 0 0; color: #dbe3f4; font-size: 18px; }

.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(50px, 8vw, 115px); padding-block: 105px; }
.story h2 { max-width: 470px; margin-bottom: 22px; }
.story-copy p:not(.kicker) { max-width: 580px; margin: 0 0 19px; color: var(--muted); font-size: 17px; }
.story-cta { margin-top: 6px; }
.story img { width: 100%; height: clamp(280px, 29vw, 365px); border-radius: 12px 45px 12px 12px; object-fit: cover; object-position: center 56%; box-shadow: -10px 10px 0 var(--grass); }

.solution { padding-block: 105px; background: #e4f4fc; }
.solution-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px 90px; }
.solution-heading .kicker { grid-column: 1 / -1; margin-bottom: -8px; }
.solution-heading h2 { margin: 0; }
.solution-heading h2 em { color: var(--sky); font-style: normal; }
.solution-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 17px; }
.solution-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 52px; }
.solution-cards article { min-height: 228px; padding: 29px; border: 1px solid #001a460e; border-radius: 18px; background: var(--paper); box-shadow: 0 8px 22px #001a4612; }
.solution-cards article:nth-child(2) { transform: translateY(20px); }
.solution-cards h3 { margin-bottom: 8px; }
.solution-cards p { margin: 0; color: var(--muted); }
.solution-note { display: flex; align-items: center; gap: 24px; max-width: 700px; margin: 62px auto 0; padding-top: 28px; border-top: 1px solid #001a462b; }
.solution-note .solution-gurmukhi { flex: 0 0 auto; color: var(--sky); font: 800 34px/1 var(--display); }
.solution-note p { max-width: 660px; margin: 0; color: var(--ink); font: 800 19px/1.45 var(--display); }

/* FAQ and launch updates */
.faq { padding-block: 105px; }
.faq h2 { margin-bottom: 32px; }
.faq-grid { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--ink); cursor: pointer; font: 800 23px/1.2 var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { flex: 0 0 auto; color: var(--sky); font: 400 30px/1 var(--body); content: "+"; transition: transform 180ms ease; }
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq details p { max-width: 720px; margin: -5px 40px 24px 0; color: var(--muted); }
.waitlist { background: var(--sky); }
.waitlist-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding: 76px 0; }
.waitlist h2 { margin-bottom: 12px; }
.waitlist-grid > div > p:last-child { max-width: 520px; margin: 0; color: #263653; }
.updates-card { align-self: center; padding: 27px; border-radius: 18px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.updates-card p { margin: 0; color: var(--muted); }
.updates-card p:first-child { margin-bottom: 5px; color: var(--ink); font: 800 20px/1.3 var(--display); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; font-size: 13px; }
.site-footer p { margin: 0; color: var(--muted); }

/* One-time motion; content remains visible without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal], .motion-ready .hero-motion-copy, .motion-ready .hero-motion-photo { opacity: 0; transform: translateY(14px); }
  .motion-ready .hero-motion-copy { animation: rise-in 460ms 40ms cubic-bezier(.22, .8, .22, 1) forwards; }
  .motion-ready .hero-motion-photo { animation: rise-in 460ms 140ms cubic-bezier(.22, .8, .22, 1) forwards; }
  .motion-ready .hero-motion-photo .photo-note { opacity: 0; transform: translate(-10px, 10px); animation: note-in 380ms 310ms cubic-bezier(.22, .8, .22, 1) forwards; }
  .motion-ready [data-reveal].is-revealed { animation: rise-in 420ms var(--reveal-delay, 0ms) cubic-bezier(.22, .8, .22, 1) forwards; }
  .motion-ready .problem-flow [data-reveal]:nth-child(2), .motion-ready .solution-cards [data-reveal]:nth-child(2) { --reveal-delay: 80ms; }
  .motion-ready .problem-flow [data-reveal]:nth-child(3), .motion-ready .solution-cards [data-reveal]:nth-child(3) { --reveal-delay: 160ms; }
  .motion-ready .solution-cards article:nth-child(2).is-revealed { animation-name: middle-card-in; }
  @keyframes rise-in { to { opacity: 1; transform: translateY(0); } }
  @keyframes note-in { to { opacity: 1; transform: translate(0, 0); } }
  @keyframes middle-card-in { to { opacity: 1; transform: translateY(20px); } }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 760px) {
  :root { --shell: min(1080px, calc(100% - 36px)); }
  .site-header { top: 10px; width: calc(100% - 36px); margin-top: 10px; }
  .brand { font-size: 21px; }.brand-mascot { width: 28px; height: 28px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 37px; padding: 45px 0 70px; }
  .hero-copy, .hero-photo { grid-column: 1; }.hero-copy { grid-row: 1; }.hero-photo { grid-row: 2; }
  .hero-photo img { height: 305px; }.hero-copy h1 { font-size: clamp(50px, 14vw, 64px); }
  .photo-note { bottom: 20px; left: -10px; width: min(270px, calc(100% - 36px)); }
  .problem-layout, .solution-heading, .story, .waitlist-grid { grid-template-columns: 1fr; gap: 28px; }
  .problem-layout { padding-block: 67px; }.problem-flow { grid-template-columns: 1fr; }
  .problem-flow div, .problem-flow div + div { min-height: auto; padding: 19px 0; border-right: 0; border-bottom: 1px solid #ffffff24; }
  .problem-flow div:last-child { border-bottom: 0; }.problem-close { grid-column: auto; margin: 0; }
  .story { padding-block: 70px; }.story img { order: -1; height: 275px; }.solution { padding-block: 70px; }
  .solution-cards { grid-template-columns: 1fr; margin-top: 18px; }.solution-cards article:nth-child(2) { transform: none; }
  .solution-note { align-items: flex-start; margin-top: 42px; }
  .faq { padding-block: 72px; }.faq h2, .problem-band h2, .story h2, .solution-heading h2, .waitlist h2 { font-size: clamp(32px, 9vw, 44px); }
  .faq summary { padding: 20px 0; font-size: 20px; }.faq details p { margin-right: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
