/* ==========================================================================
   pages.css — pieces used by the inner pages (Websites, Online stores,
   Capabilities): page hero, feature checklists, chips, sample-design
   mockups, the toy shop demo, the order flow and the skill panels.
   ========================================================================== */

/* ---- page hero: same night sky as the homepage, smaller headline ---- */

.hero--page .hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.5px;
}

.section--alt {
  background: var(--bg2);
  border-block: 4px solid var(--line);
}

.note {
  margin-top: 36px;
  font-family: var(--font-term);
  font-size: 1.3125rem;
  line-height: 1.2;
  color: var(--muted);
}

/* ---- checklist of features ---- */

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

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: start;
}

.check__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  margin: 4px;
  padding: 9px;
  background: var(--a3);
  color: var(--on-a3);
  box-shadow: var(--px-border);
}

.check:hover .check__icon {
  animation: bump 0.4s steps(2) infinite;
}

.check h3 {
  font-size: 1.375rem;
  padding-top: 4px;
}

.check p {
  color: var(--muted);
}

/* ---- chips ---- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  padding: 4px;
}

.chip {
  padding: 10px 14px;
  background: var(--card);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: var(--px-border);
}

.chip:hover {
  background: var(--a1);
  color: var(--on-a1);
  animation: wiggle-sm 0.4s steps(2) infinite;
}

/* ---- sample-design mockups ----
   Each mockup carries its own small palette (--m-*), because it stands in
   for a client's brand rather than ours, so it ignores the active skin. */

.mock {
  --m-bg: #f4efe6;
  --m-ink: #2b2438;
  --m-accent: #b5653a;
  --m-on: #ffffff;
  --m-soft: #e6dcc8;
  margin: 4px 12px 12px 4px;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: var(--px-border), 8px 12px 0 0 var(--shadow), 12px 8px 0 0 var(--shadow);
  transition: transform 0.12s steps(3);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--line);
}

.mock__bar i {
  width: 8px;
  height: 8px;
  background: var(--a2);
}

.mock__bar i:nth-child(2) {
  background: var(--a1);
}

.mock__bar i:nth-child(3) {
  background: var(--a3);
}

.mock__url {
  flex: 1;
  height: 10px;
  margin-left: 8px;
  background: var(--bg);
  opacity: 0.6;
}

.mock__screen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 14px;
}

.m-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.m-links {
  display: flex;
  gap: 6px;
}

.m-links i {
  width: 18px;
  height: 5px;
  background: currentColor;
  opacity: 0.45;
}

.m-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--m-soft);
}

.m-h {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.m-line {
  display: block;
  height: 6px;
  background: currentColor;
  opacity: 0.28;
}

.m-line--short {
  width: 60%;
}

.m-btn {
  align-self: flex-start;
  padding: 7px 10px;
  background: var(--m-accent);
  color: var(--m-on);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.m-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1;
  padding: 6px;
  background: var(--m-soft);
}

.m-tile svg {
  width: 44%;
  height: 44%;
  color: var(--m-accent);
}

.m-tile b {
  font-family: var(--font-pixel);
  font-size: 0.4375rem;
  font-weight: 400;
}

.m-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.m-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--m-soft);
}

.m-photo svg {
  width: 40%;
  height: 40%;
  color: var(--m-accent);
}

.m-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* the six sample palettes */
.mock--cafe {
  --m-bg: #f6eee0;
  --m-ink: #3a2a22;
  --m-accent: #a85a32;
  --m-soft: #ead9bf;
}

.mock--folio {
  --m-bg: #f2f1ed;
  --m-ink: #1d1d1f;
  --m-accent: #1d1d1f;
  --m-soft: #dcdad3;
}

.mock--service {
  --m-bg: #eaf2ee;
  --m-ink: #17332b;
  --m-accent: #2a705a;
  --m-soft: #cfe3da;
}

.mock--plants {
  --m-bg: #eef3e6;
  --m-ink: #233326;
  --m-accent: #4d7a3d;
  --m-soft: #d9e5cc;
}

.mock--merch {
  --m-bg: #1f2130;
  --m-ink: #f0ede6;
  --m-accent: #f2c94c;
  --m-on: #1f2130;
  --m-soft: #2e3147;
}

