/* Cat Break — catbreak.com
   Aesthetic: warm paper, sticker-book cards, coral→lilac gradients.
   Palette and type mirror the extension popup so the site and product feel like one thing. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #fff9f4;
  --cream-deep: #fff0e6;
  --paper: #fffdfb;
  --ink: #2a2438;
  --ink-soft: #5c5466;
  --muted: #8b8394;
  --coral: #ff7b54;
  --coral-deep: #f0603f;
  --peach: #ffc9a8;
  --lilac: #b8a9ff;
  --lilac-soft: #ede9ff;
  --card: #ffffff;
  --card-edge: rgba(255, 147, 112, 0.22);

  --shadow-soft: 0 4px 20px rgba(42, 36, 56, 0.06);
  --shadow-lift: 0 14px 40px rgba(255, 107, 74, 0.16);
  --shadow-deep: 0 30px 70px -20px rgba(42, 36, 56, 0.28);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;

  --shell: 1180px;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  /* `clip`, not `hidden`: the rotated marquee overhangs the viewport, and
     `hidden` here would create a scroll container and break the sticky nav. */
  overflow-x: clip;
}

body {
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(255, 123, 84, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 92% 22%, rgba(184, 169, 255, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 50% 120%, rgba(255, 201, 168, 0.28) 0%, transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.6;
}

/* Paper grain — the thing that keeps flat cream from looking like a default */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; position: relative; z-index: 2; }

img, canvas, svg { display: block; max-width: 100%; }

::selection { background: var(--coral); color: #fff; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill);
  text-decoration: none;
}
.skip-link:focus { left: 20px; }

kbd {
  font-family: var(--body);
  font-size: 0.85em; font-weight: 800;
  background: #fff; border: 1.5px solid var(--card-edge);
  border-bottom-width: 3px;
  border-radius: 6px; padding: 1px 7px;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--lilac-soft);
  padding: 2px 6px; border-radius: 6px;
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  letter-spacing: -0.035em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--coral) 0%, var(--coral-deep) 45%, #8b6cf0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}

.section-title { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft); max-width: 62ch; margin-top: 18px;
}
.section-lede.center { margin-inline: auto; text-align: center; }

.kicker {
  font-family: var(--display);
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--coral-deep);
  margin-bottom: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600;
  border: none; border-radius: var(--pill); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, background .2s ease;
}
.btn-sm { font-size: .95rem; padding: 9px 20px; }
.btn-lg { font-size: 1.1rem; padding: 16px 30px; }

.btn-primary {
  color: #fff;
  background: linear-gradient(118deg, #ff9a6c 0%, #ff6b5c 46%, #8b6cf0 130%);
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(255, 107, 74, 0.28); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 2px var(--card-edge), var(--shadow-soft);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); background: #fff; box-shadow: inset 0 0 0 2px var(--coral), var(--shadow-soft); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 249, 244, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--card-edge); box-shadow: 0 6px 26px rgba(42,36,56,.05); }

.nav-inner { display: flex; align-items: center; gap: 28px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.22rem;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.brand img { border-radius: 9px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .96rem; font-weight: 700;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--coral); border-radius: 2px; transition: right .28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }

.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: 0; }
.blob-1 { width: 460px; height: 460px; background: rgba(255, 154, 108, .5); top: -140px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.blob-2 { width: 520px; height: 520px; background: rgba(184, 169, 255, .45); bottom: -220px; right: -140px; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(50px, -30px) scale(1.12); } }

.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: .88rem; font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1.5px var(--card-edge);
  padding: 7px 16px; border-radius: var(--pill);
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #33c481; box-shadow: 0 0 0 4px rgba(51,196,129,.18); }

.lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--ink-soft); max-width: 50ch; margin-top: 22px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 26px; font-size: .9rem; color: var(--muted); font-weight: 700;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: "✓"; color: var(--coral); font-weight: 800; }

/* Browser mockup */
.hero-stage { position: relative; }

