/* ===========================================================
   MindSprout — shared stylesheet (2026 refresh)
   Design: warm orange brand, modernized execution
   Fonts: Nunito (headings) + DM Sans (body)
   =========================================================== */

:root {
  --orange: #FF6B35;
  --orange-dark: #e05a3a;
  --orange-soft: #FF8F5E;
  --yellow: #FFD93D;
  --green: #6BCB77;
  --green-dark: #34A853;
  --blue: #4C8BF5;
  --purple: #A259FF;
  --ink: #191511;
  --gray: #55504a;
  --gray-light: #6e675f;
  --cream: #FFF9F0;
  --cream-2: #FFF4E8;
  --cream-3: #FFE8D6;
  --border: #f0ece4;
  --border-2: #e0d8cc;

  /* layered shadow scale */
  --shadow-xs: 0 1px 2px rgba(25, 21, 17, .05);
  --shadow-sm: 0 1px 2px rgba(25, 21, 17, .04), 0 2px 8px rgba(25, 21, 17, .05);
  --shadow-md: 0 2px 4px rgba(25, 21, 17, .04), 0 8px 24px rgba(25, 21, 17, .07);
  --shadow-lg: 0 4px 8px rgba(25, 21, 17, .05), 0 18px 44px rgba(25, 21, 17, .11);
  --shadow-orange: 0 4px 14px rgba(255, 107, 53, .28), 0 2px 4px rgba(255, 107, 53, .18);
  --card-shadow: var(--shadow-sm); /* legacy alias */

  --radius: 18px;
  --radius-lg: 24px;
  --maxw: 1200px;

  /* fluid type scale */
  --fs-h1: clamp(38px, 5.4vw, 60px);
  --fs-h2: clamp(28px, 3.6vw, 42px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-lead: clamp(16px, 1.6vw, 19px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 107, 53, .22); }

h1, h2, h3, h4, .font-head {
  font-family: 'Nunito', sans-serif;
  letter-spacing: -.5px;
  line-height: 1.12;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

:focus-visible {
  outline: 3px solid rgba(255, 107, 53, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--orange-soft) -60%, var(--orange) 55%);
  color: #fff;
  box-shadow: var(--shadow-orange), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--orange) -40%, var(--orange-dark) 60%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 53, .38), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-outline {
  background: #fff;
  color: var(--gray);
  border-color: var(--border-2);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-ghost-orange:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 17px 38px; font-size: 16px; border-radius: 16px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 250, .78);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.scrolled {
  background: rgba(255, 253, 250, .92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(25, 21, 17, .06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, .3), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 600; font-size: 14px; color: var(--gray);
  padding: 8px 12px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--orange); background: rgba(255, 107, 53, .07); }
.nav-links a.active { color: var(--orange); background: rgba(255, 107, 53, .1); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 53, .09);
  border: 1px solid rgba(255, 107, 53, .18);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 20px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: var(--fs-h2); font-weight: 900; letter-spacing: -1.2px; }
.section-head p { color: var(--gray-light); font-size: var(--fs-lead); margin-top: 14px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  opacity: 0;
  transition: opacity .22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, .25);
}
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, var(--cream-2), var(--cream-3));
  border: 1px solid rgba(255, 107, 53, .12);
  border-radius: 16px;
  margin-bottom: 18px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--gray-light); font-size: 15px; }

