/* Company Papers public landing — bilingual, RTL-aware, and isolated from the app UI. */

/* Metric-matched fallback: text laid out in Arial occupies the same box as Cairo, so the font swap causes no shift. */
@font-face { font-family: 'Cairo Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 95.5%; ascent-override: 136.4%; descent-override: 59.8%; line-gap-override: 0%; }
@font-face { font-family: 'Cairo Fallback'; font-weight: 600; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); size-adjust: 88.8%; ascent-override: 146.7%; descent-override: 64.3%; line-gap-override: 0%; }
@font-face { font-family: 'Cairo Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'); size-adjust: 90.7%; ascent-override: 143.7%; descent-override: 63%; line-gap-override: 0%; }

.cp-landing {
  --cp-ink: #17324d;
  --cp-ink-2: #0b2238;
  --cp-ink-3: #07182a;
  --cp-soft: #e7eff0;
  --cp-teal: #69a9a2;
  --cp-teal-light: #9fd3cc;
  --cp-cta: #0f766e;
  --cp-cta-dark: #0b5f59;
  --cp-text: #101820;
  --cp-muted: #56636d;
  --cp-subtle: #7b8791;
  --cp-line: #dbe3e6;
  --cp-line-strong: #c5d2d6;
  --cp-canvas: #f6f7f2;
  --cp-surface: #fbfcfa;
  --cp-white: #fff;
  --cp-success: #167047;
  --cp-success-soft: #e1f3ea;
  --cp-radius: 16px;
  --cp-shadow-sm: 0 1px 2px rgba(11, 34, 56, .05), 0 1px 1px rgba(11, 34, 56, .03);
  --cp-shadow-md: 0 12px 32px -12px rgba(11, 34, 56, .18), 0 2px 6px rgba(11, 34, 56, .05);
  --cp-shadow-lg: 0 50px 100px -30px rgba(7, 24, 42, .45), 0 20px 40px -20px rgba(7, 24, 42, .3);
  --cp-font: Cairo, 'Cairo Fallback', Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  background: var(--cp-canvas);
  color: var(--cp-text);
  font-family: var(--cp-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir='rtl'] .cp-landing { font-family: Cairo, 'Cairo Fallback', Tahoma, Arial, sans-serif; }
.cp-landing * { box-sizing: border-box; }
.cp-landing main { width: 100%; max-width: none; margin: 0; }
.cp-landing section[id] { scroll-margin-top: 84px; }
.cp-shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.cp-landing a { text-decoration: none; }
.cp-landing a, .cp-landing button { touch-action: manipulation; }
.cp-landing :focus-visible { outline: 3px solid var(--cp-teal); outline-offset: 4px; border-radius: 6px; }
.cp-landing ::selection { background: var(--cp-teal-light); color: var(--cp-ink-2); }

/* ---------- Navigation ---------- */
.cp-nav {
  position: sticky;
  z-index: 50;
  inset-block-start: 0;
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid transparent;
  padding: 6px max(28px, calc((100vw - 1240px) / 2));
  background: rgba(246, 247, 242, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.cp-nav.is-scrolled { border-bottom-color: rgba(11, 34, 56, .08); background: rgba(251, 252, 250, .9); box-shadow: 0 8px 24px -16px rgba(11, 34, 56, .25); }
.cp-brand { display: inline-flex; min-height: 48px; align-items: center; justify-self: start; }
.cp-brand picture { display: block; }
.cp-brand img { display: block; width: auto; height: 56px; }
.cp-nav nav { display: flex; align-items: center; gap: 6px; border: 1px solid var(--cp-line); border-radius: 999px; padding: 4px; background: rgba(255, 255, 255, .7); }
.cp-nav nav a { min-height: 38px; display: inline-flex; align-items: center; border-radius: 999px; padding: 0 16px; color: var(--cp-muted); font-size: 14px; font-weight: 600; transition: color 180ms ease, background-color 180ms ease; }
.cp-nav nav a:hover { background: var(--cp-soft); color: var(--cp-ink-2); }
.cp-signin, .cp-lang { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--cp-muted); font-size: 14px; font-weight: 600; transition: color 180ms ease; }
.cp-signin:hover, .cp-lang:hover { color: var(--cp-ink-2); }
.cp-lang svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cp-nav__actions { display: flex; align-items: center; justify-self: end; gap: 18px; }
.cp-lang { border-inline-end: 1px solid var(--cp-line-strong); padding-inline-end: 18px; color: var(--cp-ink); }

/* ---------- Buttons ---------- */
.cp-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--cp-cta);
  border-radius: 12px;
  padding: 13px 22px;
  background: linear-gradient(180deg, #13847b, var(--cp-cta));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -8px rgba(15, 118, 110, .55);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.cp-button:hover { border-color: var(--cp-cta-dark); background: var(--cp-cta-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 30px -10px rgba(11, 95, 89, .6); transform: translateY(-1px); }
.cp-button:active { transform: translateY(0); }
.cp-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform 180ms ease; }
.cp-button:hover svg { transform: translateX(3px); }
html[dir='rtl'] .cp-button svg, html[dir='rtl'] .cp-steps li > svg { transform: scaleX(-1); }
html[dir='rtl'] .cp-button:hover svg { transform: scaleX(-1) translateX(3px); }
.cp-button--small { min-height: 42px; border-radius: 10px; padding: 9px 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); font-size: 13px; }
.cp-button--ghost { border-color: var(--cp-line-strong); background: rgba(255, 255, 255, .75); box-shadow: var(--cp-shadow-sm); color: var(--cp-ink); }
.cp-button--ghost:hover { border-color: #aebfc4; background: #fff; box-shadow: var(--cp-shadow-md); color: var(--cp-ink-2); }

/* ---------- Hero ---------- */
.cp-hero { position: relative; overflow: hidden; background: var(--cp-canvas); }
.cp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: linear-gradient(rgba(23, 50, 77, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 50, 77, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cp-hero__glow { position: absolute; top: -320px; inset-inline-end: -240px; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(105, 169, 162, .22), rgba(105, 169, 162, 0) 65%); pointer-events: none; }
.cp-hero__grid { position: relative; display: grid; min-height: 740px; min-width: 0; grid-template-columns: minmax(0, .92fr) minmax(540px, 1.08fr); align-items: center; gap: clamp(44px, 6vw, 86px); padding-block: clamp(72px, 8vw, 112px) clamp(88px, 9vw, 128px); }
.cp-hero__copy { position: relative; z-index: 2; min-width: 0; }
.cp-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; border: 1px solid var(--cp-line-strong); border-radius: 999px; padding: 6px 14px 6px 8px; background: rgba(255, 255, 255, .8); box-shadow: var(--cp-shadow-sm); color: var(--cp-ink); font-size: 13px; font-weight: 600; }
html[dir='rtl'] .cp-kicker { padding: 6px 8px 6px 14px; }
.cp-kicker span { position: relative; width: 8px; height: 8px; margin-inline: 5px 2px; border-radius: 50%; background: var(--cp-cta); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.cp-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--cp-cta); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
html[dir='rtl'] .cp-eyebrow { letter-spacing: 0; }
.cp-hero h1 { max-width: 700px; margin: 0; color: var(--cp-ink-2); font-size: clamp(48px, 5vw, 74px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
html[dir='rtl'] .cp-hero h1 { font-size: clamp(46px, 5vw, 72px); letter-spacing: 0; line-height: 1.22; }
.cp-hero h1 em { background: linear-gradient(100deg, var(--cp-cta-dark), #2f978d); -webkit-background-clip: text; background-clip: text; color: var(--cp-cta); font-style: normal; -webkit-text-fill-color: transparent; }
.cp-hero__body { max-width: 620px; margin: 26px 0 0; color: var(--cp-muted); font-size: 18px; line-height: 1.8; text-wrap: pretty; }
.cp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cp-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 36px 0 0; border-top: 1px solid var(--cp-line); padding: 24px 0 0; color: var(--cp-muted); list-style: none; }
.cp-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cp-proof svg { width: 18px; height: 18px; flex: none; border-radius: 50%; padding: 3px; background: var(--cp-success-soft); fill: none; stroke: var(--cp-success); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }

/* Hero visual: product preview + floating paper. The paper is absolutely positioned, so it never affects layout. */
.cp-hero__visual { position: relative; z-index: 2; min-width: 0; }
.cp-hero__visual::before { content: ''; position: absolute; inset: 8% -4% -6% 8%; border-radius: 32px; background: radial-gradient(closest-side, rgba(15, 118, 110, .22), transparent); filter: blur(30px); pointer-events: none; }
.cp-product { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: linear-gradient(160deg, #1b3957, var(--cp-ink-2) 60%); box-shadow: var(--cp-shadow-lg); transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); transform-origin: center; will-change: transform; }
html[dir='rtl'] .cp-product { transform: perspective(1400px) rotateY(2deg) rotateX(1deg); }
.cp-product::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); pointer-events: none; }
.cp-product__chrome { display: flex; min-height: 46px; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 0 18px; background: rgba(7, 24, 42, .55); direction: ltr; }
.cp-product__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #ef6f5c; }.cp-product__chrome i:nth-child(2) { background: #e9b949; }.cp-product__chrome i:nth-child(3) { background: #4fb67f; }
.cp-product__chrome span { margin-left: auto; border-radius: 6px; padding: 5px 10px; background: rgba(255, 255, 255, .05); color: #8e9bab; font: 500 11px/1 var(--cp-font); letter-spacing: .03em; }
.cp-product__body { display: grid; min-height: 470px; grid-template-columns: 64px 1fr; direction: ltr; }
.cp-product__body aside { display: grid; align-content: start; justify-items: center; gap: 22px; border-right: 1px solid rgba(255, 255, 255, .07); padding: 20px 0; background: rgba(7, 24, 42, .25); }
.cp-product__body aside b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(145deg, var(--cp-teal-light), var(--cp-teal)); color: var(--cp-ink-2); font: 700 14px/1 var(--cp-font); }
.cp-product__body aside span { display: block; width: 22px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .14); }.cp-product__body aside span.is-active { background: var(--cp-teal); }
.cp-product__content { min-width: 0; padding: 30px; color: #fff; direction: var(--page-direction, ltr); }
html[dir='rtl'] .cp-product__content { --page-direction: rtl; }
.cp-product__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cp-product__heading div { display: grid; justify-items: start; gap: 8px; }
.cp-product__heading small { color: #8e9bab; font: 600 10px/1.2 var(--cp-font); letter-spacing: .12em; }
.cp-product__heading strong { font-size: 22px; line-height: 1.3; }
.cp-product__heading > span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 7px 11px; color: #cdd5de; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cp-product__heading > span i { width: 6px; height: 6px; border-radius: 50%; background: #52c187; box-shadow: 0 0 0 4px rgba(82, 193, 135, .14); }
.cp-product__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.cp-product__fields label { display: grid; gap: 7px; color: #93a0af; font-size: 11px; font-weight: 600; }.cp-product__fields label.is-wide { grid-column: 1 / -1; }
.cp-product__fields b { display: block; min-height: 46px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 10px; padding: 12px 13px; background: rgba(255, 255, 255, .05); color: #f3f6f8; font-size: 13px; font-weight: 600; line-height: 20px; }
.cp-product__docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 22px; }
.cp-product__docs div { display: grid; min-height: 46px; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; padding: 11px 12px; background: rgba(255, 255, 255, .04); }
.cp-product__docs div > span { color: #7d8b9b; font: 600 10px var(--cp-font); }.cp-product__docs strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cp-product__docs small { border-radius: 999px; padding: 3px 8px; background: rgba(82, 193, 135, .14); color: #72dca4; font-size: 10px; font-weight: 700; }

/* Skeleton: same boxes as the final content, so switching states cannot shift layout. */
.cp-js .cp-product.is-loading [data-skeleton] { position: relative; overflow: hidden; border-color: transparent; background: rgba(255, 255, 255, .07); color: transparent; }
.cp-js .cp-product.is-loading [data-skeleton] * { visibility: hidden; }
.cp-js .cp-product.is-loading small[data-skeleton], .cp-js .cp-product.is-loading strong[data-skeleton] { border-radius: 6px; }
.cp-js .cp-product.is-loading [data-skeleton]::after,
.cp-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); transform: translateX(-100%); animation: cp-shimmer 1.3s ease-in-out infinite; }
.cp-ready .cp-product.is-loading [data-skeleton] { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: inherit; }
.cp-ready .cp-product.is-loading [data-skeleton] * { visibility: visible; }
.cp-ready .cp-product.is-loading [data-skeleton]::after { content: none; }
@keyframes cp-shimmer { to { transform: translateX(100%); } }

.cp-paper { position: absolute; z-index: 3; inset-block-end: -44px; inset-inline-start: -46px; width: 238px; border: 1px solid var(--cp-line); border-radius: 14px; padding: 18px; background: #fff; box-shadow: 0 30px 60px -20px rgba(7, 24, 42, .35), 0 8px 18px -8px rgba(7, 24, 42, .15); color: var(--cp-text); transform: rotate(-2deg); }
html[dir='rtl'] .cp-paper { transform: rotate(2deg); }
.cp-js:not(.cp-ready) .cp-paper { opacity: 0; }
.cp-paper__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--cp-ink); padding-bottom: 10px; }
.cp-paper__head b { color: var(--cp-ink-2); font-size: 15px; }.cp-paper__head small { color: var(--cp-subtle); font-size: 10px; font-weight: 600; direction: ltr; }
.cp-paper__lines { display: grid; gap: 7px; margin: 14px 0; }
.cp-paper__lines i { display: block; height: 7px; border-radius: 4px; background: #edf1f2; }.cp-paper__lines i:nth-child(1) { width: 92%; }.cp-paper__lines i:nth-child(2) { width: 74%; }.cp-paper__lines i:nth-child(3) { width: 84%; }
.cp-paper__total { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; padding: 9px 11px; background: var(--cp-soft); }
.cp-paper__total span { color: var(--cp-muted); font-size: 11px; font-weight: 600; }.cp-paper__total strong { color: var(--cp-ink-2); font-size: 14px; direction: ltr; font-variant-numeric: tabular-nums; }
.cp-paper p { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--cp-success); font-size: 11px; font-weight: 700; }
.cp-paper p svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.6; }

/* ---------- Metrics ---------- */
.cp-metrics { border-block: 1px solid var(--cp-line); background: #fff; }
.cp-metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cp-metrics__grid div { display: grid; min-height: 128px; align-content: center; gap: 4px; border-inline-end: 1px solid var(--cp-line); padding: 22px clamp(18px, 3vw, 42px); }.cp-metrics__grid div:last-child { border-inline-end: 0; }
.cp-metrics strong { color: var(--cp-ink-2); font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.2; }
.cp-metrics span { color: var(--cp-muted); font-size: 14px; font-weight: 600; }

/* ---------- Sections ---------- */
.cp-section { padding-block: clamp(88px, 10vw, 140px); }
.cp-section__intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: end; gap: clamp(50px, 8vw, 120px); margin-bottom: 56px; }
.cp-section__intro h2 { max-width: 790px; margin: 0; color: var(--cp-ink-2); font-size: clamp(36px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; text-wrap: balance; }
html[dir='rtl'] .cp-section__intro h2 { letter-spacing: 0; line-height: 1.3; }
.cp-section__intro > p { margin: 0; color: var(--cp-muted); font-size: 17px; line-height: 1.8; }

/* ---------- Bento ---------- */
.cp-system { background: var(--cp-canvas); }
.cp-bento { display: grid; grid-template-columns: 1.25fr .75fr 1fr; grid-template-rows: repeat(2, minmax(250px, auto)); gap: 16px; }
.cp-bento article { position: relative; overflow: hidden; border: 1px solid var(--cp-line); border-radius: 20px; padding: 30px; background: #fff; box-shadow: var(--cp-shadow-sm); transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.cp-bento article:hover { border-color: var(--cp-line-strong); box-shadow: var(--cp-shadow-md); transform: translateY(-3px); }
.cp-bento__main { grid-row: 1 / 3; }
.cp-bento .cp-bento__dark { grid-column: 2 / 4; border-color: transparent; background: radial-gradient(120% 140% at 100% 0%, #24496b 0%, var(--cp-ink-2) 55%); color: #fff; }
.cp-card__number { position: absolute; inset-block-start: 24px; inset-inline-end: 26px; color: var(--cp-subtle); font: 700 12px var(--cp-font); letter-spacing: .1em; }
.cp-bento article > svg { width: 48px; height: 48px; margin: 22px 0 28px; border: 1px solid #d3e3e2; border-radius: 13px; padding: 11px; background: var(--cp-soft); fill: none; stroke: var(--cp-cta); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.cp-bento .cp-bento__dark > svg { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); stroke: var(--cp-teal-light); }
.cp-bento .cp-bento__dark .cp-card__number { color: #7d93a8; }
.cp-bento h3 { margin: 0; color: inherit; font-size: 24px; letter-spacing: -.02em; }
.cp-bento p { max-width: 520px; margin: 12px 0 0; color: var(--cp-muted); font-size: 15px; line-height: 1.75; }.cp-bento .cp-bento__dark p { color: #b5c2cf; }
.cp-bento__dark code { display: block; margin-top: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 16px 18px; background: rgba(7, 24, 42, .45); color: #d7e3ec; direction: ltr; font: 13px/1.6 ui-monospace, 'SF Mono', Consolas, monospace; text-align: left; }
.cp-bento__dark code em { color: var(--cp-teal-light); font-style: normal; }.cp-bento__dark code q { color: #f2c97d; quotes: none; }.cp-bento__dark code span { color: #7d93a8; }
.cp-data-lines { display: grid; gap: 10px; margin-top: 36px; }
.cp-data-lines i { display: block; height: 38px; border: 1px solid var(--cp-line); border-radius: 9px; background: linear-gradient(90deg, var(--cp-soft) 24%, var(--cp-surface) 24%); }
.cp-data-lines i:nth-child(2) { background: linear-gradient(90deg, var(--cp-soft) 41%, var(--cp-surface) 41%); }.cp-data-lines i:nth-child(3) { background: linear-gradient(90deg, var(--cp-soft) 31%, var(--cp-surface) 31%); }.cp-data-lines i:nth-child(4) { background: linear-gradient(90deg, var(--cp-soft) 56%, var(--cp-surface) 56%); }
html[dir='rtl'] .cp-data-lines i { transform: scaleX(-1); }

/* ---------- Workflow ---------- */
.cp-workflow { position: relative; overflow: hidden; background: var(--cp-ink-2); color: #fff; }
.cp-workflow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(105, 169, 162, .16), transparent 70%); pointer-events: none; }
.cp-workflow .cp-shell { position: relative; }
.cp-section__intro--light { grid-template-columns: minmax(0, 850px); }.cp-section__intro--light h2 { color: #fff; }.cp-workflow .cp-eyebrow { color: var(--cp-teal-light); }
.cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cp-steps li { position: relative; display: grid; min-height: 220px; align-content: start; gap: 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 30px; background: rgba(255, 255, 255, .035); transition: border-color 200ms ease, background-color 200ms ease; }
.cp-steps li:hover { border-color: rgba(159, 211, 204, .35); background: rgba(255, 255, 255, .06); }
.cp-steps li > span { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(159, 211, 204, .35); border-radius: 12px; background: rgba(105, 169, 162, .12); color: var(--cp-teal-light); font: 700 14px var(--cp-font); }
.cp-steps h3 { margin: 0 0 10px; font-size: 22px; }.cp-steps p { margin: 0; color: #b5c2cf; font-size: 15px; line-height: 1.75; }
.cp-steps li > svg { position: absolute; z-index: 2; inset-block-start: 50%; inset-inline-end: -25px; width: 34px; height: 34px; margin-top: -17px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; padding: 8px; background: var(--cp-ink-2); fill: none; stroke: var(--cp-teal-light); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

/* ---------- Document library ---------- */

/* ---------- Growing library + suggestions ---------- */
.cp-grow { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cp-canvas) 0%, #eef3f1 100%); }
.cp-grow::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--cp-line) 1px, transparent 1px), linear-gradient(90deg, var(--cp-line) 1px, transparent 1px); background-size: 44px 44px; opacity: .35; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent 75%); pointer-events: none; }
html[dir='rtl'] .cp-grow::before { -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 30% 40%, #000, transparent 75%); }
.cp-grow__layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 110px); }
.cp-grow h2 { max-width: 620px; margin: 0; color: var(--cp-ink-2); font-size: clamp(36px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; text-wrap: balance; }
html[dir='rtl'] .cp-grow h2 { letter-spacing: 0; line-height: 1.3; }
.cp-grow__lead { max-width: 560px; margin: 22px 0 0; color: var(--cp-muted); font-size: 17px; line-height: 1.85; }
.cp-grow__points { display: grid; gap: 22px; margin: 42px 0 0; padding: 0; list-style: none; }
.cp-grow__points li { display: grid; grid-template-columns: 46px 1fr; align-items: start; gap: 16px; }
.cp-grow__points li > span { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--cp-line); border-radius: 14px; background: #fff; box-shadow: var(--cp-shadow-sm); color: var(--cp-cta); }
.cp-grow__points svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cp-grow__points h3 { margin: 2px 0 4px; color: var(--cp-ink-2); font-size: 17px; }
.cp-grow__points p { margin: 0; color: var(--cp-muted); font-size: 15px; line-height: 1.7; }

.cp-grow__stage { position: relative; display: grid; border: 1px solid var(--cp-line); border-radius: 28px; padding: clamp(22px, 3vw, 34px); background: rgba(255, 255, 255, .78); box-shadow: var(--cp-shadow-md); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* A stack of papers that keeps rising; the top sheet is the next idea. Transform-only animation (no layout shift). */
.cp-stack { position: relative; height: 270px; margin-bottom: 26px; overflow: hidden; border-radius: 20px; background: radial-gradient(70% 60% at 50% 100%, rgba(105, 169, 162, .35) 0%, rgba(105, 169, 162, 0) 70%), linear-gradient(180deg, var(--cp-ink-2), var(--cp-ink)); }
.cp-stack__sheet { position: absolute; inset-inline-start: 50%; inset-block-end: 20px; display: grid; align-content: start; gap: 8px; width: 184px; height: 120px; margin-inline-start: -92px; border-radius: 12px; padding: 18px; background: #fff; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55); transform-origin: 50% 100%; }
.cp-stack__sheet i { display: block; height: 7px; border-radius: 4px; background: #e3eaec; }
.cp-stack__sheet i:first-child { width: 55%; height: 9px; background: #c9d8dc; }
.cp-stack__sheet i:nth-child(3) { width: 82%; }
.cp-stack__sheet i:last-child { width: 64%; }
.cp-stack__sheet:nth-child(1) { transform: translateY(0) scale(1); opacity: .55; }
.cp-stack__sheet:nth-child(2) { transform: translateY(-22px) scale(1.03); opacity: .75; }
.cp-stack__sheet:nth-child(3) { transform: translateY(-44px) scale(1.06); opacity: .92; }
.cp-stack__sheet--new { place-content: center; justify-items: center; gap: 8px; border: 1.5px dashed var(--cp-teal-light); background: rgba(21, 88, 96, .92); box-shadow: 0 0 0 6px rgba(159, 211, 204, .08), 0 26px 50px -20px rgba(0, 0, 0, .6); color: #e7f7f4; transform: translateY(-70px) scale(1.09); animation: cp-rise 5.5s cubic-bezier(.45, 0, .25, 1) infinite; }
.cp-stack__sheet--new b { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--cp-teal-light); color: var(--cp-ink-2); font-size: 24px; font-weight: 700; line-height: 1; animation: cp-pulse 2.8s ease-out infinite; }
.cp-stack__sheet--new span { font-size: 13px; font-weight: 700; }
.cp-stack__badge { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; background: rgba(255, 255, 255, .08); color: #d9e6ee; font-size: 12px; font-weight: 700; }
.cp-stack__badge i { width: 7px; height: 7px; border-radius: 50%; background: #5fd3a4; animation: cp-pulse 2.2s ease-out infinite; }
@keyframes cp-rise { 0%, 100% { transform: translateY(-70px) scale(1.09); } 50% { transform: translateY(-82px) scale(1.1) rotate(-1.2deg); } }
@keyframes cp-rise-rtl { 0%, 100% { transform: translateY(-70px) scale(1.09); } 50% { transform: translateY(-82px) scale(1.1) rotate(1.2deg); } }
html[dir='rtl'] .cp-stack__sheet--new { animation-name: cp-rise-rtl; }
@keyframes cp-pulse { 0% { box-shadow: 0 0 0 0 rgba(159, 211, 204, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(159, 211, 204, 0); } }

.cp-suggest { display: grid; gap: 12px; }
.cp-suggest label { color: var(--cp-ink-2); font-size: 16px; font-weight: 700; }
.cp-suggest__field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; border: 1px solid var(--cp-line-strong); border-radius: 16px; padding: 8px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.cp-suggest__field:focus-within { border-color: var(--cp-cta); box-shadow: 0 0 0 4px rgba(15, 118, 110, .14); }
.cp-suggest textarea { min-height: 52px; resize: none; border: 0; padding: 10px; background: transparent; color: var(--cp-text); font: 500 15px/1.6 var(--cp-font); outline: none; }
.cp-suggest textarea::placeholder { color: var(--cp-subtle); }
.cp-suggest .cp-button { min-height: 52px; border-radius: 12px; white-space: nowrap; }
.cp-suggest .cp-button[disabled] { opacity: .65; cursor: progress; transform: none; }
.cp-suggest__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-suggest__status { min-height: 1.6em; margin: 0; color: var(--cp-muted); font-size: 14px; font-weight: 600; }
.cp-suggest__status.is-ok { color: var(--cp-success); }
.cp-suggest__status.is-error { color: #b42318; }
.cp-suggest.is-sent .cp-suggest__field { border-color: var(--cp-success); box-shadow: 0 0 0 4px var(--cp-success-soft); }

/* ---------- Final CTA ---------- */
.cp-final { padding: clamp(68px, 8vw, 112px) 0; background: var(--cp-canvas); }
.cp-final__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 50px; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 76px); background: radial-gradient(90% 140% at 100% 0%, #1f5b67 0%, var(--cp-ink) 45%, var(--cp-ink-2) 100%); box-shadow: var(--cp-shadow-lg); color: #fff; }
.cp-final__card::before { content: ''; position: absolute; inset-block-start: -170px; inset-inline-end: -90px; width: 460px; height: 460px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255, 255, 255, .03), 0 0 0 110px rgba(255, 255, 255, .02); }
.cp-final__card > * { position: relative; z-index: 1; }
.cp-final .cp-eyebrow { color: var(--cp-teal-light); }
.cp-final h2 { max-width: 800px; margin: 0; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
html[dir='rtl'] .cp-final h2 { letter-spacing: 0; line-height: 1.35; }
.cp-final__card div > p:last-child { max-width: 680px; margin: 18px 0 0; color: #c3d0dc; font-size: 17px; line-height: 1.75; }
.cp-button--light { border-color: #fff; background: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); color: var(--cp-ink-2); white-space: nowrap; }
.cp-button--light:hover { border-color: #e7f1f0; background: #e7f1f0; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); }

/* ---------- Contact ---------- */
.cp-contact { padding-block: 0 clamp(64px, 8vw, 104px); background: var(--cp-canvas); }
.cp-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 90px); border-block-start: 1px solid var(--cp-line); padding-block-start: clamp(48px, 6vw, 80px); }
.cp-contact h2 { max-width: 560px; margin: 0; color: var(--cp-ink-2); font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
html[dir='rtl'] .cp-contact h2 { letter-spacing: 0; line-height: 1.35; }
.cp-contact__grid > div > p:last-child { max-width: 520px; margin: 16px 0 0; color: var(--cp-muted); font-size: 16px; line-height: 1.8; }
.cp-contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-contact__cards a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; border: 1px solid var(--cp-line); border-radius: 18px; padding: 20px; background: #fff; box-shadow: var(--cp-shadow-sm); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.cp-contact__cards a:hover { border-color: var(--cp-cta); box-shadow: var(--cp-shadow-md); transform: translateY(-2px); }
.cp-contact__cards span { display: grid; grid-row: 1 / 3; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #e7f3f1; color: var(--cp-cta); }
.cp-contact__cards svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cp-contact__cards small { color: var(--cp-subtle); font-size: 13px; font-weight: 600; }
.cp-contact__cards strong { overflow: hidden; color: var(--cp-ink-2); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
html[dir='rtl'] .cp-contact__cards strong { text-align: right; }
.cp-footer__maker a { color: var(--cp-cta); font-weight: 700; transition: color 160ms ease; }
.cp-footer__maker a:hover { color: var(--cp-cta-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.cp-footer { border-top: 1px solid var(--cp-line); background: #fff; }
.cp-footer .cp-shell { display: grid; min-height: 120px; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding-block: 24px; }
.cp-footer .cp-brand img { height: 48px; }
.cp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.cp-footer nav a { color: var(--cp-muted); font-size: 14px; font-weight: 600; transition: color 180ms ease; }.cp-footer nav a:hover { color: var(--cp-ink-2); }
.cp-footer__meta { display: grid; justify-items: end; gap: 4px; }
.cp-footer p, .cp-footer small { margin: 0; color: var(--cp-subtle); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cp-nav { grid-template-columns: 1fr auto; }.cp-nav nav { display: none; }
  .cp-hero__grid { grid-template-columns: 1fr; }.cp-hero__copy { max-width: 850px; }
  .cp-hero__visual { width: min(820px, 100%); }
  .cp-product, html[dir='rtl'] .cp-product { transform: none; }
  .cp-paper { inset-inline-start: auto; inset-inline-end: -16px; inset-block-end: -36px; }
  .cp-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }.cp-bento__main { grid-row: auto; }.cp-bento .cp-bento__dark { grid-column: 1 / 3; grid-row: 1; }
  .cp-steps li > svg { display: none; }
  .cp-grow__layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cp-shell { width: min(100% - 32px, 1240px); }
  .cp-nav { min-height: 68px; gap: 12px; padding: 6px 16px; }.cp-brand img { height: 48px; }.cp-nav__actions { gap: 12px; }.cp-signin { display: none; }.cp-lang { border: 0; padding: 0; font-size: 13px; }.cp-lang svg { display: none; }.cp-button--small { min-height: 42px; padding: 9px 12px; font-size: 12px; }
  .cp-hero__grid { min-height: auto; padding-block: 56px 72px; }.cp-hero h1 { font-size: clamp(42px, 12vw, 62px); } html[dir='rtl'] .cp-hero h1 { font-size: clamp(40px, 11.5vw, 58px); }.cp-hero__body { font-size: 16px; }.cp-proof { display: grid; }
  .cp-paper { display: none; }
  .cp-product__body { min-height: 460px; grid-template-columns: 46px 1fr; }.cp-product__body aside { gap: 20px; }.cp-product__body aside b { width: 30px; height: 30px; }.cp-product__content { padding: 22px 16px; }.cp-product__heading { align-items: flex-start; }.cp-product__heading strong { font-size: 18px; }.cp-product__fields { grid-template-columns: 1fr; }.cp-product__fields label.is-wide { grid-column: auto; }.cp-product__docs { grid-template-columns: 1fr; }.cp-product__docs div:nth-child(n+4) { display: none; }
  .cp-metrics__grid { grid-template-columns: 1fr 1fr; }.cp-metrics__grid div { min-height: 112px; border-block-end: 1px solid var(--cp-line); }.cp-metrics__grid div:nth-child(2) { border-inline-end: 0; }.cp-metrics__grid div:nth-child(n+3) { border-block-end: 0; }.cp-metrics strong { font-size: 34px; }.cp-metrics span { font-size: 13px; }
  .cp-section { padding-block: 80px; }.cp-section__intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }.cp-section__intro h2 { font-size: clamp(32px, 9vw, 46px); }.cp-section__intro > p { font-size: 16px; }
  .cp-bento { grid-template-columns: 1fr; }.cp-bento .cp-bento__dark { grid-column: auto; grid-row: auto; }.cp-bento article { min-height: 250px; padding: 26px; }
  .cp-steps { grid-template-columns: 1fr; }.cp-steps li { min-height: 0; }
  .cp-grow h2 { font-size: clamp(32px, 9vw, 46px); }.cp-grow__lead { font-size: 16px; }.cp-grow__stage { border-radius: 22px; padding: 16px; }.cp-stack { height: 230px; }.cp-suggest__field { grid-template-columns: 1fr; }.cp-suggest .cp-button { width: 100%; }
  .cp-final__card { grid-template-columns: 1fr; gap: 30px; border-radius: 22px; padding: 40px 26px; }.cp-button--light { width: 100%; }
  .cp-contact__grid { grid-template-columns: 1fr; }.cp-contact__cards { grid-template-columns: 1fr; }
  .cp-footer .cp-shell { grid-template-columns: 1fr; justify-items: start; gap: 20px; padding-block: 32px; }.cp-footer__meta { justify-items: start; }
}

@media (max-width: 480px) {
  .cp-nav__actions .cp-button { max-width: 136px; line-height: 1.25; text-align: center; }
  .cp-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); }.cp-hero__actions .cp-button { width: 100%; max-width: 100%; }.cp-product__chrome span { display: none; }.cp-product__heading > span { display: none; }
  .cp-metrics strong { font-size: 30px; }.cp-metrics span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-landing *, .cp-landing *::before, .cp-landing *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .cp-button:hover, .cp-button:hover svg, .cp-bento article:hover { transform: none; }
  html[dir='rtl'] .cp-button:hover svg { transform: scaleX(-1); }
}