.browser {
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(42,36,56,.05);
  overflow: hidden;
  transform: rotate(1.1deg);
  transition: transform .5s cubic-bezier(.34,1.3,.64,1);
}
.hero-stage:hover .browser { transform: rotate(0deg) translateY(-4px); }

.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #fff, var(--cream-deep));
  border-bottom: 1px solid var(--card-edge);
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl-r { background: #ff6058; } .tl-y { background: #ffbd2e; } .tl-g { background: #28ca41; }
.omnibox {
  flex: 1; margin-left: 10px;
  display: flex; align-items: center; gap: 7px;
  background: #fff; border-radius: var(--pill);
  padding: 6px 14px; font-size: .74rem; color: var(--muted); font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--card-edge);
}

.browser-body { position: relative; aspect-ratio: 4 / 3.05; background: #fff; overflow: hidden; }

.feed { padding: 20px; display: flex; flex-direction: column; gap: 14px; filter: blur(1.2px); opacity: .5; }
.fpost { display: flex; gap: 12px; align-items: center; }
.fav { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--lilac)); flex: none; }
.flines { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.flines i { height: 8px; border-radius: 4px; background: #ece7f2; display: block; }
.fmedia { height: 92px; border-radius: var(--r-sm); background: linear-gradient(120deg, #f4eefb, #ffe8dc); }
.fmedia-2 { background: linear-gradient(120deg, #ffe8dc, #e9f0fb); }

.overlay-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,18,13,.04), rgba(26,18,13,.2)); }

.hero-timer {
  position: absolute; top: 16px; right: 18px; z-index: 3;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: #fff; background: rgba(42,36,56,.55);
  backdrop-filter: blur(8px);
  padding: 5px 14px; border-radius: var(--pill);
  font-variant-numeric: tabular-nums;
}

/* Keyed cats are cropped to their alpha bounds, so the canvas aspect ratio differs
   per clip and changes frame to frame. Every cat canvas is therefore absolutely
   positioned inside a sized box: percentage heights do NOT resolve against an
   aspect-ratio parent, so a tall cat would otherwise overflow its card. */
.cat-slot {
  position: absolute; left: 1%; bottom: 0; z-index: 2;
  width: 54%; height: 82%;
  pointer-events: none;
}
.cat-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.22));
  animation: breathe 3s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-8px) scale(1.012); } }

/* Green-screen source — kept in the DOM for reliable autoplay, never shown */
.cat-src {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cat-shadow {
  position: absolute; left: 50%; bottom: 2%; width: 60%; height: 9%;
  border-radius: var(--pill);
  background: radial-gradient(ellipse, rgba(0,0,0,.22), transparent 74%);
  transform: translateX(-50%); filter: blur(16px);
}

.speech {
  position: absolute; right: 18px; bottom: 20px; z-index: 4;
  width: min(58%, 260px);
  background: #fff; border-radius: var(--r-md);
  padding: 15px 17px;
  box-shadow: 0 18px 40px rgba(42,36,56,.2);
}
.speech::after {
  content: ""; position: absolute; left: -8px; bottom: 26px;
  border: 8px solid transparent; border-right-color: #fff; border-left: 0;
}
.speech-title { font-family: var(--display); font-size: .98rem; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.speech-body { font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }

.stage-note { text-align: center; margin-top: 18px; font-size: .86rem; color: var(--muted); font-weight: 700; }

/* ── Marquee ──────────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden; padding: 16px 0;
  background: linear-gradient(118deg, #ff9a6c 0%, #ff6b5c 46%, #8b6cf0 100%);
  box-shadow: var(--shadow-lift);
  position: relative; z-index: 2;
  transform: rotate(-1deg) scale(1.04);
  margin: 30px 0 clamp(60px, 9vw, 110px);
}
.marquee-track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: slide 34s linear infinite;
  font-family: var(--display); font-size: 1.05rem; font-weight: 500; color: #fff;
  white-space: nowrap;
}
.marquee .sep { opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Problem ──────────────────────────────────────────────────────────────── */

.problem { padding-bottom: clamp(60px, 9vw, 110px); }
.problem-inner { text-align: center; }
.problem .section-lede { margin-inline: auto; }

.problem-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 52px; text-align: left;
}
.pcard {
  background: var(--card); border-radius: var(--r-lg);
  padding: 30px 26px 32px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--card-edge);
  transition: transform .3s cubic-bezier(.34,1.4,.64,1), box-shadow .3s ease;
}
.pcard-a { transform: rotate(-1.4deg); }
.pcard-b { transform: rotate(.7deg); }
.pcard-c { transform: rotate(-.5deg); }
.pcard:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lift), 0 0 0 1px var(--card-edge); }

