:root {
  --paper: #f3f0e9;
  --paper-2: #e7e0d3;
  --ink: #171814;
  --olive: #777d55;
  --olive-deep: #59603d;
  --olive-soft: #a4a986;
  --pink: #c88478;
  --blue: #85b7d4;
  --shadow: rgba(23, 24, 20, .18);
  --clay-font: "Coiny", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,.88), transparent 23rem),
    radial-gradient(circle at 87% 30%, rgba(119,125,85,.08), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--clay-font);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(23,24,20,.2) .7px, transparent .8px),
    radial-gradient(circle, rgba(255,255,255,.55) .7px, transparent .8px);
  background-position: 0 0, 4px 4px;
  background-size: 9px 9px;
  mix-blend-mode: multiply;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: .045em;
  transform: rotate(-1deg);
  text-shadow: 0 2px 0 rgba(255,255,255,.6), 0 4px 0 rgba(23,24,20,.08);
}

.mini-pill {
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 10px 16px 8px;
  border-radius: 45% 55% 52% 48% / 55% 48% 52% 45%;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.mini-pill:hover { transform: translateY(2px) rotate(1deg); box-shadow: 0 2px 0 var(--ink); }

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(360px, .98fr) minmax(380px, 1.18fr) minmax(280px, .9fr);
  grid-template-areas:
    "copy cat actions"
    "copy cat ca";
  align-items: center;
  gap: 24px 38px;
  padding: 22px 0 72px;
}

.hero-copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  position: relative;
  z-index: 3;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--olive-deep);
  font-size: .78rem;
  letter-spacing: .16em;
}

h1, h2, p { text-wrap: balance; }
h1 {
  margin: 0;
  font-size: clamp(4.6rem, 5.8vw, 5.4rem);
  line-height: .84;
  letter-spacing: -.045em;
  color: var(--olive);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 var(--paper-2),
    0 8px 0 var(--ink),
    0 13px 18px rgba(23,24,20,.15);
  transform: rotate(-2deg);
}

.tagline {
  margin: 28px 0 0;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.25;
}

.cat-stage {
  grid-area: cat;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 650px;
}

.hero-cat {
  width: min(100%, 560px);
  max-height: 76vh;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 12px rgba(23,24,20,.13));
  animation: cat-float 5.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.scribble {
  position: absolute;
  border: 3px solid var(--ink);
  opacity: .14;
  z-index: 0;
}
.scribble-one {
  width: 78%; height: 60%;
  border-radius: 50% 45% 52% 48% / 44% 56% 45% 55%;
  transform: rotate(8deg);
}
.scribble-two {
  width: 60%; height: 72%;
  border-radius: 44% 56% 48% 52% / 55% 45% 58% 42%;
  transform: rotate(-8deg);
}

.actions {
  grid-area: actions;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.app-button {
  min-height: 66px;
  padding: 10px 14px 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 22px 19px 24px 17px / 18px 24px 17px 23px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.app-button:nth-child(even) { transform: rotate(1deg); }
.app-button:nth-child(odd) { transform: rotate(-1deg); }
.app-button:hover { transform: translateY(2px) rotate(0); box-shadow: 0 3px 0 var(--ink); filter: brightness(1.03); }
.app-button:focus-visible, .copy-button:focus-visible, summary:focus-visible, .mini-pill:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.icon-box {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 46% 54% / 52% 43% 57% 48%;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}
.icon-box img { width: 25px; height: 25px; object-fit: contain; }
.button-dark .icon-box img, .button-olive .icon-box img { filter: none; }
.button-dark { background: var(--olive-deep); color: white; }
.button-olive { background: var(--olive); color: white; }
.button-cream { background: var(--paper-2); }
.button-pink { background: var(--pink); }

.ca-card {
  grid-area: ca;
  align-self: start;
  border: 2px solid var(--ink);
  background: #d9d2c6;
  border-radius: 20px 26px 18px 24px / 25px 17px 25px 19px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 10px 10px 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  transform: rotate(.5deg);
}
.ca-label {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50% 43% 48% 52%;
}
.ca-card code {
  font-family: var(--clay-font);
  font-size: .92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-button {
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 14px 18px 13px 17px;
  box-shadow: 0 3px 0 var(--ink);
  padding: 10px 12px 8px;
  cursor: pointer;
}
.copy-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.faq-section {
  padding: 88px 0 56px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 56px;
  border-top: 2px dashed rgba(23,24,20,.35);
}
.section-heading h2, .disclaimer h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  color: var(--olive);
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--paper-2);
}

.faq-list { display: grid; gap: 14px; }
details {
  background: rgba(231,224,211,.74);
  border: 2px solid var(--ink);
  border-radius: 22px 18px 25px 16px / 18px 25px 17px 23px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 0 18px;
  overflow: hidden;
}
details:nth-child(even) { transform: rotate(.35deg); }
details:nth-child(odd) { transform: rotate(-.25deg); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 18px 0;
  position: relative;
  font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 13px;
  font-size: 1.7rem;
  transition: transform .18s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 0;
  padding: 0 0 20px;
  max-width: 64ch;
  font-size: .92rem;
  line-height: 1.55;
}

.disclaimer {
  margin: 34px 0 70px;
  padding: 28px clamp(22px, 4vw, 46px);
  background: var(--olive);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 34px 27px 38px 25px / 28px 39px 25px 36px;
  box-shadow: 0 7px 0 var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  transform: rotate(-.25deg);
}
.disclaimer h2 {
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 3.8rem);
  text-shadow: none;
  margin-bottom: 10px;
}
.disclaimer p { margin: 0; line-height: 1.5; max-width: 85ch; }
.tiny-cat {
  font-size: 3.6rem;
  line-height: 1;
  color: var(--pink);
  text-shadow: 2px 2px 0 var(--ink);
}

footer {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 2px dashed rgba(23,24,20,.35);
  font-size: .75rem;
  letter-spacing: .05em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 26px) rotate(-1deg);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  background: var(--blue);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  padding: 11px 16px 9px;
  border-radius: 16px 20px 15px 18px;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }

@keyframes cat-float {
  0%, 100% { transform: translateY(0) rotate(-.35deg); }
  50% { transform: translateY(-9px) rotate(.35deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "cat" "actions" "ca";
    min-height: auto;
    text-align: center;
    gap: 22px;
    padding-top: 30px;
  }
  .hero-copy { justify-self: center; }
  .cat-stage { min-height: auto; }
  .hero-cat { width: min(82vw, 520px); max-height: none; }
  .actions, .ca-card { width: min(620px, 100%); justify-self: center; }
  .actions { align-self: center; }
  .ca-card { align-self: center; text-align: left; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { text-align: center; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); }
  .site-header { height: 76px; }
  .hero { padding-bottom: 54px; }
  h1 { font-size: clamp(4.3rem, 25vw, 6.5rem); -webkit-text-stroke-width: 1.5px; }
  .hero-cat { width: min(96vw, 440px); }
  .actions { grid-template-columns: 1fr 1fr; gap: 9px; }
  .app-button { min-height: 58px; padding: 8px; font-size: .86rem; }
  .icon-box { width: 36px; height: 36px; }
  .icon-box img { width: 22px; height: 22px; }
  .ca-card { grid-template-columns: auto 1fr; }
  .copy-button { grid-column: 1 / -1; width: 100%; }
  .faq-section { padding-top: 64px; }
  .disclaimer { grid-template-columns: 1fr; text-align: center; }
  .tiny-cat { display: none; }
  footer { flex-direction: column; justify-content: center; padding: 22px 0; }
}
