/* Catstractions website – chunky pixel-art styling: hard edges, thick ink
   outlines, flat colours and offset block shadows. */
:root {
  --ink: #17120e;
  --paper: #fff4dc;
  --card: #fffaf0;
  --orange: #f2a245;
  --orange-dark: #c96f1e;
  --teal: #7ecdc4;
  --teal-dark: #60b2aa;
  --pink: #ff6f91;
  --sky: #8ed1e0;
  --px: 4px;
  /* Two fonts: the pixel font for big, short text; a plain, clear one for
     anything longer or smaller. To go back to all-pixel, set --font-body to
     the same value as --font-display. */
  --font-display: "Pixelify Sans", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  /* a faint pixel grid */
  background-image: linear-gradient(rgba(23,18,14,.035) 2px, transparent 2px), linear-gradient(90deg, rgba(23,18,14,.035) 2px, transparent 2px);
  background-size: 32px 32px;
}
img { image-rendering: pixelated; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 700; font-family: var(--font-display); }
.btn, .chip, .brand, .top nav, .kicker, .now, .steps b, .steps li::before, summary, .tailor label, .menubar, .titlebar { font-family: var(--font-display); }
h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.5px; }
h1 .soft { color: var(--orange-dark); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 23px; }
p { margin: 0; }

/* ---- shared pieces ---- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  border: var(--px) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px 26px;
  cursor: pointer;
  transition: transform .06s steps(2), box-shadow .06s steps(2);
}
.btn:hover { background: #ffb85c; }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .chip:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; }
.btn.big { font-size: 26px; padding: 18px 34px; }
.btn.small { font-size: 18px; padding: 8px 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn.small:active { transform: translate(4px, 4px); }
.btn.off { background: #d8d2c4; cursor: default; }
.fine { font-size: 15px; opacity: .8; margin-top: 16px; }
.center { text-align: center; }
.block { max-width: 1120px; margin: 0 auto; padding: 56px 20px; }
.sub { margin: 10px 0 26px; max-width: 46em; }

/* ---- header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 20px;
  background: var(--paper);
  border-bottom: var(--px) solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; text-decoration: none; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { font-size: 19px; text-decoration: none; border-bottom: 3px solid transparent; }
.top nav a:hover { border-bottom-color: var(--orange); }

/* ---- hero ---- */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 64px 20px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.kicker { font-weight: 700; color: var(--orange-dark); margin-bottom: 14px; }
.lede { font-size: 20px; max-width: 34em; margin: 22px 0 30px; }
.hero-icon { width: 256px; height: 256px; filter: drop-shadow(8px 8px 0 rgba(23,18,14,.9)); animation: bob 1.6s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---- the pretend desktop ---- */
.desktop {
  position: relative; height: 420px; overflow: hidden;
  border: var(--px) solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
  background: linear-gradient(var(--sky) 0 62%, #a9dfc9 62% 100%);
  font-size: 14px;
}
.desktop.dark { background: linear-gradient(#27304a 0 62%, #1f3a3a 62% 100%); }
.menubar { position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: rgba(255,250,240,.86); border-bottom: 2px solid var(--ink); }
.menubar .apple { width: 12px; height: 12px; background: var(--ink); }
.menubar .spacer { flex: 1; }
.window { position: absolute; left: 34%; top: 70px; width: 38%; bottom: 44px; background: #fffdf7; border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(23,18,14,.35); }
.titlebar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; background: #efe6d0; border-bottom: 3px solid var(--ink); }
.titlebar i { width: 10px; height: 10px; background: var(--pink); border: 2px solid var(--ink); }
.titlebar i:nth-child(2) { background: #ffd34d; }
.titlebar i:nth-child(3) { background: #6cc644; }
.titlebar b { margin-left: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines { padding: 16px; display: grid; gap: 12px; }
.lines u { display: block; height: 8px; background: #d9d0bb; }
.dock { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; background: rgba(255,250,240,.8); border: 3px solid var(--ink); }
.dock i { width: 22px; height: 22px; background: var(--orange); border: 2px solid var(--ink); }
.dock i:nth-child(2) { background: var(--teal); } .dock i:nth-child(3) { background: var(--pink); } .dock i:nth-child(4) { background: #9b6cf0; } .dock i:nth-child(5) { background: #ffd34d; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.now { position: absolute; left: 12px; top: 36px; font-size: 15px; font-weight: 700; background: var(--paper); border: 3px solid var(--ink); padding: 2px 10px; }
.now:empty { display: none; }

.controls { display: grid; gap: 18px; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 18px; font-weight: 500; background: var(--card); color: var(--ink); border: 3px solid var(--ink); padding: 5px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.chip:hover { background: #ffe9c2; }
.chip[aria-pressed="true"] { background: var(--teal); }
.tailor { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 16px; background: var(--card); border: var(--px) solid var(--ink); }
.tailor label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 19px; }
select { font-family: var(--font-body); font-size: 16px; background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 4px 8px; border-radius: 0; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange-dark); }

/* ---- cards and features ---- */
.cards, .features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card, .features article { background: var(--card); border: var(--px) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card p { flex: 1; font-size: 16px; }
.card .secs { font-size: 15px; opacity: .75; }
.features { margin-top: 26px; }
.features article:nth-child(3n+1) { background: #e3f5f2; }
.features article:nth-child(3n+2) { background: #fff0d2; }
.features article:nth-child(3n) { background: #ffe6ec; }
.features p { font-size: 16px; }

/* ---- install ---- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; position: relative; background: var(--card); border: var(--px) solid var(--ink); padding: 22px 18px 18px 74px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--teal); border: var(--px) solid var(--ink); font-weight: 700; font-size: 26px; }
.steps b { font-size: 22px; }
.steps span { font-size: 16px; }
.note { background: #fff0b8; border: var(--px) dashed var(--ink); padding: 16px 18px; margin: 0 0 28px; font-size: 17px; }
.cta.center { margin-top: 8px; }

/* ---- questions ---- */
.faq { display: grid; gap: 14px; margin-top: 24px; max-width: 820px; }
details { background: var(--card); border: var(--px) solid var(--ink); }
summary { cursor: pointer; font-weight: 700; font-size: 20px; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; font-size: 16px; }

footer { border-top: var(--px) solid var(--ink); padding: 28px 20px 40px; display: flex; gap: 14px; align-items: center; justify-content: center; text-align: center; font-size: 16px; background: var(--teal); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 10px; padding: 8px 12px; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; margin-right: 4px; white-space: nowrap; font-size: 16px; padding: 6px 10px; }
  .brand { font-size: 20px; min-width: 0; }
  .brand img { width: 32px; height: 32px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-icon { width: 160px; height: 160px; order: -1; }
  .desktop { height: 340px; }
  .window { left: 40%; width: 46%; }
  .menubar span:not(.apple):not(.spacer):nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon { animation: none; }
}
