/* Claude Slaps by routiq. The app's look: a light scan room, Scanline pixel type for the one headline,
   Rajdhani for the rest, square corners, ruled rows, hard pixel extrusions. Red is only the find and the
   buy button. Motion is stepped, and stops with prefers-reduced-motion. */

@font-face { font-family: "Scanline"; src: url("/fonts/Scanline-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Scanline"; src: url("/fonts/Scanline-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #F4F6F8;
  --panel: #FFFFFF;
  --ink: #0B0B0C;
  --ink-muted: #3F444B;
  --find: #E5322D;
  --uv: #A07BFF;
  --green: #D1FE17;
  --rule: rgb(11 11 12 / 0.12);
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Rajdhani", system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
b, strong { font-weight: 700; }
p { margin: 0 0 12px; }
.small { font-size: 16px; color: var(--ink-muted); }

/* Top bar: Claude Slaps by routiq. */
.top {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 16px 14px;
  font-size: 20px;
}
.top .name { font-weight: 700; }
.top .by { color: var(--ink-muted); }
.top .routiq { height: 46px; margin: -12px -10px; }

/* The scan room: pixel tiles, a white panel standing on its extrusion */
.room {
  padding: 40px 20px 56px;
  background-image: repeating-linear-gradient(0deg, transparent 0 10.5px, rgb(11 11 12 / 0.06) 10.5px 12px),
                    repeating-linear-gradient(90deg, transparent 0 10.5px, rgb(11 11 12 / 0.06) 10.5px 12px);
  background-color: var(--ground);
}
.panel {
  position: relative;
  max-width: 760px; margin: 0 auto;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink);
  padding: 30px 30px 26px;
}
/* The one find on the page: red corner brackets that lock on */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: -16px; pointer-events: none;
  background:
    linear-gradient(var(--find) 0 0) top left / 28px 5px no-repeat,
    linear-gradient(var(--find) 0 0) top left / 5px 28px no-repeat,
    linear-gradient(var(--find) 0 0) top right / 28px 5px no-repeat,
    linear-gradient(var(--find) 0 0) top right / 5px 28px no-repeat;
  animation: lock 0.6s steps(3) both 0.3s;
}
.hero::after {
  background:
    linear-gradient(var(--find) 0 0) bottom left / 28px 5px no-repeat,
    linear-gradient(var(--find) 0 0) bottom left / 5px 28px no-repeat,
    linear-gradient(var(--find) 0 0) bottom right / 28px 5px no-repeat,
    linear-gradient(var(--find) 0 0) bottom right / 5px 28px no-repeat;
}
@keyframes lock { from { inset: -48px; opacity: 0.4; } to { inset: -16px; opacity: 1; } }

/* The Claude critter stands on the panel's top edge, like it stands on Claude's message box. */
.critter-spot { position: absolute; right: 34px; top: -118px; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.critter { display: block; image-rendering: pixelated; }
.critter-spot .critter { width: 144px; height: 120px; margin-bottom: -2px; }
.bubble {
  position: relative; margin: 0 0 76px;
  font-family: "Scanline", ui-monospace, monospace; font-weight: 500; font-size: 20px; line-height: 1;
  background: var(--panel); border: 2px solid var(--ink); padding: 10px 12px; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  animation: shout 0.72s steps(2) infinite;
}
.bubble::after { content: ""; position: absolute; right: -12px; bottom: 10px; width: 12px; height: 12px; background: var(--panel);
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: skewY(-35deg); transform-origin: left; }
@keyframes shout { 0% { transform: translate(0, 0); } 50% { transform: translate(-2px, -1px); } }
.with-critter { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.with-critter h2 { margin-bottom: 10px; }
.critter.small { width: 96px; height: 80px; margin-bottom: -2px; }
.room { padding-top: 140px !important; }

.label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink-muted); }
.label .dot { width: 9px; height: 9px; background: var(--find); }
.cells { display: inline-flex; gap: 3px; margin-left: auto; }
.cells i { width: 7px; height: 7px; background: var(--find); opacity: 0.08; animation: scan 0.72s steps(1) infinite; }
.cells i:nth-child(1) { animation-delay: 0s; }    .cells i:nth-child(2) { animation-delay: .06s; }
.cells i:nth-child(3) { animation-delay: .12s; }  .cells i:nth-child(4) { animation-delay: .18s; }
.cells i:nth-child(5) { animation-delay: .24s; }  .cells i:nth-child(6) { animation-delay: .30s; }
.cells i:nth-child(7) { animation-delay: .36s; }  .cells i:nth-child(8) { animation-delay: .42s; }
.cells i:nth-child(9) { animation-delay: .48s; }  .cells i:nth-child(10) { animation-delay: .54s; }
.cells i:nth-child(11) { animation-delay: .60s; } .cells i:nth-child(12) { animation-delay: .66s; }
@keyframes scan { 0%, 8% { opacity: 1; } 9%, 16% { opacity: .5; } 17%, 100% { opacity: .08; } }

/* Scanline once a page: the headline, on drifting pixel layers (the 1.44 s swing, stepped) */
.pixel {
  position: relative;
  font-family: "Scanline", ui-monospace, monospace; font-weight: 900;
  font-size: clamp(30px, 6.4vw, 56px); line-height: 1.05; letter-spacing: 0;
  margin: 18px 0 14px;
  text-transform: uppercase;
}
.pixel::before, .pixel::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1;
  color: rgb(11 11 12 / 0.14);
  animation: drift 1.44s steps(6) infinite alternate;
}
.pixel::after { color: rgb(11 11 12 / 0.07); animation-name: drift2; }
.hero .pixel { z-index: 0; isolation: isolate; }
@keyframes drift { from { transform: translate(2px, 2px); } to { transform: translate(5px, 5px); } }
@keyframes drift2 { from { transform: translate(4px, 4px); } to { transform: translate(10px, 10px); } }

