/* Pip — Doodle World brand styles. Playful Neon palette (DESIGN.md §7). */

:root {
  --pip-blue: #4CC9F0;
  --yellow: #FFD60A;
  --green: #30D158;
  --orange: #FF9F45;
  --pink: #FF6B8A;
  --bg: #F8F9FA;
  --sky-top: #BDEBFB;
  --sky-bottom: #E8F9FF;
  --ink: #1A1A1E;
  --ink-soft: #55565E;
  --ink-faint: #8B8D98;
  --card-shadow: 0 10px 30px rgba(26, 26, 30, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a { color: var(--pip-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 30, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}
.nav-links a:hover { color: var(--pip-blue); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: 72px 24px 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  margin: 22px 0 14px;
}

.hero .tagline {
  font-size: clamp(17px, 2.5vw, 21px);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero .pip-mascot { filter: drop-shadow(0 12px 24px rgba(76, 201, 240, 0.35)); }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: var(--card-shadow);
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(26, 26, 30, 0.04);
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

.islands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.island-chip {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(26, 26, 30, 0.12);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: 52px 24px;
  text-align: center;
}
.legal-hero h1 { font-size: clamp(28px, 5vw, 40px); }
.legal-hero p { color: var(--ink-soft); margin-top: 8px; font-weight: 700; }

.prose {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  padding: clamp(28px, 5vw, 52px);
  margin: -28px auto 64px;
  max-width: 760px;
  position: relative;
}

.prose h2 { font-size: 21px; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose strong { color: var(--ink); }
.prose .contact {
  margin-top: 34px;
  padding: 20px 24px;
  background: rgba(76, 201, 240, 0.10);
  border-radius: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.prose .contact a { font-weight: 800; }

/* ---------- Support ---------- */

.support-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  padding: 44px;
  text-align: center;
  max-width: 560px;
  margin: -28px auto 64px;
  position: relative;
}

.support-card .big-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(76, 201, 240, 0.12);
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  padding: 14px 26px;
  border-radius: 999px;
  margin: 18px 0 8px;
}
.support-card .big-mail:hover { text-decoration: none; background: rgba(76, 201, 240, 0.2); }

.support-card p { color: var(--ink-soft); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid rgba(26, 26, 30, 0.06);
  padding: 34px 24px 44px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

footer .foot-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
footer .foot-links a { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  section { padding: 48px 0; }
}
