/* ============================================================
   Catology — catology.life marketing site
   Shared design system. Palette + type ported from the app
   (client/src/design/tokens.ts) and docs/roadmap.html.
   ============================================================ */

/* ---- Fonts (self-hosted, copied from client/assets/fonts) ---- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif_400Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif_400Regular_Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist_400Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist_500Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist_600SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist_700Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono_400Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --cream:#FBF4EA; --cream2:#F3E9D7; --paper:#FFFDF8; --card:#FFFFFF;
  --ink:#2A1D14; --ink2:#5C4A3C; --muted:#9A8A79;
  --hair:rgba(42,29,20,.12); --hair2:rgba(42,29,20,.06);
  --peach:#E08A5F; --peach-soft:#F6C8A8; --peach-bg:#FBE7DA;
  --sage:#8CA687;  --sage-bg:#E6EFE2;
  --butter:#D9A84F; --butter-bg:#FBEFD2;
  --plum:#8B6A8E;  --plum-bg:#EFE6F2;
  --display:"Instrument Serif", Georgia, "Times New Roman", serif;
  --body:"Geist", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow:0 10px 34px rgba(42,29,20,.07);
  --shadow-sm:0 6px 22px rgba(42,29,20,.05);
  --radius:20px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html, body { margin:0; }
body {
  background:var(--cream); color:var(--ink);
  font-family:var(--body); line-height:1.6; font-size:16px;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img { max-width:100%; display:block; }
a { color:var(--peach); text-decoration:none; }
a:hover { text-decoration:underline; }
.wrap { max-width:1080px; margin:0 auto; padding:0 22px; }
.narrow { max-width:760px; }

/* ---- Type ---- */
h1, h2, h3 { font-family:var(--display); font-weight:400; line-height:1.08; margin:0; letter-spacing:.2px; }
h1 { font-size:clamp(40px, 6vw, 64px); }
h2 { font-size:clamp(28px, 4vw, 40px); }
h3 { font-size:22px; }
.kicker { font-family:var(--mono); font-size:11px; letter-spacing:2.5px; text-transform:uppercase; color:var(--peach); }
.lead { color:var(--ink2); font-size:clamp(16px,2vw,19px); }
.muted { color:var(--muted); }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  font-family:var(--body); font-weight:600; font-size:15px;
  padding:13px 22px; border-radius:999px; border:1px solid transparent; transition:transform .12s ease, background .15s ease;
}
.btn:hover { text-decoration:none; transform:translateY(-1px); }
.btn-primary { background:var(--ink); color:#fff; }
.btn-primary:hover { background:#3a2a1d; }
.btn-ghost { background:var(--card); color:var(--ink); border-color:var(--hair); }
.btn-ghost:hover { background:var(--cream2); }
.appstore { display:inline-flex; align-items:center; gap:11px; background:var(--ink); color:#fff; border-radius:14px; padding:11px 18px; transition:transform .12s ease; }
.appstore:hover { text-decoration:none; transform:translateY(-1px); }
.appstore small { display:block; font-size:10px; letter-spacing:.5px; opacity:.8; line-height:1.1; }
.appstore b { font-family:var(--display); font-size:19px; font-weight:400; line-height:1.1; }

/* ---- Chips ---- */
.chip { display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:.5px; border-radius:999px; padding:5px 12px; }
.chip-peach { background:var(--peach-bg); color:#b4501f; }
.chip-sage  { background:var(--sage-bg);  color:#3f6b39; }
.chip-butter{ background:var(--butter-bg);color:#9a6f12; }
.chip-plum  { background:var(--plum-bg);  color:#6c4d70; }

/* ---- Site nav ---- */
.site-nav { position:sticky; top:0; z-index:50; background:rgba(251,244,234,.82); backdrop-filter:saturate(140%) blur(12px); border-bottom:1px solid var(--hair2); }
.site-nav .wrap { display:flex; align-items:center; gap:16px; height:64px; }
.brand { display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:22px; color:var(--ink); }
.brand:hover { text-decoration:none; }
.brand img { width:30px; height:30px; border-radius:8px; }
.nav-links { margin-left:auto; display:flex; align-items:center; gap:22px; }
.nav-links a { color:var(--ink2); font-size:14px; font-weight:500; }
.nav-links a:hover { color:var(--ink); text-decoration:none; }
.nav-cta { padding:9px 16px !important; font-size:14px !important; }
@media (max-width:640px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ---- Sections ---- */
section { padding:64px 0; }
.section-head { max-width:640px; margin-bottom:36px; }
.section-head h2 { margin:8px 0 10px; }

/* ---- Hero ---- */
.hero { padding:72px 0 48px; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero h1 { margin:14px 0 18px; }
.hero .lead { max-width:30em; }
.hero-cta { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:26px; }
.hero-note { margin-top:14px; font-size:13px; color:var(--muted); }
.hero-art { display:flex; justify-content:center; }
@media (max-width:860px){ .hero-grid { grid-template-columns:1fr; gap:36px; } .hero-art { order:-1; } }

/* ---- Phone mockup (CSS device frame; swap real screenshots into .screen) ---- */
.phone { width:280px; max-width:78vw; aspect-ratio:9/19.2; background:var(--ink); border-radius:42px; padding:11px; box-shadow:var(--shadow); position:relative; }
.phone::before { content:""; position:absolute; top:16px; left:50%; transform:translateX(-50%); width:90px; height:22px; background:var(--ink); border-radius:12px; z-index:3; }
.phone .screen { width:100%; height:100%; border-radius:32px; overflow:hidden; background:var(--cream); display:flex; flex-direction:column; }
/* Placeholder scan-result composition rendered with real tokens */
.screen-top { padding:30px 18px 14px; text-align:center; }
.screen-top .k { font-family:var(--mono); font-size:9px; letter-spacing:2px; color:var(--muted); text-transform:uppercase; }
.screen-cat { width:118px; height:118px; border-radius:24px; margin:14px auto 0; background:linear-gradient(135deg,var(--peach) 0%, var(--butter) 100%); }
.screen-mood { font-family:var(--display); font-size:30px; color:var(--ink); margin-top:14px; }
.screen-conf { font-family:var(--mono); font-size:10px; color:var(--sage); letter-spacing:1px; }
.screen-card { margin:14px; background:#fff; border:1px solid var(--hair); border-radius:18px; padding:14px 16px; box-shadow:var(--shadow-sm); }
.screen-card .q { font-family:var(--display); font-size:17px; font-style:italic; color:var(--ink); line-height:1.35; }
.moodbar { display:flex; height:9px; border-radius:999px; overflow:hidden; margin-top:14px; }
.moodbar i { display:block; height:100%; }

/* ---- Feature grid ---- */
.grid { display:grid; gap:18px; }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-2 { grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){ .grid-3 { grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .grid-3, .grid-2 { grid-template-columns:1fr; } }
.card { background:var(--card); border:1px solid var(--hair); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.card .ic { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.card h3 { font-size:20px; margin-bottom:6px; }
.card p { color:var(--ink2); font-size:14.5px; margin:0; }

/* ---- How it works ---- */
.steps { counter-reset:step; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:600px){ .steps { grid-template-columns:1fr; } }
.step { position:relative; padding-top:8px; }
.step .n { font-family:var(--mono); font-size:12px; color:var(--peach); letter-spacing:1px; }
.step h3 { font-size:19px; margin:6px 0 4px; }
.step p { color:var(--ink2); font-size:14px; margin:0; }

/* ---- Pricing ---- */
.price-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; max-width:760px; }
@media (max-width:600px){ .price-grid { grid-template-columns:1fr; } }
.plan { background:var(--card); border:1px solid var(--hair); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); position:relative; }
.plan.feature { border-color:var(--peach-soft); box-shadow:var(--shadow); }
.plan .badge { position:absolute; top:18px; right:18px; }
.plan .amt { font-family:var(--display); font-size:44px; line-height:1; margin:10px 0 2px; }
.plan .amt span { font-family:var(--body); font-size:15px; color:var(--muted); }
.plan ul { list-style:none; margin:18px 0 0; padding:0; }
.plan li { display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color:var(--ink2); padding:7px 0; border-top:1px solid var(--hair2); }
.plan li:first-child { border-top:none; }
.plan li::before { content:"✓"; color:var(--sage); font-weight:700; }
.trial-note { max-width:760px; margin-top:16px; font-size:13px; color:var(--muted); }

/* ---- FAQ ---- */
.faq { max-width:760px; }
.faq details { border-bottom:1px solid var(--hair); padding:6px 0; }
.faq summary { list-style:none; cursor:pointer; padding:16px 2px; font-weight:600; font-size:16.5px; display:flex; justify-content:space-between; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--muted); font-weight:400; font-size:22px; line-height:1; }
.faq details[open] summary::after { content:"–"; }
.faq .a { padding:0 2px 18px; color:var(--ink2); font-size:15px; }

/* ---- CTA band ---- */
.cta-band { background:linear-gradient(135deg, var(--peach) 0%, var(--butter) 120%); border-radius:28px; padding:48px 40px; text-align:center; color:#fff; box-shadow:var(--shadow); }
.cta-band h2 { color:#fff; }
.cta-band p { color:rgba(255,255,255,.92); max-width:34em; margin:10px auto 22px; }
.cta-band .appstore { background:#fff; color:var(--ink); }

/* ---- Disclaimer line ---- */
.disclaimer { background:var(--cream2); border:1px solid var(--hair); border-radius:14px; padding:14px 18px; font-size:13.5px; color:var(--ink2); }

/* ---- Prose (legal / help pages) ---- */
.prose { padding:48px 0 40px; }
.prose h1 { margin-bottom:8px; }
.prose .updated { font-family:var(--mono); font-size:12px; color:var(--muted); margin:6px 0 28px; }
.prose h2 { font-size:26px; margin:36px 0 10px; }
.prose h3 { font-size:18px; font-family:var(--body); font-weight:600; margin:22px 0 6px; }
.prose p, .prose li { color:var(--ink2); font-size:15.5px; }
.prose ul { padding-left:20px; }
.prose li { margin:6px 0; }
.prose a { font-weight:500; }
.prose table { width:100%; border-collapse:collapse; margin:14px 0; font-size:14px; }
.prose th, .prose td { text-align:left; padding:10px 12px; border:1px solid var(--hair); vertical-align:top; }
.prose th { background:var(--cream2); font-family:var(--body); }
.note { background:var(--butter-bg); border:1px solid #ecd9a3; border-radius:12px; padding:12px 16px; font-size:13.5px; color:#7a5a12; }

/* ---- Footer ---- */
.site-foot { border-top:1px solid var(--hair); padding:44px 0; margin-top:40px; }
.foot-grid { display:flex; flex-wrap:wrap; gap:24px; align-items:flex-start; justify-content:space-between; }
.foot-brand { max-width:320px; }
.foot-brand .brand { font-size:20px; margin-bottom:8px; }
.foot-brand p { color:var(--muted); font-size:13px; margin:0; }
.foot-cols { display:flex; gap:56px; flex-wrap:wrap; }
.foot-col h4 { font-family:var(--mono); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin:0 0 12px; font-weight:400; }
.foot-col a { display:block; color:var(--ink2); font-size:14px; padding:4px 0; }
.foot-col a:hover { color:var(--ink); text-decoration:none; }
.foot-legal { margin-top:32px; padding-top:20px; border-top:1px solid var(--hair2); display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; color:var(--muted); font-size:12.5px; }

/* ---- Pre-launch additions (coming-soon badge, language toggle, apply form) ---- */

/* Coming-soon badge — hero eyebrow with a soft pulsing dot */
.soon-badge { display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#b4501f; background:var(--peach-bg); border-radius:999px; padding:7px 14px; }
.soon-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--peach); box-shadow:0 0 0 0 rgba(224,138,95,.5); animation:soon-pulse 2.4s ease-out infinite; }
@keyframes soon-pulse { 0%{ box-shadow:0 0 0 0 rgba(224,138,95,.5); } 70%{ box-shadow:0 0 0 7px rgba(224,138,95,0); } 100%{ box-shadow:0 0 0 0 rgba(224,138,95,0); } }
@media (prefers-reduced-motion: reduce){ .soon-badge::before { animation:none; } }

/* Language toggle (EN / 简 / 繁) in the nav */
.lang-toggle { display:inline-flex; border:1px solid var(--hair); border-radius:999px; overflow:hidden; background:var(--card); flex:0 0 auto; }
.lang-toggle button { font-family:var(--body); font-size:13px; font-weight:500; color:var(--ink2); background:transparent; border:0; padding:6px 11px; cursor:pointer; line-height:1; transition:background .15s ease, color .15s ease; }
.lang-toggle button + button { border-left:1px solid var(--hair2); }
.lang-toggle button:hover:not(.active) { background:var(--cream2); }
.lang-toggle button.active { background:var(--ink); color:#fff; }

/* Apply / waitlist form */
.apply-card { display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; background:var(--card); border:1px solid var(--hair); border-radius:var(--radius); box-shadow:var(--shadow); padding:36px; }
@media (max-width:760px){ .apply-card { grid-template-columns:1fr; gap:22px; padding:26px; } }
.apply-copy h2 { margin:8px 0 10px; }
.apply-privacy { margin-top:14px; font-size:12.5px; color:var(--muted); }
.apply-form { display:flex; flex-direction:column; }
.apply-form label { font-family:var(--mono); font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin:0 0 6px; }
.apply-form label + input { margin-bottom:16px; }
.apply-form input { width:100%; font-family:var(--body); font-size:16px; color:var(--ink); background:var(--cream); border:1px solid var(--hair); border-radius:14px; padding:13px 15px; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.apply-form input:focus { outline:none; border-color:var(--peach); box-shadow:0 0 0 3px rgba(224,138,95,.18); background:var(--card); }
.apply-btn { justify-content:center; margin-top:4px; }
.apply-btn:disabled { opacity:.6; cursor:default; transform:none; }
.apply-msg { margin:14px 0 0; font-size:14px; min-height:1.2em; }
.apply-msg.ok { color:#3f6b39; }
.apply-msg.err { color:#b4501f; }

/* White button on the peach→butter CTA band */
.cta-band .btn { background:#fff; color:var(--ink); }
.cta-band .btn:hover { background:var(--cream2); }

/* ============================================================
   Home-page motion pass — aurora, interactive device, animated
   form success, micro-interactions. Dependency-free; GPU-cheap
   (transform/opacity only); guarded by prefers-reduced-motion.
   ============================================================ */

/* ---- Hero shell + oversized type ---- */
.hero { position:relative; padding:88px 0 68px; }
.hero .wrap { position:relative; z-index:1; }
.hero h1 { font-size:clamp(46px, 7vw, 78px); margin:16px 0 20px; letter-spacing:-.4px; }
section[id] { scroll-margin-top:84px; } /* sticky-nav offset for anchor jumps */

/* ---- Animated aurora (two blurred radial-gradient layers) ---- */
.aurora { position:absolute; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.aurora span { position:absolute; inset:-30%; display:block; border-radius:45%; filter:blur(72px); will-change:transform; }
.aurora .a1 {
  opacity:.5;
  background:
    radial-gradient(closest-side circle at 60% 26%, var(--peach), transparent 66%),
    radial-gradient(closest-side circle at 84% 20%, var(--butter), transparent 60%);
  animation:aurora-a 26s ease-in-out infinite alternate;
}
.aurora .a2 {
  opacity:.36;
  background:
    radial-gradient(closest-side circle at 72% 72%, var(--sage), transparent 60%),
    radial-gradient(closest-side circle at 38% 58%, var(--plum), transparent 55%);
  animation:aurora-b 34s ease-in-out infinite alternate;
}
@keyframes aurora-a { from { transform:translate3d(-6%,-3%,0) rotate(-8deg) scale(1.05); } to { transform:translate3d(8%,-9%,0) rotate(12deg) scale(1.16); } }
@keyframes aurora-b { from { transform:translate3d(6%,6%,0) rotate(10deg) scale(1.08); } to { transform:translate3d(-8%,11%,0) rotate(-10deg) scale(1.2); } }

/* ---- Interactive device: perspective tilt + glow + idle float ---- */
.hero-art { perspective:1100px; }
.device { position:relative; transform-style:preserve-3d; }
.device.tilt-on { transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform .35s ease; will-change:transform; }
.device-glow { position:absolute; inset:-10% -8%; z-index:0; border-radius:50%; filter:blur(34px);
  background:radial-gradient(closest-side, rgba(224,138,95,.4), rgba(217,168,79,.18) 58%, transparent 76%); }
.device .phone { position:relative; z-index:1; animation:phone-float 6.5s ease-in-out infinite; }
@keyframes phone-float { 0%,100% { transform:translateY(-6px); } 50% { transform:translateY(6px); } }

/* Mood bars grow on load (scaleX is GPU-cheap; width comes from --w) */
.moodbar i { width:var(--w); transform-origin:left center; animation:bar-grow 1s cubic-bezier(.22,1,.36,1) both; }
.moodbar i:nth-child(1){ animation-delay:.25s; }
.moodbar i:nth-child(2){ animation-delay:.4s; }
.moodbar i:nth-child(3){ animation-delay:.55s; }
@keyframes bar-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }

/* Floating glass chips for depth */
.float-chip { position:absolute; z-index:2; display:inline-flex; align-items:center; gap:7px;
  background:var(--card); border:1px solid var(--hair); border-radius:999px; padding:8px 13px;
  box-shadow:var(--shadow-sm); font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; }
.float-chip .fc-emoji { font-size:15px; }
.float-chip .fc-dot { width:8px; height:8px; border-radius:50%; background:var(--sage); box-shadow:0 0 0 4px var(--sage-bg); }
.float-chip.chip-a { top:11%; left:-9%; animation:chip-a 5.5s ease-in-out infinite; }
.float-chip.chip-b { bottom:15%; right:-11%; animation:chip-b 6.5s ease-in-out infinite; }
@keyframes chip-a { 0%,100% { transform:translateY(-5px); } 50% { transform:translateY(7px); } }
@keyframes chip-b { 0%,100% { transform:translateY(7px); } 50% { transform:translateY(-6px); } }
@media (max-width:600px){ .float-chip { display:none; } }

/* ---- Animated form success (checkmark draw) ---- */
.apply-result { display:flex; align-items:center; gap:10px; margin-top:14px; }
.apply-result .apply-msg { margin:0; }
.apply-check { display:none; flex:0 0 auto; }
.apply-check.show { display:inline-flex; animation:ck-in .3s ease-out both; }
.apply-check svg { width:30px; height:30px; }
.apply-check .ck-circle { fill:none; stroke:var(--sage); stroke-width:3; opacity:.35; }
.apply-check .ck-tick { fill:none; stroke:var(--sage); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:40; stroke-dashoffset:40; }
.apply-check.show .ck-tick { animation:ck-draw .5s .12s cubic-bezier(.65,0,.45,1) forwards; }
@keyframes ck-in { from { transform:scale(.5); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes ck-draw { to { stroke-dashoffset:0; } }

/* ---- Micro-interactions ---- */
.card { transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--peach-soft); }
.card .ic { transition:transform .2s ease; }
.card:hover .ic { transform:scale(1.08) rotate(-3deg); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .btn:focus-visible, .lang-toggle button:focus-visible {
  outline:2px solid var(--peach); outline-offset:2px;
}

/* Soft drifting sheen on the CTA band */
.cta-band { position:relative; overflow:hidden; }
.cta-band > * { position:relative; z-index:1; }
.cta-band::before { content:""; position:absolute; inset:-40%; z-index:0; filter:blur(30px);
  background:radial-gradient(closest-side circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
  animation:aurora-a 22s ease-in-out infinite alternate; }

/* ---- Respect reduced-motion: freeze everything into a clean static state ---- */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .device .phone, .float-chip, .moodbar i,
  .apply-check.show, .apply-check.show .ck-tick, .cta-band::before { animation:none !important; }
  .moodbar i { transform:none; }
  .apply-check .ck-tick { stroke-dashoffset:0; }
  .device.tilt-on { transition:none; }
}

/* ============================================================
   Art pass v3 — real imagery, scan animation, paw motif, line
   icons, numbered flow, moments gallery. Same tokens; no deps.
   ============================================================ */

/* Hero: clip decorations, oversized display type */
.hero { overflow:hidden; }
.hero h1 { font-size:clamp(48px, 7.6vw, 86px); }
.hero-copy { max-width:36rem; }

/* Signature paw-print motif (from the deck) */
.paw { position:absolute; z-index:0; pointer-events:none; }
.paw ellipse { fill:currentColor; }
.paw-hero { color:var(--cream2); width:min(40vw,400px); right:1%; bottom:-10%; opacity:.55; }
.paw-apply { color:var(--peach-bg); width:min(24vw,220px); right:4%; top:-8%; opacity:.8; }

/* Feature line-icons sit inside the tinted square */
.card .ic svg { width:23px; height:23px; }

/* ---- Phone screen redesign: real photo + live scan ---- */
.device .phone .screen { background:#fff; }
.scan-view { position:relative; margin:9px 9px 0; border-radius:20px; overflow:hidden; aspect-ratio:1/1; background:var(--cream2); }
.scan-photo { width:100%; height:100%; object-fit:cover; display:block; }
.scan-grid { position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size:26px 26px; opacity:.12; mix-blend-mode:overlay; }
.scan-line { position:absolute; left:0; right:0; top:0; height:28px; transform:translateY(-28px); will-change:transform;
  background:linear-gradient(to bottom, rgba(224,138,95,0), rgba(224,138,95,.35));
  border-bottom:2px solid rgba(224,138,95,.9); box-shadow:0 0 18px 3px rgba(224,138,95,.5);
  animation:scan-sweep 3.6s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scan-sweep {
  0% { transform:translateY(-28px); opacity:0; }
  8% { opacity:1; }
  52% { transform:translateY(280px); opacity:1; }
  60%,100% { transform:translateY(280px); opacity:0; }
}
.scan-corner { position:absolute; width:17px; height:17px; border:2px solid rgba(255,255,255,.9); }
.scan-corner.tl { top:9px; left:9px; border-right:0; border-bottom:0; border-radius:6px 0 0 0; }
.scan-corner.tr { top:9px; right:9px; border-left:0; border-bottom:0; border-radius:0 6px 0 0; }
.scan-corner.bl { bottom:9px; left:9px; border-right:0; border-top:0; border-radius:0 0 0 6px; }
.scan-corner.br { bottom:9px; right:9px; border-left:0; border-top:0; border-radius:0 0 6px 0; }
.scan-tag { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); white-space:nowrap;
  font-family:var(--mono); font-size:9px; letter-spacing:1.5px; text-transform:uppercase; color:#fff;
  background:rgba(42,29,20,.55); backdrop-filter:blur(4px); padding:4px 10px; border-radius:999px; }
.screen-result { padding:14px 15px 16px; display:flex; flex-direction:column; gap:9px; animation:sr-in .6s .25s both ease-out; }
@keyframes sr-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.sr-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.screen-mood { font-family:var(--display); font-size:25px; color:var(--ink); line-height:1; }
.screen-conf { font-family:var(--mono); font-size:11px; letter-spacing:.5px; color:var(--sage); }
.screen-result .moodbar { height:8px; }
.screen-result .q { font-family:var(--display); font-style:italic; font-size:15px; color:var(--ink2); line-height:1.35; margin:0; }

/* ---- Numbered "how it works" flow ---- */
.flow { display:flex; align-items:flex-start; gap:10px; }
.flow-step { flex:1 1 0; }
.flow-n { font-family:var(--display); font-size:66px; line-height:.9; color:var(--peach); margin-bottom:4px; }
.flow-step h3 { font-size:21px; margin:0 0 6px; }
.flow-step p { color:var(--ink2); font-size:14.5px; margin:0; }
.flow-link { flex:0 0 auto; align-self:center; color:var(--peach-soft); margin-top:26px; }
.flow-link svg { width:44px; height:24px; display:block; }
@media (max-width:720px){
  .flow { flex-direction:column; gap:20px; }
  .flow-link { margin:-8px 0 -8px 22px; transform:rotate(90deg); }
  .flow-n { font-size:52px; }
}

/* ---- Moments gallery (auto-scrolling real photos) ---- */
.moments { overflow:hidden; }
.section-head.center { text-align:center; margin-left:auto; margin-right:auto; }
.marquee { margin-top:30px; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display:flex; gap:16px; width:max-content; animation:marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state:paused; }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.moment { position:relative; flex:0 0 auto; width:210px; margin:0; border-radius:18px; overflow:hidden;
  background:var(--card); border:1px solid var(--hair); box-shadow:var(--shadow-sm); }
.moment img { width:210px; height:210px; object-fit:cover; display:block; }
.moment figcaption { position:absolute; left:10px; bottom:10px; font-family:var(--mono); font-size:11px; letter-spacing:.5px;
  color:#fff; background:rgba(42,29,20,.5); backdrop-filter:blur(5px); padding:4px 10px; border-radius:999px; }

/* ---- Apply section: paw + overlapping photo polaroids ---- */
#apply { position:relative; overflow:hidden; }
#apply .wrap { position:relative; z-index:1; }
.apply-photos { display:flex; margin-top:22px; }
.apply-photos img { width:80px; height:80px; object-fit:cover; border-radius:15px; border:3px solid var(--card);
  box-shadow:var(--shadow-sm); margin-left:-16px; transform:rotate(var(--r,0deg)); transition:transform .2s ease; }
.apply-photos img:first-child { margin-left:0; --r:-6deg; }
.apply-photos img:nth-child(2){ --r:3deg; }
.apply-photos img:nth-child(3){ --r:8deg; }
.apply-photos:hover img { transform:rotate(0deg); }
@media (max-width:760px){ .apply-photos { display:none; } }

@media (prefers-reduced-motion: reduce) {
  .scan-line, .marquee-track, .screen-result { animation:none !important; }
  .scan-line { display:none; }
}

/* ============================================================
   v4 — total redesign: unified single-page product page.
   No header; realistic app screenshot; bento features; free
   band; get-access; catology.life footer. Same tokens.
   ============================================================ */

/* Floating language pill (replaces the removed nav header) */
.lang-float { position:fixed; top:16px; right:16px; z-index:60;
  background:rgba(255,253,248,.9); backdrop-filter:saturate(140%) blur(8px); box-shadow:var(--shadow-sm); }

/* Hero brand lockup + badge + big type + store badge */
.brandmark { display:flex; width:max-content; align-items:center; gap:9px; font-family:var(--display); font-size:23px; color:var(--ink); margin-bottom:20px; }
.brandmark img { width:32px; height:32px; border-radius:9px; }
.brandmark:hover { text-decoration:none; }
.hero-badge { display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); font-size:11px; letter-spacing:2px; text-transform:uppercase; color:#b4501f; background:var(--peach-bg); border-radius:999px; padding:7px 14px; }
.hero-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--peach); box-shadow:0 0 0 0 rgba(224,138,95,.5); animation:soon-pulse 2.4s ease-out infinite; }
.hero h1 { margin:18px 0 18px; }
.btn-lg { padding:15px 30px; font-size:16px; }
.store-soon { display:inline-flex; align-items:center; gap:8px; font-family:var(--body); font-size:13px; font-weight:500; color:var(--ink2); }
.store-soon svg { width:19px; height:19px; color:var(--ink); flex:0 0 auto; }

/* ---- Realistic app scan-result screen (the "real screenshot") ---- */
.phone .appscreen { width:100%; height:100%; border-radius:32px; overflow:hidden; background:#fff; display:flex; flex-direction:column; }
.ios-bar { display:flex; align-items:center; justify-content:space-between; padding:10px 22px 3px; }
.ios-time { font-family:var(--body); font-size:12px; font-weight:600; color:var(--ink); letter-spacing:.3px; }
.ios-icons { display:flex; align-items:center; gap:4px; }
.ios-icons i { display:block; height:10px; background:var(--ink); border-radius:2px; opacity:.8; }
.ios-icons i.s { width:16px; } .ios-icons i.w { width:13px; } .ios-icons i.b { width:22px; border-radius:3px; }
.as-head { display:flex; align-items:center; gap:7px; padding:7px 16px 9px; }
.as-appicon { width:18px; height:18px; border-radius:5px; }
.as-kicker { font-family:var(--mono); font-size:9px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); }
.as-photo { margin:0 14px; border-radius:18px; overflow:hidden; aspect-ratio:1/1; background:var(--cream2); box-shadow:var(--shadow-sm); }
.as-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.as-body { padding:12px 16px 14px; display:flex; flex-direction:column; gap:9px; }
.as-moodrow { display:flex; align-items:baseline; justify-content:space-between; }
.as-mood { font-family:var(--display); font-size:26px; color:var(--ink); line-height:1; }
.as-conf { font-family:var(--mono); font-size:11px; color:var(--sage); }
.as-conf b { font-weight:400; }
.as-body .moodbar { height:9px; }
.as-legend { display:flex; gap:12px; font-family:var(--mono); font-size:8.5px; letter-spacing:.3px; text-transform:uppercase; color:var(--muted); }
.as-legend b { color:var(--ink2); font-weight:500; }
.as-thought { background:var(--cream); border:1px solid var(--hair2); border-radius:12px; padding:10px 12px; }
.as-thought .q { font-family:var(--display); font-style:italic; font-size:14px; color:var(--ink); line-height:1.34; margin:0 0 4px; }
.as-sign { font-family:var(--mono); font-size:8px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
.as-chips { display:flex; flex-wrap:wrap; gap:6px; }
.as-chip { font-family:var(--mono); font-size:8.5px; letter-spacing:.3px; color:var(--ink2); background:var(--cream2); border-radius:999px; padding:4px 8px; white-space:nowrap; }
.as-share { margin-top:3px; text-align:center; background:var(--ink); color:#fff; font-family:var(--body); font-weight:600; font-size:12px; border-radius:12px; padding:9px; }

/* ---- Features bento (varied tile sizes) ---- */
.bento { display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.bento-item { background:var(--card); border:1px solid var(--hair); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.bento-item:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--peach-soft); }
.bento-item .ic { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; transition:transform .2s ease; }
.bento-item:hover .ic { transform:scale(1.08) rotate(-3deg); }
.bento-item .ic svg { width:23px; height:23px; }
.bento-item h3 { font-size:20px; margin:2px 0 6px; }
.bento-item p { color:var(--ink2); font-size:14.5px; margin:0; }
.b1 { grid-column:1 / span 3; grid-row:1 / span 2; justify-content:space-between; }
.b2 { grid-column:4 / span 3; grid-row:1; }
.b3 { grid-column:4 / span 3; grid-row:2; }
.b4 { grid-column:1 / span 2; grid-row:3; }
.b5 { grid-column:3 / span 2; grid-row:3; }
.b6 { grid-column:5 / span 2; grid-row:3; }
.b1 h3 { font-size:24px; }
.b1-motif { margin-top:20px; background:var(--cream); border:1px solid var(--hair2); border-radius:14px; padding:15px 16px; }
.b1-row { display:flex; justify-content:space-between; align-items:baseline; font-family:var(--display); font-size:24px; color:var(--ink); margin-bottom:11px; }
.b1-row b { font-family:var(--mono); font-size:12px; color:var(--sage); font-weight:400; }
.b1-motif .moodbar { height:10px; }
@media (max-width:900px){
  .bento { grid-template-columns:repeat(2,1fr); }
  .b1 { grid-column:1 / span 2; grid-row:auto; }
  .b2,.b3,.b4,.b5,.b6 { grid-column:auto; grid-row:auto; }
}
@media (max-width:560px){ .bento { grid-template-columns:1fr; } .b1 { grid-column:auto; } }

/* ---- Free-to-use band ---- */
.center { text-align:center; }
.freeband { text-align:center; }
.freeband .kicker { display:inline-block; margin-bottom:12px; }
.freeband h2 { font-size:clamp(42px,6.5vw,72px); margin:0 0 14px; }
.freeband .lead { margin:0 auto; max-width:32em; }

/* ---- Get access (form) ---- */
.getaccess { position:relative; overflow:hidden; background:var(--paper); border-top:1px solid var(--hair2); border-bottom:1px solid var(--hair2); }
.getaccess .wrap { position:relative; z-index:1; }
.ga-badges { margin-top:20px; display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.apply-form .apply-privacy { margin:12px 0 0; }

/* ---- Footer for catology.life ---- */
.foot-domain { display:block; font-family:var(--mono); font-size:12px; letter-spacing:1px; color:var(--peach); margin:6px 0 10px; }
.foot-domain:hover { text-decoration:none; opacity:.8; }
.foot-lang { margin-top:18px; }
.foot-disclaimer { margin:30px 0 0; padding-top:20px; border-top:1px solid var(--hair2); font-size:12.5px; line-height:1.5; color:var(--muted); max-width:64em; }

@media (prefers-reduced-motion: reduce) { .hero-badge::before { animation:none; } }

/* ---- Emotional band (dark espresso; hook + line-art cat, mirrors the one-pager hero) ---- */
.emo { position:relative; overflow:hidden; background:var(--ink); color:#fff; padding:76px 0; }
.emo .wrap { position:relative; z-index:1; }
.emo-row { display:flex; align-items:center; justify-content:space-between; gap:48px; }
.emo-copy { max-width:36em; }
.emo-hook { color:#fff; font-size:clamp(30px,4.2vw,50px); line-height:1.15; margin:0; max-width:16em; letter-spacing:.2px; }
.emo-value { color:rgba(255,255,255,.72); font-family:var(--body); font-size:clamp(15px,1.6vw,17px); line-height:1.6; margin:20px 0 0; max-width:40em; }
.catart { flex:0 0 auto; width:150px; height:auto; }
@media (max-width:720px){
  .emo-row { flex-direction:column; text-align:center; gap:24px; }
  .catart { width:104px; order:-1; }
  .emo-hook, .emo-value { max-width:none; margin-left:auto; margin-right:auto; }
}

/* ---- Numbered bilingual section headers (one-pager ".sh" device) ---- */
.sh-row { display:flex; align-items:baseline; gap:13px; border-top:1px solid var(--hair); padding-top:16px; margin-bottom:12px; }
.sh-no { font-family:var(--display); font-size:27px; line-height:1; color:var(--peach); }
.freeband .sh-row { justify-content:center; }

/* Trust reassurance line by the get-access form */
.ga-trust { margin:18px 0 0; font-size:12.5px; line-height:1.5; color:var(--muted); max-width:30em; }

/* ---- Optimized line breaks (balance headings, avoid orphan last-lines) ---- */
h1, h2, h3, .emo-hook { text-wrap:balance; }
.lead, .emo-value, .hero-note, .bento-item p, .trial-note, .apply-privacy, .ga-trust, .foot-disclaimer, .disclaimer, .as-thought .q { text-wrap:pretty; }
.store-soon { white-space:nowrap; }
