/* Origin CRM product page (/origin-crm). Everything is scoped under .ocrm. */
.ocrm {
  --o-orange: #ea580c;
  --o-orange-2: #fb923c;
  --o-violet: #8b5cf6;
  --o-ink: #0b1220;
  --o-ink-2: #131c31;
  --o-text: #0f172a;
  --o-muted: #64748b;
  --o-line: #e2e8f0;
  --o-soft: #f6f7fb;
  --o-radius: 18px;
  --o-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35), 0 12px 24px -12px rgba(15, 23, 42, .2);
  color: var(--o-text);
  background: #fff;
  overflow-x: clip;
}
.ocrm *, .ocrm *::before, .ocrm *::after { box-sizing: border-box; }
.ocrmWrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
/* Grid children may shrink below their content (the module list scrolls sideways on phones). */
.ocrmHeroInner > *, .ocrmPanel > *, .ocrmModules > *, .ocrmDemoGrid > *, .ocrmFieldRow > * { min-width: 0; }

/* Buttons */
.ocrmBtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.ocrmBtn:hover { transform: translateY(-2px); }
.ocrmBtn:focus-visible { outline: 3px solid var(--o-orange-2); outline-offset: 3px; }
.ocrmBtnPrimary {
  color: #fff; background: linear-gradient(135deg, var(--o-orange), #f97316);
  box-shadow: 0 10px 24px -8px rgba(234, 88, 12, .65);
}
.ocrmBtnPrimary:hover { box-shadow: 0 16px 32px -10px rgba(234, 88, 12, .75); }
.ocrmBtnPrimary .fa-arrow-right { transition: transform .2s ease; }
.ocrmBtnPrimary:hover .fa-arrow-right { transform: translateX(4px); }
.ocrmBtnGhost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.ocrmBtnGhost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }

