/* Nimbolu website. Fonts are hosted here (no third-party requests). */
@font-face { font-family: "Sniglet"; src: url("/fonts/sniglet-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sniglet"; src: url("/fonts/sniglet-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --navy: #2B4C7E;
  --ink: #23324d;
  --muted: #5b6b86;
  --sky: #5BB8F0;
  --sky-soft: #e8f5ff;
  --sky-pale: #f4faff;
  --green: #5CC96B;
  --orange: #FF9F43;
  --gold: #FFC83D;
  --pink: #ff8fb1;
  --card: #ffffff;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(43, 76, 126, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky-pale);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Sniglet", "Nunito", sans-serif; font-weight: 800; color: var(--navy); line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #dcebf8; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header .logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 800; color: var(--navy); }
.nav a:hover { color: var(--sky); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #bfe6ff 0%, #e3f4ff 70%, var(--sky-pale) 100%); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 30px; padding-top: 56px; padding-bottom: 40px; }
.hero .lead { font-size: 1.25rem; color: var(--ink); max-width: 34em; }
.hero-art { position: relative; }
.hero-art .mascot { width: min(420px, 90%); margin: 0 auto; animation: float 5s ease-in-out infinite; }
.hero-art .friend { position: absolute; width: 74px; animation: float 6s ease-in-out infinite; }
.hero-art .f1 { top: 2%; left: 4%; animation-delay: -2s; }
.hero-art .f2 { top: 8%; right: 2%; width: 88px; animation-delay: -4s; }
.hero-art .f3 { bottom: 4%; left: 0; width: 60px; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .mascot, .hero-art .friend { animation: none; } }

.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: 0.85; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud.c1 { width: 180px; height: 54px; top: 40px; left: -40px; }
.cloud.c1::before { width: 80px; height: 80px; top: -40px; left: 30px; }
.cloud.c1::after { width: 60px; height: 60px; top: -26px; left: 92px; }
.cloud.c2 { width: 140px; height: 44px; bottom: 60px; right: 6%; }
.cloud.c2::before { width: 64px; height: 64px; top: -32px; left: 24px; }
.cloud.c2::after { width: 48px; height: 48px; top: -20px; left: 74px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 16px; min-width: 210px; box-shadow: var(--shadow); }
.store-btn small { font-size: 0.78rem; opacity: 0.8; letter-spacing: 0.02em; }
.store-btn strong { font-family: "Sniglet", sans-serif; font-weight: 800; font-size: 1.2rem; }
.store-btn.soon { background: #8aa0bf; }
.free-note { font-weight: 700; color: var(--navy); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.badges li { background: #fff; border: 2px solid #d4e9fa; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 0.92rem; color: var(--navy); }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill { background: var(--card); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); text-align: center; }
.skill .icon { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; }
.skill .icon img { width: 80px; }
.skill p { color: var(--muted); margin: 0; }
.bg-sky { background: #dff2ff; } .bg-sun { background: #fff3cc; } .bg-mint { background: #dcf6e0; }
.bg-peach { background: #ffe7d3; } .bg-rose { background: #ffe1ec; } .bg-lilac { background: #ece4ff; }

.islands-section { background: linear-gradient(180deg, var(--sky-pale), #d6efff 30%, #d6efff 70%, var(--sky-pale)); }
.islands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.island { text-align: center; }
.island img { width: 100%; max-width: 190px; height: 150px; object-fit: contain; object-position: center bottom; margin: 0 auto; transition: transform 0.25s; }
.island:hover img { transform: translateY(-6px) rotate(-2deg); }
.island span { display: inline-block; margin-top: 6px; background: #fff; border-radius: 999px; padding: 4px 16px; font-family: "Sniglet", sans-serif; font-weight: 400; font-size: 1.1rem; color: var(--navy); box-shadow: 0 3px 10px rgba(43, 76, 126, 0.12); }
.islands-note { text-align: center; margin-top: 34px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { background: var(--navy); padding: 10px; border-radius: 26px; box-shadow: var(--shadow); }
.shot img { border-radius: 18px; }
.shot figcaption { color: #fff; text-align: center; font-weight: 800; padding: 10px 4px 4px; }
.gallery figure { margin: 0; }

.parents { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.parents .art img { width: min(320px, 90%); margin: 0 auto; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 0 0 16px 46px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 1rem; }
.checks strong { color: var(--navy); }

.plus { background: #fff; border-radius: 40px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 40px; }
.plans { display: grid; gap: 14px; margin: 20px 0; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 3px solid #e1ecf7; border-radius: 20px; padding: 14px 20px; }
.plan.best { border-color: var(--gold); position: relative; }
.plan.best::after { content: "Best value"; position: absolute; top: -13px; right: 18px; background: var(--orange); color: #fff; font-size: 0.75rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; }
.plan b { font-family: "Sniglet", sans-serif; font-weight: 800; color: var(--navy); font-size: 1.2rem; }
.plan .price { font-weight: 900; color: var(--navy); font-size: 1.2rem; }
.plan .price small { font-weight: 700; color: var(--muted); font-size: 0.85rem; }
.fine { color: var(--muted); font-size: 0.9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dbe8f7; margin-top: 40px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -38px; left: 0; right: 0; height: 40px; background: radial-gradient(40px 40px at 40px 40px, var(--navy) 98%, transparent) repeat-x; background-size: 80px 40px; }
.site-footer .wrap { padding-top: 46px; padding-bottom: 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-footer .logo { display: inline-block; background: #fff; border-radius: 22px; padding: 10px 18px; }
.site-footer .logo img { height: 46px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1.3rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); grid-column: 1 / -1; padding-top: 18px; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 50px 20px 30px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal .updated { color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap, .parents, .plus { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 34px; text-align: center; }
  .hero .lead { margin: 0 auto 1em; }
  .store-buttons, .badges { justify-content: center; }
  .skills, .gallery { grid-template-columns: 1fr 1fr; }
  .islands { grid-template-columns: repeat(3, 1fr); }
  .island img { height: 130px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .plus { padding: 28px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .skills, .gallery { grid-template-columns: 1fr; }
  .islands { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; width: 100%; }
}

/* Nimbolu Town section */
.town-section { background: linear-gradient(180deg, var(--sky-pale), #fff4e6 25%, #fff4e6 75%, var(--sky-pale)); }
.kicker { display: inline-block; background: #ffb547; color: #fff; font-weight: 900; border-radius: 999px; padding: 4px 14px; margin: 0 0 10px; font-size: 0.9rem; letter-spacing: 0.03em; }
.plus.town { margin-bottom: 34px; }
.plus.town img { border-radius: 24px; }
.plus.town .checks li { padding-bottom: 12px; }
.gallery.four { grid-template-columns: repeat(4, 1fr); }
.new-app { margin: 14px 0 0; }
.new-app a { display: inline-block; max-width: 100%; background: #fff; border: 2px solid #ffd59a; border-radius: 22px; padding: 6px 16px 6px 6px; text-decoration: none; font-weight: 700; color: var(--navy); line-height: 1.6; }
.new-app a span { display: inline-block; margin-right: 6px; background: #ffb547; color: #fff; border-radius: 999px; padding: 0 10px; font-weight: 900; font-size: 0.85rem; }
@media (max-width: 900px) { .gallery.four { grid-template-columns: 1fr 1fr; } }
.parents .art img.photo { width: 100%; border-radius: 28px; box-shadow: var(--shadow); }
.gallery.four img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
