/* ============================================================
   The Kidspired Creations — kidspiredcreations.com
   ============================================================ */

:root {
  /* ink */
  --ink:        #1b1338;
  --ink-soft:   #574a7a;
  --ink-faint:  #8a80a8;

  /* grounds */
  --paper:      #ffffff;
  --paper-alt:  #f6f3ff;
  --paper-warm: #fff8ef;
  --line:       #e8e3f7;

  /* brand — LitLog purple */
  --violet:     #6b45e0;
  --violet-mid: #8b5cf6;
  --violet-lite:#a882ff;
  --violet-wash:#efe9ff;

  /* accents */
  --amber:      #ff9f1c;
  --teal:       #13bfa6;
  --pink:       #ff5d8f;
  --sky:        #3d9bf5;

  --radius:     18px;
  --radius-lg:  26px;
  --wrap:       1120px;

  --shadow-sm:  0 2px 10px rgba(27, 19, 56, 0.05);
  --shadow-md:  0 14px 34px -12px rgba(27, 19, 56, 0.18);
  --shadow-lg:  0 30px 60px -22px rgba(27, 19, 56, 0.34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; font-family: inherit; font-weight: 650; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--violet); margin: 0 0 14px;
}
.lede { font-size: 1.17rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------------- header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 70px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 1.03rem; color: var(--ink); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, var(--violet-lite), var(--violet));
  display: grid; place-items: center; color: #fff;
  font-size: .95rem; font-weight: 700; font-family: "Fraunces", Georgia, serif;
  box-shadow: 0 4px 12px rgba(107, 69, 224, .38);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 0.94rem; font-weight: 550; }
.nav a:hover { color: var(--violet); text-decoration: none; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.96rem; font-weight: 650;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet));
  color: #fff; box-shadow: 0 10px 26px -6px rgba(107, 69, 224, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(107, 69, 224, 0.62); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--violet-lite); color: var(--violet); }