.pc-emoji { font-size: 2rem; display: block; margin-bottom: 14px; }
.pcard h3 { font-size: 1.25rem; margin-bottom: 10px; }
.pcard p { color: var(--ink-soft); font-size: .96rem; }

.pcard.is-win {
  background: linear-gradient(150deg, #fff 0%, var(--lilac-soft) 100%);
  box-shadow: var(--shadow-lift), 0 0 0 2px var(--coral);
}
.pcard.is-win::before {
  content: "this one";
  position: absolute; margin-top: -46px; margin-left: -8px;
  font-family: var(--display); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff; background: var(--coral);
  padding: 4px 12px; border-radius: var(--pill);
  transform: rotate(-4deg);
}
.pcard.is-win { position: relative; }

/* ── How ──────────────────────────────────────────────────────────────────── */

.how { padding-bottom: clamp(60px, 9vw, 110px); }
.steps {
  list-style: none; counter-reset: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 50px;
}
.step { position: relative; padding-top: 14px; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 15px;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--coral), #8b6cf0);
  box-shadow: var(--shadow-lift);
  margin-bottom: 18px;
  transform: rotate(-5deg);
}
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* dotted connector between steps */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; left: 60px; right: -20px; height: 2px;
  background-image: linear-gradient(90deg, var(--card-edge) 0 6px, transparent 6px 13px);
  background-size: 13px 2px;
}

/* ── Feature banners ───────────────────────────────────────────────────────── */

.features { padding-bottom: clamp(30px, 5vw, 60px); }
.features > .shell:first-child { margin-bottom: 20px; }

.fbanner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px); align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.fbanner-flip .fb-copy { order: 2; }

.fb-tag {
  display: inline-block;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: #fff; background: linear-gradient(120deg, var(--coral), #8b6cf0);
  padding: 5px 14px; border-radius: var(--pill);
  margin-bottom: 18px;
}
.fb-copy h3 { font-size: clamp(1.6rem, 2.9vw, 2.2rem); margin-bottom: 16px; }
.fb-copy p { color: var(--ink-soft); font-size: 1.03rem; }

.fb-list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.fb-list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .97rem; }
.fb-list li::before {
  content: "🐾"; position: absolute; left: 0; top: 0; font-size: .9rem;
}

.fb-art { display: grid; place-items: center; }

/* time card */
.timecard {
  width: 100%; max-width: 380px;
  background: var(--card); border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-deep), 0 0 0 1px var(--card-edge);
  transform: rotate(-1.5deg);
}
.tc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tc-site { font-size: .92rem; font-weight: 700; }
.tc-time { font-family: var(--display); font-size: 1rem; color: var(--coral-deep); font-variant-numeric: tabular-nums; }
.tc-bar { height: 9px; border-radius: var(--pill); background: var(--cream-deep); margin-bottom: 20px; overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: var(--pill); background: linear-gradient(90deg, var(--coral), #8b6cf0); }
.tc-foot {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--muted); font-weight: 700;
  border-top: 1px dashed var(--card-edge); padding-top: 16px; margin-top: 4px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.8); } }