.lead { font-size: 24px; font-weight: 700; }

/* Buttons stand on an extrusion and press flat into it. The buy button is red (the find). */
.btn {
  display: inline-block;
  font: 700 20px/1 "Rajdhani", system-ui, sans-serif;
  color: var(--ink); background: var(--panel); text-decoration: none;
  border: 2px solid var(--ink);
  padding: 14px 22px;
  box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn.find { background: var(--find); color: #fff; }
a.btn:hover { transform: translate(-2px, -2px); box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink); }
a.btn:active { transform: translate(4px, 4px); box-shadow: none; }
a.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.btn.soon { background: var(--panel); color: var(--ink); }
.buy { margin-top: 18px; }
.buy .small { margin-top: 14px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin: 56px auto 0; padding: 0 20px; }
.shots figure { margin: 0; }
.shots img { width: 100%; display: block; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.shots figcaption { margin-top: 12px; font-size: 17px; color: var(--ink-muted); }

/* Ruled rows: 2 px outer, 1 px between */
.col { max-width: 760px; margin: 0 auto; padding: 0 20px; }
main section { margin-top: 64px; }
h2 { font-weight: 700; font-size: 30px; margin: 0 0 12px; }
h3 { font-weight: 700; font-size: 20px; margin: 22px 0 8px; color: var(--ink-muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.rows li { padding: 13px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 0; }
.group .rows { list-style: decimal; padding-left: 38px; }
.group .rows li { padding-left: 4px; }
.group .rows li::marker { font-weight: 700; color: var(--ink-muted); }
.whip-box { margin: 28px 0 0; }
.whip { border: 2px solid var(--ink); background: var(--panel); box-shadow: 4px 4px 0 var(--ink); padding: 8px 10px 0; }
.whip svg, .whip img { display: block; width: 100%; height: auto; }
.whip-box figcaption { margin-top: 12px; font-size: 17px; color: var(--ink-muted); }
.banner { display: block; margin: 28px 0 0; max-width: 100%; height: auto; }

.foot { margin-top: 80px; padding-bottom: 48px; border-top: 2px solid var(--ink); padding-top: 20px; }
.foot p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.small-logo { height: 40px; margin: -10px -8px; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .shots { grid-template-columns: 1fr; }
  .panel { padding: 22px 20px 20px; }
  .room { padding: 36px 26px 48px; }
  .critter-spot { right: 10px; top: -104px; }
  .critter-spot .critter { width: 120px; height: 100px; }
  .bubble { font-size: 15px; margin-bottom: 62px; }
  .label .cells { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
