/* ============================================================
   Jigsawly — shared site styles
   Palette matched to the app logo: deep navy frame, bright
   puzzle-piece accents (sky blue, green, red, orange), cream bg.
   ============================================================ */

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

:root {
  --navy-deep:   #1d3357;
  --navy:        #25406c;
  --navy-mid:    #2d4c82;
  --sky:         #3fbbf1;
  --sky-light:   #99e8e8;
  --green:       #83ca4b;
  --green-deep:  #5fa336;
  --red:         #f24533;
  --red-deep:    #d62f1e;
  --orange:      #f6963a;
  --orange-deep: #e07a1f;
  --gold:        #f7b733;

  --cream:       #fffdf2;
  --paper:       #ffffff;
  --ink:         #1d2a3f;
  --ink-soft:    #4a5a72;
  --line:        #d9e2ec;
  --shadow:      rgba(29, 51, 87, 0.13);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(63, 187, 241, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(131, 202, 75, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 80% 92%, rgba(242, 69, 51, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 18% 88%, rgba(246, 150, 58, 0.09) 0%, transparent 40%),
    var(--cream);
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border-bottom: 4px solid var(--navy-deep);
  box-shadow: 0 4px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* Real logo image in the header */
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 2.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  object-fit: cover;
  display: block;
}

.brand-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45);
  letter-spacing: 1px;
}

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #c7d6ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* ---------- Main content ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 56px 28px 90px; }

.page-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 42px;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 8px;
}
.page-subtitle { color: var(--ink-soft); font-size: 18px; margin-bottom: 14px; }

.updated {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: #eaf4fb;
  border: 1px solid #cfe4f4;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 40px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 38px;
  box-shadow: 0 6px 24px var(--shadow);
  margin-bottom: 28px;
}

h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: var(--navy);
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
h2:first-child { margin-top: 0; }

h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--sky);
  margin: 22px 0 8px;
}

p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }

a { color: var(--sky); font-weight: 700; text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

strong { color: var(--navy); font-weight: 800; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.contact-item {
  background: #f4f9fd;
  border: 1px solid #d9e8f4;
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-item .label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sky);
  margin-bottom: 4px;
}
.contact-item .value { font-size: 17px; font-weight: 700; color: var(--navy); }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--sky);
  color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.faq-a { color: var(--ink-soft); padding-left: 36px; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 70px 28px 50px; max-width: 820px; margin: 0 auto; }

/* Big app icon at the top of the landing hero */
.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(29, 51, 87, 0.28), 0 3px 9px rgba(0,0,0,0.14);
  margin-bottom: 22px;
  object-fit: cover;
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf4fb;
  border: 1px solid #cfe4f4;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--sky), var(--green) 35%, var(--orange) 70%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 21px; color: var(--ink-soft); max-width: 600px; margin: 0 auto 34px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 10px auto 0;
  padding: 0 28px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 6px 24px var(--shadow);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent, var(--sky));
}
.feature .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  border: 2px solid rgba(0,0,0,0.12);
}
.feature h3 { margin-top: 0; color: var(--navy); }
.feature p { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #c7d6ea;
  border-top: 4px solid var(--navy-deep);
  margin-top: 40px;
}
.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 38px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #c7d6ea; font-weight: 700; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; opacity: 0.8; }

@media (max-width: 600px) {
  .hero h1 { font-size: 44px; }
  .page-title { font-size: 32px; }
  .card { padding: 24px 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}