/* The bold layer: dark slanted heroes, glossy art (img/contacts/, img/home/, drawn by
   tools/make_contacts_art.py), rounded cards. Used by the homepage and /apps/contacts/, after site.css. */

:root { --ct-night: #0B170B; --ct-night-2: #122512; --ct-r: 24px; }

.ct-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pea-text);
}
.ct-features h2, .ct-steps-band h2, .ct-night h2, .ct-final h2 { font-weight: 700; letter-spacing: -0.035em; }

/* ---------- hero ---------- */
.ct-hero {
  position: relative; overflow: hidden; color: #C9D6C3; padding: 72px 0 140px;
  background:
    radial-gradient(600px 420px at 78% 38%, rgba(163, 214, 47, .20), transparent 70%),
    radial-gradient(520px 380px at 8% 100%, rgba(115, 98, 242, .18), transparent 70%),
    var(--ct-night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%);
}
.ct-hero::before { /* dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(201, 214, 195, .16) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%); mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.ct-hero .wrap { position: relative; }
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ct-hero-grid > * { min-width: 0; }
.ct-hero h1 { color: #F4F7EE; font-weight: 750; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.045em; margin: 0 0 22px; }
.ct-hero .lede { color: #C9D6C3; }
.ct-hero .crumbs, .ct-hero .crumbs a { color: #93A68C; }
.ct-hero .crumbs a:hover { color: #F4F7EE; }
.ct-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #E4ECDD; font-size: 13.5px; font-weight: 550; white-space: nowrap;
}
.ct-pill img, .ct-pill svg { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.ct-pill i { font-style: normal; opacity: .5; }
.ct-btn-ghost { background: rgba(255, 255, 255, .06); color: #F4F7EE; border-color: rgba(255, 255, 255, .22); }
.ct-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
.ct-note { margin-top: 16px; font-size: 14px; color: #93A68C; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Slanted mockup with floating bits around it */
.ct-stage { position: relative; perspective: 1600px; padding: 34px 10px 30px; }
.ct-tilt {
  margin: 0; transform: rotateX(10deg) rotateY(-16deg) rotateZ(3deg); transform-origin: 60% 50%;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.ct-stage:hover .ct-tilt { transform: rotateX(4deg) rotateY(-7deg) rotateZ(1deg); }
.ct-float { position: absolute; z-index: 2; }
.ct-float-icon { width: 84px; height: 84px; top: -6px; right: 4%; border-radius: 22px; box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .7); transform: rotate(8deg); animation: ct-bob 6s ease-in-out infinite; }
.ct-toast {
  left: -14px; bottom: 6px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: var(--ink); color: #F4F7EE; font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); transform: rotate(-3deg); animation: ct-bob 7s ease-in-out -2s infinite;
}
.ct-toast svg { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--pea); color: var(--ink); }
@keyframes ct-bob { 50% { translate: 0 -8px; } }

