/* Clovertech Holdings Inc. — company site
   Layout: one centred column; a full-width purple band carries Cathop, everything else sits on a pale clover ground */
:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --ink: #13241c;
  --muted: #536a5e;
  --line: #d9e3dc;
  --clover: #22895a;
  --clover-soft: #e2f1e8;
  --game: #1b1440;
  --game-ink: #fbf5ff;
  --game-muted: #b3a8dc;
  --pink: #ff4f8b;
  --sun: #ffc531;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Bungee", "Arial Black", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1712; --surface: #15221b; --ink: #e8f1eb; --muted: #9db3a6; --line: #24362c;
    --clover: #4cc58a; --clover-soft: #173226; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1712; --surface: #15221b; --ink: #e8f1eb; --muted: #9db3a6; --line: #24362c;
  --clover: #4cc58a; --clover-soft: #173226; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--clover); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--clover); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }

/* Header */
.top { padding-block: 22px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.15rem/1 var(--display); letter-spacing: -0.01em; }
.mark svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 20px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* Intro */
.intro { padding-block: 48px 64px; }
.eyebrow { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clover); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 22px 0 0; }

/* Cathop band */
.game { background: var(--game); color: var(--game-ink); padding-block: 64px; overflow: hidden; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.word { font: 400 clamp(2.6rem, 9vw, 4.4rem)/0.95 var(--brand); margin: 0; }
.word .p { color: var(--pink); } .word .s { color: var(--sun); }
.tagline { font: 400 1.2rem/1.3 var(--brand); margin: 14px 0 0; }
.game p.desc { color: var(--game-muted); max-width: 52ch; margin: 18px 0 0; }
.chip { display: inline-block; margin-top: 22px; background: var(--sun); color: var(--game); font-weight: 800; font-size: 0.9rem; border-radius: 99px; padding: 8px 16px; }
.feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.feats li { border-top: 2px solid rgba(255,255,255,0.14); padding-top: 12px; }
.feats b { display: block; color: var(--game-ink); font-weight: 800; }
.feats span { color: var(--game-muted); font-size: 0.95rem; }
.cats { position: relative; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; justify-self: center; }
.cat-slot { position: absolute; }
.cat-slot.held .cat .open { display: none; }
.cat-slot.held .cat .happy { display: inline; }
.cat-slot .ring { position: absolute; inset: -14px; border-radius: 50%; border: 4px dashed var(--sun); animation: spin 6s linear infinite; }
.lava-dot { position: absolute; border-radius: 50%; background: radial-gradient(circle at 42% 40%, #fffbd0 0 8%, #ffe04a 20%, #ff8a1a 42%, #ff3d0d 64%, #6e0805 100%); box-shadow: 0 0 0 4px #2a0703, 0 0 28px rgba(255,90,10,0.6); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cat-slot .ring { animation: none; } }

/* Cat drawings (shared with the game) */
.cat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 7px 0 rgba(0,0,0,0.28)); }
.cat .spark { fill: #fff6c2; }
.cat .stripe { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cat .fur { fill: none; stroke-linecap: round; stroke-width: 0.9; opacity: 0.55; }
.cat .ear-tuft { fill: none; stroke: #fff6ee; stroke-width: 0.8; stroke-linecap: round; opacity: 0.8; }
.cat .lid { fill: none; stroke: #120a08; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat .pupil { fill: #0a0606; }
.cat .shine { fill: #fff; opacity: 0.95; }
.cat .mouth { fill: none; stroke: #3a1a16; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cat .whisk { fill: none; stroke: #fffaf2; stroke-width: 0.75; stroke-linecap: round; opacity: 0.9; }
.cat .dots { fill: #3a1a16; opacity: 0.45; }
.cat .rim { fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 1.2; }
.cat .happy, .cat .sleepy { display: none; }

/* Studio + contact */
.section { padding-block: 72px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.cols p { color: var(--muted); margin: 8px 0 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.contact p { color: var(--muted); margin: 10px 0 0; }
.email { font: 700 clamp(1.05rem, 3.6vw, 1.35rem)/1.2 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--clover); color: #fff; font-weight: 800; text-decoration: none; border-radius: 12px; padding: 14px 20px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }

/* Legal pages */
.legal { padding-block: 40px 72px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); max-width: none; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.qa { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.qa h3 { font-size: 1.05rem; }
.qa p { margin: 6px 0 0; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }

@media (max-width: 780px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cats { max-width: 320px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 14px; }
}
@media (max-width: 420px) { .feats { grid-template-columns: minmax(0, 1fr); } }