/* Hero */
.ocrmHero {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #2a1a4d 0%, transparent 60%), linear-gradient(160deg, var(--o-ink) 0%, var(--o-ink-2) 100%);
  padding: 72px 0 96px;
}
.ocrmHeroGlow {
  position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: 40%;
  background: radial-gradient(circle, rgba(234, 88, 12, .35), transparent 65%); filter: blur(20px);
  animation: ocrmDrift 14s ease-in-out infinite alternate;
}
.ocrmHeroGrid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
@keyframes ocrmDrift { to { transform: translate(120px, -80px) scale(1.15); } }
.ocrmHeroInner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.ocrmBrandPill {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .05);
}
.ocrmBrandPill img { height: 30px; width: auto; display: block; }
.ocrmBrandTag { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #cbd5e1; text-transform: uppercase; }
.ocrmHeroTitle { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 22px 0 18px; color: #fff; }
.ocrmGradientText {
  background: linear-gradient(90deg, var(--o-orange-2), #f472b6 55%, var(--o-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ocrmHeroSub { font-size: 18px; line-height: 1.65; color: #cbd5e1; max-width: 560px; margin: 0 0 30px; }
.ocrmHeroActions { display: flex; flex-wrap: wrap; gap: 14px; }
.ocrmHeroChecks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #94a3b8; font-size: 14px; }
.ocrmHeroChecks li { display: inline-flex; align-items: center; gap: 8px; }
.ocrmHeroChecks .fa-circle-check { color: #34d399; }

.ocrmHeroVisual { position: relative; perspective: 1400px; }
.ocrmTilt .ocrmFrame { transform: rotateY(-8deg) rotateX(4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.ocrmTilt:hover .ocrmFrame { transform: rotateY(var(--ry, -2deg)) rotateX(var(--rx, 1deg)); }

/* Browser frame */
.ocrmFrame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--o-shadow); border: 1px solid rgba(148, 163, 184, .35); }
.ocrmFrameBar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1f5f9; border-bottom: 1px solid var(--o-line); }
.ocrmDot { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.ocrmDot + .ocrmDot { background: #fbbf24; }
.ocrmDot + .ocrmDot + .ocrmDot { background: #34d399; }
.ocrmFrameUrl {
  margin-left: 12px; flex: 1; min-width: 0; padding: 5px 12px; border-radius: 8px; background: #fff;
  font-size: 12px; color: var(--o-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--o-line);
}
.ocrmFrameImg { display: block; width: 100%; height: auto; }

.ocrmFloat {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--o-text);
  box-shadow: 0 18px 40px -12px rgba(2, 6, 23, .55); animation: ocrmBob 6s ease-in-out infinite;
}
.ocrmFloat strong { display: block; font-size: 14px; }
.ocrmFloat span:not(.ocrmFloatIcon) { font-size: 12.5px; color: var(--o-muted); }
.ocrmFloatA { left: -28px; bottom: 42px; }
.ocrmFloatB { right: -18px; top: -22px; animation-delay: -3s; }
.ocrmFloatIcon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; flex: none;
  color: #fff; background: linear-gradient(135deg, var(--o-orange), #f97316);
}
.ocrmFloatIcon.isGreen { background: linear-gradient(135deg, #059669, #34d399); }
@keyframes ocrmBob { 50% { transform: translateY(-10px); } }

/* Stats */
.ocrmStats { margin-top: -44px; position: relative; z-index: 2; }
.ocrmStatsGrid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--o-radius);
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .3); border: 1px solid var(--o-line);
}
.ocrmStat { padding: 26px 20px; text-align: center; }
.ocrmStat + .ocrmStat { border-left: 1px solid var(--o-line); }
.ocrmStatValue {
  display: block; font-size: 38px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--o-orange), var(--o-violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ocrmStat span { font-size: 14px; color: var(--o-muted); font-weight: 600; }

/* Sections */
.ocrmSection { padding: 96px 0; }
.ocrmSectionDark { background: linear-gradient(180deg, var(--o-ink), var(--o-ink-2)); color: #e2e8f0; }
.ocrmHead { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.ocrmKicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--o-orange);
  padding: 6px 12px; border-radius: 999px; background: rgba(234, 88, 12, .1);
}
.ocrmTitle { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 16px 0 12px; }
.ocrmSectionDark .ocrmTitle { color: #fff; }
.ocrmSub { font-size: 17px; line-height: 1.65; color: var(--o-muted); margin: 0; }
.ocrmSectionDark .ocrmSub { color: #94a3b8; }

/* Tour tabs */
.ocrmTabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: 6px;
  border-radius: 16px; background: var(--o-soft); border: 1px solid var(--o-line);
}
.ocrmTab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border: 0; border-radius: 11px; background: transparent; color: var(--o-muted);
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ocrmTab:hover { color: var(--o-text); }
.ocrmTab.isActive { background: #fff; color: var(--o-text); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .3); }
.ocrmTab.isActive > span:first-child { color: var(--o-orange); }
.ocrmTab:focus-visible { outline: 3px solid var(--o-orange-2); outline-offset: 2px; }
.ocrmTabProgress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--o-orange), var(--o-violet)); }
.ocrmTour.isPlaying .ocrmTab.isActive .ocrmTabProgress { animation: ocrmProgress var(--autoplay, 6s) linear forwards; }
@keyframes ocrmProgress { to { width: 100%; } }

.ocrmTourStage { position: relative; }
.ocrmPanel { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.ocrmPanel[hidden] { display: none; }
.ocrmPanel.isActive { animation: ocrmFadeUp .5s cubic-bezier(.2, .7, .2, 1); }
.ocrmPanelCopy h3 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 12px; }
.ocrmPanelCopy p { color: var(--o-muted); line-height: 1.7; margin: 0; font-size: 16px; }
.ocrmFrameLarge { max-height: 620px; overflow: auto; overscroll-behavior: contain; }
.ocrmFrameLarge .ocrmFrameBar { position: sticky; top: 0; z-index: 1; }
@keyframes ocrmFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Modules explorer */
.ocrmModules { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
.ocrmModuleList { display: flex; flex-direction: column; gap: 8px; }
.ocrmModuleBtn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  border-radius: 14px; border: 1px solid rgba(148, 163, 184, .16); background: rgba(255, 255, 255, .03);
  color: #cbd5e1; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.ocrmModuleBtn:hover { background: rgba(255, 255, 255, .07); transform: translateX(4px); color: #fff; }
.ocrmModuleBtn.isActive { background: linear-gradient(135deg, rgba(234, 88, 12, .22), rgba(139, 92, 246, .18)); border-color: rgba(251, 146, 60, .55); color: #fff; }
.ocrmModuleBtn:focus-visible { outline: 3px solid var(--o-orange-2); outline-offset: 2px; }
.ocrmModuleIcon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: var(--o-orange-2); flex: none; }
.ocrmModuleName { flex: 1; }
.ocrmModuleArrow { font-size: 12px; opacity: .4; transition: opacity .2s ease, transform .2s ease; }
.ocrmModuleBtn.isActive .ocrmModuleArrow { opacity: 1; transform: translateX(3px); }

.ocrmModuleStage {
  position: relative; overflow: hidden; border-radius: 22px; padding: 44px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .18);
}
.ocrmSpotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(251, 146, 60, .16), transparent 60%);
}
.ocrmSpotlight:hover::before { opacity: 1; }
.ocrmModulePanel { position: relative; }
.ocrmModulePanel.isActive { animation: ocrmFadeUp .45s cubic-bezier(.2, .7, .2, 1); }
.ocrmModuleBigIcon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, var(--o-orange), var(--o-violet)); box-shadow: 0 14px 30px -12px rgba(234, 88, 12, .7);
}
.ocrmModulePanel h3 { font-size: 30px; color: #fff; margin: 24px 0 12px; letter-spacing: -.01em; }
.ocrmModulePanel p { font-size: 17px; line-height: 1.7; color: #cbd5e1; margin: 0 0 24px; max-width: 620px; }
.ocrmPoints { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ocrmPoints li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #e2e8f0; }
.ocrmPoints .fa-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; color: #34d399; background: rgba(52, 211, 153, .14); flex: none; }

/* Demo */
.ocrmDemoGrid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.ocrmDemoIntro .ocrmTitle, .ocrmDemoIntro .ocrmSub { text-align: left; }
.ocrmSteps { list-style: none; padding: 0; margin: 34px 0 0; counter-reset: ocrmStep; display: grid; gap: 4px; }
.ocrmStep { position: relative; padding: 0 0 22px 58px; counter-increment: ocrmStep; }
.ocrmStep::before {
  content: counter(ocrmStep); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: var(--o-orange); background: rgba(234, 88, 12, .1);
}
.ocrmStep:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: linear-gradient(var(--o-line), transparent); }
.ocrmStep strong { display: block; font-size: 16.5px; margin-bottom: 4px; }
.ocrmStep span { color: var(--o-muted); line-height: 1.6; }
.ocrmDemoContact { display: flex; align-items: center; gap: 8px; color: var(--o-muted); margin-top: 8px; flex-wrap: wrap; }
.ocrmDemoContact .fa-envelope { color: var(--o-orange); }
.ocrmDemoContact a { color: var(--o-text); font-weight: 700; }

.ocrmFormCard {
  position: relative; padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--o-line);
  box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .35);
}
.ocrmFormCard::before {
  content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(234, 88, 12, .6), transparent 40%, rgba(139, 92, 246, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ocrmFormHead h3 { font-size: 24px; margin: 0 0 6px; }
.ocrmFormHead p { color: var(--o-muted); margin: 0 0 24px; }
.ocrmAlert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 20px; line-height: 1.5; }
.ocrmAlert.isSuccess { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ocrmAlert.isError { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ocrmAlert .fa-solid { margin-top: 3px; }

.ocrmForm { display: grid; gap: 16px; }
.ocrmFieldRow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ocrmField { position: relative; }
.ocrmField input, .ocrmField textarea {
  width: 100%; padding: 24px 14px 10px; border-radius: 12px; border: 1.5px solid var(--o-line); background: var(--o-soft);
  font: inherit; font-size: 15px; color: var(--o-text); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.ocrmField textarea { resize: vertical; min-height: 116px; }
.ocrmField label {
  position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--o-muted); pointer-events: none;
  transform-origin: left top; transition: transform .18s ease, color .18s ease;
}
.ocrmField input:focus, .ocrmField textarea:focus { outline: none; border-color: var(--o-orange); background: #fff; box-shadow: 0 0 0 4px rgba(234, 88, 12, .12); }
.ocrmField input:focus + label, .ocrmField input:not(:placeholder-shown) + label,
.ocrmField textarea:focus + label, .ocrmField textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--o-orange); font-weight: 700; }

.ocrmChoiceLabel { display: block; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ocrmChips { display: flex; flex-wrap: wrap; gap: 8px; }
.ocrmChipInput { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ocrmChip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--o-line); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--o-muted); transition: all .18s ease; user-select: none;
}
.ocrmChip:hover { border-color: var(--o-orange-2); color: var(--o-text); }
.ocrmChipInput:checked + .ocrmChip { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--o-orange), #f97316); box-shadow: 0 8px 18px -8px rgba(234, 88, 12, .7); }
.ocrmChipInput:focus-visible + .ocrmChip { outline: 3px solid var(--o-orange-2); outline-offset: 2px; }

.ocrmSubmit { justify-content: center; width: 100%; padding: 16px; font-size: 16px; border: 0; }
.ocrmSubmit.isBusy { opacity: .75; pointer-events: none; }
.ocrmFormNote { font-size: 12.5px; color: var(--o-muted); margin: 0; text-align: center; }
.ocrmFormNote a { color: inherit; }

/* Scroll reveal (only once JS confirms it can reveal) */
.ocrmJs .ocrmReveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ocrmJs .ocrmReveal.isVisible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .ocrmHeroInner, .ocrmDemoGrid, .ocrmModules { grid-template-columns: 1fr; }
  .ocrmHeroInner { gap: 48px; }
  .ocrmTilt .ocrmFrame { transform: none; }
  .ocrmPanel { grid-template-columns: 1fr; gap: 20px; }
  .ocrmPanelCopy { text-align: center; }
  .ocrmModuleList { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .ocrmModuleBtn { width: auto; flex: none; scroll-snap-align: start; }
  .ocrmModuleBtn:hover { transform: none; }
  .ocrmModuleArrow { display: none; }
}
@media (max-width: 680px) {
  .ocrmHero { padding: 48px 0 84px; }
  .ocrmSection { padding: 72px 0; }
  .ocrmStatsGrid { grid-template-columns: repeat(2, 1fr); }
  .ocrmStat:nth-child(3) { border-left: 0; }
  .ocrmStat:nth-child(n + 3) { border-top: 1px solid var(--o-line); }
  .ocrmFieldRow { grid-template-columns: 1fr; }
  .ocrmFormCard, .ocrmModuleStage { padding: 24px; }
  .ocrmFloatA { left: 8px; bottom: -26px; }
  .ocrmFloatB { right: 8px; top: -26px; }
  .ocrmFrameLarge { max-height: 460px; }
  .ocrmTab { padding: 10px 13px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ocrm *, .ocrm *::before, .ocrm *::after { animation: none !important; transition: none !important; }
  .ocrmJs .ocrmReveal { opacity: 1; transform: none; }
}

.ocrmFormHead { position: relative; }
.ocrmFormIcon { width: 48px; height: 48px; border-radius: 14px; display: block; margin-bottom: 14px; box-shadow: 0 10px 24px -10px rgba(234, 88, 12, .7); }
