/* Grumpy Cat LLC — marketing site. Palette: black, grey, blue, white, yellow. No tracking. */
:root {
  --black: #0b0c0e;
  --ink: #16171a;
  --grey: #5e636c;
  --grey-line: #d9dbe0;
  --grey-wash: #eef0f3;
  --blue: #1d4ed8;
  --blue-ink: #163bb0;
  --white: #ffffff;
  --paper: #f6f6f4;
  --yellow: #e8b800;
  --yellow-soft: #ffe56a;
  --shadow: 0 1px 2px rgba(11,12,14,.04), 0 12px 32px rgba(11,12,14,.06);
  --radius: 16px;
  --max: 1160px;
  --preview-h: 360px;
  --sans: system-ui, -apple-system, "Segoe UI", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--grey-line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.wordmark {
  display: flex; align-items: baseline; gap: .4rem;
  text-decoration: none; color: var(--black);
  letter-spacing: -0.02em;
}
.wordmark .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}
.wordmark .llc {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
}
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.hero { padding: 56px 0 28px; }
.hero-grid {
  display: grid;
  gap: 40px 48px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-preview {
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: #16181d;
  min-width: 0;
  box-shadow: var(--shadow);
}
.hero-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
@media (max-width: 799px) {
  .hero-preview { height: 280px; min-height: 280px; max-height: 280px; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 18px;
}
.kicker::before {
  content: ""; width: 28px; height: 3px; background: var(--yellow);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 18ch;
  color: var(--black);
}
.lede {
  font-size: 1.15rem;
  color: var(--grey);
  max-width: 42ch;
  margin: 0;
}

.section { padding: 28px 0 88px; }
.section-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; margin: 0 0 28px;
  border-top: 1px solid var(--grey-line);
  padding-top: 22px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head p { margin: 0; color: var(--grey); font-size: .95rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
/* Explicit px height, overflow hidden, abs-positioned img.
   Do not size this box from the image's intrinsic 800×1661 ratio.
   min-width:0 so flex/grid cannot expand from the screenshot. */
.card-preview {
  height: var(--preview-h);
  min-height: var(--preview-h);
  max-height: var(--preview-h);
  flex: 0 0 var(--preview-h);
  overflow: hidden;
  position: relative;
  background: #16181d;
  min-width: 0;
}
.card-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.card-preview-mock {
  background: #16181d;
  padding: 16px 16px 0;
  box-sizing: border-box;
}
.card-preview-mock .mock-ui {
  height: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  color: #111;
  background: #f4f5f7;
  border-radius: 12px 12px 0 0;
  padding: 12px;
  box-sizing: border-box;
}
.device {
  width: min(100%, 260px);
  background: #111318;
  border: 1px solid #2a2d36;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 10px 10px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.device-bar {
  height: 8px; display: flex; justify-content: center; margin-bottom: 8px;
}
.device-bar span {
  width: 42px; height: 4px; border-radius: 99px; background: #2e323c;
}
.device-body {
  background: #f4f5f7;
  color: #111;
  border-radius: 12px 12px 0 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  font-size: 11px;
  line-height: 1.35;
}
.ui-row { display: flex; justify-content: space-between; align-items: center; }
.ui-muted { color: #6a6f78; }
.ui-title { font-weight: 700; font-size: 13px; letter-spacing: -.02em; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 99px; padding: 3px 8px; font-weight: 700; font-size: 10px;
}
.pill.ok { background: #dce6fb; color: var(--blue-ink); }
.pill.warn { background: var(--yellow-soft); color: var(--black); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bar { height: 6px; background: #e2e4e8; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.metric {
  background: #fff; border: 1px solid #e4e6ea; border-radius: 8px; padding: 8px;
}
.metric b { display: block; font-size: 15px; letter-spacing: -.03em; }
.stack { display: grid; gap: 6px; }
.list-item {
  display: flex; justify-content: space-between; background: #fff;
  border: 1px solid #e4e6ea; border-radius: 8px; padding: 7px 8px;
}

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--black);
}
.card-body p { margin: 0; color: var(--grey); flex: 1; font-size: .95rem; }
@media (min-width: 1200px) {
  .card-body { padding: 18px 16px 18px; }
  .card-body h3 { font-size: 1.05rem; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-store {
  background: var(--black);
  color: var(--white);
  width: fit-content;
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}
.btn-note { font-size: .78rem; color: var(--grey); font-weight: 600; }

.page { padding: 56px 0 96px; }
.page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.page .intro { color: var(--grey); font-size: 1.1rem; max-width: 48ch; margin: 0 0 36px; }
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 2rem 0 .6rem;
}
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.15rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 36rem;
}
.contact-card .label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey); margin: 0 0 8px;
}
.contact-card a.email {
  font-size: 1.35rem; font-weight: 700; color: var(--black);
  text-decoration: none; letter-spacing: -.02em;
}
.contact-card a.email:hover { color: var(--blue); }
.contact-card p { color: var(--grey); margin: 12px 0 0; }

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: 28px 0 40px;
  color: var(--grey);
  font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding-top: 40px; }
  .section { padding-bottom: 64px; }
  .header-inner { min-height: 64px; }
}

/* Brand mark — at least 20px */
.wordmark { display: flex; align-items: center; gap: .55rem; }
.wordmark .mark {
  width: 28px; height: 28px; flex: 0 0 28px;
}
.wordmark .mark img, .wordmark .mark svg {
  width: 28px; height: 28px; display: block;
}

.nav { flex-wrap: wrap; justify-content: flex-end; }

.lanes { display: flex; flex-direction: column; gap: 8px; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover .card { border-color: var(--blue); }
.badge-soon {
  display: inline-flex; align-items: center;
  background: var(--yellow-soft); color: var(--black);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 99px; padding: 3px 8px;
}
.card-body .row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* CAD & Design placeholders */
.cad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ph-block {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.ph-label {
  display: inline-flex; align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--yellow-soft);
  border-radius: 99px;
  padding: 3px 8px;
}
.ph-block h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; color: var(--black); }
.ph-block p, .ph-block li { margin: 0; color: var(--grey); }
.ph-tiles { display: grid; gap: 8px; }
.ph-tile {
  background: var(--grey-wash);
  border: 1px dashed var(--grey-line);
  border-radius: 10px;
  min-height: 72px;
  padding: 12px;
  color: var(--grey);
  font-size: .9rem;
}
.ph-tile strong { display: block; color: var(--ink); font-weight: 700; }
.btn-mail {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; width: fit-content;
  border-radius: 10px; font-weight: 700; font-size: .92rem;
  text-decoration: none; background: var(--black); color: var(--white);
}
.btn-mail:hover { color: var(--white); background: var(--ink); }
.cad-note { margin-top: 16px; color: var(--grey); font-size: .9rem; }

.app-page .lede { margin-bottom: 28px; }
.back { font-weight: 600; text-decoration: none; color: var(--ink); }
.back:hover { color: var(--blue); }

@media (max-width: 1100px) {
  /* At ~1000–1024px, three CAD columns were cramped (wrapping service lines). */
  .cad-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .wordmark .mark, .wordmark .mark img, .wordmark .mark svg { width: 24px; height: 24px; }
  .wordmark .mark { flex-basis: 24px; width: 24px; }
}