/* ---------- Footer ---------- */
.footer {
  background: #191511;
  color: #cbb9a8;
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .brand-name { color: #fff; }
.footer-about p { margin-top: 14px; max-width: 280px; font-size: 14px; color: #9a8b7c; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: #b8a898; transition: color .15s ease; }
.footer ul li a:hover { color: var(--orange-soft); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid #2e2a26;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #8a7c6e;
}

/* ---------- FAQ accordion (shared) ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: rgba(255, 107, 53, .3); box-shadow: var(--shadow-md); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; }
.faq-q .ic { flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(255,107,53,.1); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s ease, color .2s ease; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--gray-light); font-size: 15px; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-item.open .ic { transform: rotate(45deg); background: var(--orange); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }
.d1 { --reveal-delay: .08s; }
.d2 { --reveal-delay: .16s; }
.d3 { --reveal-delay: .24s; }
.d4 { --reveal-delay: .32s; }
.d5 { --reveal-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Utility ---------- */
.text-orange { color: var(--orange); }
.center { text-align: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.tag-green { background: var(--green); color: #fff; }
.tag-soft-orange { background: rgba(255,107,53,.12); color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-pad { padding: 60px 0; }
}
@media (max-width: 480px) {
  .nav-cta .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- App screen mockups (shared: homepage gallery + app-screens page) ---------- */
.shots-strip {
  display: flex; gap: 30px; overflow-x: auto;
  padding: 12px 6px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-strip::-webkit-scrollbar { height: 8px; }
.shots-strip::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.shots-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; }
.shot { flex: none; scroll-snap-align: center; }
.shot-phone {
  width: 242px; min-height: 480px;
  background: #fff;
  border: 7px solid #191511;
  border-radius: 34px;
  padding: 26px 13px 14px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover .shot-phone { transform: translateY(-6px); box-shadow: 0 10px 16px rgba(25,21,17,.06), 0 30px 60px rgba(25,21,17,.16); }
.shot-phone::before {
  content: "";
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 68px; height: 16px; background: #191511; border-radius: 10px;
}
.shot-cap { text-align: center; margin-top: 14px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; }
.shot-cap small { display: block; color: var(--gray-light); font-weight: 600; font-size: 12px; font-family: 'DM Sans', sans-serif; margin-top: 2px; }

/* screen UI atoms */
.s-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.s-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; }
.s-sub { font-size: 10px; color: #999; }
.s-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: #5a5000; font-weight: 800; font-size: 10px; padding: 4px 9px; border-radius: 999px; }
.s-card { border-radius: 13px; padding: 11px 12px; margin-bottom: 9px; font-size: 11px; }
.s-card .t { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; }
.s-card .l { font-size: 9px; font-weight: 700; letter-spacing: .5px; opacity: .85; }
.s-card .m { font-size: 10px; opacity: .85; margin-top: 2px; }
.s-orange { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); color: #fff; box-shadow: 0 6px 16px -5px rgba(255,107,53,.45); }
.s-soft { background: #FFF0E6; }
.s-lav { background: #F8F6FF; }
.s-mint { background: #E8F8E8; }
.s-row { display: flex; align-items: center; gap: 8px; }
.s-av { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-3); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.s-bar { height: 6px; background: #f0e8dc; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.s-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #8edd98); border-radius: 6px; }
.s-name { font-weight: 700; font-size: 11px; }
.s-meta { font-size: 9px; color: #999; }
.s-xp { margin-left: auto; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 11px; color: var(--orange); white-space: nowrap; }
.s-rank { flex: none; width: 20px; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 12px; color: var(--gray-light); text-align: center; }
.s-li { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 11px; margin-bottom: 6px; background: #faf7f2; }
.s-li.me { background: #FFF0E6; border: 1px solid rgba(255,107,53,.3); }
.s-bub { padding: 8px 11px; border-radius: 13px; font-size: 10.5px; margin-bottom: 8px; max-width: 90%; line-height: 1.45; }
.s-bub.q { background: #FFF0E6; margin-left: auto; border-bottom-right-radius: 4px; }
.s-bub.a { background: #F8F6FF; border-bottom-left-radius: 4px; }
.s-note { font-size: 9px; color: #999; text-align: center; margin: 6px 0; }
.s-vs { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px; }
.s-vs .p { text-align: center; flex: 1; }
.s-vs .p .s-av { margin: 0 auto 4px; width: 38px; height: 38px; font-size: 19px; }
.s-vs .v { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 17px; color: var(--orange); }
.s-score { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 15px; }
.s-opt { border: 1.5px solid var(--border-2); border-radius: 10px; padding: 8px 10px; font-size: 10.5px; font-weight: 600; margin-bottom: 6px; }
.s-opt.right { border-color: var(--green-dark); background: #E8F8E8; color: #227a3a; font-weight: 700; }
.s-input { display: flex; gap: 6px; margin-top: 8px; }
.s-input .bx { flex: 1; border: 1px solid var(--border-2); border-radius: 10px; padding: 7px 10px; color: #aaa; font-size: 10px; }
.s-input .snd { background: var(--orange); color: #fff; border-radius: 10px; width: 30px; display: flex; align-items: center; justify-content: center; font-size: 12px; }

@media (max-width: 640px) {
  .shot-phone { width: 218px; min-height: 440px; }
  .shots-grid { gap: 24px; }
}