/* rule card */
.rulecard {
  width: 100%; max-width: 380px;
  background: var(--card); border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-deep), 0 0 0 1px var(--card-edge);
  transform: rotate(1.3deg);
}
.rule {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--cream); margin-bottom: 9px;
  font-size: .9rem;
}
.rd { font-weight: 700; }
.rm { font-family: var(--display); color: var(--coral-deep); font-size: .88rem; }
.rule-off { background: #f7f5fa; color: var(--muted); }
.rule-off .rm { color: var(--muted); }

.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--card-edge);
  font-size: .9rem; font-weight: 700;
}
.track {
  width: 46px; height: 26px; border-radius: var(--pill); flex: none;
  background: linear-gradient(120deg, var(--coral), #8b6cf0);
  position: relative;
}
.track i { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

/* pause card */
.pausecard { width: 100%; max-width: 380px; text-align: center; }
.pc-screen {
  aspect-ratio: 16/10; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #3a3350, #221d33);
  display: grid; place-items: center;
  box-shadow: var(--shadow-deep);
  transform: rotate(-1deg);
}
.pc-pause {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  position: relative;
  box-shadow: 0 0 0 12px rgba(255,255,255,.06);
}
.pc-pause::before, .pc-pause::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 20px;
  background: #fff; border-radius: 2px; transform: translateY(-50%);
}
.pc-pause::before { left: 18px; } .pc-pause::after { right: 18px; }
.pc-cap { margin-top: 18px; font-size: .88rem; color: var(--muted); font-weight: 700; }

/* countdown ring */
.ringwrap { position: relative; width: min(260px, 70%); display: grid; place-items: center; }
.ring { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-bg { stroke: var(--cream-deep); }
.ring-fg {
  stroke: url(#g); stroke: var(--coral);
  stroke-dasharray: 327; stroke-dashoffset: 60;
  animation: countdown 6s linear infinite;
}
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 327; } }
.ring-label { position: absolute; text-align: center; }
.ring-label strong { display: block; font-family: var(--display); font-size: 2rem; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ── Cat gallery ──────────────────────────────────────────────────────────── */

.cats { padding: clamp(50px, 8vw, 90px) 0; text-align: center; }

.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 50px; text-align: left;
}

.cat-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #fff 0%, var(--cream-deep) 100%);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--card-edge);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), box-shadow .35s ease;
}
.cat-card:nth-child(3n+1) { background: linear-gradient(165deg, #fff, #ffeee4); }
.cat-card:nth-child(3n+2) { background: linear-gradient(165deg, #fff, var(--lilac-soft)); }
.cat-card:nth-child(3n)   { background: linear-gradient(165deg, #fff, #e8f4ee); }

.cat-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lift), 0 0 0 1px var(--card-edge); }

/* Explicit width/height, not insets: a replaced element with auto dimensions
   falls back to its intrinsic size and ignores left/right/top/bottom. */
.cat-card .cat-canvas {
  inset: auto;
  left: 9%; top: 9%;
  width: 82%; height: 76%;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.16));
  animation: none;
  transition: transform .35s ease;
}
.cat-card:hover .cat-canvas { transform: translateY(-6px) scale(1.03); }

.cat-name {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--display); font-size: .95rem; font-weight: 600;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(6px);
  padding: 5px 14px; border-radius: var(--pill);
  box-shadow: var(--shadow-soft);
}

.cat-card.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── Try it ───────────────────────────────────────────────────────────────── */

.tryit { padding: clamp(50px, 8vw, 90px) 0; }
.tryit-inner {
  text-align: center;
  background: linear-gradient(150deg, #fff 0%, var(--cream-deep) 60%, var(--lilac-soft) 100%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 68px) 28px;
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--card-edge);
}
.tryit h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.tryit p { color: var(--ink-soft); margin: 14px auto 28px; max-width: 46ch; }
.tryit-note { font-size: .86rem; color: var(--muted); margin-top: 18px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq { padding-bottom: clamp(60px, 9vw, 110px); }
.faq-inner { max-width: 780px; margin-inline: auto; text-align: center; }
.faq-list { margin-top: 44px; text-align: left; display: grid; gap: 12px; }

.faq details {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--card-edge);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.faq details[open] { box-shadow: var(--shadow-lift), 0 0 0 1px var(--card-edge); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px;
  font-family: var(--display); font-size: 1.06rem; font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--coral); line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.5,.64,1);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); font-size: .98rem; }

