/* ==========================================================================
   nuvio.ro/aplicatia-nuvio (and /en/nuvio-app) — the client app's page.

   The rest of nuvio.ro sells Nuvio Pro and is a ruled agenda (nuvio.css). This
   page sells the CLIENT app, so its body wears the client app's own "Ink & Gold"
   look (packages/design-tokens/src/client.ts): the dark ink hero, cream body,
   gold accents, Poppins and the app's rounded radii. The header, footer, FAQ and
   reveal motion stay the site's own (nuvio.css + nuvio.js), so it still reads as
   one site.
   ========================================================================== */

.ca {
  --c-bg: #f8f7ef;
  --c-surface: #fff;
  --c-text: #212b32;
  --c-muted: #565b62; /* the site's muted: 6.4:1 on cream */
  --c-border: #e3ded2;
  --c-gold: #caac7f;
  --c-gold-ink: #82633a; /* gold that may be read on cream */
  --c-gold-soft: #f3ede2;
  --c-gold-line: #e5d5bc;
  --c-hero: linear-gradient(153deg, #2a3239 0%, #1a1d20 50%, #121112 100%);
  --c-hero-text: #f8f7ef;
  --c-hero-muted: rgba(248, 247, 239, 0.68);
  --c-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --c-measure: 1180px;
  --c-pad: clamp(16px, 5vw, 44px);
}

.ca-in {
  max-width: var(--c-measure);
  margin-inline: auto;
  padding-inline: var(--c-pad);
}

.ca-ic {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ca-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-hero);
  color: var(--c-hero-text);
}
/* The gold glow the app's hero cards carry, top right. */
.ca-hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -220px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 172, 127, 0.24), rgba(202, 172, 127, 0) 68%);
  pointer-events: none;
}
.ca-hero .ca-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: end;
  padding-top: clamp(48px, 8vw, 96px);
}
.ca-hero__copy {
  padding-bottom: clamp(48px, 8vw, 96px);
}
.ca-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--c-gold);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ca-eyebrow .ca-ic {
  width: 16px;
  height: 16px;
}
.ca-hero h1 {
  margin-top: 22px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.ca-hero h1 em {
  font-style: normal;
  color: var(--c-gold);
}
.ca-lead {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-hero-muted);
}
.ca-get {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Store buttons: drawn, not the 35px PNG badges, so they stay sharp at any size. */
.ca-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: 16px;
  background: #f8f7ef;
  color: #121112;
  text-decoration: none;
  transition: transform 0.16s var(--c-ease), box-shadow 0.32s var(--c-ease);
}
.ca-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.ca-store:active {
  transform: scale(0.97);
}
.ca-store .ca-ic {
  width: 26px;
  height: 26px;
}
.ca-store small {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.2;
  opacity: 0.7;
}
.ca-store b {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.25;
  font-weight: 600;
}
.ca-store--dark {
  background: #121112;
  color: #f8f7ef;
}

/* The QR card, for a visitor on a computer: scan, and the phone goes to its store. */
.ca-qr {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 380px;
}
.ca-qr img {
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 14px;
  background: #f8f7ef;
}
.ca-qr p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-hero-muted);
}
.ca-qr p b {
  display: block;
  color: var(--c-hero-text);
  font-weight: 600;
  font-size: 0.9375rem;
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .ca-qr {
    display: flex;
  }
}

.ca-forpro {
  margin-top: 26px;
  font-size: 0.875rem;
  color: var(--c-hero-muted);
}
.ca-forpro a {
  color: var(--c-gold);
  font-weight: 500;
}

/* The phone rises out of the bottom edge of the hero. */
.ca-phone {
  justify-self: center;
  width: min(100%, 380px);
  margin-bottom: -2px;
  animation: ca-rise 0.9s var(--c-ease) 0.12s both;
}
.ca-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1201;
  object-fit: cover;
  object-position: top;
  max-height: 560px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
@keyframes ca-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .ca-hero .ca-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .ca-hero__copy {
    padding-bottom: 36px;
  }
  .ca-phone {
    width: min(78%, 320px);
  }
  .ca-phone img {
    max-height: 420px;
  }
}
@media (max-width: 420px) {
  .ca-store {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.ca-section {
  padding-block: clamp(56px, 9vw, 112px);
}
.ca-section--soft {
  background: #f1eee2;
}
.ca-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
}
.ca-title {
  margin-top: 12px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.ca-sub {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--c-muted);
  font-size: 1.0625rem;
}

/* The four benefits, beside the dark card with the appointments screen. */
.ca-why {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ca-benefits {
  display: grid;
  gap: 12px;
}
.ca-benefit {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: border-color 0.32s var(--c-ease), transform 0.32s var(--c-ease);
}
.ca-benefit:hover {
  border-color: var(--c-gold);
  transform: translateY(-2px);
}
.ca-tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gold-soft);
  border: 1px solid var(--c-gold-line);
  color: var(--c-gold-ink);
}
.ca-benefit h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.ca-benefit p {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ca-shot {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--c-hero);
  padding: 36px 36px 0;
  display: flex;
  justify-content: center;
}
.ca-shot::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 172, 127, 0.26), rgba(202, 172, 127, 0) 70%);
}
.ca-shot img {
  position: relative;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 640 / 1270;
  max-height: 480px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
  object-fit: cover;
  object-position: top;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
@media (max-width: 899px) {
  .ca-why {
    grid-template-columns: minmax(0, 1fr);
  }
  .ca-shot img {
    max-height: 400px;
  }
}

/* "Cum funcționează": three steps, each with its screen. */
.ca-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.ca-step {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  overflow: hidden;
  counter-increment: step;
}
.ca-step__text {
  padding: 22px 22px 18px;
}
.ca-step__text::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #212b32;
  color: var(--c-gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.ca-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.ca-step p {
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.ca-step__shot {
  margin-top: auto;
  padding: 12px 24px 0;
  background: var(--c-gold-soft);
  border-top: 1px solid var(--c-gold-line);
  display: flex;
  justify-content: center;
}
.ca-step__shot img {
  width: min(100%, 270px);
  height: 300px;
  object-fit: cover;
  object-position: top;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
  filter: drop-shadow(0 14px 24px rgba(33, 43, 50, 0.16));
}
@media (max-width: 899px) {
  .ca-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The cross-sell: the client's specialist is not on Nuvio yet. */
.ca-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}
.ca-pro__text {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 60ch;
}
.ca-pro h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}
.ca-pro p {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: 0.9375rem;
}
.ca-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #212b32;
  color: #f8f7ef;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.16s var(--c-ease);
}
.ca-link:hover {
  transform: translateY(-1px);
}
.ca-link:active {
  transform: scale(0.97);
}
.ca-link .ca-ic {
  width: 18px;
  height: 18px;
}

/* The FAQ keeps the site's <details> list, with the client app's gold. */
.ca .faq {
  margin-top: 32px;
  max-width: 820px;
}

/* The closing band: the stores once more. */
.ca-close {
  background: var(--c-hero);
  color: var(--c-hero-text);
  position: relative;
  overflow: hidden;
}
.ca-close::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: -200px;
  bottom: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 172, 127, 0.2), rgba(202, 172, 127, 0) 70%);
}
.ca-close .ca-in {
  position: relative;
  padding-block: clamp(56px, 8vw, 96px);
}
.ca-close h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.ca-close p {
  margin-top: 16px;
  color: var(--c-hero-muted);
  max-width: 46ch;
}

@media (prefers-reduced-motion: reduce) {
  .ca-phone {
    animation: none;
  }
  .ca-store,
  .ca-benefit,
  .ca-link {
    transition: none;
  }
}