/* ---------- feature rows ---------- */
.ct-features { padding-top: 48px; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ct-row + .ct-row { margin-top: 96px; }
.ct-row.flip > .ct-art { order: 2; }
.ct-copy h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 18px; }
.ct-copy p { font-size: 17.5px; color: var(--ink-soft); max-width: 520px; }
.ct-art {
  position: relative; border-radius: var(--ct-r); padding: 24px; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.ct-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 31, 15, .09) 1px, transparent 1.2px); background-size: 20px 20px;
}
.ct-art img { position: relative; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ct-art:hover img { transform: translateY(-6px) scale(1.02); }
.ct-art-lime { background: linear-gradient(160deg, #EEF6DA, #DDEDB4); }
.ct-art-violet { background: linear-gradient(160deg, #EFEDFE, #DCD7FB); }
.ct-art-rose { background: linear-gradient(160deg, #FCEDEA, #F6D6D0); }

/* ---------- steps + small cards ---------- */
.ct-steps-band { background: var(--bg-soft); border-top: 1px solid var(--line-soft); padding-bottom: 144px; }
.ct-center { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.ct-center h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 16px; }
.ct-center p { font-size: 17.5px; }
.ct-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct-steps li {
  counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ct-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9C8BC; }
.ct-steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 11px;
  background: var(--ink); color: var(--pea); font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.ct-steps h3 { font-size: 17.5px; margin-bottom: 8px; }
.ct-steps p { font-size: 15px; color: var(--ink-soft); }
.ct-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ct-mini { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--ink); color: #C9D6C3; }
.ct-mini h3 { color: #F4F7EE; font-size: 16.5px; margin-bottom: 4px; }
.ct-mini p { font-size: 14.5px; }
.ct-ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(163, 214, 47, .14); color: var(--pea); }
.ct-ico svg { width: 20px; height: 20px; }

/* ---------- security ---------- */
.ct-night {
  background:
    radial-gradient(640px 400px at 20% 30%, rgba(163, 214, 47, .12), transparent 70%),
    var(--ct-night);
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%); padding-top: 140px;
  position: relative; margin-top: -56px; /* the slant cuts into the band above, not into the page color */
}
.ct-night .ct-kicker { color: var(--pea); }
.ct-night .ct-copy p { color: #C9D6C3; }
.ct-art-night { background: linear-gradient(160deg, #132613, #0E1D0E); border-color: rgba(255, 255, 255, .08); }
.ct-art-night::before { background-image: radial-gradient(rgba(201, 214, 195, .12) 1px, transparent 1.2px); }
.ct-knows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.ct-know { padding: 26px 26px 18px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10); }
.ct-know h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 12px; }
.ct-know ul { list-style: none; margin: 0; padding: 0; }
.ct-know li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15.5px; }
.ct-dot { width: 10px; height: 10px; border-radius: 50%; }
.ct-dot.ok { background: #F2C94C; box-shadow: 0 0 0 4px rgba(242, 201, 76, .18); }
.ct-dot.no { background: var(--pea); box-shadow: 0 0 0 4px rgba(163, 214, 47, .18); }

/* ---------- final call to action ---------- */
.ct-final { padding-top: 24px; }
.ct-final-in {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 64px 28px 68px; color: #C9D6C3;
  background:
    radial-gradient(480px 280px at 50% 0%, rgba(163, 214, 47, .28), transparent 70%),
    radial-gradient(420px 260px at 100% 100%, rgba(115, 98, 242, .22), transparent 70%),
    var(--ct-night);
}
.ct-final-in img { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8); transform: rotate(-6deg); }
.ct-final-in h2 { color: #F4F7EE; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.ct-final-in p { max-width: 560px; margin: 0 auto 28px; font-size: 17.5px; }
.ct-final-in .cta-row { justify-content: center; }

/* ---------- homepage ---------- */
.ct-sep { font-style: normal; opacity: .5; }
.ct-stage-crm { padding-bottom: 0; }
.ct-stage-crm .ct-float-icon { top: -2px; right: -4px; }
.ct-caption { position: relative; z-index: 1; margin: 34px 0 0; font-size: 14px; color: #93A68C; }
.ct-caption .badge-style { color: #F4F7EE; }
.ct-art-sky { background: linear-gradient(160deg, #E4F3F7, #CBE6EE); }

.ct-products { padding-top: 40px; }
.ct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-card {
  display: flex; flex-direction: column; padding: 26px 26px 24px; border-radius: var(--ct-r); background: var(--card);
  border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ct-card:hover { transform: translateY(-6px); border-color: #C9C8BC; box-shadow: 0 24px 48px -24px rgba(15, 31, 15, .35); }
.ct-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ct-card-top img, .ct-tile { width: 48px; height: 48px; border-radius: 14px; }
.ct-tile { display: grid; place-items: center; }
.ct-tile svg { width: 24px; height: 24px; }
.ct-tile-paste { background: var(--forest); color: var(--pea); }
.ct-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.ct-card p { font-size: 15.5px; }
.ct-card ul { list-style: none; margin: 18px 0 22px; padding: 0; font-size: 14.5px; }
.ct-card li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.ct-card li::before { content: ''; flex: 0 0 7px; height: 7px; margin-top: 8px; border-radius: 2px; background: var(--pea-deep); }
.ct-card .arrow-link { margin-top: auto; }

.ct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 520px; }
.ct-stats div { padding: 16px 16px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ct-stats b { display: block; font-size: 30px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.ct-stats span { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-mute); }

/* The night band's slanted top cuts into the section above it, which pads for it. */
.ct-features:has(+ .ct-night) { padding-bottom: 144px; }
.ct-night .ct-center p { color: #C9D6C3; }
.ct-knows-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.ct-knows-3 .ct-know { padding-bottom: 22px; }
.ct-knows-3 h3 { font-size: 20px; margin-bottom: 16px; }
.ct-know-l { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #93A68C; }
.ct-knows-3 p:not(.ct-know-l) { font-size: 15px; }
.ct-center-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: #93A68C; }
.ct-link-light { color: #F4F7EE; }

.ct-lookup-band { padding-top: 96px; }
.ct-lookup {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding: 44px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15, 31, 15, .35);
}
.ct-lookup h2 { font-weight: 700; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .ct-hero-grid, .ct-row { grid-template-columns: 1fr; gap: 40px; }
  .ct-row.flip > .ct-art { order: 0; }
  .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-minis { grid-template-columns: 1fr; }
  .ct-stage { max-width: 560px; }
  .ct-cards, .ct-knows-3 { grid-template-columns: 1fr; }
  .ct-lookup { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
}
@media (max-width: 640px) {
  .ct-hero { padding: 44px 0 110px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
  .ct-night { clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); padding-top: 100px; margin-top: -32px; }
  .ct-steps-band { padding-bottom: 96px; }
  .ct-steps, .ct-knows { grid-template-columns: 1fr; }
  .ct-row + .ct-row { margin-top: 64px; }
  .ct-art { padding: 12px; }
  .ct-toast { left: 0; font-size: 13px; }
  .ct-stage { padding-left: 0; padding-right: 0; }
  .ct-tilt { transform: rotateX(6deg) rotateY(-8deg) rotateZ(1.5deg); }
  .ct-float-icon { width: 60px; height: 60px; border-radius: 16px; }
  .ct-final-in { padding: 48px 20px 52px; border-radius: 24px; }
  .ct-final-in .cta-row .btn { flex: 1 1 auto; }
  .ct-features:has(+ .ct-night) { padding-bottom: 96px; }
  .ct-stats { gap: 8px; }
  .ct-stats div { padding: 12px 10px; }
  .ct-stats b { font-size: 24px; }
  .ct-lookup { padding: 22px 18px; border-radius: 22px; }
  .ct-lookup-band { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-float, .ct-float-icon { animation: none !important; }
  .ct-tilt, .ct-art img, .ct-steps li { transition: none; }
}
