/* Cati — overrides on top of the template stylesheet */

/* Template weights: body 456 / feature 440 -> Regular, bold 600 -> Medium (via override below), titles 652 -> Semibold */
@font-face { font-family: Poppins; font-style: normal; font-weight: 100 470; font-display: swap; src: url(./fonts/poppins-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 100 470; font-display: swap; src: url(./fonts/poppins-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 471 599; font-display: swap; src: url(./fonts/poppins-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 471 599; font-display: swap; src: url(./fonts/poppins-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600 690; font-display: swap; src: url(./fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600 690; font-display: swap; src: url(./fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 691 900; font-display: swap; src: url(./fonts/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 691 900; font-display: swap; src: url(./fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-saans: Poppins, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cati-green: #2ecc71;
  --cati-green-dark: #25a85c;
  --cati-green-soft: #dff7ea;
  --cati-red: #e74c3c;
}
html, body { font-family: var(--font-saans); }
body { -webkit-font-smoothing: antialiased; }
/* Poppins runs wider and taller than the template's face: tighten the display sizes a touch */
.text-showcase, .text-spotlight, .text-title-1, .text-title-2, .text-title-3 { letter-spacing: -0.02em; }
/* Poppins reads heavier than the template's face: bold UI text uses Medium, titles Semibold */
.text-body-bold, .text-feature-bold, .text-caption-bold { font-weight: 500; }
.text-showcase, .text-spotlight, .text-title-1, .text-title-2, .text-title-3, #hero-title { font-weight: 600; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }

/* ---------- header ---------- */
.cati-header-logo { height: 22px; width: auto; display: block; transform: translateY(-2px); }
/* nav */
.cati-nav-links a { white-space: nowrap; }
.cati-header-right { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.cati-header-cta { opacity: 0; filter: blur(4px); transform: translateX(12px); transition: opacity 0.35s ease-out, filter 0.35s ease-out, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s; }
.Header-module__KHjLKa__header[data-scrolled=true] .cati-header-cta { opacity: 1; filter: none; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0.08s, 0.08s, 0s, 0s; }
@media (min-width: 768px) and (max-width: 1023px) { .cati-nav-links a:nth-child(n+3) { display: none; } }
.cati-burger-line { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.cati-burger-line:first-child { transform: translateY(-4.5px); }
.cati-burger-line:last-child { transform: translateY(4.5px); }
.Header-module__KHjLKa__header[data-mobile-open=true] .cati-burger-line:first-child { transform: rotate(45deg); }
.Header-module__KHjLKa__header[data-mobile-open=true] .cati-burger-line:last-child { transform: rotate(-45deg); }
.cati-mobile-menu { position: relative; z-index: 5; background: hsl(var(--background-primary)); }
.cati-mobile-menu[hidden] { display: none; }
.cati-mobile-menu-inner { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; padding-bottom: 32px; animation: cati-menu-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cati-mobile-link { padding: 10px 0; }
.cati-mobile-cta { margin-top: 24px; display: flex; }
@keyframes cati-menu-in { from { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }

/* ---------- hero ---------- */
.hero-icon-layer { transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1); }
.cati-hero-photo { margin-left: 20px; margin-right: 20px; width: calc(100% - 40px); border-radius: 20px; }
@media (min-width: 768px) { .cati-hero-photo { margin: 0; width: 100%; border-radius: 32px; } }

/* ---------- partner logos ---------- */
.cati-logo-item { transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cati-logo { display: block; height: calc(var(--h) * 0.6); width: auto; max-width: 64px; object-fit: contain; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: 0.8; }
@media (min-width: 768px) { .cati-logo { height: var(--h); max-width: 150px; } }
.cati-logo-group[aria-hidden=true] { pointer-events: none; }
.cati-logo-row { gap: 22px; flex-wrap: nowrap; }
@media (min-width: 768px) { .cati-logo-row { gap: 56px; } }
.cati-logo-item.is-out { opacity: 0; filter: blur(7px); transform: translateY(-8px); }
.cati-logo-item.is-in { opacity: 0; filter: blur(7px); transform: translateY(8px); transition: none; }

/* ---------- one-library cards ---------- */
.cati-fade-layer, .cati-slide { transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.cati-screen-contain { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.bg-white { background-color: #fff; }

/* Assistent */
.cati-assist { display: flex; align-items: center; justify-content: center; padding: 0 16px 28px; }
.cati-assist img { width: 80%; max-width: 300px; max-height: 88%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.08)); }

/* Familiars */
.cati-app-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Funcions: a large screen that runs out of the card */
.cati-func-frame { position: absolute; top: 24px; left: 0; right: 0; margin: 0 auto; width: calc(100% - 64px); max-width: 300px; aspect-ratio: 1297 / 964; }
.cati-func-frame .cati-slide { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important; }

/* Targetes: real Cati cards fanned out like a hand of cards */
.cati-fan { position: absolute; inset: 0; }
.cati-fan-card { position: absolute; left: 50%; top: 50%; width: 160px; margin-left: -80px; aspect-ratio: 1004 / 638; border-radius: 9px; overflow: hidden; background: #fff;
  transform-origin: 50% 230%; transform: translateY(-50%) rotate(0deg);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.cati-fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cati-fan-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.04)); }
@media (min-width: 1200px) { .cati-fan-card { width: 160px; margin-left: -80px; } }

/* Seguretat: emergency button on a thin hand-drawn cord */
.cati-lanyard { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 24px; overflow: hidden; }
.cati-lanyard svg { width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 26%, #000 74%, transparent 96%); mask-image: linear-gradient(to right, transparent 4%, #000 26%, #000 74%, transparent 96%); }
.cati-cord { fill: none; stroke: #e5383b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1); transition-delay: calc(0.5s + var(--d, 0s)); }
[data-reveal][style*="opacity: 1"] .cati-cord { stroke-dashoffset: 0; }
.cati-lanyard image { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12)); }

/* ---------- family app section ---------- */
.cati-store { display: inline-flex; align-items: center; gap: 8px; }
.cati-store.is-disabled { opacity: 0.45; cursor: default; }
.cati-feature-icon img { width: 40px; height: 40px; border-radius: 30%; box-shadow: var(--shadow-logo-inset); display: block; }
.Mcp-module__YCexTG__appName { transition: opacity 0.2s ease-out, filter 0.2s ease-out; }
.Mcp-module__YCexTG__logoSlot[data-active] .Mcp-module__YCexTG__appName { opacity: 1; filter: none; }
.max-w-\[460px\] { max-width: 460px; }
.order-1 { order: 1; }
@media (min-width: 1201px) { .cati-fam-copy { order: 0; } }
.cati-fam-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- awards ---------- */
.cati-award-logo { height: 44px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; display: block; }
.cati-award-logo.is-long { height: 36px; }
.cati-award-card { aspect-ratio: 407 / 330; }
@media (min-width: 980px) {
  .cati-awards-grid { flex-wrap: wrap; row-gap: 20px; }
  .cati-awards-grid > .cati-award-card { flex: 1 1 calc(33.333% - 14px); aspect-ratio: auto; height: 300px; }
}
@media (max-width: 979px) { .cati-award-card { aspect-ratio: 407 / 360; } }

/* ---------- handwritten quote, drawn stroke by stroke ---------- */
.cati-letter-quote { width: 100%; }
.cati-quote-mark { font-size: 96px; line-height: 0.7; height: 0.45em; color: hsl(var(--text-secondary)); }
.cati-handwriting { width: 100%; color: hsl(var(--text-primary)); }
.cati-hand { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; }
.cati-hand.is-wide { display: none; }
@media (min-width: 768px) { .cati-hand.is-wide { display: block; } .cati-hand.is-narrow { display: none; } }
.cati-hand-ghost { opacity: 0.12; }
.cati-hand-ink path { stroke-dasharray: 1; stroke-dashoffset: 1; animation-name: cati-write; animation-timing-function: ease-in-out; animation-fill-mode: forwards; animation-play-state: paused; }
.cati-handwriting.is-writing .cati-hand-ink path { animation-play-state: running; }
@keyframes cati-write { to { stroke-dashoffset: 0; } }

/* ---------- pilots reels ---------- */
.finance-icon { background: #fff; box-shadow: var(--shadow-logo-inset); transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease, filter 0.9s ease; }
.finance-icon.no-anim { transition: none; }

/* ---------- final CTA form ---------- */
.cati-notify-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cati-notify { display: flex; gap: 8px; width: 100%; max-width: 440px; }
.cati-input { flex: 1; min-width: 0; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: hsl(var(--background-tertiary)); color: hsl(var(--text-primary)); font-family: inherit; outline: none; }
.cati-input::placeholder { color: hsl(var(--text-secondary)); }
.cati-input:focus-visible { box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.45); }
.cati-notify button[disabled] { opacity: 0.6; cursor: wait; }
.cati-form-msg.is-success { color: var(--cati-green-dark); }
.cati-form-msg.is-error { color: var(--cati-red); }

/* ---------- footer ---------- */
.cati-footer-logo { height: 28px; width: auto; display: block; }
.cati-wordmark-stage { position: relative; overflow: hidden; padding-top: 112px; margin-bottom: -40px; }
@media (min-width: 768px) { .cati-wordmark-stage { padding-top: 144px; } }
@media (min-width: 1200px) { .cati-wordmark-stage { padding-top: 190px; } }
.cati-wordmark { display: flex; justify-content: center; font-weight: 700; font-size: 38vw; line-height: 0.74; letter-spacing: -0.04em; color: hsl(var(--background-secondary)); user-select: none; margin-bottom: -0.1em; }
@media (min-width: 1200px) { .cati-wordmark { margin-bottom: -0.3em; } }
.cati-letter { all: unset; cursor: pointer; display: block; }
.cati-letter span { display: block; opacity: 0; transform: translateY(40%); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.cati-letter:nth-child(2) span { --rise: 0.06s; }
.cati-letter:nth-child(3) span { --rise: 0.12s; }
.cati-letter:nth-child(4) span { --rise: 0.18s; }
.cati-wordmark-stage.is-visible .cati-letter span { opacity: 1; transform: none; }
/* clicking the wordmark paints it in the logo green, rising like paint */
.cati-letter span { background-image: linear-gradient(to top, #2ecc71 50%, hsl(var(--background-secondary)) 50%); background-size: 100% 200%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-top: 0.24em; margin-top: -0.24em; }
.cati-letter span { transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--rise, 0s), transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--rise, 0s), background-position 0.9s cubic-bezier(0.65, 0, 0.35, 1) var(--paint-delay, 0s); }
.cati-wordmark.is-painted .cati-letter span { background-position: 0 100%; }
.cati-wordmark:not(.is-painted) .cati-letter:hover span { background-position: 0 18%; }

@media (prefers-reduced-motion: reduce) {
  .cati-lanyard-swing { animation: none; }
  .cati-hand-ink path { animation: none; stroke-dashoffset: 0; }
  .cati-cord { stroke-dashoffset: 0; transition: none; }
  .cati-letter span { opacity: 1; transform: none; transition: none; }
}


/* ---------- mobile: icons on an arc above the hero title, plain words in the title ---------- */
.cati-hero-arc { display: none; justify-content: center; margin-bottom: 4px; }
@media (max-width: 767px) { .cati-hero-arc { display: flex; } }
.cati-hero-arc .finance-icon { box-shadow: var(--shadow-logo-inset), 0 8px 24px rgba(0, 0, 0, 0.05); }
@media (max-width: 767px) {
  #hero-title .hero-slot { width: 0.26em !important; margin-left: 0 !important; animation: none !important; }
  #hero-title .hero-slot-inner { display: none; }
  .cati-stores { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .cati-stores .cati-store { justify-content: center; }
}
@media (min-width: 768px) { .min-768\:grid { display: grid; } }