.btn-light { background: #fff; color: var(--violet); }
.btn-light:hover { background: #f6f2ff; }

/* ---------------- badge ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 600; margin: 0 0 22px;
}
.badge svg { width: 15px; height: 15px; }
.badge-solid { background: var(--violet-wash); color: var(--violet); border-color: transparent; }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 104px 0 120px;
  background:
    radial-gradient(1000px 520px at 78% 8%, rgba(255,159,28,.30), transparent 62%),
    radial-gradient(760px 520px at 12% 92%, rgba(19,191,166,.26), transparent 60%),
    linear-gradient(152deg, #4c28c4 0%, #6b3fe0 46%, #9450ea 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  opacity: .18;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ffd76e; }
.hero .lede { color: rgba(255,255,255,.96); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.88); }
.hero-note a { color: #ffd76e; }

/* device screenshots — transparent PNG/WebP frames.
   NEVER give these border-radius or box-shadow: the phone frame already has
   rounded corners and reaches the image edge, so either one clips it. */
.device {
  border-radius: 0;
  box-shadow: none;
  height: auto;              /* REQUIRED: CSS width alone lets the HTML height
                                attribute win, which squeezes the phone frame */
  filter: drop-shadow(0 26px 34px rgba(20, 10, 55, 0.42));
}

.shots { display: flex; justify-content: center; align-items: center; gap: 4%; }
.shots .device { width: 47%; max-width: 260px; }
.shots .device:first-child { transform: rotate(-4deg); }
.shots .device:last-child  { transform: rotate(4deg); }

/* ---------------- sections ---------------- */

section { scroll-margin-top: 86px; }
.band { padding: 92px 0; }
.band-alt  { background: var(--paper-alt); }
.band-warm { background: var(--paper-warm); }
.section-head { max-width: 66ch; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------------- cards ---------------- */

.grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

.card .icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--violet-wash); color: var(--violet);
}
.card .icon svg { width: 21px; height: 21px; }
.card:nth-child(6n+2) .icon { background: #fff1dd; color: #d97b06; }
.card:nth-child(6n+3) .icon { background: #d9f7f1; color: #0d8f7c; }
.card:nth-child(6n+4) .icon { background: #ffe4ed; color: #d63f6c; }
.card:nth-child(6n+5) .icon { background: #e0efff; color: #1f74c9; }
.card:nth-child(6n+6) .icon { background: #ede6ff; color: var(--violet); }

/* numbered problem cards */
.card .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px;
  font-weight: 700; font-size: .92rem; margin-bottom: 16px;
  background: var(--violet-wash); color: var(--violet);
}
.card:nth-child(4n+2) .num { background: #fff1dd; color: #d97b06; }
.card:nth-child(4n+3) .num { background: #d9f7f1; color: #0d8f7c; }
.card:nth-child(4n+4) .num { background: #ffe4ed; color: #d63f6c; }

/* ---------------- pillars ---------------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  border-radius: var(--radius); padding: 28px 24px; color: #fff;
  background: linear-gradient(150deg, var(--violet-mid), var(--violet));
  box-shadow: var(--shadow-md);
}
.pillar:nth-child(2) { background: linear-gradient(150deg, #ffb43d, #f2830a); }
.pillar:nth-child(3) { background: linear-gradient(150deg, #2ad3b9, #0d9e89); }
.pillar:nth-child(4) { background: linear-gradient(150deg, #ff7ba6, #e94d7c); }
.pillar h3 { color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.pillar p  { color: rgba(255,255,255,.92); font-size: .93rem; margin: 0; }

/* ---------------- five-step flow ---------------- */

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.flow-step .n {
  width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: .92rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--violet-lite), var(--violet));
}
.flow-step:nth-child(2) .n { background: linear-gradient(140deg, #ffc04d, #f2830a); }
.flow-step:nth-child(3) .n { background: linear-gradient(140deg, #2ad3b9, #0d9e89); }
.flow-step:nth-child(4) .n { background: linear-gradient(140deg, #ff8fb2, #e94d7c); }
.flow-step:nth-child(5) .n { background: linear-gradient(140deg, #6fbcff, #1f74c9); }
.flow-step h3 { font-size: 1rem; margin-bottom: 5px; }
.flow-step p  { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------------- split with screenshot ---------------- */

.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.18fr 0.82fr; }
.split.flip .split-art { order: 2; }
.split-art { position: relative; display: grid; place-items: center; padding: 18px; }
.split-art::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,92,246,.20), transparent 72%);
}
.split-art .device { position: relative; width: min(270px, 82%); }
.split ul { margin: 18px 0 0; padding-left: 1.15em; color: var(--ink-soft); }
.split li { margin-bottom: 8px; }
.split li strong { color: var(--ink); }

/* ---------------- gallery ---------------- */

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: end;
}
.gallery figure { margin: 0; text-align: center; }
.gallery .device { width: 100%; margin-bottom: 14px; }
.gallery figcaption { font-size: .88rem; color: var(--ink-soft); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---------------- audience ---------------- */

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--violet);
}
.aud:nth-child(2) { border-top-color: var(--amber); }
.aud:nth-child(3) { border-top-color: var(--teal); }
.aud h3 { margin-bottom: 12px; }
.aud ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.aud li { margin-bottom: 7px; }

/* ---------------- safety ---------------- */

.safety { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.safe {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.safe .icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 15px;
  display: grid; place-items: center; background: #d9f7f1; color: #0d8f7c;
}
.safe .icon svg { width: 20px; height: 20px; }
.safe h3 { font-size: 1rem; margin-bottom: 7px; }
.safe p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------------- journey ---------------- */

.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stage { position: relative; padding: 42px 26px 0 0; }
.stage + .stage { padding-left: 26px; }
.stage::before {
  content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--violet-lite), var(--line));
}
.stage:first-child::before { left: 15px; }
.stage:last-child::before  { right: 50%; background: var(--amber); }
.stage::after {
  content: ""; position: absolute; top: 7px; left: 0;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--violet); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--violet-lite);
}
.stage:last-child::after { background: var(--amber); box-shadow: 0 0 0 3px #ffd08a; }
.stage .when {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.stage h3 { margin-bottom: 9px; }
.stage p  { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.stage ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.stage li { margin-bottom: 5px; }

/* ---------------- mission ---------------- */

.mission { text-align: center; max-width: 46ch; margin: 0 auto; }
.mission blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  line-height: 1.28; letter-spacing: -0.02em; margin: 0 0 20px;
}
.mission cite { font-style: normal; font-size: .92rem; color: var(--ink-faint); }

/* ---------------- contact ---------------- */

.contact-box {
  border-radius: var(--radius-lg); padding: 66px 48px; text-align: center; color: #fff;
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(255,159,28,.34), transparent 60%),
    linear-gradient(140deg, #4c28c4, #7c4ceb 55%, #9a55ea);
  box-shadow: var(--shadow-lg);
}
.contact-box h2 { color: #fff; }
.contact-box p  { color: rgba(255,255,255,.95); max-width: 52ch; margin: 0 auto 26px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line); padding: 44px 0;
  font-size: .89rem; color: var(--ink-faint);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-soft); }

/* ---------------- inner doc pages ---------------- */

.doc { padding: 74px 0 46px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { margin-top: 1.7em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc .updated { font-size: .88rem; color: var(--ink-faint); }
.doc .callout {
  background: var(--violet-wash); border-radius: var(--radius);
  padding: 20px 24px; font-size: .95rem; color: var(--ink-soft);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; }
.pill {
  font-size: .83rem; font-weight: 600; color: var(--violet);
  background: var(--violet-wash); border-radius: 999px; padding: 7px 15px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .grid, .grid-4, .pillars, .safety { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 38px; }
  .split.flip .split-art { order: -1; }
  .split-art .device { width: min(240px, 66%); }
  .journey { grid-template-columns: 1fr; gap: 32px; }
  .stage, .stage + .stage { padding: 0 0 0 32px; }
  .stage::before { top: 6px; bottom: 0; left: 7px; right: auto; width: 3px; height: auto;
                   background: linear-gradient(to bottom, var(--violet-lite), var(--line)); }
  .stage:last-child::before { bottom: 50%; }
  .stage::after { top: 2px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding: 76px 0 88px; }
}

@media (max-width: 640px) {
  .grid, .grid-2, .grid-4, .pillars, .safety, .flow, .gallery { grid-template-columns: 1fr; }
  .band { padding: 66px 0; }
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .contact-box { padding: 46px 26px; }
  .shots .device { max-width: 165px; }
  .gallery { max-width: 300px; margin: 0 auto; }
}

/* ============================================================
   Tabbed panels — one section at a time, no endless scroll
   ============================================================ */

/* Without JS every panel stays visible, so the content is never trapped. */
.js-tabs .panel { display: none; }
.js-tabs .panel.is-active { display: block; animation: panelIn .34s ease both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js-tabs .panel.is-active { animation: none; }
  html { scroll-behavior: auto; }
}

.nav a {
  position: relative; padding: 6px 2px; border-radius: 6px;
}
.nav a[aria-current="page"] { color: var(--violet); font-weight: 650; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, var(--violet-lite), var(--violet));
}
.nav a:focus-visible, .brand:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--violet-lite); outline-offset: 3px;
}

/* mobile nav scrolls sideways rather than wrapping into two rows */
@media (max-width: 760px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 4px; flex-wrap: wrap; }
  .nav {
    order: 3; width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: .9rem; }
  .nav .hide-sm { display: inline; }
}

/* ---------------- LitLog logo lockups ---------------- */

.litlog-mark {
  display: block; width: min(420px, 82%); height: auto; margin: 0 0 22px;
  /* the logo is purple-on-purple over the hero gradient — lift it off the background */
  filter: drop-shadow(0 6px 18px rgba(12, 4, 40, .55));
}
.litlog-mark-c { margin-left: auto; margin-right: auto; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3rem); letter-spacing: -0.02em;
}
.wordmark span { font-family: "Inter", sans-serif; font-size: .95rem; font-weight: 600; color: var(--ink-faint); }

/* ---------------- store buttons ---------------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 17px; border-radius: 14px;
  background: #14103a; color: #fff; border: 1px solid rgba(255,255,255,.16);
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 8px 22px -8px rgba(10, 5, 40, .6);
}
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(10,5,40,.7); }
.store svg { width: 26px; height: 26px; flex: none; }
.store b { display: block; font-size: .95rem; font-weight: 650; line-height: 1.15; }
.store small { display: block; font-size: .69rem; opacity: .72; letter-spacing: .06em; text-transform: uppercase; }
.store.is-soon { background: rgba(255,255,255,.1); border-style: dashed; cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }
.band .store, .band-alt .store, .band-warm .store { background: #14103a; }
.band .store.is-soon, .band-alt .store.is-soon, .band-warm .store.is-soon {
  background: #fff; color: var(--ink-soft); border-color: var(--line);
}

/* ---------------- panel intro ---------------- */

.panel-head { padding: 62px 0 0; }
.panel-head .wrap { max-width: 74ch; }
.panel-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 14px; }
.panel-head .lede { font-size: 1.16rem; }

.panel > .band:first-child { padding-top: 62px; }
