/* SqirlBoard landing — values from SqirlNest winner reference prototype */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --ref-yellow: #fad22b;
  --ref-charcoal: #1f2937;
  --ref-bg: #f8f9fa;
  --ref-mint: #bce2d7;
  --ref-blue: #d9f1fd;
  --ref-cream: #fdf5a4;
  --ref-peach: #fec987;
  --ref-frosty: #abc3e5;
  --lb-max: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.lb-page {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  background-color: #f8f9fa;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

.brand-font {
  font-family: 'Quicksand', sans-serif;
}

.lb-wrap {
  width: 100%;
  max-width: var(--lb-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background blobs (reference) */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob-yellow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: rgba(253, 245, 164, 0.4);
  filter: blur(120px);
  border-radius: 9999px;
}

.blob-blue {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: rgba(217, 241, 253, 0.3);
  filter: blur(100px);
  border-radius: 9999px;
}

/* Nav (reference) */
.lb-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  background: transparent;
}

.lb-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-color: #e4e4e7;
  padding: 0.75rem 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lb-nav__inner {
  max-width: var(--lb-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lb-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2937;
  text-decoration: none;
}

.lb-logo__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: var(--ref-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(250, 210, 43, 0.35);
}

.lb-logo__mark svg {
  stroke: #1f2937;
}

.lb-logo__accent {
  color: #ca9a06;
}

.lb-nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .lb-nav__links {
    display: flex;
  }
}

.lb-nav__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
}

.lb-nav__links a:hover {
  color: #1f2937;
}

.lb-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-nav__signin {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 12px;
  padding: 0.75rem 1.375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lb-btn--primary {
  background: var(--ref-yellow);
  color: #422006;
  box-shadow: 0 4px 16px rgba(250, 210, 43, 0.35);
}

.lb-btn--primary:hover {
  background: #e8c326;
  transform: translateY(-1px);
}

.lb-btn--secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lb-btn--secondary:hover {
  background: #f9fafb;
}

.lb-btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.lb-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

/* Hero (reference) */
.hero {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--lb-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(250, 210, 43, 0.1);
  border: 1px solid rgba(250, 210, 43, 0.2);
  color: #a05f0e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 6rem);
  color: #1f2937;
  margin: 0 0 1.5rem;
}

.hero-title .text-yellow {
  color: #fad22b;
}

.hero-lead {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-frame {
  position: relative;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 12px solid #fff;
  background: #e5e7eb;
}

.hero-frame__img {
  width: 100%;
  height: 550px;
  display: block;
  object-fit: cover;
  object-position: center;
  background-color: #e5e7eb;
  transition: transform 1000ms;
}

.hero-frame:hover .hero-frame__img {
  transform: scale(1.03);
}

@keyframes landing-spark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes landing-spark-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(188, 226, 215, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(188, 226, 215, 0);
  }
}

.landing-spark-captured {
  animation: landing-spark-float 3.8s ease-in-out infinite;
}

.landing-spark-captured-icon {
  animation: landing-spark-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .landing-spark-captured,
  .landing-spark-captured-icon {
    animation: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
  z-index: 2;
}

.hero-caption-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.25rem;
}

.hero-caption-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.floating-spark {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #f4f4f5;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  max-width: 16rem;
}

.floating-spark__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #bce2d7;
  color: #065f46;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-spark__text {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #6b7280;
}

.floating-spark__text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section headers */
.lb-section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.lb-section-head h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.lb-section-head h2 .text-yellow {
  color: #fad22b;
}

.lb-section-head p {
  margin: 0;
  font-size: 1.0625rem;
  color: #6b7280;
  line-height: 1.55;
}

.lb-section-head__hint {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: #9ca3af;
}

/* Raindrop masonry preview (landing only — not app card grid) */
.lb-raindrop {
  padding: 3rem 0 5rem;
}

.landing-raindrop-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 640px) {
  .landing-raindrop-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .landing-raindrop-grid {
    column-count: 3;
  }
}

@media (min-width: 1280px) {
  .landing-raindrop-grid {
    column-count: 4;
  }
}

.landing-raindrop-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.raindrop-tall {
  height: 430px;
}

.raindrop-medium {
  height: 280px;
}

.raindrop-short {
  height: 220px;
}

.landing-raindrop-image {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
  background: #fff;
  height: 100%;
}

.landing-raindrop-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  pointer-events: none;
}

.landing-raindrop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-raindrop-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.landing-raindrop-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.landing-raindrop-note {
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(31, 41, 55, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.landing-raindrop-note-thumb {
  flex: 1;
  min-height: 170px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.landing-raindrop-note-thumb h3 {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.note-thumb-blue {
  background: #c7eaf3;
}

.note-thumb-green {
  background: #b8d9c0;
}

.note-thumb-yellow {
  background: #ffd04a;
}

.note-thumb-sage {
  background: #bdd2cb;
}

.landing-raindrop-link {
  height: 100%;
  padding: 1.5rem 1.75rem;
  border-radius: 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
}

.landing-raindrop-link__title {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.landing-raindrop-link__url {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* Local-first */
.lb-local {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, #f0fdfa 100%);
  border-top: 1px solid rgba(15, 118, 110, 0.08);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.lb-local__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .lb-local__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.lb-trust-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 2rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.5s, transform 0.5s;
}

.lb-trust-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.lb-trust-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: #bce2d7;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.lb-trust-card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.lb-trust-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.55;
}

.lb-trust-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
}

/* Compatibility (reference card language) */
.lb-compat {
  padding: 4rem 0;
}

.lb-compat__card {
  max-width: 50rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f4f4f5;
  border-radius: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.5s;
}

.lb-compat__card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 720px) {
  .lb-compat__card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.lb-compat__copy h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.lb-compat__copy > p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0 0 0.875rem;
  line-height: 1.55;
}

.lb-compat__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lb-compat__pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.lb-compat__pill--rec {
  color: #6b7280;
  background: rgba(250, 210, 43, 0.1);
  border-color: rgba(250, 210, 43, 0.2);
}

.lb-compat__action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .lb-compat__action {
    align-items: flex-end;
    min-width: 11.5rem;
  }
}

.lb-compat__btn {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.lb-compat__btn:hover {
  background: #f9fafb;
}

.lb-compat__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lb-compat__result {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.lb-compat__result--ok {
  color: #166534;
}

.lb-compat__result--warn {
  color: #991b1b;
}

/* CTA + footer */
.lb-cta {
  padding: 5rem 0 6rem;
  text-align: center;
}

.lb-cta h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.lb-cta p {
  font-size: 1.0625rem;
  color: #6b7280;
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.lb-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid #f4f4f5;
  background: #fff;
}

.lb-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lb-footer__meta,
.lb-footer__nest {
  margin: 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.lb-footer__nest {
  margin-top: 0.25rem;
}

.lb-footer__version {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.lb-section {
  scroll-margin-top: 6rem;
}

@media (max-width: 640px) {
  .floating-spark {
    left: 0;
    bottom: -1rem;
    padding: 1rem;
  }

  .hero-frame__img {
    height: 420px;
  }
}