/* ── Final CTA ────────────────────────────────────────────────────────────── */

.final { padding-bottom: clamp(60px, 9vw, 100px); }
.final-inner {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 20px;
  background: linear-gradient(125deg, #ff9a6c 0%, #ff6b5c 44%, #8b6cf0 108%);
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 56px) clamp(28px, 5vw, 60px);
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.final-inner::after {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%);
  pointer-events: none;
}
.final-cat { position: relative; height: 240px; }
.final-cat .cat-canvas { filter: drop-shadow(0 20px 34px rgba(0,0,0,.24)); }

.final-copy { color: #fff; position: relative; z-index: 2; }
.final-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.final-copy > p { opacity: .92; margin-bottom: 26px; max-width: 44ch; }
.final-copy .btn-primary {
  background: #fff; color: var(--coral-deep);
  box-shadow: 0 14px 34px rgba(42,36,56,.22);
}
.final-copy .btn-primary:hover { background: #fff; box-shadow: 0 20px 44px rgba(42,36,56,.3); }
.final-note { margin-top: 16px; font-size: .86rem; opacity: .85; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer { padding: 40px 0 56px; border-top: 1px solid var(--card-edge); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
}
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 700; }
.footer-links a:hover { color: var(--coral-deep); }
.footer-legal { width: 100%; font-size: .84rem; color: var(--muted); }

/* ── Live demo overlay ────────────────────────────────────────────────────── */

.demo {
  position: fixed; inset: 0; z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.demo.is-in { opacity: 1; pointer-events: auto; }
.demo-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,18,13,.1), rgba(26,18,13,.38)); backdrop-filter: blur(2px); }

.demo-timer {
  position: absolute; top: 28px; right: 32px;
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: #fff;
  background: rgba(42,36,56,.5); backdrop-filter: blur(10px);
  padding: 8px 20px; border-radius: var(--pill);
  font-variant-numeric: tabular-nums;
}

.demo-cat {
  position: absolute; left: 3%; bottom: 0;
  width: min(46vw, 540px); height: min(82vh, 700px);
  pointer-events: none;
}
.demo-cat .cat-canvas { filter: drop-shadow(0 34px 58px rgba(0,0,0,.28)); }

.demo-card {
  position: absolute; right: 5%; bottom: 12%;
  width: min(92vw, 380px);
  background: #fff; border-radius: var(--r-lg);
  padding: 28px 30px;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  animation: cardin .5s cubic-bezier(.34,1.5,.64,1) both .2s;
}
@keyframes cardin { from { opacity: 0; transform: translateY(24px) scale(.96); } }

.demo-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--cream-deep); color: var(--ink-soft);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.demo-close:hover { background: var(--coral); color: #fff; transform: rotate(90deg); }

.demo-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.22; margin-bottom: 10px; }
.demo-body { font-size: .95rem; color: var(--ink-soft); }
.demo-hint { margin-top: 16px; font-size: .8rem; color: var(--muted); }

body.demo-open { overflow: hidden; }

/* ── Reveal on load / scroll ──────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.on-scroll.is-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 560px; margin-inline: auto; width: 100%; }
  .problem-cards, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .fbanner, .fbanner-flip { grid-template-columns: 1fr; }
  .fbanner-flip .fb-copy { order: 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .final-inner { grid-template-columns: 1fr; text-align: center; }
  .final-copy > p, .final-cat { margin-inline: auto; }
  .final-cat { min-height: 160px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .speech { width: 62%; right: 10px; bottom: 12px; padding: 12px 13px; }
  .speech-title { font-size: .85rem; }
  .speech-body { font-size: .72rem; }
  .cta-row .btn { width: 100%; }
  .demo-card { right: 50%; transform: translateX(50%); bottom: 6%; }
  .demo-cat { width: 74vw; left: -6%; }
  .footer-links { margin-left: 0; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .on-scroll { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
