/* ===========================================================================
   ArbeeStudios — Playground
   Characterful and colorful. Bouncy. Channels the toy-box DNA of the apps.
   Light + airy: color pops on a warm near-white field.
   =========================================================================== */

html { background: #fffaf2; }

body {
  --bg: #fffaf2;
  --ink: #2a2438;
  --ink-soft: #6e6580;
  --c-orange: #FF6B35;
  --c-yellow: #FFC93C;
  --c-blue: #3DA5D9;
  --c-green: #8BC34A;
  --c-pink: #FF8FB1;
  --c-violet: #9B5DE5;
  --c-violet-deep: #8A47D6; /* AA-safe violet for the white-text kick badge */
  --pad: clamp(20px, 5vw, 60px);

  min-height: 100dvh;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 14%, #ffe7d6 0%, transparent 30%),
    radial-gradient(circle at 88% 8%, #e3f0ff 0%, transparent 28%),
    radial-gradient(circle at 80% 92%, #e8ffe0 0%, transparent 30%),
    radial-gradient(circle at 18% 88%, #ffe1ee 0%, transparent 28%);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
}

.pg-wrap { position: relative; z-index: 1; }

/* ---- topline ----------------------------------------------------------- */
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(18px, 4vw, 30px) var(--pad); }
.pg-mark {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700; font-size: 21px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.pg-mark .a { color: var(--c-orange); }
.pg-rb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: #FFF3DC; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: -0.07em; line-height: 1; flex: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.pg-mark:hover .pg-rb { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 5px 0 var(--ink); }
.pg-rb .r { color: var(--c-orange); }
.pg-rb .b { color: var(--ink); }
.pg-pill {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; box-shadow: 0 4px 0 var(--ink); white-space: nowrap;
}

/* ---- hero -------------------------------------------------------------- */
.pg-hero { padding: clamp(40px, 9vh, 96px) var(--pad) clamp(48px, 9vh, 96px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.pg-kick {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  color: #fff; background: var(--c-violet-deep); border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  border-radius: 999px; padding: 9px 20px; margin-bottom: 30px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transform: rotate(-2deg);
}
.pg-display {
  font-family: "Fredoka", system-ui, sans-serif;
  margin: 0; font-weight: 700;
  font-size: clamp(54px, 12vw, 168px); line-height: 0.92; letter-spacing: -0.03em;
  color: var(--ink);
}
.pg-display .pop { display: inline-block; }
.pg-display .pop:nth-child(1) { color: var(--c-orange); }
.pg-display .pop:nth-child(2) { color: var(--ink); }
.pg-display .wobble { display: inline-block; animation: pgWobble 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes pgWobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.pg-sub {
  font-family: "Nunito", system-ui, sans-serif;
  margin: 30px auto 0; max-width: 560px; font-size: clamp(18px, 2.3vw, 23px);
  font-weight: 600; line-height: 1.45; color: var(--ink-soft); text-wrap: balance;
}
.pg-sub b { color: var(--ink); }

/* ---- work -------------------------------------------------------------- */
.pg-work { padding: clamp(36px, 7vh, 80px) var(--pad) clamp(50px, 8vh, 100px); }
.pg-work h2 {
  font-family: "Fredoka", system-ui, sans-serif;
  text-align: center; margin: 0 0 8px; font-size: clamp(26px, 5vw, 46px); font-weight: 600; letter-spacing: -0.02em;
}
.pg-work .lead { text-align: center; color: var(--ink-soft); font-weight: 600; margin: 0 auto clamp(34px, 5vh, 56px); max-width: 460px; }
.pg-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 30px); }
@media (max-width: 820px) { .pg-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .pg-pill { font-size: 12px; padding: 7px 13px; }
}
@media (max-width: 360px) {
  /* Below ~360px the lockup + pill overflow the row; the domain is in the footer. */
  .pg-pill { display: none; }
}

.pg-card {
  background: #fff; border: 3px solid var(--ink); border-radius: 30px;
  padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 10px 0 var(--ink);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s;
}
.pg-card:hover { transform: translate(-3px, -6px) rotate(-0.6deg); box-shadow: 0 16px 0 var(--ink); }
.pg-card__stage { border-radius: 22px; height: 280px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 2.5px solid var(--ink); }
.pg-card__stage.s-ysb { background: radial-gradient(120% 100% at 50% 0%, #2b1f4d, #0e0a1e); }
.pg-card__stage.s-fmk { background: #FFF4DE; }
.pg-card__meta { display: flex; flex-direction: column; gap: 11px; }
.pg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-card__name { font-family: "Fredoka", system-ui, sans-serif; margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }
.pg-card__tag {
  font-family: "Fredoka", system-ui, sans-serif; font-size: 11px; font-weight: 500;
  color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.pg-card.k-ysb .pg-card__tag { background: var(--c-yellow); }
.pg-card.k-fmk .pg-card__tag { background: var(--c-orange); color: var(--ink); }
.pg-card.k-ce .pg-card__tag { background: #A7ECD0; color: var(--ink); }
.pg-card__desc { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: 15.5px; line-height: 1.5; }

.pg-more {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 3px dashed var(--ink); border-radius: 26px; padding: 26px;
  font-family: "Fredoka", system-ui, sans-serif; font-size: 17px; color: var(--ink);
  background: #fff;
}
.pg-more .dots { display: inline-flex; gap: 6px; }
.pg-more .dots i { width: 11px; height: 11px; border-radius: 50%; animation: pgBlink 1.4s ease-in-out infinite; }
.pg-more .dots i:nth-child(1) { background: var(--c-orange); }
.pg-more .dots i:nth-child(2) { background: var(--c-blue); animation-delay: .2s; }
.pg-more .dots i:nth-child(3) { background: var(--c-green); animation-delay: .4s; }
@keyframes pgBlink { 0%, 100% { transform: scale(0.7); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

/* ---- footer ------------------------------------------------------------ */
.pg-foot {
  max-width: 1080px; margin: 0 auto; padding: 36px var(--pad) 80px; text-align: center;
  font-family: "Fredoka", system-ui, sans-serif; color: var(--ink-soft);
}
.pg-foot a { color: var(--ink); text-decoration: none; border-bottom: 2.5px solid var(--c-orange); }
.pg-foot .row { margin-top: 8px; font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 14px; }

/* ===========================================================================
   Faithful mini app previews (shared component, reused inside the work cards)
   YourStoryBook: midnight + gold, starfield, parchment card, serif title.
   ForMyKid:      cream, chunky tiles, hard offset shadow, warm.
   =========================================================================== */
.ysb-mini {
  width: 168px; height: 268px; border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 0%, #251a45 0%, #0e0a1e 70%);
  box-shadow: 0 22px 40px -20px rgba(20, 10, 40, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ysb-mini .star { position: absolute; border-radius: 50%; background: #fff6d6; box-shadow: 0 0 6px #fff6d6; animation: ysbTw 4s ease-in-out infinite; }
@keyframes ysbTw { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.ysb-mini .moon { position: absolute; top: 22px; right: 24px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, #e9c970); box-shadow: 0 0 22px #e9c97099; }
.ysb-mini .card {
  background: linear-gradient(#fbf6ea, #f3ead2); border-radius: 12px; padding: 13px 13px 15px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
}
.ysb-mini .card .ttl { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 18px; line-height: 1.08; color: #2a1d10; letter-spacing: -0.01em; }
.ysb-mini .card .by { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 11px; color: #8a6f3e; margin-top: 8px; }
.ysb-mini .spark { color: #e9c970; font-size: 13px; margin-top: 9px; letter-spacing: 3px; }

.fmk-mini {
  width: 250px; height: 196px; border-radius: 22px;
  background: #FFF4DE;
  background-image: radial-gradient(circle at 8% 6%, #FFE0A6 0%, transparent 40%), radial-gradient(circle at 95% 96%, #C5E8FF 0%, transparent 42%);
  box-shadow: 0 22px 40px -22px rgba(46, 35, 23, 0.5), inset 0 0 0 1px rgba(46, 35, 23, 0.06);
  position: relative; overflow: hidden; padding: 16px;
  font-family: "Fredoka", system-ui, sans-serif;
}
.fmk-mini .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fmk-mini .bar b { color: #2E2317; font-size: 15px; font-weight: 600; white-space: nowrap; }
.fmk-mini .bar .dot { width: 22px; height: 22px; border-radius: 50%; background: #FF6B35; box-shadow: 0 3px 0 #2E2317; }
.fmk-mini .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fmk-mini .tile {
  height: 58px; border-radius: 16px; border: 2.5px solid #2E2317;
  box-shadow: 0 5px 0 #2E2317; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.fmk-mini .tile .shape { width: 22px; height: 22px; }
.fmk-mini .tile.t1 { background: #FF6B35; } .fmk-mini .tile.t1 .shape { border-radius: 50%; background: #fff; }
.fmk-mini .tile.t2 { background: #FFC93C; } .fmk-mini .tile.t2 .shape { background: #2E2317; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fmk-mini .tile.t3 { background: #3DA5D9; } .fmk-mini .tile.t3 .shape { background: #fff; border-radius: 5px; }
.fmk-mini .tile.t4 { background: #8BC34A; } .fmk-mini .tile.t4 .shape { background: #fff; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.fmk-mini .float { animation: fmkFloat 3.4s ease-in-out infinite; }
.fmk-mini .tile:nth-child(2) { animation-delay: .3s; }
.fmk-mini .tile:nth-child(3) { animation-delay: .6s; }
.fmk-mini .tile:nth-child(4) { animation-delay: .9s; }
@keyframes fmkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Close Enough: faithful mini of the app home screen (Mint Sport) */
.pg-card__stage.s-ce { background: radial-gradient(120% 100% at 50% 0%, #DCEFEA 0%, #CFE6F2 100%); }
.ce-phone {
  width: 190px; height: 272px; border-radius: 30px; flex: none;
  background: #20323A; padding: 5px; position: relative;
  box-shadow: 0 22px 40px -20px rgba(19, 60, 55, 0.6), 0 0 0 1px rgba(31, 58, 56, 0.22);
}
.ce-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 52px; height: 7px; border-radius: 0 0 6px 6px; background: #20323A; z-index: 2; }
.ce-screen {
  position: relative; width: 100%; height: 100%; border-radius: 25px; overflow: hidden;
  background: linear-gradient(170deg, #EAFBF1, #E7F4FF);
  color: #1F3A38; font-family: "Nunito", system-ui, sans-serif;
  display: flex; flex-direction: column; padding: 8px 11px 0;
}
.ce-status { display: flex; align-items: center; justify-content: space-between; font-size: 7px; font-weight: 800; }
.ce-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; }
.ce-bars i { width: 2px; background: #1F3A38; border-radius: 1px; }
.ce-bars i:nth-child(1) { height: 3px; } .ce-bars i:nth-child(2) { height: 4.5px; } .ce-bars i:nth-child(3) { height: 6px; } .ce-bars i:nth-child(4) { height: 7.5px; }
.ce-head { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.ce-ava { filter: drop-shadow(0 2px 0 rgba(31, 58, 56, 0.18)); flex: none; }
.ce-hi { display: flex; flex-direction: column; line-height: 1.04; }
.ce-hi b { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 8px; }
.ce-hi em { font-style: normal; font-size: 6px; font-weight: 700; color: #5C7A74; }
.ce-pills { margin-left: auto; display: inline-flex; gap: 3px; }
.ce-pills i { font-style: normal; font-size: 6.5px; font-weight: 800; background: #fff; border: 1px solid rgba(31, 58, 56, 0.14); border-radius: 999px; padding: 1.5px 5px 1.5px 9.5px; position: relative; }
.ce-pills i::before { content: ""; position: absolute; left: 3.5px; top: 50%; transform: translateY(-50%); width: 3.5px; height: 3.5px; border-radius: 50%; }
.ce-pills i.w::before { background: #37A8E8; } .ce-pills i.c::before { background: #FFC83A; }
.ce-title { text-align: center; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; line-height: 0.8; letter-spacing: -0.02em; margin-top: 7px; }
.ce-title .l1 { display: block; font-size: 20px; color: #1F3A38; }
.ce-title .l2 { display: block; font-size: 20px; color: #13B98C; }
.ce-title .l2 i { font-style: normal; color: #FF7A33; }
.ce-sub { text-align: center; font-size: 5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #7C918C; margin-top: 4px; }
.ce-daily { position: relative; margin-top: 8px; background: #6B7BFC; border-radius: 13px; padding: 7px 9px 8px; color: #fff; box-shadow: 0 4px 0 #5061E6; }
.ce-d-tag { font-family: "Fredoka", system-ui, sans-serif; font-size: 5.5px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.85; }
.ce-d-name { display: block; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 11px; margin-top: 1px; }
.ce-d-desc { display: block; font-size: 6px; font-weight: 700; opacity: 0.82; margin-top: 1px; }
.ce-d-watch { position: absolute; top: 7px; right: 8px; }
.ce-play { display: inline-block; margin-top: 6px; background: #FFC83A; color: #1F3A38; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 7px; padding: 3.5px 8px; border-radius: 999px; box-shadow: 0 2.5px 0 #E7A01C; }
.ce-events { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.ce-events b { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 8.5px; }
.ce-events span { font-size: 6px; font-weight: 800; color: #7C918C; }
.ce-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.ce-gc { position: relative; background: #fff; border: 1.5px solid rgba(31, 58, 56, 0.12); border-radius: 10px; padding: 7px 5px; box-shadow: 0 3px 0 rgba(31, 58, 56, 0.09); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ce-gc .ic { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2.2px solid #13B98C; }
.ce-gc .ic.sq { border-radius: 5px; border-color: #FFC83A; }
.ce-gc b { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 6.5px; color: #1F3A38; }
.ce-gc .pop { position: absolute; top: -5px; right: 5px; background: #FF7AA8; color: #fff; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 4.5px; letter-spacing: 0.04em; padding: 1.5px 4px; border-radius: 999px; }
.ce-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-around; background: #fff; border-top: 1px solid rgba(31, 58, 56, 0.1); padding: 5px 0 7px; }
.ce-nav svg { width: 12px; height: 12px; stroke: #A7BAB5; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ce-nav svg.on { fill: #13B98C; stroke: none; }