.mock--bakery {
  --m-bg: #fbf0ee;
  --m-ink: #4a2b33;
  --m-accent: #b3566a;
  --m-soft: #f3dadd;
}

/* the big hero mockup wears the active skin and rebuilds itself in a wave */
.mock--hero {
  --m-bg: var(--card);
  --m-ink: var(--ink);
  --m-accent: var(--a1);
  --m-on: var(--on-a1);
  --m-soft: var(--bg2);
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
}

.mock--hero .mock__screen {
  min-height: 320px;
  gap: 12px;
}

.mock--hero .m-h {
  font-size: 1.75rem;
}

.build {
  animation: build 7s steps(1) backwards infinite;
}

.build:nth-child(2) {
  animation-delay: 0.5s;
}

.build:nth-child(3) {
  animation-delay: 1s;
}

.build:nth-child(4) {
  animation-delay: 1.5s;
}

.build:nth-child(5) {
  animation-delay: 2s;
}

/* ---- sample grid ---- */

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 44px 32px;
}

.sample {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sample:hover .mock {
  transform: translate(-4px, -6px);
}

.sample__cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample__cap h3 {
  font-size: 1.5rem;
}

.sample__cap p {
  color: var(--muted);
}

/* ---- toy shop demo ---- */

.shop {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 4px 14px 14px 4px;
  background: var(--card);
  box-shadow: var(--px-border), 10px 14px 0 0 var(--shadow), 14px 10px 0 0 var(--shadow);
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 14px;
  padding: 20px 18px;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border: 0;
  background: var(--bg2);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 0.5625rem;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: var(--px-border), 4px 6px 0 0 var(--shadow), 6px 4px 0 0 var(--shadow);
  transition: transform 0.08s steps(2), box-shadow 0.08s steps(2);
}

.item:hover {
  transform: translate(-2px, -2px);
}

.item:active {
  transform: translate(4px, 4px);
  box-shadow: var(--px-border);
}

.item svg {
  width: 36px;
  height: 36px;
}

.item--a1 svg {
  color: var(--a1);
}

.item--a2 svg {
  color: var(--a2);
}

.item--a3 svg {
  color: var(--a3);
}

.item.is-added svg {
  animation: jump 0.45s steps(6) 1;
}

.item small {
  font-size: 0.5rem;
  color: var(--muted);
}

.shop__cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 16px;
  background: var(--screen);
  color: var(--screen-ink);
  border-top: 4px solid var(--line);
  font-family: var(--font-term);
  font-size: 1.4375rem;
  line-height: 1.1;
}

.shop__cart svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -2px;
}

.shop__checkout {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: var(--a1);
  color: var(--on-a1);
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  text-shadow: none;
  cursor: pointer;
}

.shop__checkout:hover {
  background: var(--a3);
  color: var(--on-a3);
}

/* ---- order flow ---- */

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 36px 32px;
  padding: 4px 12px 12px 4px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px;
  background: var(--card);
  box-shadow: var(--px-border), 6px 10px 0 0 var(--shadow), 10px 6px 0 0 var(--shadow);
}

.flow__step svg {
  width: 44px;
  height: 44px;
  color: var(--hl);
}

.flow__step:hover svg {
  animation: wiggle 0.5s steps(4) infinite;
}

.flow__num {
  font-family: var(--font-pixel);
  font-size: 0.625rem;
  color: var(--a3);
}

.flow__step h3 {
  font-size: 1.5rem;
}

.flow__step p {
  color: var(--muted);
}

/* ---- capabilities: status list + skill panels ---- */

.stat {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6px 20px 14px;
}

.stat li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 4px dotted var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.stat li:last-child {
  border-bottom: 0;
}

.stat b {
  padding: 6px 8px;
  background: var(--a3);
  color: var(--on-a3);
  font-size: 0.5625rem;
  font-weight: 400;
  text-shadow: none;
}

.stat .is-loading {
  background: var(--a2);
  color: var(--on-a2);
  animation: flash 1.2s steps(1) infinite;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 40px 36px;
  padding: 4px 12px 12px 4px;
}

.skill__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.skill__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  color: var(--muted);
}

.skill__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  background: var(--a3);
}

/* ---- closing call-to-action section on inner pages ---- */

.cta {
  padding-top: var(--section-y);
}
